/* ============================================================
   /furia/ · La idea detrás de MapaFuria, CiudadFuria e IslaFuria
   ------------------------------------------------------------
   Esta página habla con el lenguaje visual de la app MapaFuria:
     · botones y teclas con relieve (se hunden al tocarlos)
     · tarjetas-píldora de esquinas muy redondas, en rejilla desigual
     · niveles y progreso, como el perfil de la app
     · el color cambia según la sección: es la pista de dónde estás
   Las variables --p* son "el color del momento". furia.js cambia
   body[data-modo] al pasar por cada proyecto y todo lo que use esas
   variables hace la transición solo.

   Regla de contraste de esta hoja: ningún texto por debajo de
   4,5:1 sobre su fondo. Por eso el secundario es slate-600 y el
   botón primario usa esmeralda-600 con letra de 18 px en negrita.
   ============================================================ */

@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --tinta: #1e293b;          /* slate-800: títulos y texto */
  --tinta-2: #475569;        /* slate-600: secundario (7,2:1 sobre el fondo) */
  --linea: rgba(148, 163, 184, 0.35);
  --canto: #cbd5e1;          /* el filo de abajo de las teclas neutras */

  /* el color del momento (por defecto: esmeralda MapaFuria) */
  --fondo: #effdf4;
  --p: #10b981;
  --p-fuerte: #059669;       /* relleno del botón primario */
  --p-canto: #065f46;        /* su filo 3D */
  --p-tinta: #047857;        /* texto de acento */
  --p-suave: #d1fae5;        /* tecla hundida, chips */
  --p-rgb: 16, 185, 129;
  --sobre-p: #ffffff;        /* texto encima del primario */
  --aro-a: #22d3ee;
  --aro-b: #6ee7b7;
  --aro-c: #14b8a6;

  --r-tarjeta: 28px;
  --r-control: 16px;
  --muelle: cubic-bezier(0.32, 0.72, 0, 1);
  --cambio: 0.7s var(--muelle);
}
body[data-modo="ciudad"] {
  --fondo: #eff5ff;
  --p: #3b82f6; --p-fuerte: #2563eb; --p-canto: #1e3a8a; --p-tinta: #1d4ed8;
  --p-suave: #dbeafe; --p-rgb: 59, 130, 246; --sobre-p: #ffffff;
  --aro-a: #93c5fd; --aro-b: #fdba74; --aro-c: #f97316;
}
body[data-modo="isla"] {
  --fondo: #f1fbe6;
  --p: #b7f55a; --p-fuerte: #b7f55a; --p-canto: #5d9414; --p-tinta: #1a6b3c;
  --p-suave: #e3f9c0; --p-rgb: 101, 163, 13; --sobre-p: #0a1f1a;
  --aro-a: #21d3c6; --aro-b: #b7f55a; --aro-c: #ffcc4d;
}
body[data-modo="noticias"] {
  --fondo: #fdf3f9;
  --p: #c850a0; --p-fuerte: #b0408a; --p-canto: #6f2552; --p-tinta: #96326e;
  --p-suave: #f8d6ec; --p-rgb: 200, 80, 160; --sobre-p: #ffffff;
  --aro-a: #e879c9; --aro-b: #eab0d8; --aro-c: #96326e;
}
body[data-modo="comercios"] {
  --fondo: #f5f4ff;
  --p: #6366f1; --p-fuerte: #4f46e5; --p-canto: #312e81; --p-tinta: #4338ca;
  --p-suave: #e0e7ff; --p-rgb: 99, 102, 241; --sobre-p: #ffffff;
  --aro-a: #a5b4fc; --aro-b: #c7d2fe; --aro-c: #4338ca;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  transition: background-color var(--cambio);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--p-tinta); outline-offset: 3px; border-radius: 10px; }
.saltar { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; z-index: 30; }
.saltar:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- los orbes de color del fondo, como en la app. Fijos: no se
       repintan al hacer scroll. --- */
.orbes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbes i { position: absolute; border-radius: 50%; background: var(--p); filter: blur(90px); transition: background-color var(--cambio); }
.orbes i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; opacity: 0.26; }
.orbes i:nth-child(2) { width: 36vmax; height: 36vmax; right: -12vmax; top: 30vh; opacity: 0.16; background: var(--aro-a); }
.orbes i:nth-child(3) { width: 40vmax; height: 40vmax; left: 20vw; bottom: -24vmax; opacity: 0.14; }

