/* ============================================================
   SISTEMA DE DISEÑO — Hechos por el Territorio
   ------------------------------------------------------------
   CSS puro con tokens equivalentes a la escala Tailwind.
   Sin build, sin dependencias: desplegable como estático.

   Mapeo de referencia:
     --radius-2xl  ≙ rounded-2xl      (1rem)
     --radius-3xl  ≙ rounded-3xl      (1.5rem)
     --radius-full ≙ rounded-full
     --shadow-sm   ≙ shadow-sm
     --shadow-md   ≙ shadow-md
     --slate-200   ≙ border-slate-200
   ============================================================ */

:root{
  /* ---- Superficies ---- */
  --surface:        #F8FAFC;   /* base luminosa */
  --surface-white:  #FFFFFF;   /* tarjetas */
  --surface-dark:   #0F172A;   /* alto contraste */
  --surface-petrol: #0F2942;   /* azul petróleo */

  /* ---- Primario ---- */
  --navy:        #1E3A8A;
  --navy-deep:   #0F2942;
  --navy-soft:   #2947A3;

  /* ---- Acentos ---- */
  --cyan:        #06B6D4;
  --cyan-soft:   #CFFAFE;
  --cyan-ink:    #0E7490;
  --emerald:     #10B981;
  --emerald-soft:#D1FAE5;
  --emerald-ink: #047857;

  /* ---- Escala de grises ---- */
  --ink:         #0F172A;   /* títulos */
  --slate-700:   #334155;
  --slate-600:   #475569;   /* párrafos */
  --slate-500:   #64748B;
  --slate-400:   #94A3B8;
  --slate-200:   #E2E8F0;   /* divisores */
  --slate-100:   #F1F5F9;

  /* ---- Radios ---- */
  --radius-lg:   0.5rem;
  --radius-xl:   0.75rem;
  --radius-2xl:  1rem;
  --radius-3xl:  1.5rem;
  --radius-full: 9999px;

  /* ---- Sombras ---- */
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / .05);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / .08), 0 2px 4px -2px rgb(15 23 42 / .05);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / .09), 0 4px 6px -4px rgb(15 23 42 / .06);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / .12), 0 8px 10px -6px rgb(15 23 42 / .07);

  /* ---- Bordes ---- */
  --border:      1px solid rgb(226 232 240 / .8);
  --border-dark: 1px solid rgb(255 255 255 / .1);

  /* ---- Tipografía ---- */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- Layout ---- */
  --wrap: 1200px;
  --gutter: 24px;
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:92px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  color:var(--slate-600);
  background:var(--surface);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}
a{color:inherit}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  line-height:1.15;
  letter-spacing:-.022em;
  margin:0;
  font-weight:700;
}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--cyan);color:var(--ink);
  padding:12px 20px;border-radius:0 0 var(--radius-lg) 0;font-weight:600;
}
.skip-link:focus{left:0}

:where(a,button,input,select,textarea):focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
  border-radius:var(--radius-lg);
}

/* ============================================================
   PRIMITIVAS DEL SISTEMA
   ============================================================ */

/* --- Card (bento) --------------------------------------- */
.ds-card{
  background:var(--surface-white);
  border:var(--border);
  border-radius:var(--radius-2xl);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.ds-card:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
  border-color:var(--slate-200);
}

/* --- Badge / Pill --------------------------------------- */
.badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 13px;
  border-radius:var(--radius-full);
  font-size:12px;font-weight:600;
  letter-spacing:.01em;line-height:1.5;
  white-space:nowrap;
}
.badge-cyan{background:var(--cyan-soft);color:var(--cyan-ink)}
.badge-emerald{background:var(--emerald-soft);color:var(--emerald-ink)}
.badge-slate{background:var(--slate-100);color:var(--slate-600)}
.badge-navy{background:rgb(30 58 138 / .08);color:var(--navy)}
.badge-glass{
  background:rgb(6 182 212 / .12);
  color:#67E8F9;
  border:1px solid rgb(6 182 212 / .28);
}
.badge .dot{
  width:6px;height:6px;border-radius:var(--radius-full);
  background:currentColor;flex:0 0 6px;
}

