/* =========================================================
   Royalty Madrid Cheerleading — azul marino y dorado
   ========================================================= */
:root {
  --navy: #0C1C3A;        /* fondo principal */
  --navy-2: #142A52;      /* paneles */
  --night: #07122A;       /* cabecera, pie, zonas profundas */
  --gold: #D4AF5A;        /* dorado del logo */
  --gold-light: #F0D99A;
  --gold-deep: #A9822F;
  --text: #ECEEF4;
  --muted: #A9B4CB;
  --line: rgba(212, 175, 90, .28);

  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --wrap: 1180px;
  --nav-h: 84px;
  --gold-grad: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
:root { color-scheme: dark; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .04em;
  margin: 0 0 .5em;
  color: var(--gold);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: .06em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* Línea dorada con rombo, como la del logo */
.rule {
  display: flex; align-items: center; gap: 12px;
  width: min(360px, 100%); margin: 0 0 28px;
  color: var(--gold);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule span { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; }
.center .rule { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif); font-weight: 700;
  font-size: .95rem; letter-spacing: .12em;
  text-decoration: none; text-align: center;
  padding: 1em 1.9em;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold-grad); color: var(--night); border-color: var(--gold-light); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line { background: transparent; color: var(--gold); }
.btn--line:hover { background: var(--gold); color: var(--night); }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  height: var(--nav-h);
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
  background: var(--night);
  border-bottom: 1px solid var(--gold);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-right: 20px; }
.nav__brand img { height: 60px; width: auto; }
.nav__brand span {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .18em; color: var(--gold); line-height: 1.1;
}
.nav__brand small { display: block; font-size: .7rem; letter-spacing: .22em; color: var(--muted); font-weight: 600; }
.nav__menu { display: flex; align-items: stretch; }
.nav__menu a {
  display: flex; align-items: center;
  padding: 0 20px;
  font-family: var(--serif); font-weight: 600; font-size: .9rem; letter-spacing: .1em;
  text-decoration: none; color: var(--text);
  border-left: 1px solid var(--line);
  transition: color .2s, background-color .2s;
}
.nav__menu a:last-child { border-right: 1px solid var(--line); }
.nav__menu a:hover { color: var(--gold-light); background: var(--navy); }
.nav__menu a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.nav__toggle {
  display: none; align-self: center;
  font: 600 .9rem var(--serif); letter-spacing: .1em; color: var(--gold);
  background: none; border: 1px solid var(--gold); padding: 10px 16px;
}
@media (max-width: 1020px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--night);
    border-bottom: 1px solid var(--gold);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 18px 16px; border: 0; border-top: 1px solid var(--line); }
  .nav__menu a:last-child { border-right: 0; }
}
@media (max-width: 420px) { .nav__brand small { display: none; } .nav__brand span { font-size: 1.15rem; } }

/* ---------- Fotos (con diseño provisional mientras no haya foto) ---------- */
.photo { margin: 0; position: relative; background: var(--navy-2); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--empty {
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(212,175,90,.16), transparent 70%),
    linear-gradient(160deg, var(--navy-2), var(--night));
  border: 1px solid var(--line);
}
.photo--empty::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/logo-escudo.png") center 44% / min(55%, 340px) no-repeat;
  opacity: .22;
}
.photo--empty::after {
  content: "Foto próximamente";
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-family: var(--serif); font-size: .78rem; letter-spacing: .2em; color: var(--gold);
  opacity: .75;
}

