/* Neris Zoom — estilos */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --coral: #ff4f56;        /* color del logo (decorativo) */
  --coral-600: #d9363e;    /* textos y botones: contraste AA sobre blanco */
  --coral-700: #bf2b33;
  --coral-50: #fff0f0;
  --navy: #002445;         /* color del logo */
  --navy-800: #0a3157;
  --ink: #16263a;
  --muted: #56657a;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 36, 69, .06), 0 8px 24px rgba(0, 36, 69, .06);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--coral-600); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-600); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--coral-600); color: #fff; box-shadow: 0 6px 18px rgba(217, 54, 62, .25); }
.btn--primary:hover { background: var(--coral-700); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost { color: var(--navy); border: 1.5px solid var(--line); background: #fff; }
.btn--ghost:hover { border-color: var(--coral-600); color: var(--coral-600); }
.btn--small { padding: 10px 18px; font-size: .92rem; }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav > a:hover { color: var(--coral-600); }
.lang { display: flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; }
.lang a, .lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.lang span { background: var(--coral-50); color: var(--coral-600); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--coral-600); }

/* Portada */
.hero { padding: 64px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); margin: 22px 0 34px; max-width: 540px; }
.hero__media { width: 100%; max-width: 480px; margin-left: auto; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 36, 69, .18); }

/* Qué hacemos */
.section--soft { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card__img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.card__body { padding: 0 26px 30px; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--coral-600); margin: -28px 0 18px; position: relative;
  box-shadow: 0 6px 18px rgba(0, 36, 69, .14);
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin-top: 10px; }

/* Contacto */
.contact {
  background: var(--navy); color: #c9d5e3;
  border-radius: 28px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.contact h2 { color: #fff; }
.contact p { max-width: 620px; margin: 16px auto 0; font-size: 1.1rem; }
.contact .eyebrow { color: #ff8a8f; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  background: var(--coral-600); color: #fff; padding: 16px 28px; border-radius: 999px;
  font-size: 1.15rem; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: background .2s, transform .2s;
}
.contact__mail:hover { background: var(--coral-700); transform: translateY(-1px); }
.contact__mail svg { width: 22px; height: 22px; }
.contact::before, .contact::after {
  content: ""; position: absolute; border-radius: 50%; border: 36px solid rgba(255, 79, 86, .12);
}
.contact::before { width: 300px; height: 300px; left: -130px; bottom: -170px; }
.contact::after { width: 220px; height: 220px; right: -70px; top: -100px; }

/* Pie */
.footer { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 88px; font-size: .92rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a, .footer__links button {
  color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0;
}
.footer__links a:hover, .footer__links button:hover { color: var(--coral-600); }

/* Banner de cookies */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 36, 69, .22); padding: 22px 24px; font-size: .93rem;
}
.cookies[hidden], .cookies__prefs[hidden] { display: none; }
.cookies h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cookies p { color: var(--muted); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookies__actions .btn { flex: 1 1 auto; }
.cookies__prefs { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.pref { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pref strong { color: var(--navy); display: block; }
.pref span { color: var(--muted); font-size: .88rem; }
.pref__always { color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #c5ccd6; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--coral-600); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Páginas legales */
.legal { max-width: 780px; padding-top: 56px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p + p, .legal ul + p, .legal p + ul, .legal ol + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .note { color: var(--muted); font-style: italic; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); color: var(--navy); }
.table-wrap { overflow-x: auto; }

/* Página 404 */
.notfound { text-align: center; padding: 96px 0 24px; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 420px; margin: 0 auto; }
  .hero { padding-top: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .contact { padding: 44px 24px; border-radius: 22px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header__inner { height: 68px; gap: 12px; }
  .logo img { height: 38px; }
  .nav { gap: 12px; }
  .nav > a { font-size: .92rem; }
  .contact__mail { font-size: 1rem; padding: 14px 20px; }
  .cookies { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
}
