/* ============================================================
   SALMERÓN DESIGN SYSTEM — Portal Obras 2026
   Basado en design system oficial v2026-04
   ============================================================ */

/* ── FUENTES OFICIALES ──────────────────────────────────────── */

@font-face {
  font-family: 'TASA Orbiter Display';
  src: url('/_assets/fonts/TASAOrbiter-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TASA Orbiter Display';
  src: url('/_assets/fonts/TASAOrbiter-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TASA Orbiter Display';
  src: url('/_assets/fonts/TASAOrbiter-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TASA Orbiter Display';
  src: url('/_assets/fonts/TASAOrbiter-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('/_assets/fonts/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────────── */

:root {

  /* Fonts */
  --font-display: 'TASA Orbiter Display', 'Barlow', 'Arial Black', sans-serif;
  --font-body:    'Raleway', Arial, sans-serif;

  /* Primary colors */
  --color-iron:         #212122;
  --color-corten:       #eb5e50;
  --color-white:        #ffffff;

  /* Submark backgrounds */
  --color-steel:        #20314b;   /* Elvia */
  --color-green-oxide:  #233c39;   /* Abitia */
  --color-bronze:       #47313b;   /* Fabria */

  /* Surface layers */
  --color-iron-deep:    #1a1a1b;
  --color-iron-glass:   rgba(33, 33, 34, 0.72);
  --color-iron-elevated:#2a2a2c;

  /* Text neutrals */
  --color-silver:           rgba(252, 252, 252, 0.60);
  --color-silver-muted:     rgba(252, 252, 252, 0.48);
  --color-silver-ghost:     rgb(123, 123, 128);
  --color-silver-secondary: rgb(147, 147, 153);

  /* Corten variants */
  --color-corten-soft:  rgba(235, 94, 80, 0.12);
  --color-corten-glow:  rgba(235, 94, 80, 0.25);

  /* Dark UI */
  --color-dark-chip:        rgb(57, 57, 59);
  --color-dark-chip-border: rgb(32, 39, 49);
  --color-dark-input-border:rgb(81, 81, 84);
  --color-dark-btn:         rgb(15, 18, 23);
  --color-dark-content:     rgb(18, 18, 18);

  /* Submark soft & accents */
  --color-elvia-soft:    rgba(32, 49, 75, 0.14);
  --color-abitia-soft:   rgba(35, 60, 57, 0.14);
  --color-fabria-soft:   rgba(71, 49, 59, 0.14);
  --color-elvia-accent:  #7b94c3;
  --color-abitia-accent: #7ba89f;
  --color-fabria-accent: #b08491;

  /* Type scale */
  --text-hero:        clamp(48px, 6vw, 72px);
  --text-section-xl:  clamp(42px, 5vw, 64px);
  --text-section-lg:  clamp(36px, 4.5vw, 56px);
  --text-card-title:  24px;
  --text-card-sm:     20px;
  --text-nav-brand:   18px;
  --text-nav-link:    15px;
  --text-body-lg:     18px;
  --text-body:        16px;
  --text-body-sm:     14px;
  --text-chip:        12px;
  --text-tag:         12px;
  --text-btn:         14px;
  --text-btn-lg:      16px;

  /* Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* Line heights */
  --lh-tight: 1.10;
  --lh-snug: 1.12;
  --lh-normal: 1.25;
  --lh-relaxed: 1.55;
  --lh-loose: 1.65;

  /* Letter spacing */
  --ls-tight:  -0.01em;
  --ls-normal: 0;
  --ls-chip:   0.14em;
  --ls-brand:  0.04em;

  /* Radius */
  --radius-xs:    2px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-2xl:   24px;
  --radius-pill:  100px;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 48px; --space-10: 64px; --space-11: 80px; --space-12: 120px;

  --section-pad-desktop: 120px;
  --section-pad-tablet:  80px;
  --section-pad-mobile:  64px;

  /* Elevation */
  --shadow-l1: none;
  --shadow-l2: 0 4px 20px rgba(0, 0, 0, 0.30);
  --shadow-l3: 0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-l4: 0 8px 24px rgba(235, 94, 80, 0.25);
  --shadow-l4-hover: 0 10px 30px rgba(235, 94, 80, 0.35);

  --border-l1: 1px solid rgba(255, 255, 255, 0.06);
  --border-l2: 1px solid rgba(255, 255, 255, 0.08);
  --border-l3: 1px solid rgba(255, 255, 255, 0.08);

  /* Motion */
  --ease-brand: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.16, 1, 0.30, 1);
  --dur-fast:   0.15s;
  --dur-base:   0.25s;
  --dur-slow:   0.60s;

  /* Gradients */
  --grad-corten-btn: linear-gradient(180deg, #f07264 0%, #eb5e50 100%);
  --grad-halo-corten:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(235,94,80,0.35) 0%, transparent 70%),
    #212122;
  --grad-halo-elvia:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(32,49,75,0.55) 0%, transparent 60%),
    #212122;
  --grad-halo-abitia:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(35,60,57,0.55) 0%, transparent 60%),
    #212122;
  --grad-halo-fabria:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(71,49,59,0.55) 0%, transparent 65%),
    #212122;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  24px;
}

/* ── BASE RESETS ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-iron);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--lh-loose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--color-corten); color: white; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-iron-deep); }
::-webkit-scrollbar-thumb { background: rgba(235,94,80,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(235,94,80,0.6); }

/* ── LAYOUT ─────────────────────────────────────────────────── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

main {
  flex: 1;
  padding-top: 100px; /* hueco para navbar flotante */
  padding-bottom: var(--space-10);
}