/* --- Botones -------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 26px;
  border-radius:var(--radius-xl);
  font-family:var(--font-body);
  font-size:15px;font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, box-shadow .25s ease, transform .18s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn svg{width:18px;height:18px;flex:0 0 18px}

.btn-primary{background:var(--navy);color:#fff;box-shadow:var(--shadow-md)}
.btn-primary:hover{background:var(--navy-soft);box-shadow:var(--shadow-lg)}

.btn-accent{background:var(--cyan);color:#062C36;box-shadow:var(--shadow-md)}
.btn-accent:hover{background:#22CDE8;box-shadow:var(--shadow-lg)}

.btn-outline{background:transparent;color:var(--ink);border-color:var(--slate-200)}
.btn-outline:hover{background:var(--surface-white);border-color:var(--slate-400);box-shadow:var(--shadow-sm)}

.btn-ghost-dark{background:rgb(255 255 255 / .06);color:#fff;border-color:rgb(255 255 255 / .18)}
.btn-ghost-dark:hover{background:rgb(255 255 255 / .12);border-color:rgb(255 255 255 / .32)}

.btn-block{width:100%}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}

/* --- Stat callout (Big Numbers) ------------------------- */
.stat{display:flex;flex-direction:column;gap:6px}
.stat-num{
  font-family:var(--font-display);
  font-size:clamp(2.75rem,5vw,4rem);   /* 44px → 64px */
  font-weight:700;
  line-height:1;
  letter-spacing:-.04em;
  color:var(--navy);
  font-variant-numeric:tabular-nums;
}
.stat-num.on-dark{color:var(--cyan)}
.stat-label{
  font-size:13px;
  line-height:1.45;
  color:var(--slate-500);
  max-width:24ch;
}
.stat-label.on-dark{color:var(--slate-400)}

/* --- Encabezado de sección ------------------------------ */
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--cyan-ink);
  margin-bottom:18px;
}
.eyebrow.on-dark{color:#67E8F9}
.eyebrow::before{
  content:"";width:22px;height:2px;border-radius:var(--radius-full);
  background:currentColor;opacity:.55;
}

.section-title{
  font-size:clamp(1.75rem,3.4vw,2.6rem);
  font-weight:700;
  letter-spacing:-.03em;
}
.section-title.on-dark{color:#fff}

.section-sub{
  margin-top:16px;
  font-size:17px;
  color:var(--slate-600);
  max-width:62ch;
}
.section-sub.on-dark{color:var(--slate-400)}

.section-head{margin-bottom:clamp(36px,5vw,56px)}
.section-head.center{text-align:center;max-width:760px;margin-inline:auto}
.section-head.center .section-sub{margin-inline:auto}
.section-head.center .eyebrow::before{display:none}

/* --- Secciones ------------------------------------------ */
.section{padding:clamp(64px,8vw,112px) 0}
.section-white{background:var(--surface-white)}
.section-surface{background:var(--surface)}
.section-dark{background:var(--surface-dark);color:var(--slate-400)}
.divider-top{border-top:1px solid var(--slate-200)}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgb(248 250 252 / .82);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--slate-200);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;min-height:76px;
}

.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand-mark{
  display:grid;place-items:center;
  width:42px;height:42px;flex:0 0 42px;
  border-radius:var(--radius-xl);
  background:linear-gradient(145deg,var(--navy),var(--navy-deep));
  color:#fff;
  font-family:var(--font-display);font-weight:800;font-size:14px;
  letter-spacing:.02em;
  box-shadow:var(--shadow-md);
}
.brand-text{display:flex;flex-direction:column;line-height:1.3}
.brand-text strong{font-family:var(--font-display);font-size:15.5px;font-weight:700;color:var(--ink)}
.brand-text small{font-size:11.5px;color:var(--slate-500);letter-spacing:.01em}

