/**
 * HOYUELA 1955 · hoyuela-global.css
 * CSS global unificado · v3.0
 * Tokens, reset, header, footer, botones, formularios,
 * secciones, animaciones, breakpoints comunes.
 *
 * Las páginas individuales solo añaden estilos page-specific.
 */

/* ══════════════════════════════════════
   1. TOKENS / VARIABLES
   ══════════════════════════════════════ */
:root {
  /* Base */
  --white:        #ffffff;
  --off-white:    #fafafa;
  --cream:        #f7f6f2;

  /* Azules */
  --blue-50:      #eef4fb;
  --blue-100:     #d6e8f7;
  --blue-200:     #b4d2ef;
  --blue-300:     #8fb8dc;
  --blue-400:     #6099c8;
  --blue-500:     #4a86be;
  --blue-600:     #3570a8;
  --blue-700:     #2d6399;
  --blue-800:     #1e4d7a;

  /* Amarillos */
  --yellow-50:    #fefaee;
  --yellow-100:   #fdf0c0;
  --yellow-300:   #f5d76e;
  --yellow-500:   #e8c53a;

  /* Slate */
  --slate-200:    #e8edf2;
  --slate-400:    #8fa3b8;
  --slate-600:    #4a6278;
  --slate-800:    #1e3347;

  /* Texto */
  --text:         #2a3f52;
  --text-soft:    #5e7a91;
  --text-muted:   #6f8499;        /* MEJORADO contraste WCAG AA (antes #8fa3b8) */

  /* Acentos */
  --accent:       var(--yellow-300);
  --accent-deep:  var(--blue-700);

  /* Vino (para carta-vinos) */
  --wine:         #6b2d3e;
  --wine-light:   #f9f2f4;
  --wine-border:  #e8d0d6;

  /* Papel/lápiz (para bocetos) */
  --paper:        #f4f1eb;
  --ink:          #3a3128;
  --pencil:       #8b7d6b;

  /* Geometría */
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    32px;
  --radius-xl:    48px;

  /* Sombras */
  --shadow-soft:  0 4px 24px rgba(74,134,190,.08);
  --shadow-card:  0 8px 40px rgba(74,134,190,.12);
  --shadow-lift:  0 20px 60px rgba(74,134,190,.16);

  /* Layout */
  --header-h:     78px;
  --container:    1180px;
}

/* ══════════════════════════════════════
   2. RESET
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Skip link para accesibilidad */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--slate-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--yellow-300);
  outline-offset: 2px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ══════════════════════════════════════
   3. CONTAINER
   ══════════════════════════════════════ */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ══════════════════════════════════════
   4. HEADER
   ══════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--blue-100);
  transition: box-shadow .2s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(74,134,190,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 60px;
  width: auto;
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 400;
  color: var(--text-soft);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-current {
  color: var(--text);
  background: var(--blue-50);
}
.nav-wa {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: var(--blue-700) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  font-size: .88rem !important;
  transition: background .2s, transform .2s !important;
}
.nav-wa:hover {
  background: var(--blue-500) !important;
  transform: translateY(-1px);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: transform .25s, top .25s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ══════════════════════════════════════
   5. BOTONES
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  min-height: 50px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .22s, box-shadow .22s, background .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: wait; transform: none !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74,134,190,.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(74,134,190,.45); }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-100);
}
.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0 18px; min-height: 42px; font-size: .85rem; }

/* ══════════════════════════════════════
   6. SECCIONES
   ══════════════════════════════════════ */
.section { padding: 80px 0; }
.section-white  { background: var(--white); }
.section-alt    { background: var(--off-white); }
.section-cream  { background: var(--cream); }
.section-blue   { background: var(--blue-50); }
.section-golden { background: linear-gradient(160deg, var(--yellow-50) 0%, var(--white) 100%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue-300);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--slate-800);
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--blue-500);
}
.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 64ch;
}
.section-heading.centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-main { padding-top: var(--header-h); }
.page-hero {
  padding: 24px 0 28px;
  background:
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(74,134,190,.08), transparent),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(245,215,110,.1), transparent),
    linear-gradient(160deg, var(--white) 50%, var(--blue-50) 100%);
}
.page-hero-inner { max-width: 860px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--slate-800);
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--blue-500); }
.page-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 64ch;
  line-height: 1.75;
}

/* ══════════════════════════════════════
   7. FORMULARIOS GENÉRICOS
   ══════════════════════════════════════ */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--slate-600);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--off-white);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(74,134,190,.12);
}
.form-field textarea { min-height: 90px; resize: vertical; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.55;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.form-consent.is-error,
.nlp-consent.is-error {
  border: 1px solid #d97706;
  background: var(--yellow-50);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  animation: shake .3s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.form-consent a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  display: none;
}
.form-feedback.is-success {
  display: block;
  background: #e8f8ee;
  border: 1px solid #a3ddb8;
  color: #1a7a3a;
}
.form-feedback.is-error {
  display: block;
  background: var(--yellow-50);
  border: 1px solid var(--yellow-100);
  color: #8a6a00;
}

.form-note {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

/* Honeypot util */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ══════════════════════════════════════
   8. FOOTER
   ══════════════════════════════════════ */
.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--yellow-300));
}
.site-footer {
  background: var(--slate-800);
  color: var(--white);
  padding: 60px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-inner strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}