/* ── TIPOGRAFÍA SEMÁNTICA ───────────────────────────────────── */

.t-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.t-h2 {
  font-family: var(--font-display);
  font-size: var(--text-section-lg);
  font-weight: var(--weight-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.t-h3 {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-normal);
}
.t-body { font-size: var(--text-body); line-height: var(--lh-loose); }
.t-body-sm { font-size: var(--text-body-sm); line-height: var(--lh-relaxed); }

/* ── SECTION CHIPS (kicker) ─────────────────────────────────── */

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgb(57, 57, 59);
  color: var(--color-corten);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 16px;
  line-height: 21px;
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}
.section-chip .dot {
  width: 6px; height: 6px;
  background: var(--color-corten);
  border-radius: 50%;
  display: inline-block;
}

/* ── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-btn);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-brand);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--grad-corten-btn);
  color: var(--color-white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, var(--shadow-l4);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ed6a5c 0%, #e55446 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, var(--shadow-l4-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.24);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.40);
}
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.20);
  padding: 10px 20px;
  font-size: 13px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 14px 28px; font-size: var(--text-btn-lg); font-weight: var(--weight-semibold); }
.btn-dark {
  background: rgb(15, 18, 23);
  color: var(--color-white);
  font-family: var(--font-display);
}
.btn-dark:hover { background: rgba(255,255,255,0.10); }

/* ── CARDS ──────────────────────────────────────────────────── */

.card {
  background: var(--color-iron-deep);
  border: var(--border-l1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--dur-base) var(--ease-brand),
              transform var(--dur-base) var(--ease-brand);
  overflow: hidden;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ── NAVBAR FLOTANTE ────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 10px 0 24px;
  background: rgb(57, 57, 59);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgb(32, 39, 49);
  border-radius: var(--radius-pill);
  z-index: 1000;
  width: min(1290px, calc(100vw - 32px));
  box-shadow: var(--shadow-l3);
  gap: var(--space-5);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-white);
  max-width: 200px;
}
.navbar-brand img {
  height: 28px !important;
  width: 174px !important; /* ratio 6.22 × 28 = 174 */
  max-width: 174px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-white);
  display: none;
}
.navbar-brand-text small {
  display: block;
  font-size: 10px;
  font-weight: var(--weight-regular);
  color: var(--color-silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.navbar-link {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-nav-link);
  color: var(--color-silver);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) ease;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
}
.navbar-link:hover, .navbar-link.active { color: var(--color-white); }