.nav{display:flex;align-items:center;gap:2px}
.nav a{
  text-decoration:none;color:var(--slate-600);
  font-size:14.5px;font-weight:500;
  padding:9px 15px;border-radius:var(--radius-lg);
  transition:color .18s ease, background .18s ease;
}
.nav a:hover{color:var(--ink);background:var(--slate-100)}
.nav .nav-cta{
  background:var(--navy);color:#fff;font-weight:600;
  margin-left:10px;padding:10px 20px;
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);
}
.nav .nav-cta:hover{background:var(--navy-soft);color:#fff;box-shadow:var(--shadow-md)}

.nav-toggle{
  display:none;width:44px;height:44px;
  background:var(--surface-white);
  border:var(--border);
  border-radius:var(--radius-xl);
  cursor:pointer;padding:0;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
  box-shadow:var(--shadow-sm);
}
.nav-toggle span{display:block;width:18px;height:1.8px;background:var(--ink);border-radius:2px;transition:transform .22s ease,opacity .18s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6.8px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.8px) rotate(-45deg)}

/* ============================================================
   HERO — sección de alto contraste
   ============================================================ */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(900px 500px at 82% 12%, rgb(6 182 212 / .13), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgb(30 58 138 / .30), transparent 62%),
    var(--surface-dark);
  color:var(--slate-400);
  padding:clamp(60px,7vw,104px) 0 clamp(68px,8vw,112px);
}
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgb(255 255 255 / .022) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .022) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 78%);
}

.hero-inner{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(40px,5vw,80px);
  align-items:center;
}

.hero h1{
  font-size:clamp(2.2rem,5vw,3.75rem);
  font-weight:800;
  letter-spacing:-.035em;
  color:#fff;
  margin:22px 0 22px;
}
.hero h1 .accent{
  color:var(--cyan);
  display:block;
}

.hero-lead{
  font-size:clamp(1rem,1.5vw,1.125rem);
  color:var(--slate-400);
  max-width:54ch;
  margin-bottom:34px;
}

.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:48px}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.5vw,26px);
  padding-top:34px;
  border-top:var(--border-dark);
}

/* --- Retrato -------------------------------------------- */
.hero-portrait{margin:0;position:relative}
.portrait-card{
  position:relative;
  background:linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02));
  border:var(--border-dark);
  border-radius:var(--radius-3xl);
  padding:14px;
  box-shadow:var(--shadow-xl);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.portrait-card img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  object-position:50% 20%;
  border-radius:var(--radius-2xl);
  background:var(--slate-100);
}
.portrait-meta{
  display:flex;flex-direction:column;gap:5px;
  padding:18px 6px 4px;
}
.portrait-meta strong{
  font-family:var(--font-display);
  font-size:17px;font-weight:700;color:#fff;
  letter-spacing:-.015em;
}
.portrait-meta span{font-size:13.5px;color:var(--slate-500)}

.portrait-tag{
  position:absolute;
  bottom:82px;left:-14px;
  background:var(--surface-white);
  border-radius:var(--radius-full);
  padding:9px 17px;
  box-shadow:var(--shadow-xl);
  display:flex;align-items:center;gap:9px;
  font-size:12.5px;font-weight:600;color:var(--ink);
  white-space:nowrap;
}
.portrait-tag .pulse{
  width:8px;height:8px;border-radius:var(--radius-full);
  background:var(--emerald);flex:0 0 8px;
  box-shadow:0 0 0 0 rgb(16 185 129 / .6);
  animation:pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  70%{box-shadow:0 0 0 10px rgb(16 185 129 / 0)}
  100%{box-shadow:0 0 0 0 rgb(16 185 129 / 0)}
}

/* ============================================================
   FRANJA — campaña en construcción
   ============================================================ */
