/* ==========================================================================
   Coop. T.P.S.E. — Puerto Madryn
   Hoja de estilos principal. Sin frameworks: CSS moderno, liviano y rápido.
   ========================================================================== */

/* Tipografías alojadas en el sitio (sin depender de Google Fonts) */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
/* Barlow 700 no se carga: los textos en negrita usan la variante 600 (un archivo menos) */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --ink: #061214;
  --ink-2: #0b1d20;
  --ink-3: #12292d;
  --sea: #0d3b40;
  --green: #16b04a;
  --green-600: #0e8f3a;
  --green-300: #5fdc86;
  --lime: #b4f27f;
  --sand: #f4f2ec;
  --paper: #ffffff;
  --text: #0e1a1c;
  --muted: #5a6a6c;
  --muted-light: rgba(255, 255, 255, .66);
  --line: rgba(14, 26, 28, .1);
  --line-light: rgba(255, 255, 255, .12);

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -28px rgba(6, 18, 20, .45);
  --shadow-sm: 0 10px 30px -18px rgba(6, 18, 20, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
/* Recorta lo que entra animado desde los costados sin romper position: sticky */
main, .site-footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
/* Elementos que solo existen en celulares */
.mobile-bar, .snap-dots, .nav-contact, .lbl-short { display: none; }
.muted { color: var(--muted); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Botones ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { --bg: var(--green); color: #fff; box-shadow: 0 10px 30px -10px rgba(22, 176, 74, .7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { --bg: var(--green-600); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--green); color: var(--green-600); }
.btn-sm { padding: .62em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.play-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); }
.play-ic svg { width: 14px; height: 14px; fill: currentColor; stroke: none; transform: translateX(1px); }
.btn:hover .play-ic svg { transform: translateX(1px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: height .4s var(--ease), background-color .4s, box-shadow .4s, transform .45s var(--ease);
}
.site-header.scrolled {
  --header-h: 64px;
  background: rgba(6, 18, 20, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header.hide { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; position: relative; z-index: 2; }
.brand img { width: 52px; height: 52px; transition: width .4s var(--ease), height .4s var(--ease), transform .6s var(--ease); }
.scrolled .brand img { width: 42px; height: 42px; }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-text small { font-size: .78rem; color: var(--muted-light); letter-spacing: .06em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px; text-decoration: none;
  font-weight: 500; font-size: .98rem; color: rgba(255,255,255,.86); transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--green-300); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.08); border-radius: 12px;
  position: relative; z-index: 2;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture { display: contents; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-video.on { opacity: 1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.12); animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1.24) translate3d(-2.5%, -1.5%, 0); }
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,18,20,.75) 0%, rgba(6,18,20,0) 24%),
    linear-gradient(90deg, rgba(6,18,20,.94) 0%, rgba(6,18,20,.72) 38%, rgba(6,18,20,.18) 75%, rgba(6,18,20,.3) 100%),
    linear-gradient(0deg, rgba(6,18,20,.9) 0%, rgba(6,18,20,0) 40%),
    radial-gradient(60% 50% at 15% 30%, rgba(22,176,74,.22), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(120px, 16vh, 170px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 0 rgba(95,220,134,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(95,220,134,0); } 100% { box-shadow: 0 0 0 0 rgba(95,220,134,0); } }

.hero-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: .92; letter-spacing: .005em; margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.hero-title .accent {
  background: linear-gradient(92deg, var(--green-300), var(--lime) 60%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes lineUp { to { transform: translateY(0); } }
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.82); margin-bottom: 32px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* Sin opacidad 0 inicial: el texto se pinta enseguida (mejor LCP) y entra con desenfoque + desplazamiento */
.hero-anim { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { transform: translateY(18px); filter: blur(8px); opacity: .35; } to { transform: none; filter: none; opacity: 1; } }

.port-card {
  width: 320px; padding: 20px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.port-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green-300); font-weight: 700; }
.live span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.port-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.port-card-grid div { padding: 12px; border-radius: 14px; background: rgba(6,18,20,.35); }
.port-card-grid small { display: block; font-size: .76rem; color: var(--muted-light); }
.port-card-grid strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }
.port-card-link { display: block; margin-top: 14px; font-size: .9rem; color: var(--green-300); text-decoration: none; font-weight: 600; }
.port-card-link:hover { color: #fff; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 92px; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; overflow: visible; }
.waves path { fill: var(--ink); }
.waves .w1 { opacity: .45; animation: wave 16s linear infinite; }
.waves .w2 { animation: wave 10s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-720px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--ink); color: #fff; padding: 24px 0 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; color: var(--green-300); }
.stat strong em { font-style: normal; font-size: .5em; color: #fff; }
.stat > span { color: var(--muted-light); font-size: 1rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: .005em; margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.12rem; }
.light .kicker { color: var(--green-300); }
.light .section-title { color: #fff; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 0 70px 0; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; }
.about-img.sub { position: absolute; right: -6%; bottom: 0; width: 56%; border: 6px solid #fff; }
.about-media::before {
  content: ""; position: absolute; left: -22px; top: -22px; width: 55%; height: 60%;
  border: 2px solid var(--green); border-radius: var(--radius-lg); z-index: -1;
}
.about-badge {
  position: absolute; left: 20px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.about-badge img { width: 48px; height: 48px; }
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .03em; }
.about-badge small { color: var(--muted-light); font-size: .8rem; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about-copy > p { color: #36474a; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.values li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .95rem;
}
.values li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Banner del lema ---------- */
.motto-banner {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink);
  min-height: clamp(380px, 62vh, 620px); display: flex; align-items: center;
}
.motto-bg { position: absolute; left: 0; top: -12%; z-index: -2; width: 100%; height: 124%; object-fit: cover; }
.motto-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,18,20,.88) 0%, rgba(6,18,20,.55) 55%, rgba(6,18,20,.2) 100%), linear-gradient(0deg, rgba(6,18,20,.5), transparent 50%);
}
.motto-inner { padding-block: 80px; }
.motto-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-300); }
.motto-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.motto-quote { margin: 0; max-width: 820px; }
.motto-quote p {
  margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: .98; letter-spacing: .005em;
}
.motto-quote span { display: block; background: linear-gradient(92deg, var(--green-300), var(--lime) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Servicios ---------- */
.services { background: var(--sand); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pillar {
  display: flex; gap: 20px; align-items: center; padding: 26px 28px; border-radius: var(--radius);
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.pillar { isolation: isolate; min-height: 150px; }
.pillar-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillar:hover .pillar-bg { transform: scale(1.06); }
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,18,20,.94) 0%, rgba(6,18,20,.78) 50%, rgba(6,18,20,.45) 100%);
}
.pillar-ic { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(22,176,74,.16); color: var(--green-300); }
.pillar-ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted-light); }