.ancho { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ============ piezas del sistema ============ */

/* Tarjeta: vidrio claro con brillo arriba y sombra del color del momento */
.tarjeta {
  border-radius: var(--r-tarjeta);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 22px 44px -26px rgba(var(--p-rgb), 0.55);
  transition: box-shadow var(--cambio);
}

/* Botón primario 3D: se hunde al tocarlo */
.boton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 54px; padding: 0 1.35rem 0 1.5rem;
  border: 0; border-bottom: 4px solid var(--p-canto); border-radius: var(--r-control);
  background: var(--p-fuerte); color: var(--sobre-p);
  font-size: 1.17rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -12px rgba(var(--p-rgb), 0.9);
  cursor: pointer;
  transition: transform 0.18s var(--muelle), border-bottom-width 0.18s var(--muelle), background-color var(--cambio), border-color var(--cambio), color var(--cambio);
}
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: translateY(3px); border-bottom-width: 1px; }
.boton .ojal { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: transform 0.3s var(--muelle); }
body[data-modo="isla"] .boton .ojal { background: rgba(10, 31, 26, 0.14); }
.boton:hover .ojal { transform: translateX(3px); }

/* Tecla: el botón neutro, con el mismo relieve */
.tecla {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; padding: 0 1.2rem;
  border: 1px solid #e2e8f0; border-bottom: 4px solid var(--canto); border-radius: var(--r-control);
  background: linear-gradient(180deg, #ffffff, #f1f5f9); color: var(--tinta);
  font-size: 1.02rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--muelle), border-bottom-width 0.18s var(--muelle), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.tecla:hover { transform: translateY(-1px); }
.tecla:active { transform: translateY(3px); border-bottom-width: 1px; }
/* hundida = elegida */
.tecla[aria-selected="true"], .tecla[aria-current="true"], .tecla[aria-pressed="true"] {
  transform: translateY(3px); border-bottom-width: 1px; border-color: rgba(var(--p-rgb), 0.55);
  background: var(--p-suave); color: var(--p-tinta);
  box-shadow: inset 0 3px 7px rgba(var(--p-rgb), 0.28);
}
body[data-modo="isla"] .tecla[aria-current="true"] { color: #14532d; }

/* Burbuja: el botón redondo de la cabecera de la app */
.burbuja {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #e2e8f0; border-bottom: 3px solid var(--canto);
  background: linear-gradient(180deg, #ffffff, #f1f5f9); color: var(--tinta-2); text-decoration: none;
  transition: transform 0.18s var(--muelle), border-bottom-width 0.18s var(--muelle);
}
.burbuja:active { transform: translateY(2px); border-bottom-width: 1px; }

/* Chip: cada dato en su píldora */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.8rem; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0; color: var(--tinta);
  font-size: 0.9rem; font-weight: 600; line-height: 1.2;
}
.chip b { font-weight: 800; }
.chip.acento { background: var(--p-suave); border-color: rgba(var(--p-rgb), 0.4); color: var(--p-tinta); transition: background-color var(--cambio), color var(--cambio), border-color var(--cambio); }
.chip.acento b { color: inherit; }

/* Rótulo de tarjeta, como «RESUMEN DE LA RED» */
.rotulo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--p-tinta); transition: color var(--cambio);
}