.strip{background:var(--surface-white);border-bottom:1px solid var(--slate-200)}
.strip-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:clamp(20px,3vw,32px);
  align-items:center;
  background:linear-gradient(120deg, rgb(6 182 212 / .05), rgb(16 185 129 / .04));
  border:1px solid rgb(6 182 212 / .22);
  border-radius:var(--radius-2xl);
  padding:clamp(22px,3vw,30px);
  margin-block:clamp(30px,4vw,44px);
}
.strip-icon{
  display:grid;place-items:center;
  width:50px;height:50px;flex:0 0 50px;
  border-radius:var(--radius-xl);
  background:var(--surface-dark);
  color:var(--cyan);
}
.strip-icon svg{width:24px;height:24px}
.strip-body h2{font-size:clamp(1.15rem,2vw,1.4rem);margin-bottom:8px;letter-spacing:-.02em}
.strip-body p{font-size:15px;color:var(--slate-600);max-width:76ch}
.strip-body strong{color:var(--ink);font-weight:600}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:clamp(16px,2vw,22px);
}
.bento-item{padding:clamp(24px,2.6vw,32px)}
.col-4{grid-column:span 4}
.col-5{grid-column:span 5}
.col-6{grid-column:span 6}
.col-7{grid-column:span 7}
.col-8{grid-column:span 8}
.col-12{grid-column:span 12}

.bento-item h3{
  font-size:1.125rem;font-weight:700;
  letter-spacing:-.02em;
  margin:14px 0 10px;
}
.bento-item p{font-size:14.8px;color:var(--slate-600);line-height:1.62}

/* Tarjeta destacada oscura dentro del bento */
.bento-item.is-feature{
  background:linear-gradient(155deg, var(--navy-deep), var(--surface-dark));
  border-color:transparent;
  color:var(--slate-400);
}
.bento-item.is-feature h3{color:#fff}
.bento-item.is-feature p{color:var(--slate-400)}
.bento-item.is-feature:hover{box-shadow:var(--shadow-xl)}

/* Icono de tarjeta */
.card-icon{
  display:grid;place-items:center;
  width:44px;height:44px;
  border-radius:var(--radius-xl);
  background:var(--slate-100);
  color:var(--navy);
  border:1px solid var(--slate-200);
}
.card-icon svg{width:21px;height:21px}
.card-icon.accent{background:var(--cyan-soft);color:var(--cyan-ink);border-color:rgb(6 182 212 / .2)}
.card-icon.on-dark{background:rgb(6 182 212 / .12);color:var(--cyan);border-color:rgb(6 182 212 / .26)}

/* --- Listas de viñetas ejecutivas ----------------------- */
.bullets{
  display:flex;flex-direction:column;gap:14px;
  margin-top:4px;
}
.bullets li{
  position:relative;
  padding-left:22px;
  font-size:14.8px;
  line-height:1.6;
  color:var(--slate-600);
}
.bullets li::before{
  content:"";
  position:absolute;left:0;top:8px;
  width:7px;height:7px;
  border-radius:var(--radius-full);
  background:var(--cyan);
}
.bullets strong{color:var(--ink);font-weight:600}
.is-feature .bullets li{color:var(--slate-400)}
.is-feature .bullets li::before{background:var(--cyan)}
.is-feature .bullets strong{color:#fff}

.card-foot{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--slate-200);
  font-size:13.5px;
  color:var(--slate-500);
  font-style:italic;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:clamp(12px,1.6vw,18px);
}
.shot{
  position:relative;
  padding:0;margin:0;
  border:var(--border);
  border-radius:var(--radius-2xl);
  overflow:hidden;
  background:var(--slate-100);
  cursor:zoom-in;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .25s ease, transform .25s ease;
  aspect-ratio:4/3;
  display:block;
}
.shot img{
  width:100%;height:100%;
  object-fit:cover;
  /* Encuadre alto: las fotos verticales conservan rostros y no los pies. */
  object-position:50% 32%;
  transition:transform .4s cubic-bezier(.2,.7,.3,1), filter .3s ease;
}
.shot::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(to top, rgb(15 23 42 / .28), transparent 55%);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}
.shot:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.shot:hover img{transform:scale(1.06)}
.shot:hover::after{opacity:1}

