/* ANHURTEL TIC Services · hoja de estilos
   Mundo: un punto de interconexión. Fondo de sala técnica con luz de día, frontales blancos,
   tinta azul marino de la marca y ámbar reservado a lo que está vivo (LED, enlaces activos).
   Radios: paneles 16px, controles 10px, zócalos de puerto 6px. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; 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: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; 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: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; 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: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; 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: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-latin-ext-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #f3f4f8;
  --plate: #ffffff;
  --plate-2: #eceef5;
  --ink: #1b2040;
  --ink-2: #4f5573;
  --rule: #d8dbe6;
  --navy: #2f3876;
  --navy-deep: #1e2452;
  --navy-night: #151a3c;
  --navy-tint: #e7e9f4;
  --amber: #f7ba45;
  --amber-ink: #8a5a00;
  --on-navy: #eef0fa;
  --on-navy-2: #b8bedf;
  --shadow: 0 1px 2px rgb(30 36 82 / .06), 0 18px 40px -18px rgb(30 36 82 / .22);

  --r-panel: 16px;
  --r-ctrl: 10px;
  --r-socket: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; scrollbar-color: #b5bad0 var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--amber); color: var(--navy-night); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
a, button { touch-action: manipulation; }
.btn, .port, .nav-list a, .langs a, .footer-langs a, .nav-toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--r-ctrl); }
.skip:focus { top: 12px; }

/* Datos pendientes (solo en la maqueta) */
.tbd { text-decoration: underline dashed #d0802a; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.draft-banner { margin: 0; background: var(--navy-night); color: var(--on-navy-2); font-size: .8125rem; text-align: center; padding: 6px 16px; }
.draft-banner .tbd { color: var(--on-navy); }

/* LED: el único sitio donde vive el ámbar */
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9aa0bd; flex: none; }
.led-on { background: var(--amber); box-shadow: inset 0 0 0 1px rgb(138 90 0 / .35); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-ctrl); border: 0;
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: 1.0625rem; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 6px 14px -8px rgb(20 24 50 / .45);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.btn:active { transform: translateY(1px) scale(.97); background: var(--navy-deep); transition-duration: .1s; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9688rem; }
.btn-large { min-height: 60px; padding: 0 32px; font-size: 1.1875rem; margin-top: 36px; }
.link-arrow { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; padding: 12px 4px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(243 244 248 / .88); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 42px; width: auto; }
.nav { margin-right: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: var(--r-ctrl); text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: .9688rem; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a[aria-current="true"] { color: var(--ink); background: var(--plate-2); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.langs ul, .footer-langs ul { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-ctrl); background: var(--plate-2); }
.langs a, .footer-langs a {
  display: block; min-width: 34px; padding: 5px 7px; border-radius: 7px; text-align: center; text-decoration: none;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}
.langs a[aria-current="true"] { background: var(--plate); color: var(--navy); box-shadow: 0 1px 2px rgb(30 36 82 / .12); }
.nav-toggle { display: none; }
.nav-langs, .nav-cta { display: none; }

@media (max-width: 1100px) {
  .nav { margin: 0; }
  .brand { margin-right: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule);
    border-radius: var(--r-ctrl); background: var(--plate); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .25s var(--ease);
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-list {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; background: var(--ground); border-bottom: 1px solid var(--rule);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-list.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-list a { padding: 14px; font-size: 1.0625rem; }
}
@media (max-width: 720px) {
  .header-cta, .header-tools > .langs { display: none; }
  .brand img { height: 34px; }
  .nav-langs, .nav-cta { display: block; }
  .nav-cta { margin-top: 10px; }
  .nav-list .nav-cta .btn { display: flex; width: 100%; min-height: 52px; padding: 0 20px; color: #fff; background: var(--navy); font-size: 1.0625rem; font-weight: 600; }
  .nav-langs { margin-top: 12px; }
  .nav-list .nav-langs ul { width: 100%; }
  .nav-list .nav-langs li { flex: 1; }
  .nav-list .nav-langs a { min-height: 44px; display: grid; place-items: center; padding: 0; font-size: .9375rem; background: none; }
  .nav-list .nav-langs a[aria-current="true"] { background: var(--plate); }
  .nav-list { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 400px) { .brand img { height: 30px; } }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.kicker { margin-bottom: 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.hero h1 { font-size: clamp(2.25rem, 3.3vw, 3.25rem); letter-spacing: -0.032em; font-weight: 800; }
.hero h1 em { display: block; font-style: normal; color: var(--navy); }
.lead { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--ink-2); }
.hero-proof {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 14px; border-radius: var(--r-ctrl);
  background: var(--plate); border: 1px solid var(--rule); color: var(--navy); font-weight: 600; font-size: .9375rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
@media (min-width: 1024px) {
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; }
}

/* Panel de interconexión */
.fabric {
  position: relative; padding: 22px 22px 18px; border-radius: var(--r-panel);
  background: var(--plate); box-shadow: var(--shadow);
}
.fabric-uplinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.fabric-caption { font-size: .8125rem; color: var(--ink-2); margin-right: auto; }
.fabric-uplinks ul { display: flex; flex-wrap: wrap; gap: 8px; }
.fabric-uplinks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px;
  background: var(--navy-tint); color: var(--navy); font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.fabric-uplinks li.is-soon { background: var(--plate-2); color: var(--ink-2); font-weight: 500; }
.fabric-field { position: relative; margin-top: 8px; }
.fabric-arcs { display: block; width: 100%; height: clamp(200px, 26vw, 330px); overflow: visible; }
.fabric-arcs path { fill: none; stroke: url(#trace); stroke-width: 2.2; vector-effect: non-scaling-stroke; transition: opacity .3s var(--ease), stroke-width .3s var(--ease); }
.fabric-arcs .arc-new { stroke: var(--amber); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fabric[data-state="more"] .arc-new { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) calc(var(--i) * 90ms); }
.fabric[data-focus] .arcs-base path { opacity: .14; }
.fabric[data-focus] .arcs-base path.is-on { opacity: 1; stroke-width: 3.4; }
.fabric-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 0 4px; }
.count-num { font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--navy); }
.count-label { font-size: .875rem; color: var(--ink-2); }
.count-more { font-size: .875rem; font-weight: 600; color: var(--amber-ink); opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.fabric[data-state="more"] .count-more { opacity: 1; transform: none; }

.ports { display: grid; grid-template-columns: repeat(var(--ports, 6), minmax(0, 1fr)); margin-top: -2px; }
.port {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0 4px 6px;
  border: 0; background: none; font: inherit; color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; border-radius: var(--r-ctrl);
}
.port-socket {
  display: grid; place-items: center; width: 46px; height: 36px; border-radius: var(--r-socket);
  background: var(--navy-deep); box-shadow: inset 0 2px 4px rgb(0 0 0 / .35), 0 0 0 4px var(--plate-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.port-socket .led { background: var(--amber); }
.port-id { font-size: .75rem; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.port-name { font-size: .8125rem; font-weight: 600; line-height: 1.25; max-width: 12ch; }
.pn-short { display: none; }
.port:focus-visible .port-socket, .port.is-on .port-socket { transform: translateY(-2px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .35), 0 0 0 4px var(--amber); }
.port-free .port-socket { background: var(--plate); box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 4px var(--plate-2); }
.port-free .port-name { color: var(--navy); }
.port:active .port-socket { transform: scale(.94); transition-duration: .1s; }
.nav-list a:active, .langs a:active { background: var(--plate-2); }
.fabric-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .fabric { padding: 16px 12px 14px; }
  .fabric-uplinks li { font-size: .8125rem; padding: 5px 9px; white-space: normal; }
  .fabric-caption { flex-basis: 100%; }
  .port-socket { width: 36px; height: 30px; }
  /* Columnas de ~50px: el nombre corto puede partirse en dos líneas (con nowrap se pisaban entre sí).
     El largo queda para el lector de pantalla, porque el corto lleva aria-hidden. */
  .port-name { font-size: .6875rem; line-height: 1.2; max-width: none; }
  .pn-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pn-short { display: inline; }
}
@media (max-width: 340px) { .port-name { font-size: .625rem; } .fabric { padding-inline: 8px; } }

/* Secciones */
.section { padding: 112px 0; }
.section-head { max-width: 760px; }
.section h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); }
.section-intro { margin-top: 20px; max-width: 60ch; font-size: 1.1875rem; color: var(--ink-2); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

/* Por qué unirse: comparativa */
.why { background: var(--plate); border-block: 1px solid var(--rule); }
.cmp { margin-top: 56px; display: grid; }
.cmp-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 24px 0; border-top: 1px solid var(--rule); }
.cmp-head { display: none; }
.cmp-topic { font-size: 1.1875rem; }
.cmp-alone { color: var(--ink-2); }
.cmp-together { color: var(--ink); font-weight: 500; }
.cmp-row:not(.cmp-head) .cmp-together { padding: 14px 16px; border-radius: var(--r-ctrl); background: var(--navy-tint); }
.cmp-label { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.cmp-together .cmp-label { color: var(--navy); }
@media (min-width: 900px) {
  .cmp-row { grid-template-columns: 1fr 1.4fr 1.4fr; gap: 0; padding: 0; }
  .cmp-row > * { padding: 26px 28px 26px 0; }
  .cmp-head { display: grid; border-top: 0; }
  .cmp-head > span { padding-bottom: 14px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
  .cmp-head .cmp-together { color: var(--navy); background: var(--navy-tint); border-radius: var(--r-panel) var(--r-panel) 0 0; padding: 18px 28px 14px; }
  .cmp-row:not(.cmp-head) .cmp-together { border-radius: 0; padding: 26px 28px; }
  .cmp-row:last-child .cmp-together { border-radius: 0 0 var(--r-panel) var(--r-panel); }
  .cmp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Cómo funciona: tres compromisos del modelo */
.model-grid { display: grid; gap: 16px; margin-top: 56px; }
.model-card { padding: 30px 28px; border-radius: var(--r-panel); background: var(--plate); border: 1px solid var(--rule); }
.model-card::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 22px; border-radius: 2px; background: linear-gradient(90deg, #ebb255, #4462aa); }
.model-card h3 { font-size: 1.375rem; }
.model-card p { margin-top: 10px; color: var(--ink-2); }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Servicios: la banda azul */
.services { background: var(--navy-deep); color: var(--on-navy); }
.services .section-intro { color: var(--on-navy-2); }
.srv-grid { display: grid; gap: 20px; margin-top: 56px; }
.srv { padding: 34px 32px 32px; border-radius: var(--r-panel); background: rgb(255 255 255 / .04); }
.srv h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); color: #fff; }
.srv p { margin-top: 14px; color: var(--on-navy-2); max-width: 52ch; }
.srv-movil { background: var(--navy); }
.srv-movil h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.srv-movil p { color: var(--on-navy); font-size: 1.125rem; }
/* Estado de cada servicio: ámbar solo en lo disponible */
.srv .srv-status {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 6px 12px; border-radius: 8px;
  background: rgb(255 255 255 / .06); color: var(--on-navy-2); font-size: .8438rem; font-weight: 600; letter-spacing: .02em;
}
.srv .srv-status.is-live { background: rgb(247 186 69 / .12); color: var(--amber); }
.srv-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.srv-nets li { padding: 9px 16px; border-radius: var(--r-ctrl); background: rgb(255 255 255 / .1); color: #fff; font-weight: 600; font-size: .9688rem; }
.srv-list { display: grid; gap: 6px; margin-top: 12px; color: var(--on-navy); }
.srv-list li { position: relative; padding-left: 18px; }
.srv-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #9aa0bd; }
.srv-more { margin-top: 32px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 700; color: #fff; }
@media (min-width: 900px) {
  .srv-grid { grid-template-columns: 1.25fr 1fr; }
  .srv-movil { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 44px 44px 44px; min-height: 440px; }
  .srv-movil .srv-nets { margin-top: auto; padding-top: 32px; }
}

/* Cómo entrar */
.join-grid { display: grid; gap: 48px; }
.join-fee { margin-top: 18px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; color: var(--navy); }
.join-terms { margin-top: 14px; font-size: .9688rem; color: var(--ink-2); width: fit-content; }
.steps { display: grid; position: relative; }
.step { position: relative; padding: 0 0 36px 44px; }
.step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: linear-gradient(#ebb255, #4462aa); }
.step:last-child::before { display: none; }
.step-node { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--navy); background: var(--ground); }
.step:first-child .step-node { border-color: #ebb255; }
.step:last-child .step-node { border-color: #4462aa; }
.step h3 { font-size: 1.375rem; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 900px) {
  .join-grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 6px; }
  .step { padding: 52px 0 0; }
  .step::before { left: 26px; right: -32px; top: 15px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, #ebb255, #4462aa); }
}

/* Socios */
.partners { background: var(--plate); border-top: 1px solid var(--rule); }
.partners-grid { display: grid; gap: 32px; margin-top: 56px; }
.ptable { display: grid; gap: 10px; }
.prow {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "port name" "logo logo" "contact contact" "hist hist"; gap: 14px 18px; align-items: center;
  padding: 18px; border-radius: var(--r-panel); background: var(--ground); border: 1px solid var(--rule);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.prow.is-on { border-color: #b9bed3; background: #eef0f6; }
.prow-port { grid-area: port; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prow-logo { grid-area: logo; }
.prow-name { grid-area: name; display: grid; }
.prow-name strong { font-size: 1.125rem; }
.prow-name span { color: var(--ink-2); font-size: .9688rem; }
.prow-contact { grid-area: contact; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: .9688rem; }
.prow-contact a:not(.btn) { padding: 8px 0; }
.prow-hist { grid-area: hist; margin: 0; max-width: 68ch; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.prow-contact a:not(.btn) { color: var(--ink); text-decoration-color: var(--rule); }
.plate { display: flex; align-items: center; height: 56px; width: 168px; padding: 10px 14px; border-radius: var(--r-ctrl); background: #fff; border: 1px solid var(--rule); }
.plate img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.plate-dark { background: #1d2230; border-color: #1d2230; }
.plate-text { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); }
.prow-free { grid-template-areas: "port name" "contact contact"; background: var(--plate); border: 2px dashed var(--amber); }
.prow-free .port-socket { background: var(--plate); box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 4px var(--plate-2); }
.prow-free strong { color: var(--navy); }
@media (min-width: 720px) {
  .prow { grid-template-columns: 64px 184px 1fr auto; grid-template-areas: "port logo name contact" ". hist hist hist"; padding: 14px 22px 14px 14px; }
  .prow-contact { flex-direction: column; align-items: flex-end; text-align: right; }
  .prow-free { grid-template-columns: 64px 1fr auto; grid-template-areas: "port name contact"; }
}
.pmap { display: grid; gap: 12px; }
#map { height: 420px; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--rule); background: var(--plate-2); z-index: 0; }
.pmap figcaption { font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 1180px) {
  .partners-grid { grid-template-columns: 7fr 4fr; align-items: start; }
  /* El mapa acompaña al bajar por la lista en vez de estirarse con ella:
     con siete filas, un mapa tan alto y estrecho encuadraba media Europa y España quedaba pequeña */
  .pmap { position: sticky; top: calc(var(--header-h) + 24px); }
  #map { height: min(560px, calc(100vh - var(--header-h) - 120px)); min-height: 420px; }
}
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.88) brightness(1.06); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 16px; font-size: .9375rem; line-height: 1.45; }
.leaflet-popup-content strong { display: block; }

/* Contacto */
.contact-grid { display: grid; gap: 48px; }
.contact h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; }
.contact-data { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.contact-data div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.contact-data dt { color: var(--ink-2); font-size: .9688rem; }
.contact-data dd { margin: 0; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; } }

/* Pie */
.site-footer { background: var(--navy-night); color: var(--on-navy-2); padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer-inner { display: grid; gap: 22px; }
.footer-logo { height: 40px; width: auto; }
.footer-langs ul { background: rgb(255 255 255 / .06); width: max-content; }
.footer-langs a { color: var(--on-navy-2); }
.footer-langs a[aria-current="true"] { background: rgb(255 255 255 / .12); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { display: inline-block; padding: 10px 0; }
.footer-langs a { min-width: 44px; padding: 10px 8px; }
.footer-links a { text-decoration: none; }
.footer-legal .tbd { text-decoration-color: var(--amber); }
.footer-name { font-size: .875rem; color: var(--on-navy-2); max-width: 70ch; }
.footer-credits { font-size: .8125rem; color: #9298bb; }
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 40px; }
  .footer-name, .footer-credits { grid-column: 1 / -1; }
}

/* Movimiento: los enlaces crecen a lo largo de su trazo; sin JS todo queda visible */
@media (prefers-reduced-motion: no-preference) {
  .js .fabric .arcs-base path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; animation-delay: calc(250ms + var(--i) * 70ms); }
  .port-socket .led { animation: blink 2.6s steps(1, end) infinite; animation-delay: var(--blink, 0s); }
  .port-free .led, .prow-free .led { animation: breathe 2.2s ease-in-out infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 88% { opacity: 1; } 90%, 94% { opacity: .25; } 96% { opacity: 1; } }
@keyframes breathe { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fabric .arc-new { transition: none !important; }
}

/* Hover solo con ratón o trackpad: en táctil el :hover se queda pegado tras el toque */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--navy-deep); }
  .link-arrow:hover { text-decoration-color: var(--navy); }
  .nav-list a:hover { color: var(--ink); background: var(--plate-2); }
  .langs a:hover { color: var(--ink); }
  .port:hover .port-socket { transform: translateY(-2px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .35), 0 0 0 4px var(--amber); }
  .prow:hover { border-color: #b9bed3; background: #eef0f6; }
  .prow-free:hover { background: var(--plate); border-color: var(--amber); }
  .prow-contact a:not(.btn):hover { text-decoration-color: var(--navy); }
  .footer-langs a:hover { color: #fff; }
  .footer-links a:hover { color: #fff; }
}

/* Dedo: todas las zonas táctiles a 44px como mínimo */
@media (pointer: coarse) {
  .brand { display: inline-flex; align-items: center; min-height: 48px; }
  .langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px; }
  .contact-data a { display: inline-block; padding: 10px 0; }
}