@media (min-width: 900px) {
  .navbar-brand-text { display: block; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
}

/* ── HERO SECTION ───────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 var(--space-11);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-halo-corten);
  opacity: 0.6;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex;
  margin-bottom: var(--space-6);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .accent { color: var(--color-corten); }
.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: var(--lh-relaxed);
  color: var(--color-silver);
  max-width: 580px;
  margin: 0 auto var(--space-7);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── INFO CARDS GRID ────────────────────────────────────────── */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-9);
}
.info-card {
  padding: 28px 24px;
}
.info-card .num {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 14px;
  color: var(--color-corten);
  margin-bottom: var(--space-4);
  letter-spacing: var(--ls-chip);
}
.info-card h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 20px;
  line-height: var(--lh-normal);
  margin-bottom: var(--space-3);
}
.info-card p {
  font-size: var(--text-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-silver);
}
.info-card a { color: var(--color-corten); }
.info-card a:hover { text-decoration: underline; }

/* ── SUBMARK CARDS (Elvia / Abitia / Fabria) ────────────────── */

.submarks-section {
  background: radial-gradient(ellipse 30% 30% at 17% 50%, rgba(80,108,153,0.33) 0%, transparent 60%),
              radial-gradient(ellipse 30% 30% at 50% 50%, rgba(110,153,148,0.29) 0%, transparent 60%),
              radial-gradient(ellipse 30% 30% at 83% 50%, rgba(178,137,156,0.30) 0%, transparent 60%),
              var(--color-iron);
  padding: var(--section-pad-desktop) 0;
}
.submarks-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.submarks-header .section-chip { margin-bottom: var(--space-6); }
.submarks-header h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-4);
}
.submarks-header p {
  color: var(--color-silver);
  max-width: 560px;
  margin: 0 auto;
}

.submarks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .submarks-grid { grid-template-columns: 1fr; }
}

.submark-card {
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden !important;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 3px solid transparent;
  transition: all var(--dur-slow) var(--ease-brand);
  text-decoration: none;
  color: var(--color-white);
  isolation: isolate;
}
.submark-card.elvia {
  background: linear-gradient(135deg, rgb(32,49,75) 0%, rgb(73,106,157) 100%);
}
.submark-card.elvia:hover { border-color: rgb(145, 178, 229); }
.submark-card.abitia {
  background: linear-gradient(135deg, rgb(35,60,57) 0%, rgb(67,107,102) 100%);
}
.submark-card.abitia:hover { border-color: rgb(110, 153, 148); }
.submark-card.fabria {
  background: linear-gradient(135deg, rgb(71,49,59) 0%, rgb(130,90,108) 100%);
}
.submark-card.fabria:hover { border-color: rgb(178, 137, 156); }

.submark-card .iso-bg {
  position: absolute !important;
  right: -8% !important;
  bottom: -6% !important;
  width: 220px !important;
  height: 220px !important;
  max-width: 55% !important;
  max-height: 70% !important;
  object-fit: contain !important;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-brand);
  z-index: 0;
}
.submark-card:hover .iso-bg { opacity: 0.55; }

.submark-card-inner {
  position: relative;
  z-index: 1;
}
.submark-card .wordmark {
  height: 40px !important;
  width: auto !important;
  max-width: 200px;
  margin-bottom: var(--space-4);
  display: block;
}
.submark-card .endorsement {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.submark-card .desc {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 16px;
  color: rgba(252, 252, 252, 0.7);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}
.submark-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.submark-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.submark-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.submark-card.elvia li::before { background: var(--color-elvia-accent); }
.submark-card.abitia li::before { background: var(--color-abitia-accent); }
.submark-card.fabria li::before { background: var(--color-fabria-accent); }

.submark-card .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgb(15, 18, 23);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 14px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  transition: background var(--dur-base) ease;
}
.submark-card .cta:hover { background: rgba(255,255,255,0.1); }

/* ── PROJECT HUB ────────────────────────────────────────────── */

.project-hero {
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-halo-fabria);
  opacity: 0.4;
  z-index: -1;
}

.project-hero .section-chip { margin-bottom: var(--space-4); }

.project-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: var(--weight-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-3);
}
.project-subtitle {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--color-silver);
  margin-bottom: var(--space-7);
}