/* --- Mini galería dentro de una tarjeta ----------------- */
.mini-gallery{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.mini-gallery .shot{aspect-ratio:1}

/* --- Referencia a documento oficial --------------------- */
.doc-ref{
  display:flex;align-items:flex-start;gap:15px;
  margin-top:22px;
  padding:18px 20px;
  background:linear-gradient(120deg, rgb(6 182 212 / .06), rgb(16 185 129 / .05));
  border:1px solid rgb(6 182 212 / .24);
  border-radius:var(--radius-2xl);
}
.doc-icon{
  display:grid;place-items:center;
  width:40px;height:40px;flex:0 0 40px;
  border-radius:var(--radius-xl);
  background:var(--surface-dark);
  color:var(--cyan);
}
.doc-icon svg{width:20px;height:20px}
.doc-title{
  font-family:var(--font-display);
  font-size:15px;font-weight:700;color:var(--ink);
  letter-spacing:-.015em;
  margin-bottom:6px;
}
.doc-meta{font-size:13.5px;line-height:1.55;color:var(--slate-600)}
.doc-meta strong{color:var(--ink);font-weight:600}
.doc-meta em{font-style:italic}

/* ============================================================
   VISOR (LIGHTBOX)
   ============================================================ */
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgb(8 15 28 / .93);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  gap:clamp(8px,2vw,24px);
  padding:clamp(16px,4vw,48px);
  animation:lbIn .22s ease;
}
/* `display:flex` de arriba gana al `hidden` del user agent: hay que anularlo. */
.lightbox[hidden]{display:none}
@keyframes lbIn{from{opacity:0}to{opacity:1}}

.lb-stage{
  margin:0;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  max-width:min(1100px,100%);
  min-width:0;
}
.lb-stage img{
  max-width:100%;
  max-height:76vh;
  width:auto;height:auto;
  border-radius:var(--radius-2xl);
  box-shadow:var(--shadow-xl);
  background:var(--surface-dark);
}
.lb-stage figcaption{
  font-size:13.5px;
  color:var(--slate-400);
  text-align:center;
  max-width:62ch;
  line-height:1.5;
}

.lb-close,.lb-nav{
  display:grid;place-items:center;
  width:46px;height:46px;flex:0 0 46px;
  border-radius:var(--radius-full);
  background:rgb(255 255 255 / .1);
  border:1px solid rgb(255 255 255 / .2);
  color:#fff;cursor:pointer;
  transition:background .2s ease, border-color .2s ease, transform .18s ease;
}
.lb-close svg,.lb-nav svg{width:22px;height:22px}
.lb-close:hover,.lb-nav:hover{
  background:rgb(255 255 255 / .2);
  border-color:rgb(255 255 255 / .4);
  transform:scale(1.06);
}
.lb-close{
  position:absolute;top:clamp(14px,3vw,26px);right:clamp(14px,3vw,26px);
  z-index:2;
}

body.lb-open{overflow:hidden}

@media (max-width:640px){
  .lightbox{flex-direction:column;justify-content:center;padding-top:72px}
  .lb-nav{position:absolute;bottom:clamp(20px,5vw,40px)}
  .lb-prev{left:22%}
  .lb-next{right:22%}
  .lb-stage img{max-height:62vh}
}

/* ============================================================
   PERFIL
   ============================================================ */
.profile-grid{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(32px,5vw,72px);
  align-items:start;
}
.prose{display:flex;flex-direction:column;gap:18px;font-size:16.5px;color:var(--slate-600)}
.prose strong{color:var(--ink);font-weight:600}
.prose em{font-style:italic;color:var(--slate-700)}

.pill-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

/* ============================================================
   TIMELINE / TRAYECTORIA
   ============================================================ */
.track{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:clamp(16px,2vw,22px);
}
.track-item{
  padding:clamp(24px,2.6vw,30px);
  position:relative;
  display:flex;flex-direction:column;gap:12px;
}
.track-item::before{
  content:"";
  position:absolute;top:0;left:clamp(24px,2.6vw,30px);
  width:36px;height:3px;
  border-radius:0 0 var(--radius-full) var(--radius-full);
  background:linear-gradient(90deg,var(--cyan),var(--emerald));
}
.track-item h3{font-size:1.06rem;margin:0;letter-spacing:-.02em}
.track-item p{font-size:14.6px;color:var(--slate-600);line-height:1.62;margin:0}

/* ============================================================
   COMUNAS
   ============================================================ */
.comunas{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:14px;
  max-width:940px;margin-inline:auto;
}
@media (min-width:940px){.comunas{grid-template-columns:repeat(7,1fr)}}