/* ---------- INICIO ---------- */
.home-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: flex-end; justify-content: center;
  padding: 120px 16px 72px;
  text-align: center;
  overflow: hidden;
  background: var(--night);
}
.home-hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
/* Velo azul marino para que el texto se lea sobre la foto */
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,18,42,.55) 0%, rgba(7,18,42,.25) 35%, rgba(7,18,42,.82) 72%, var(--night) 100%);
}
.home-hero__copy { position: relative; z-index: 2; max-width: 900px; }
.home-hero__logo {
  width: min(190px, 44vw); height: auto; margin: 0 auto 14px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.6));
}
.home-hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4.6rem);
  line-height: 1.05; margin-bottom: .25em;
  color: #fff;
  text-shadow: 0 3px 24px rgba(0,0,0,.65);
}
.home-hero p {
  margin-inline: auto;
  font-family: var(--serif); font-weight: 600; letter-spacing: .05em;
  font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.home-hero__copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.home-hero__copy > :nth-child(2) { animation-delay: .1s; }
.home-hero__copy > :nth-child(3) { animation-delay: .2s; }
.home-hero__copy > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-hero__copy > * { animation: none; } }
/* Móvil: la foto entera arriba y el texto debajo, para no tapar al equipo */
@media (max-width: 700px) {
  .home-hero { display: block; min-height: 0; padding: 0 0 48px; }
  .home-hero__photo { position: relative; height: auto; aspect-ratio: 3 / 4; object-position: 50% 50%; }
  .home-hero::before {
    bottom: auto; height: calc(100vw * 4 / 3);
    background: linear-gradient(180deg, transparent 70%, var(--night) 100%);
  }
  .home-hero__copy { padding: 0 16px; margin-top: -40px; }
  .home-hero__logo { display: none; }
  .home-hero .actions .btn { width: 100%; }
}

.home-strip { padding: 96px 0; background: var(--navy); border-top: 1px solid var(--line); }
.home-strip__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.home-strip .photo { aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .home-strip__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Cabecera de página interior ---------- */
.page-head {
  padding: 80px 0 64px; text-align: center;
  background: radial-gradient(60% 120% at 50% 0%, #1B3566, var(--night) 75%);
  border-bottom: 1px solid var(--line);
}
.page-head p { margin-inline: auto; font-size: 1.18rem; color: var(--muted); }
.page-head .rule { margin-inline: auto; }

/* ---------- EQUIPOS ---------- */
.team-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; background: var(--night); border-bottom: 1px solid var(--line); }
.team-row:nth-child(even) { background: var(--navy); }
.team-row:nth-child(even) .team-row__text { order: 2; }
.team-row__text { padding: 56px clamp(24px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.team-row .photo { min-height: 320px; border: 0; }
.team-row__title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.team-row__crest { width: 52px; height: 76px; object-fit: contain; flex: none; }
.team-row h2 { margin: 0; }
.team-row__level {
  font-family: var(--serif); font-weight: 600; font-size: .85rem; letter-spacing: .14em;
  color: var(--gold-light); border: 1px solid var(--line); padding: 4px 10px;
}
.team-row__age { font-weight: 600; font-size: 1.1rem; color: var(--text); margin: 0 0 .6em; }
.team-row p { color: var(--muted); }
.team-row .btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 820px) {
  .team-row { grid-template-columns: 1fr; }
  .team-row:nth-child(even) .team-row__text { order: 0; }
  .team-row .photo { min-height: 240px; order: -1; }
}

/* ---------- ENTRENAMIENTOS ---------- */
.panel { padding: 88px 0; }
.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--navy-2); }
th, td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--serif); font-size: .9rem; letter-spacing: .12em; color: var(--gold); background: var(--night); }
tbody th { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; color: var(--text); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: rgba(212,175,90,.06); }
td { color: var(--muted); }
td.time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold-light); white-space: nowrap; }

.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; padding: 24px 0 96px; }
.info-cols ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.info-cols li { margin-bottom: .4em; }
.info-cols li::marker { color: var(--gold); }
.info-cols p { color: var(--muted); }