.project-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-stat {
  display: inline-flex;
  flex-direction: column;
  padding: 14px 22px;
  background: rgb(57, 57, 59);
  border: 1px solid rgb(32, 39, 49);
  border-radius: var(--radius-pill);
  min-width: 140px;
}
.project-stat .label {
  font-size: 10px;
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: 2px;
}
.project-stat .value {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 18px;
  color: var(--color-white);
  line-height: 1.1;
}
.project-stat .value.corten { color: var(--color-corten); }

/* ── SECTIONS ───────────────────────────────────────────────── */

.section {
  padding: var(--space-11) 0;
  border-top: var(--border-l1);
}
.section:first-of-type { border-top: none; }
.section-title {
  display: inline-flex;
  margin-bottom: var(--space-7);
}

/* ── VIEWER CTA ─────────────────────────────────────────────── */

.viewer-cta {
  background: linear-gradient(135deg, rgb(71,49,59) 0%, rgb(130,90,108) 60%, rgb(71,49,59) 100%);
  border-radius: var(--radius-2xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  transition: transform var(--dur-base) var(--ease-brand);
}
.viewer-cta:hover { transform: translateY(-2px); }
.viewer-cta::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -50%;
  width: 320px;
  height: 400px;
  background: url("/_assets/brand/fabria/isotipo-color.svg") no-repeat center/contain;
  opacity: 0.18;
  pointer-events: none;
}
.viewer-cta-content { position: relative; z-index: 1; }
.viewer-cta-content .eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-3);
}
.viewer-cta-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-bold);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.viewer-cta-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .viewer-cta { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* ── BUDGET TABLE ───────────────────────────────────────────── */

.budget-table {
  background: var(--color-iron-deep);
  border: var(--border-l1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.budget-table table {
  width: 100%;
  border-collapse: collapse;
}
.budget-table th, .budget-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  border-bottom: var(--border-l1);
}
.budget-table th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-silver);
  background: rgba(0,0,0,0.2);
}
.budget-table td:nth-child(2),
.budget-table th:nth-child(2),
.budget-table td:nth-child(3),
.budget-table th:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.budget-table tr:last-child td { border-bottom: none; }
.budget-table tr.total td {
  font-weight: var(--weight-bold);
  font-size: 16px;
  background: rgba(235,94,80,0.08);
  font-family: var(--font-display);
}
.budget-table tr.total td:nth-child(3) { color: var(--color-corten); }

/* ── DOWNLOAD CARDS ─────────────────────────────────────────── */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--color-iron-deep);
  border: var(--border-l1);
  border-radius: var(--radius-md);
  transition: all var(--dur-base) var(--ease-brand);
  text-decoration: none;
  color: inherit;
}
.dl-card:hover {
  border-color: rgba(235,94,80,0.4);
  background: rgba(235,94,80,0.03);
  transform: translateY(-2px);
}
.dl-card .dl-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--color-iron);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--color-corten);
  border: 1px solid rgba(235,94,80,0.25);
}
.dl-card .dl-text { flex: 1; min-width: 0; }
.dl-card .dl-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: var(--weight-medium);
  margin-bottom: 3px;
}
.dl-card .dl-desc {
  display: block;
  font-size: 12px;
  color: var(--color-silver);
}
.dl-card .dl-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-silver-muted);
  transition: all var(--dur-base) ease;
}
.dl-card:hover .dl-arrow { color: var(--color-corten); transform: translateX(3px); }
.dl-card.highlight {
  border-color: rgba(235,94,80,0.4);
  background: rgba(235,94,80,0.04);
}