.comuna{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:22px 12px;
  background:var(--surface-white);
  border:var(--border);
  border-radius:var(--radius-2xl);
  box-shadow:var(--shadow-sm);
  transition:transform .22s ease, box-shadow .25s ease, border-color .22s ease;
}
.comuna:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.comuna span{
  font-size:11px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;color:var(--slate-500);
}
.comuna strong{
  font-family:var(--font-display);
  font-size:1.9rem;font-weight:700;
  color:var(--slate-700);line-height:1.1;
  letter-spacing:-.03em;
}
.comuna.is-core{
  background:linear-gradient(160deg,var(--navy-deep),var(--surface-dark));
  border-color:transparent;
  box-shadow:var(--shadow-lg);
}
.comuna.is-core span{color:var(--slate-500)}
.comuna.is-core strong{color:var(--cyan)}

.legend{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin-top:24px;font-size:13.5px;color:var(--slate-500);
}
.legend i{
  width:14px;height:14px;border-radius:var(--radius-lg);flex:0 0 14px;
  background:linear-gradient(160deg,var(--navy-deep),var(--surface-dark));
}

/* ============================================================
   CONTACTO — único canal: correo
   ============================================================ */
.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:clamp(36px,5vw,68px);
  align-items:start;
}

.mail-module{
  background:linear-gradient(155deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02));
  border:var(--border-dark);
  border-radius:var(--radius-2xl);
  padding:clamp(26px,3vw,32px);
  margin-top:34px;
  display:flex;flex-direction:column;gap:18px;
}
.mail-module .card-icon{margin-bottom:2px}
.mail-label{
  font-size:11.5px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--slate-500);
}
.mail-address{
  font-family:var(--font-display);
  font-size:clamp(1.05rem,2.2vw,1.35rem);
  font-weight:700;color:#fff;
  letter-spacing:-.02em;
  word-break:break-word;
  text-decoration:none;
  transition:color .2s ease;
}
.mail-address:hover{color:var(--cyan)}
.mail-note{font-size:13.5px;color:var(--slate-500);line-height:1.55}

.coverage{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:26px;
}

/* --- Formulario ----------------------------------------- */
.form{
  background:var(--surface-white);
  border-radius:var(--radius-3xl);
  padding:clamp(26px,3.4vw,38px);
  box-shadow:var(--shadow-xl);
  display:flex;flex-direction:column;gap:18px;
  color:var(--slate-600);
}
.form-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:16px;
  padding-bottom:18px;
  border-bottom:1px solid var(--slate-200);
}
.form-head h3{font-size:1.2rem;letter-spacing:-.02em;margin-bottom:5px}
.form-head p{font-size:13.5px;color:var(--slate-500)}

.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

.field label{font-size:13px;font-weight:600;color:var(--slate-700)}
.field label i{font-style:normal;color:var(--cyan-ink)}

.field input,.field select,.field textarea{
  font-family:var(--font-body);
  font-size:15px;color:var(--ink);
  padding:12px 15px;
  border:1px solid var(--slate-200);
  border-radius:var(--radius-xl);
  background:var(--surface);
  width:100%;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea{resize:vertical;min-height:112px}
.field input::placeholder,.field textarea::placeholder{color:var(--slate-400)}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;
  background:var(--surface-white);
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgb(6 182 212 / .14);
}
.field select{
  cursor:pointer;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:17px;
  padding-right:42px;
}
.field.has-error input,.field.has-error select,.field.has-error textarea{
  border-color:#EF4444;
  box-shadow:0 0 0 3px rgb(239 68 68 / .12);
}