.services-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-feature { grid-row: span 2; }
.svc-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.svc-feature .svc-img { aspect-ratio: auto; flex: 1; min-height: 240px; }
.svc-feature .svc-body { flex: none; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,18,20,.35), transparent 50%); }
.svc-body { position: relative; padding: 22px 24px 26px; flex: 1; }
.svc-num {
  position: absolute; right: 20px; top: -26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 10px 24px -10px rgba(22,176,74,.8); transition: transform .5s var(--ease);
}
.svc-card:hover .svc-num { transform: rotate(-8deg) scale(1.06); }
.svc-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; text-transform: uppercase; margin: 0 64px 10px 0; }
.svc-body p { color: var(--muted); margin: 0; }
.svc-body a { color: var(--green-600); font-weight: 600; word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--sand); font-size: .86rem; font-weight: 600; color: #2e4144; }

.docks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dock { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px dashed rgba(14,143,58,.45); }
.dock svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--green-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.dock strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }

/* ---------- Equipos ---------- */
.equipment { background: radial-gradient(80% 60% at 85% 0%, rgba(22,176,74,.16), transparent 60%), var(--ink); color: #fff; }
.equip-tabs {
  position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 36px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-light);
}
.equip-tabs button, .news-filters button {
  position: relative; z-index: 1; border: 0; background: none; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--muted-light); transition: color .3s;
}
.equip-tabs button[aria-selected="true"] { color: var(--ink); }
.tab-pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--green-300); transition: transform .5s var(--ease), width .5s var(--ease); }
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.equip-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-3);
  transform-style: preserve-3d; transition: transform .2s ease-out, opacity .45s var(--ease), scale .45s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.equip-card img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; transition: transform 1.2s var(--ease); }