.footer-inner > div > p {
  font-size: .86rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}
.footer-col-title {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links a[data-cookies-reopen] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.footer-links a[data-cookies-reopen]::before {
  content: '⚙';
  font-size: .9em;
  opacity: .6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, transform .2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-legal-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-legal-links a:hover { color: var(--white); }

/* ══════════════════════════════════════
   9. WHATSAPP FLOTANTE
   ══════════════════════════════════════ */
#wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .3s, box-shadow .3s;
  animation: wa-enter .6s .5s ease both;
}
#wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
@keyframes wa-enter {
  from { opacity: 0; transform: scale(0) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ══════════════════════════════════════
   10. COOKIE BANNER
   ══════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--white);
  border-top: 3px solid var(--blue-700);
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  padding: 22px 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
#cookie-banner.is-visible { transform: translateY(0); }
.ck-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
}
.ck-text {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.55;
}
.ck-text strong { color: var(--slate-800); font-weight: 600; }
.ck-text a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ck-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ck-btn {
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform .2s, background .2s;
  white-space: nowrap;
}
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn-accept {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
}
.ck-btn-reject {
  background: var(--off-white);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}
.ck-btn-config {
  background: transparent;
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}

/* Cookie config modal */
#cookie-config {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20,16,12,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#cookie-config.is-open { display: flex; }
.ck-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.ck-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}
.ck-modal-intro {
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}
.ck-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.ck-row-text { flex: 1; }
.ck-row-text strong {
  display: block;
  font-size: .92rem;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.ck-row-text span {
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.ck-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ck-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ck-switch-track {
  position: absolute;
  inset: 0;
  background: var(--slate-200);
  border-radius: 999px;
  transition: background .2s;
}
.ck-switch-track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ck-switch input:checked + .ck-switch-track { background: var(--blue-500); }
.ck-switch input:checked + .ck-switch-track::before { transform: translateX(18px); }
.ck-switch input:disabled + .ck-switch-track {
  opacity: .55;
  cursor: not-allowed;
}
.ck-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   11. NEWSLETTER POPUP
   ══════════════════════════════════════ */
#nl-popup {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20,16,12,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: nlp-fade-in .35s ease;
}
#nl-popup.is-open { display: flex; }
@keyframes nlp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.nlp-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  animation: nlp-scale .45s .1s cubic-bezier(.22,1,.36,1) both;
  text-align: center;
}
@keyframes nlp-scale {
  from { opacity: 0; transform: scale(.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.nlp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.nlp-close:hover {
  background: var(--blue-50);
  color: var(--slate-800);
}
.nlp-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 14px;
}
.nlp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--slate-800);
  margin-bottom: 10px;
}
.nlp-title em { font-style: italic; color: var(--blue-500); }
.nlp-desc {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 22px;
}
.nlp-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.nlp-input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--slate-200);
  background: var(--off-white);
  font-size: .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.nlp-input:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(74,134,190,.12);
}
.nlp-btn {
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(74,134,190,.3);
}
.nlp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(74,134,190,.4);
}
.nlp-btn:disabled { opacity: .55; cursor: wait; transform: none !important; }
.nlp-consent {
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.nlp-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.nlp-consent a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nlp-fb {
  font-size: .85rem;
  min-height: 1.2em;
  margin-top: 6px;
}
.nlp-fb.is-success { color: #1a7a3a; }
.nlp-fb.is-error   { color: #8a6a00; }

/* ══════════════════════════════════════
   12. ANIMACIONES
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-1 { animation: fadeUp .7s ease both; }
.anim-2 { animation: fadeUp .7s .1s ease both; }
.anim-3 { animation: fadeUp .7s .2s ease both; }
.anim-4 { animation: fadeUp .7s .3s ease both; }
.anim-5 { animation: fadeUp .7s .4s ease both; }

/* ══════════════════════════════════════
   13. BREAKPOINTS COMUNES
   ══════════════════════════════════════ */
@media (max-width: 1060px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-100);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(74,134,190,.12);
    z-index: 800;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 12px 14px;
    font-size: .95rem;
  }
  .nav-wa {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center;
    border-radius: var(--radius-sm) !important;
  }

  .section { padding: 56px 0; }
  .page-hero { padding: 18px 0 22px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-legal-links { justify-content: center; }

  .btn { width: 100%; }

  /* Cookie banner mobile */
  .ck-inner { grid-template-columns: 1fr; gap: 14px; }
  .ck-actions { justify-content: stretch; }
  .ck-actions .ck-btn { flex: 1; min-width: 0; }

  /* WhatsApp flotante mobile */
  #wa-float {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, var(--container)); }

  .nlp-modal { padding: 32px 22px 22px; }
  .nlp-form { flex-direction: column; }
  .nlp-btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