.error{font-size:12.5px;color:#DC2626;display:none}
.error.visible{display:block}

.check{
  display:flex;align-items:flex-start;gap:11px;
  font-size:13px;color:var(--slate-600);line-height:1.5;cursor:pointer;
}
.check input{
  width:17px;height:17px;flex:0 0 17px;margin-top:2px;
  accent-color:var(--cyan);cursor:pointer;
}
.check i{font-style:normal;color:var(--cyan-ink)}

.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.form-status{
  font-size:14px;font-weight:500;display:none;
  padding:13px 16px;border-radius:var(--radius-xl);line-height:1.55;
}
.form-status.visible{display:block}
.form-status.ok{background:var(--emerald-soft);color:var(--emerald-ink);border:1px solid rgb(16 185 129 / .3)}
.form-status.err{background:#FEF2F2;color:#B91C1C;border:1px solid rgb(239 68 68 / .25)}
/* Si el envío falla, el aviso lleva el correo como enlace de salida. */
.form-status a{color:inherit;font-weight:700;text-decoration:underline;word-break:break-word}

.form-note{font-size:12px;color:var(--slate-400);text-align:center}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--surface-dark);
  color:var(--slate-500);
  border-top:var(--border-dark);
  padding:48px 0 38px;
}
.footer-inner{
  display:flex;flex-wrap:wrap;gap:28px;
  align-items:center;justify-content:space-between;
}
.footer-brand{display:flex;align-items:center;gap:13px}
.footer-brand .brand-mark{background:linear-gradient(145deg,var(--cyan),#0891B2);color:#062C36}
.footer-brand div{display:flex;flex-direction:column;line-height:1.35}
.footer-brand strong{color:#fff;font-family:var(--font-display);font-size:15px;font-weight:700}
.footer-brand span{font-size:12.5px;color:var(--slate-500)}

.footer-nav{display:flex;flex-wrap:wrap;gap:4px}
.footer-nav a{
  text-decoration:none;font-size:14px;color:var(--slate-400);
  padding:7px 13px;border-radius:var(--radius-lg);
  transition:color .18s ease, background .18s ease;
}
.footer-nav a:hover{color:#fff;background:rgb(255 255 255 / .06)}

.footer-mail{
  display:inline-flex;align-items:center;gap:9px;
  text-decoration:none;
  font-size:14px;font-weight:500;color:var(--cyan);
  padding:9px 16px;
  border:1px solid rgb(6 182 212 / .26);
  border-radius:var(--radius-full);
  background:rgb(6 182 212 / .08);
  transition:background .2s ease, border-color .2s ease;
}
.footer-mail:hover{background:rgb(6 182 212 / .16);border-color:rgb(6 182 212 / .45)}
.footer-mail svg{width:16px;height:16px}

.footer-legal{
  width:100%;
  padding-top:28px;
  border-top:var(--border-dark);
  font-size:12.5px;line-height:1.7;color:var(--slate-500);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:48px}
  .hero-portrait{max-width:420px;margin-inline:auto;width:100%}
  .profile-grid,.contact-grid{grid-template-columns:1fr}
  .col-4,.col-5,.col-6,.col-7,.col-8{grid-column:span 6}
  .strip-card{grid-template-columns:auto minmax(0,1fr);row-gap:18px}
  .strip-card .btn{grid-column:1/-1;justify-self:start}
}

@media (max-width:768px){
  html{scroll-padding-top:76px}
  .nav-toggle{display:flex}
  .nav{
    position:absolute;top:calc(100% + 1px);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:3px;
    background:var(--surface-white);
    border-bottom:1px solid var(--slate-200);
    padding:14px var(--gutter) 20px;
    box-shadow:var(--shadow-lg);
    display:none;
  }
  .nav.is-open{display:flex}
  .nav a{padding:12px 14px;font-size:15.5px}
  .nav .nav-cta{margin-left:0;margin-top:8px;justify-content:center}

  .col-4,.col-5,.col-6,.col-7,.col-8{grid-column:span 12}
  .field-row{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:1fr;gap:24px}
  .stat-label{max-width:none}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:22px}
  .footer-nav{margin-left:-13px}
  .portrait-tag{left:0;bottom:92px}
}

@media (max-width:440px){
  .btn{width:100%}
  .hero-actions{flex-direction:column;width:100%}
  .strip-card{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
  .ds-card:hover,.btn:hover,.comuna:hover{transform:none}
}

@media print{
  .site-header,.nav-toggle,.hero-actions,.form,.footer-nav{display:none}
  body{background:#fff;color:#000}
  .hero,.section-dark,.site-footer{background:#fff;color:#000}
  .hero h1,.section-title.on-dark{color:#000}
}