.equip-card:hover img { transform: scale(1.07); }
.equip-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,18,20,.97) 0%, rgba(6,18,20,.75) 30%, rgba(6,18,20,.15) 58%, transparent 72%); pointer-events: none; }
.equip-card .chip { background: rgba(6,18,20,.6); border: 1px solid rgba(95,220,134,.35); }
.equip-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; transform: translateZ(30px); }
.equip-info h3 { font-family: var(--font-display); font-size: 1.7rem; text-transform: uppercase; margin: 8px 0 2px; }
.equip-info p { margin: 0; color: var(--muted-light); }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(95,220,134,.16); color: var(--green-300); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.equip-card.is-hidden, .js .equip-card.is-hidden.in { opacity: 0; scale: .92; pointer-events: none; }
.equip-card.is-gone { display: none; }

/* ---------- Clientes ---------- */
.clients { background: var(--ink-2); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.clients-title { text-align: center; color: var(--muted-light); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 600; margin-bottom: 26px; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(40px, 8vw, 110px); width: max-content; animation: marquee 28s linear infinite; padding-right: clamp(40px, 8vw, 110px); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 92px; width: auto; opacity: .62; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .4s var(--ease); }
.marquee-track img:hover { opacity: 1; filter: none; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Noticias ---------- */
.news { background: var(--paper); }
.news-filters { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); }
.news-filters button { color: var(--muted); }
.news-filters button:hover { color: var(--text); }
.news-filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid var(--line); min-height: 320px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  animation: cardIn .7s var(--ease) both; animation-delay: var(--d, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
a.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.news-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-thumb.ph { display: grid; place-items: center; color: rgba(255,255,255,.85); }
.news-thumb.ph svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; transition: transform .8s var(--ease); }
a.news-card:hover .news-thumb.ph svg { transform: scale(1.12) rotate(-4deg); }
.news-thumb.ph::before { content: ""; position: absolute; inset: 0; background: var(--ph, linear-gradient(135deg, var(--sea), var(--ink))); }
.news-thumb.ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
.ph-pesca { --ph: linear-gradient(135deg, #0e6b52, #062a2c); }
.ph-puerto { --ph: linear-gradient(135deg, #12507a, #061a26); }
.ph-madryn { --ph: linear-gradient(135deg, #3c6b2a, #0b2216); }
.news-cat {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(6,18,20,.72); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-src { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.news-src b { color: var(--green-600); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-body h3 {
  font-size: 1.12rem; font-weight: 700; line-height: 1.32; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body p { margin: 10px 0 0; font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-read { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; color: var(--green-600); }
.news-read::after { content: " →"; display: inline-block; transition: transform .4s var(--ease); }
a.news-card:hover .news-read::after { transform: translateX(4px); }
.news-card.skeleton { min-height: 320px; background: linear-gradient(100deg, #f0eee8 30%, #f9f8f5 50%, #f0eee8 70%) 0 0 / 300% 100%; border: 0; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.news-empty { grid-column: 1 / -1; padding: 40px; text-align: center; border-radius: var(--radius); background: var(--sand); color: var(--muted); }
.news-empty a { color: var(--green-600); font-weight: 600; }
.news-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.news-meta { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Widget de clima ---------- */
.weather { position: sticky; top: 84px; display: grid; gap: 14px; }
.wx-card { border-radius: var(--radius); padding: 20px; background: var(--sand); border: 1px solid var(--line); }
.wx-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.wx-now { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(150deg, #0f4a50 0%, var(--ink) 75%); }
.wx-now::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(95,220,134,.25), transparent 70%); }
.wx-head { display: flex; justify-content: space-between; align-items: flex-start; }
.wx-place { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.wx-time { margin: 0; font-size: .82rem; color: var(--muted-light); }
.wx-icon { width: 64px; height: 64px; color: #fff; }
.wx-icon svg { width: 100%; height: 100%; }
.wx-temp { display: flex; align-items: flex-start; margin: 6px 0 0; }
.wx-temp strong { font-family: var(--font-display); font-weight: 700; font-size: 4.6rem; line-height: 1; }
.wx-temp span { font-size: 1.4rem; margin-top: 8px; color: var(--muted-light); }
.wx-desc { margin: 2px 0 14px; color: rgba(255,255,255,.85); font-weight: 500; }
.wx-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; position: relative; z-index: 1; }
.wx-mini div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.wx-mini dt { font-size: .74rem; color: var(--muted-light); }
.wx-mini dd { margin: 0; font-weight: 700; font-size: 1.02rem; }
.wx-mini.sea div { background: #fff; border: 1px solid var(--line); }
.wx-mini.sea dt { color: var(--muted); }

.wind-wrap { display: flex; align-items: center; gap: 20px; }
.compass {
  position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%;
  background:
    radial-gradient(circle, #fff 56%, transparent 57%),
    repeating-conic-gradient(from -1deg, rgba(14,26,28,.35) 0 2deg, transparent 2deg 30deg),
    #e7e4dc;
  border: 1px solid var(--line);
}
.compass > span { position: absolute; font-size: .68rem; font-weight: 800; color: var(--muted); }
.c-n { top: 14px; left: 50%; translate: -50% 0; color: var(--green-600) !important; }
.c-s { bottom: 14px; left: 50%; translate: -50% 0; }
.c-e { right: 15px; top: 50%; translate: 0 -50%; }
.c-w { left: 15px; top: 50%; translate: 0 -50%; }
.needle { position: absolute; inset: 0; transition: transform 1.6s cubic-bezier(.34, 1.56, .64, 1); }
.needle i {
  position: absolute; left: 50%; top: 22px; bottom: 22px; width: 10px; margin-left: -5px;
  background: linear-gradient(180deg, var(--green) 0 50%, var(--ink) 50% 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.wind-data p { margin: 0 0 4px; }
.wind-data strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.wind-alert { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff3d6; color: #6b4a00; font-size: .9rem; font-weight: 600; }
.wind-alert.strong { background: #ffe1dc; color: #8a1c0c; }

.tide { margin-top: 14px; }
.tide-head { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.tide-chart { width: 100%; height: 90px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: visible; }
.tide-chart .area { fill: url(#tideGrad); }
.tide-chart .curve { fill: none; stroke: #127a8a; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease) .2s forwards; }
.tide-chart .now { stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tide-chart .dot { fill: var(--green); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.days li { display: grid; grid-template-columns: 52px 30px 1fr; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.days li:last-child { border-bottom: 0; }
.days .d-name { font-weight: 600; text-transform: capitalize; }
.days .d-ic { width: 28px; height: 28px; color: var(--ink); }
.days .d-range { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.days .d-range span:last-child { text-align: right; font-weight: 700; }
.days .d-range span:first-child { color: var(--muted); }
.days .bar { position: relative; height: 6px; border-radius: 6px; background: #e3e0d8; }
.days .bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #4fb3c9, var(--green), #f0b43c); }
.wx-sun { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.wx-credit { font-size: .78rem; color: var(--muted); margin: 0; }
.wx-credit a { color: inherit; }

/* ---------- Multimedia ---------- */
.media { background: var(--ink); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card {
  position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-3);
  aspect-ratio: 16 / 10; text-align: left;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: brightness(.75) saturate(1.1); }
.video-card:hover img { transform: scale(1.07); filter: brightness(.55); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,18,20,.92), transparent 60%); }
.video-play {
  position: absolute; left: 50%; top: 44%; z-index: 1; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), background-color .3s;
}
.video-play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--green-300); opacity: 0; transform: scale(1); }
.video-card:hover .video-play { transform: scale(1.12); background: var(--green); border-color: var(--green); }
.video-card:hover .video-play::before { animation: ring 1.4s var(--ease) infinite; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.video-play svg { width: 24px; height: 24px; fill: #fff; transform: translateX(2px); }
.video-title { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; }

.video-modal { width: min(1000px, 100% - 32px); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.video-modal::backdrop { background: rgba(3, 9, 10, .88); backdrop-filter: blur(6px); }
.video-modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.modal-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; right: -6px; top: -52px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; }

/* ---------- Consejo ---------- */
.board { background: var(--sand); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.person {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(22,176,74,.4); }
.avatar {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(140deg, var(--green), var(--green-600));
}
.person.lead { background: var(--ink); color: #fff; border-color: transparent; }
.person.lead small { color: var(--green-300); }
.person.sind .avatar { background: linear-gradient(140deg, #2a5e66, var(--ink-3)); }
.person strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.person small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { display: grid; gap: 14px; margin: 28px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(22,176,74,.1); color: var(--green-600); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list span { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--green-600); }
.emails { display: grid; gap: 8px; }
.emails a {
  display: flex; flex-direction: column; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none;
  font-weight: 600; font-size: .95rem; word-break: break-all; transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.emails a:hover { border-color: var(--green); background: #f3fbf5; transform: translateX(4px); }
.emails small { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 40px 80px -40px rgba(6,18,20,.4); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: #2e4144; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #d9dcd6; background: #fbfaf8;
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(22,176,74,.15); }
.field.invalid input, .field.invalid textarea { border-color: #d6452f; box-shadow: 0 0 0 4px rgba(214,69,47,.12); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.sending .spinner { display: inline-block; }
.sending .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 14px 0 0; font-weight: 600; text-align: center; min-height: 1.6em; }
.form-status.ok { color: var(--green-600); }
.form-status.err { color: #c0392b; }

.map { margin-top: clamp(60px, 8vw, 100px); height: 380px; position: relative; overflow: hidden; background: #dfe7e3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-load {
  width: 100%; height: 100%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  background:
    radial-gradient(circle at 50% 50%, rgba(22,176,74,.18), transparent 40%),
    linear-gradient(rgba(14,26,28,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(14,26,28,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    #e8eee9;
}
.map-load .ci { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; animation: float 3s ease-in-out infinite; }
.map-load .ci svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color .25s; word-break: break-word; }
.site-footer a:hover { color: var(--green-300); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid var(--line-light); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 600; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), bottom .5s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; }
.to-top .arrow { width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover .arrow { animation: bob .8s var(--ease) infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }

/* ---------- Animaciones al hacer scroll ---------- */
/* Solo se ocultan si JS está activo: sin JS el contenido se ve igual. */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-48px); }
.js .reveal.from-right { transform: translateX(48px); }
.js .reveal.in { opacity: 1; transform: none; }
.js .equip-card.reveal.in { transition: transform .2s ease-out, opacity .45s var(--ease), scale .45s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .weather { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-credit { grid-column: 1 / -1; }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-card img { aspect-ratio: 4 / 3; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
    background: rgba(6, 18, 20, .97); backdrop-filter: blur(10px);
    clip-path: circle(0 at calc(100% - 42px) 38px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 42px) 38px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .main-nav a { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 6px 16px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .25s; }
  .nav-open .main-nav a { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(1) a { transition-delay: .15s; }
  .nav-open .main-nav li:nth-child(2) a { transition-delay: .2s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: .25s; }
  .nav-open .main-nav li:nth-child(4) a { transition-delay: .3s; }
  .nav-open .main-nav li:nth-child(5) a { transition-delay: .35s; }
  .nav-open .main-nav li:nth-child(6) a { transition-delay: .4s; }
  .nav-open .main-nav li:nth-child(7) a { transition-delay: .45s; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--green-300); }
  .nav-contact {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .main-nav .nav-contact a {
    font-family: var(--font-body); font-size: .95rem; font-weight: 600; text-transform: none; letter-spacing: 0;
    color: var(--muted-light); padding: 4px 8px; transition-delay: .5s;
  }
  .main-nav .nav-contact a::after { display: none; }
  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; }
  .port-card { width: 100%; max-width: 520px; }
  .port-card-grid { grid-template-columns: repeat(4, 1fr); }
  .scroll-cue { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-row: auto; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .svc-feature .svc-img { aspect-ratio: auto; min-height: 100%; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Celulares ===== */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .section-sub { font-size: 1rem; }
  .brand-text small { display: none; }

  /* Portada compacta: todo lo importante entra en la primera pantalla */
  .hero-inner { padding-top: calc(var(--header-h) + 24px); padding-bottom: 92px; gap: 22px; }
  .eyebrow { margin-bottom: 16px; font-size: .74rem; padding: 6px 12px; backdrop-filter: none; background: rgba(6,18,20,.45); }
  .hero-title { font-size: clamp(2.4rem, 11.2vw, 3.2rem); margin-bottom: 16px; }
  .hero-lead { font-size: 1rem; margin-bottom: 22px; }
  .hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .hero-actions .btn { padding: .9em 1.1em; }
  .btn-ghost { backdrop-filter: none; background: rgba(6,18,20,.45); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .port-card { padding: 12px; border-radius: 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,18,20,.62); }
  .port-card-head { font-size: .68rem; margin-bottom: 8px; }
  .port-card-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .port-card-grid div { padding: 8px 6px; border-radius: 10px; text-align: center; }
  .port-card-grid small { font-size: .64rem; }
  .port-card-grid strong { font-size: 1.12rem; white-space: nowrap; }
  .port-card-link { margin-top: 8px; font-size: .8rem; text-align: center; }

  .stats { padding: 8px 0 52px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }

  .about-media { padding-bottom: 48px; }
  .about-img.sub { right: 0; width: 52%; border-width: 4px; }
  .about-media::before { left: -10px; top: -10px; }
  .about-badge { left: 12px; bottom: 16px; padding: 8px 12px 8px 8px; }
  .about-badge img { width: 38px; height: 38px; }

  .motto-banner { min-height: 340px; }
  .motto-inner { padding-block: 56px; }

  .pillars, .docks, .field-row { grid-template-columns: 1fr; }
  .pillars { gap: 12px; margin-bottom: 18px; }
  .pillar { padding: 20px; min-height: 120px; }
  .pillar h3 { font-size: 1.4rem; }
  .pillar-ic { width: 52px; height: 52px; }
  .docks { gap: 10px; }
  .dock { padding: 14px 16px; }
  .dock strong { font-size: 1.15rem; }

  /* Carruseles deslizables (servicios, equipos y videos) */
  .snap {
    display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
  }
  .snap::-webkit-scrollbar { display: none; }
  .snap > * { flex: 0 0 84%; scroll-snap-align: start; }
  .js .snap > .reveal { opacity: 1; transform: none; }
  .js .snap > .is-hidden { opacity: 0; }
  .snap-dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
  .snap-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: currentColor; opacity: .25; transition: width .4s var(--ease), opacity .3s; }
  .snap-dots button[aria-current="true"] { width: 24px; opacity: 1; background: var(--green); }
  .equipment .snap-dots, .media .snap-dots { color: #fff; }

  .svc-feature { grid-row: auto; grid-column: auto; display: flex; }
  .svc-feature .svc-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .svc-body { padding: 20px 20px 22px; }
  .svc-body h3 { font-size: 1.4rem; }
  .equip-grid > * { flex-basis: 80%; }
  .equip-card img { aspect-ratio: 4 / 3; }
  .equip-tabs { display: flex; width: 100%; margin-bottom: 20px; }
  .equip-tabs button { flex: 1; padding-inline: 8px; }

  .clients { padding: 40px 0 44px; }
  .marquee-track img { height: 56px; }

  /* Noticias en formato lista: miniatura + título */
  .news-filters { width: 100%; overflow-x: auto; }
  .news-filters button { flex: 1; padding-inline: 12px; }
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card { flex-direction: row; min-height: 0; border-radius: 14px; }
  .news-card.skeleton { min-height: 112px; }
  .news-thumb { flex: 0 0 108px; aspect-ratio: auto; min-height: 112px; }
  .news-thumb.ph svg { width: 34px; height: 34px; }
  .news-cat { left: 6px; top: 6px; padding: 3px 7px; font-size: .6rem; }
  .news-body { padding: 12px 14px; }
  .news-src { font-size: .76rem; margin-bottom: 4px; }
  .news-body h3 { font-size: .98rem; line-height: 1.3; }
  .news-body p, .news-read { display: none; }
  .weather { grid-template-columns: 1fr; }
  .wx-card { padding: 16px; }

  .video-grid > * { flex-basis: 86%; }
  .video-title { font-size: 1.25rem; }

  .board-grid { grid-template-columns: 1fr; gap: 8px; }
  .person { padding: 12px 14px; gap: 12px; }
  .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
  .person strong { font-size: .98rem; }

  .contact-list { margin: 22px 0; }
  .contact-form { padding: 20px; border-radius: 20px; }
  .map { height: 260px; margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 56px; }
  .footer-bottom { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .modal-close { top: -50px; right: 0; }

  /* Barra fija de acciones */
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 18px;
    background: rgba(6,18,20,.94); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 12px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; background: rgba(255,255,255,.08);
  }
  .mobile-bar a.primary { background: var(--green); }
  .mobile-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .to-top { right: 14px; width: 46px; height: 46px; bottom: calc(20px + env(safe-area-inset-bottom)); }
  .bar-on .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media img { transform: scale(1.05); }
  .js .reveal, .hero-anim, .hero-title .line > span { opacity: 1; transform: none; }
}