h1, h2 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.bajada { font-size: 1.12rem; color: var(--tinta-2); max-width: 58ch; text-wrap: pretty; }
.bajada b, .bajada strong { color: var(--tinta); font-weight: 700; }
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.cabeza-seccion { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* ============ barra flotante ============ */
.barra { position: sticky; top: 12px; z-index: 20; padding-top: 12px; }
.barra-in {
  display: flex; align-items: center; gap: 1rem; padding: 0.55rem 0.6rem 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(15, 23, 42, 0.35);
}
.marca { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.marca svg { height: 22px; width: auto; }
.marca path { fill: var(--tinta); }
.nav { display: flex; gap: 0.25rem; }
.nav a { padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none; color: var(--tinta-2); transition: background-color 0.3s, color 0.3s; }
.nav a:hover { background: var(--p-suave); color: var(--p-tinta); }
@media (max-width: 720px) { .nav { display: none; } }

/* ============ portada ============ */
.portada { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.portada-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portada h1 { font-size: clamp(2.7rem, 6.1vw, 4.6rem); }
.portada h1 em { font-style: normal; color: var(--p-tinta); transition: color var(--cambio); }
.portada .bajada { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* el mapa en relieve */
.relieve { position: relative; aspect-ratio: 1 / 1.02; padding: clamp(1rem, 2.4vw, 1.6rem); }
.relieve-mapa { position: absolute; inset: 9% 7% 12% 9%; }
.relieve-mapa svg { width: 100%; height: 100%; overflow: visible; }
.silueta-sombra { fill: rgba(var(--p-rgb), 0.35); filter: blur(14px); transition: fill var(--cambio); }
.silueta-canto { fill: var(--p-canto); transition: fill var(--cambio); }
.silueta-cara { fill: url(#cara); }
.silueta-brillo { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 0.9; }
.cara-a { stop-color: var(--aro-b); transition: stop-color var(--cambio); }
.cara-b { stop-color: var(--p); transition: stop-color var(--cambio); }
.punto { fill: #fff; stroke: var(--tinta); stroke-width: 1.3; }
.punto.pend { fill: #f59e0b; } .punto.proc { fill: #3b82f6; } .punto.res { fill: #10b981; }
.onda { fill: none; stroke: #fff; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: onda 3.2s var(--muelle) infinite; }
.onda.b { animation-delay: 1.1s; } .onda.c { animation-delay: 2.1s; }
@keyframes onda { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
.norte { position: absolute; top: 5%; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; border-bottom-width: 3px; font-weight: 900; font-size: 0.85rem; color: var(--p-tinta); }

/* las dos fichas que flotan sobre el mapa */
.ficha-red { position: absolute; left: -4%; bottom: 3%; width: min(300px, 74%); padding: 1rem 1.1rem 1.1rem; }
.ficha-red dl { margin: 0.8rem 0 0; display: grid; gap: 0.5rem; }
.ficha-red div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ficha-red dt { color: var(--tinta-2); font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.ficha-red dt::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--p)); }
.ficha-red dd { margin: 0; font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.en-vivo { margin-top: 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--tinta-2); display: flex; align-items: center; gap: 0.45rem; }
.en-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.is-live .en-vivo::before { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
.ficha-nivel { position: absolute; right: -2%; top: 10%; padding: 0.7rem 0.95rem 0.7rem 0.7rem; display: flex; align-items: center; gap: 0.7rem; border-radius: 22px; }
.ficha-nivel img { width: 46px; height: 46px; }
.ficha-nivel b { display: block; font-weight: 900; font-size: 0.98rem; line-height: 1.15; }
.ficha-nivel span { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.12em; color: var(--p-tinta); text-transform: uppercase; }

/* ============ la idea: el recorrido ============ */
.recorrido { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: stretch; }
.pasos { display: grid; gap: 0.7rem; align-content: start; }
.pasos .tecla { justify-content: flex-start; min-height: 74px; padding: 0.7rem 1.1rem; gap: 0.95rem; text-align: left; width: 100%; font-size: 1.12rem; font-weight: 800; }
.pasos .num { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; font-weight: 900; font-size: 1.17rem; color: var(--tinta-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.pasos .tecla[aria-selected="true"] .num { background: var(--p-fuerte); border-color: transparent; color: var(--sobre-p); }
.pasos small { display: block; font-size: 0.9rem; font-weight: 600; color: var(--tinta-2); }
.pasos .tecla[aria-selected="true"] small { color: inherit; }
.panel-paso { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.3rem; align-content: start; }
.panel-paso[hidden] { display: none; }
.panel-paso blockquote { margin: 0; font-size: clamp(1.45rem, 2.7vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.panel-paso dl { margin: 0; display: grid; gap: 1rem; }
.panel-paso dt { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-tinta); margin-bottom: 0.2rem; }
.panel-paso dd { margin: 0; font-size: 1.06rem; color: var(--tinta); max-width: 52ch; }
.medidor { height: 12px; border-radius: 999px; background: #e2e8f0; box-shadow: inset 0 2px 3px rgba(15, 23, 42, 0.12); overflow: hidden; }
.medidor i { display: block; height: 100%; width: var(--v, 25%); border-radius: inherit; background: linear-gradient(90deg, var(--aro-a), var(--p)); transition: width 0.8s var(--muelle); }
/* sin JavaScript se ven los cuatro pasos, uno debajo del otro */
.sin-js .recorrido { grid-template-columns: 1fr; }
.sin-js .pasos { display: none; }
.sin-js .panel-paso[hidden] { display: grid; }
.sin-js .paneles { display: grid; gap: 1rem; }

/* ============ proyectos ============ */
.modos { position: sticky; top: 104px; z-index: 10; display: flex; justify-content: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); pointer-events: none; }
.modos-in { pointer-events: auto; display: flex; gap: 0.4rem; padding: 0.45rem; border-radius: 22px; max-width: 100%; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 16px 32px -20px rgba(15, 23, 42, 0.4); }
.modos .tecla { min-height: 48px; padding: 0 1rem; border-color: transparent; border-bottom-color: transparent; background: transparent; color: var(--tinta-2); font-weight: 800; }
/* el proyecto actual va hundido y teñido, como cualquier tecla elegida */
.modos .tecla[aria-current="true"] { transform: none; border: 1px solid rgba(var(--p-rgb), 0.55); background: var(--p-suave); color: var(--p-tinta); box-shadow: inset 0 3px 7px rgba(var(--p-rgb), 0.28); transition: background-color var(--cambio), color var(--cambio), border-color var(--cambio); }
@media (max-width: 480px) { .modos .tecla { padding: 0 0.7rem; font-size: 0.92rem; } .modos .tecla .ico { display: none; } }

.proyecto { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); padding-block: clamp(1.2rem, 3vw, 2.4rem); scroll-margin-top: 170px; }
.proyecto + .proyecto { margin-top: clamp(2rem, 6vw, 5rem); }
.celda { padding: clamp(1.3rem, 2.8vw, 2.2rem); position: relative; overflow: hidden; }
.celda h3 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.celda p:not(.rotulo) { color: var(--tinta-2); font-size: 1.06rem; max-width: 50ch; }
.celda .logo { height: 40px; width: auto; margin-bottom: 1.4rem; }
.p-mapa .logo { height: 84px; margin: -0.6rem 0 0.6rem -0.5rem; }
.celda .acciones { margin-top: 1.6rem; }
.verbo { display: inline-block; margin-bottom: 0.9rem; }

/* MapaFuria: texto ancho + teléfono alto + tres modos */
.p-mapa { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "txt txt txt txt txt txt txt tel tel tel tel tel" "mod mod mod mod mod mod mod tel tel tel tel tel"; }
.p-mapa .c-txt { grid-area: txt; display: grid; gap: 1rem; align-content: start; }
.p-mapa .c-tel { grid-area: tel; padding: 0; min-height: 560px; background: linear-gradient(160deg, var(--p-suave), #fff); transition: background var(--cambio); }
.p-mapa .c-tel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: opacity 0.5s; }
.p-mapa .c-tel img[hidden] { display: block; opacity: 0; }
.p-mapa .c-mod { grid-area: mod; display: grid; gap: 1rem; }
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.tres .tecla { flex-direction: column; align-items: flex-start; gap: 0.35rem; min-height: 96px; padding: 0.8rem 0.9rem; text-align: left; line-height: 1.2; }
.tres .tecla small { display: block; font-size: 0.86rem; font-weight: 600; color: var(--tinta-2); }
.tres .tecla[aria-pressed="true"] small { color: inherit; }
.tres .tecla .ico { width: 1.5em; height: 1.5em; }

/* CiudadFuria: tres datos en fila desigual + texto */
.p-ciudad { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "txt txt txt txt txt txt txt dat dat dat dat dat" "txt txt txt txt txt txt txt d2 d2 d2 d3 d3"; }
.p-ciudad .c-txt { grid-area: txt; display: grid; gap: 1rem; align-content: start; }
.dato { display: grid; align-content: end; gap: 0.3rem; min-height: 170px; }
.dato b { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.dato span { font-weight: 700; color: var(--tinta-2); font-size: 1rem; line-height: 1.3; }
.p-ciudad .d1 { grid-area: dat; background: linear-gradient(140deg, #1e3a8a, #2563eb); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.p-ciudad .d1 span { color: #eaf2ff; }
.p-ciudad .d2 { grid-area: d2; }
.p-ciudad .d3 { grid-area: d3; background: linear-gradient(160deg, #ffedd5, #fff); }
.p-ciudad .d3 b { color: #c2410c; }
.domo { position: absolute; right: -28px; top: -22px; width: 150px; opacity: 0.18; }

/* IslaFuria: la selva, oscura de nacimiento */
.p-isla { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "img img img img img img img txt txt txt txt txt"; }
.p-isla .celda { background-color: #0b2a24; border-color: rgba(183, 245, 90, 0.22); color: #f6e7c1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 50px -28px rgba(11, 42, 36, 0.9); }
.p-isla .c-txt { grid-area: txt; display: grid; gap: 1rem; align-content: start; background-image: linear-gradient(180deg, rgba(11, 42, 36, 0.86), rgba(6, 26, 23, 0.94)), url('img/islafuria-hojas.svg'); background-size: auto, 180px; }
.p-isla .c-txt p { color: #dfe9d2; }
.p-isla .c-img { grid-area: img; padding: 0; min-height: 360px; }
.p-isla .c-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% 40%; }
.p-isla .logo-isla { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.p-isla .logo-isla img:first-child { width: 52px; height: 52px; }
.p-isla .logo-isla img:last-child { height: 34px; width: auto; }
.p-isla .chip { background: #143a31; border-color: #1d4c40; color: #f6e7c1; }
.p-isla .rotulo { color: #b7f55a; }
.mapas { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ============ quién la hace ============ */
.quien-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: stretch; }
.perfil { padding: clamp(1.3rem, 2.8vw, 2rem); display: grid; gap: 1.4rem; align-content: center; }
.perfil-cabeza { display: flex; gap: 1.1rem; align-items: center; }
.retrato { position: relative; flex: none; width: clamp(96px, 14vw, 132px); aspect-ratio: 1; padding: 5px; border-radius: 34%; background: conic-gradient(from 210deg, var(--aro-a), var(--aro-b), var(--aro-c), var(--aro-a)); box-shadow: 0 12px 24px -12px rgba(var(--p-rgb), 0.8); }
.retrato img { width: 100%; height: 100%; object-fit: cover; border-radius: 31%; border: 3px solid #fff; }
.retrato .insignia { position: absolute; right: -8px; bottom: -8px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #e2e8f0; border-bottom-width: 3px; display: grid; place-items: center; color: var(--p-tinta); }
.perfil h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; }
.arroba { font-weight: 800; color: var(--p-tinta); font-size: 1.05rem; }
.nivel { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-tinta); margin-top: 0.3rem; }
.requisito { display: grid; gap: 0.55rem; }
.requisito p { font-size: 1rem; color: var(--tinta-2); }
.requisito b { color: var(--tinta); font-weight: 800; }
.requisito .meta { color: var(--p-tinta); }
.datos-perfil { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.redes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.redes .tecla { min-height: 50px; padding: 0 0.8rem; }
.relato { padding: clamp(1.4rem, 3vw, 2.6rem); display: grid; gap: 1.2rem; align-content: center; }
.relato h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.relato p { font-size: 1.1rem; color: var(--tinta-2); max-width: 56ch; }
.relato p b { color: var(--tinta); font-weight: 700; }

/* ============ manifiesto ============ */
.manifiesto { text-align: center; }
.manifiesto .tarjeta { padding: clamp(2rem, 6vw, 5rem) clamp(1.3rem, 5vw, 4rem); display: grid; gap: 1.6rem; justify-items: center; }
.manifiesto h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.manifiesto p { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; color: var(--tinta); max-width: 34ch; text-wrap: balance; line-height: 1.4; }
.manifiesto p.suave { color: var(--tinta-2); font-weight: 500; }
.manifiesto .cierre { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; color: var(--p-tinta); max-width: none; }

/* ============ pie ============ */
.pie { padding: 2.5rem 0 3rem; }
.pie-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; }
.pie p { font-weight: 700; color: var(--tinta-2); }
.pie nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.pie a { font-weight: 700; color: var(--tinta); text-decoration-color: rgba(var(--p-rgb), 0.6); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ============ entrada al hacer scroll ============ */
.con-js .aparece { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--muelle), transform 0.8s var(--muelle); transition-delay: var(--d, 0s); }
.con-js .aparece.visto { opacity: 1; transform: none; }

/* ============ teléfono ============ */
@media (max-width: 900px) {
  .portada-in, .recorrido, .quien-in { grid-template-columns: 1fr; }
  .relieve { max-width: 460px; width: 100%; margin-inline: auto; aspect-ratio: auto; padding: 0; }
  .relieve-mapa { position: relative; inset: auto; width: 86%; margin: 2.6rem auto 0; aspect-ratio: 1 / 1.04; }
  .norte { top: 0.6rem; }
  .ficha-red { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -1.2rem; }
  .ficha-nivel { right: 0; top: 0; }
  .p-mapa { grid-template-areas: "txt" "tel" "mod"; grid-template-columns: 1fr; }
  .p-mapa .c-tel { min-height: 0; aspect-ratio: 4 / 4.4; }
  .p-ciudad { grid-template-columns: 1fr 1fr; grid-template-areas: "txt txt" "dat dat" "d2 d3"; }
  .dato { min-height: 130px; }
  .p-isla { grid-template-columns: 1fr; grid-template-areas: "img" "txt"; }
  .p-isla .c-img { min-height: 0; aspect-ratio: 16 / 11; }
  .modos { top: 96px; }
  .rotulo { letter-spacing: 0.12em; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .pasos .tecla { min-height: 64px; padding: 0.6rem 0.7rem; gap: 0.6rem; font-size: 1rem; }
  .pasos .num { width: 34px; height: 34px; border-radius: 11px; }
  .pasos small { display: none; }
}
@media (max-width: 520px) {
  .tres { grid-template-columns: 1fr; }
  .tres .tecla { flex-direction: row; align-items: center; min-height: 58px; }
  .tres .tecla small { display: none; }
  .acciones .boton, .acciones .tecla { width: 100%; justify-content: space-between; }
  .acciones .tecla { justify-content: center; }
  .perfil-cabeza { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .con-js .aparece { opacity: 1; transform: none; }
}