/* ---------- CLUB ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 96px 0; border-bottom: 1px solid var(--line); }
.split .photo { aspect-ratio: 4 / 3; }
.split--flip .photo { order: 2; }
.split p { color: var(--muted); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } .split--flip .photo { order: 0; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.values div { background: var(--navy); padding: 32px 26px; }
.values p { color: var(--muted); margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 0; }
.facts div { border-left: 1px solid var(--gold); padding-left: 16px; }
.facts dt { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.facts dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- ÁREA DE ATLETA ---------- */
.athlete-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; padding: 88px 0; }
@media (max-width: 880px) { .athlete-grid { grid-template-columns: 1fr; gap: 40px; } }
.athlete-grid > div > p { color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 48px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 66px; color: var(--muted); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px; width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 50%;
}
.steps strong { display: block; color: var(--text); font-size: 1.08rem; font-weight: 600; }
.docs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; text-decoration: none; }
.docs a:hover { color: var(--gold-light); }
.docs small { color: var(--gold); font-family: var(--serif); letter-spacing: .1em; }

.form { background: var(--navy-2); padding: 36px; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 500; font-size: .98rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 13px; width: 100%;
  border: 1px solid rgba(169,180,203,.35); border-radius: 0; background: var(--night);
  color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: #6E7C99; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,90,.2); }
.field.is-invalid input, .field.is-invalid select { border-color: #F07A7A; }
.field .error { color: #FF9C9C; font-size: .9rem; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 24px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.check.is-invalid span { color: #FF9C9C; }
.check a { color: var(--gold-light); }
.form__status { margin: 14px 0 0; font-weight: 500; min-height: 1.5em; }
.form__status.ok { color: #8FE0A8; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } .form { padding: 24px 18px; } }

/* ---------- LEGAL ---------- */
.legal { padding: 64px 0 96px; }
.legal section { padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--muted); }
.note { border: 1px solid var(--gold); padding: 14px 18px; color: var(--gold-light); }

/* ---------- Pie de página ---------- */
.footer { background: var(--night); padding: 72px 0 0; border-top: 1px solid var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.footer__logo { width: 170px; height: auto; margin-bottom: 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 44px; margin-bottom: 32px; justify-content: start; }
.footer__cols div { display: flex; flex-direction: column; gap: 9px; }
.footer h2 { font-size: .95rem; letter-spacing: .16em; margin: 0 0 6px; }
.footer__cols a, .footer__cols span { color: var(--muted); text-decoration: none; font-size: .98rem; max-width: 24ch; }
.footer__cols a:hover { color: var(--gold-light); text-decoration: underline; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold);
  transition: background-color .2s, color .2s;
}
.footer__social a:hover { background: var(--gold); color: var(--night); }
.footer__social svg { width: 20px; height: 20px; }
.footer__map { position: relative; border: 1px solid var(--line); }
.footer__maplink {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  padding: 10px 16px; background: var(--night); color: var(--gold);
  border: 1px solid var(--gold); text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
}
.footer__maplink:hover { background: var(--gold); color: var(--night); }
.footer__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.footer__bottom { margin-top: 56px; padding: 22px 0 30px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .92rem; letter-spacing: .04em; }
.footer__bottom p { margin: 0 auto; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__map iframe { min-height: 280px; }
}

/* ---------- Botón fijo de WhatsApp ---------- */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px;
  background: #0F7A43; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.02rem;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
  transition: transform .15s;
}
.whatsapp:hover { transform: translateY(-2px); }
.whatsapp svg { width: 30px; height: 30px; }
@media (max-width: 560px) {
  .whatsapp { padding: 14px; right: 16px; bottom: 16px; }
  .whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Horario semanal del club */
.week-title { margin-top: 72px; }
.week tr.closed th, .week tr.closed td { color: var(--muted); font-style: italic; font-weight: 400; }
.week { min-width: 0; }
@media (max-width: 520px) { .week th, .week td { padding: 14px 10px; font-size: .95rem; } }

/* Escudos propios de cada equipo */
.team-row__crest--round { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.photo--diamonds img { object-position: 50% 30%; }
.photo--olympus img { object-position: 50% 62%; }
.team-row:has(.photo--olympus) { min-height: 560px; }
.team-row .photo img { position: absolute; inset: 0; }
@media (max-width: 820px) { .team-row .photo { min-height: 380px; } }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Contador de cifras (Inicio) ---------- */
.stats { background: var(--night); padding: 72px 0; border-top: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; padding: 8px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd {
  margin: 0;
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--gold-deep);
}
.stat dt { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; color: var(--text); }
@media (max-width: 520px) {
  .stats { padding: 48px 0; }
  .stat { padding: 4px 6px; }
  .stat dt { font-size: .82rem; letter-spacing: .08em; }
}
/* Contador: tres columnas iguales y todo centrado */
.stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; text-align: center; }
.stat { width: 100%; }
@media (max-width: 520px) { .stat dt { font-size: .7rem; letter-spacing: .04em; } }

/* =========================================================
   ANIMACIONES
   Todo se desactiva si el usuario pide menos movimiento.
   ========================================================= */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* 1. Portada: zoom lento de la foto */
.home-hero__photo { animation: hero-zoom 14s var(--ease-out) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
/* el escudo de la portada flota suavemente */
.home-hero__logo { animation: rise .9s var(--ease-out) both, float 6s ease-in-out 1.2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 2. Aparición al hacer scroll (la clase la pone layout.js) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.94); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
/* la línea dorada con rombo se "dibuja" desde el centro */
.rule.reveal { opacity: 1; transform: none; }
.rule.reveal::before, .rule.reveal::after { transform: scaleX(0); }
.rule.reveal::before { transform-origin: right; }
.rule.reveal::after { transform-origin: left; }
.rule.reveal span { transform: rotate(45deg) scale(0); }
.rule.reveal.is-in::before, .rule.reveal.is-in::after { transform: scaleX(1); transition: transform .9s var(--ease-out) .15s; }
.rule.reveal.is-in span { transform: rotate(45deg) scale(1); transition: transform .5s var(--ease-out); }

/* 3. Botones dorados: destello que cruza al pasar el ratón */
.btn { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn--gold:hover::after { animation: shine .8s var(--ease-out); }
@keyframes shine { to { left: 130%; } }
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }

/* 4. Menú: línea dorada que crece bajo el enlace */
.nav__menu a { position: relative; }
.nav__menu a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 18px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.nav__menu a:hover::after { transform: scaleX(1); }
.nav__menu a[aria-current="page"]::after { display: none; }
@media (max-width: 1020px) { .nav__menu a::after { display: none; } }
/* la barra se oscurece y gana sombra al bajar */
.nav { transition: box-shadow .3s, background-color .3s; }
.nav.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.nav__brand img { transition: transform .4s var(--ease-out); }
.nav__brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* 5. Fotos: zoom suave al pasar el ratón */
.team-row .photo img, .split .photo img, .home-strip .photo img { transition: transform 1.2s var(--ease-out); }
.team-row:hover .photo img, .split .photo:hover img, .home-strip .photo:hover img { transform: scale(1.05); }
/* escudos de equipo: giro y brillo */
.team-row__crest--round { transition: transform .6s var(--ease-out), box-shadow .6s; }
.team-row:hover .team-row__crest--round { transform: rotate(-8deg) scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,.4); }

/* 6. Tarjetas de valores y filas de tabla */
.values div { transition: background-color .3s, transform .3s var(--ease-out); }
.values div:hover { background: var(--navy-2); transform: translateY(-4px); }
tbody tr { transition: background-color .2s; }

/* 7. Redes sociales: pequeño salto */
.footer__social a { transition: background-color .2s, color .2s, transform .25s var(--ease-out); }
.footer__social a:hover { transform: translateY(-3px) rotate(-6deg); }

/* 8. WhatsApp: onda que late cada pocos segundos */
.whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #0F7A43;
  animation: wa-pulse 3s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes wa-pulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.whatsapp { animation: wa-in .6s var(--ease-out) 1s backwards; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }

/* Sin animaciones para quien las tenga desactivadas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .rule.reveal::before, .rule.reveal::after, .rule.reveal span { transform: none !important; }
  .rule.reveal span { transform: rotate(45deg) !important; }
}
.form__status a { color: var(--gold-light); }