/* ── DATA GRID ──────────────────────────────────────────────── */

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.data-block { padding: 24px; }
.data-block h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-corten);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-l1);
}
.data-block dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: 13px;
}
.data-block dt {
  color: var(--color-silver);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-block dd {
  color: var(--color-white);
  font-weight: var(--weight-medium);
  text-align: right;
}

/* ── CONTACT BLOCK ──────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-7);
  align-items: center;
  background: var(--color-iron-deep);
  border: var(--border-l1);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.contact-text h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.contact-text p {
  font-size: 14px;
  color: var(--color-silver);
}
@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */

.footer {
  background: var(--color-iron);
  border-top: var(--border-l1);
  padding: var(--space-8) 0 var(--space-7);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: var(--border-l1);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.footer-brand img {
  height: 29px !important;
  width: auto !important;
  max-width: 200px;
  margin-bottom: var(--space-4);
  display: block;
}
.footer-brand p {
  font-size: 13px;
  color: var(--color-silver);
  line-height: var(--lh-relaxed);
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-corten);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 13px;
  color: var(--color-silver);
  transition: color var(--dur-fast) ease;
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-corten); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-tagline {
  font-style: italic;
  color: var(--color-corten);
  font-size: 14px;
}
.footer-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-silver);
}
.footer-meta a { color: var(--color-silver); }
.footer-meta a:hover { color: var(--color-corten); }

/* ── ADMIN PANEL ────────────────────────────────────────────── */

.admin-header { padding: var(--space-9) 0 var(--space-6); }
.admin-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}
.admin-subtitle { color: var(--color-silver); font-size: 15px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-6);
}
.metric { padding: 20px 24px; }
.metric .label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--space-2);
}
.metric .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-bold);
  line-height: 1;
}
.metric .value.corten { color: var(--color-corten); }

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
}
.search-box { flex: 1; min-width: 280px; position: relative; }
.search-box input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  background: transparent;
  border: 1px solid var(--color-dark-input-border);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  transition: border-color var(--dur-fast) ease;
}
.search-box input:focus { outline: none; border-color: rgba(235,94,80,0.6); }
.search-box input::placeholder { color: var(--color-silver-ghost); }
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 14px;
}

.projects-list {
  background: var(--color-iron-deep);
  border: var(--border-l1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 100px 120px 130px 40px;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: var(--border-l1);
  transition: background var(--dur-fast);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: rgba(235,94,80,0.04); }
.project-row.header {
  background: rgba(0,0,0,0.2);
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--color-silver);
  pointer-events: none;
}
.project-id {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--color-corten);
  font-weight: var(--weight-semibold);
}
.project-info .name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-medium);
  margin-bottom: 3px;
}
.project-info .client { font-size: 12px; color: var(--color-silver); }
.project-loc { font-size: 12px; color: var(--color-silver); }
.project-sup, .project-pec { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.project-pec { color: var(--color-corten); font-weight: var(--weight-semibold); }
.project-fase {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(235,94,80,0.1);
  color: var(--color-corten);
  text-align: center;
  border: 1px solid rgba(235,94,80,0.3);
  line-height: 1.4;
}
.project-fase.fase-obra { background: rgba(123,168,159,0.1); color: var(--color-abitia-accent); border-color: rgba(123,168,159,0.3); }
.project-fase.fase-finalizado { background: rgba(255,255,255,0.05); color: var(--color-silver); border-color: rgba(255,255,255,0.1); }
.project-arrow {
  font-size: 18px;
  color: var(--color-silver-muted);
  text-align: right;
  transition: all var(--dur-fast);
}
.project-row:hover .project-arrow { color: var(--color-corten); transform: translateX(3px); }

@media (max-width: 900px) {
  .project-row { grid-template-columns: 70px 1fr auto; gap: 12px; }
  .project-row .project-loc, .project-row .project-sup,
  .project-row .project-fase, .project-row .project-arrow { display: none; }
  .project-row.header { display: none; }
}

.empty-state { padding: 60px 24px; text-align: center; color: var(--color-silver); }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.add-section {
  margin-top: var(--space-7);
  padding: 28px;
  background: var(--color-iron-deep);
  border: 1px dashed var(--color-silver-ghost);
  border-radius: var(--radius-lg);
  text-align: center;
}
.add-section h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: var(--space-2);
}
.add-section p {
  font-size: 13px;
  color: var(--color-silver);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.add-section code {
  background: var(--color-iron);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-corten);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.animate-in { animation: revealUp 0.6s var(--ease-out) forwards; }

/* ── UTILITIES ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-corten { color: var(--color-corten); }
.text-silver { color: var(--color-silver); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
