/* =========================================================
   Canines Connect · Estilos
   Primera pantalla igual que la maqueta de Natasha,
   en azul marino y dorado. Sin fuentes externas.
   ========================================================= */

/* 1. Colores: cambiar aquí cambia toda la web */
:root {
  --ink: #0b2a4f;          /* texto principal (azul del logo, aprox.) */
  --navy: #163a66;         /* botones */
  --navy-deep: #081f3a;    /* pie de página */
  --gold: #b89558;
  --gold-light: #e4c990;   /* dorado sobre fondo oscuro */
  --gold-text: #735a31;    /* dorado sobre fondo claro (contraste AA: 4.99 sobre arena, 5.86 sobre crema) */
  --cream: #f7f3ea;
  --sand: #ddd3c2;
  --white: #fffdfa;
  --muted: #4f5f73;        /* texto secundario */
  --muted-light: #c3cddb;  /* texto secundario sobre oscuro */
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

/* 3. Piezas reutilizables */
.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kicker { color: var(--gold-text); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 22px;
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.button-light { background: var(--white); color: var(--navy); }
@media (hover: hover) { .button-light:hover { background: var(--cream); } }
.button-dark { background: var(--navy); color: var(--white); }
@media (hover: hover) { .button-dark:hover { background: var(--ink); } }

.text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

/* 4. Cabecera */
.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto; /* menú centrado entre el logo y el botón */
  align-items: center;
  gap: 30px;
  height: 88px;
  padding: 0 8vw; /* mismo margen lateral que el resto de la página */
  background: rgba(247, 243, 234, 0.96);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.header-logo-mark {
  width: auto;
  height: 32px;
}
.brand strong {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Huella en la "O" de CONNECT, como en el logo */
.paw-o { display: inline-block; }
.paw-o svg { width: 0.95em; height: 0.95em; margin: 0 0.01em; fill: var(--gold); vertical-align: -0.11em; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
nav { display: flex; justify-self: center; gap: 34px; font-size: 14px; }
nav a { padding: 10px 0; white-space: nowrap; }
@media (max-width: 1320px) { nav { gap: 24px; } } /* pantallas medianas: el menú en español cabe en una línea */
@media (hover: hover) { nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.nav-cta {
  justify-self: end;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (hover: hover) { .nav-cta:hover { background: var(--navy); color: var(--white); } }
.menu-toggle { display: none; } /* botón de menú: solo en móvil y tableta */
/* Idioma (EN | ES) junto al botón de la cabecera */
.header-actions { display: flex; align-items: center; justify-self: end; gap: 22px; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.12em; white-space: nowrap; flex-shrink: 0; }
.lang-switch > * + *::before { content: "|"; display: inline-block; margin-right: 8px; color: #b9ad98; font-weight: 400; text-decoration: none; }
.lang-switch [aria-current] { font-weight: 700; }
.lang-switch a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .lang-switch a:hover { color: var(--ink); } }
.menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* 5. Portada */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(100vh - 88px);
  min-height: 690px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2b4f7d, var(--navy-deep)); /* si falta la foto */
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(8, 31, 58, 0.78) 0%,
    rgba(8, 31, 58, 0.46) 42%,
    rgba(8, 31, 58, 0.06) 70%);
}
.hero-copy { position: relative; width: min(650px, 86vw); margin-left: 8vw; padding-bottom: 30px; }
h1 {
  margin: 24px 0;
  font-size: clamp(50px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h1 em { color: var(--gold-light); }
h1 { white-space: nowrap; }
.hero-copy > p { max-width: 520px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 35px; }
.hero-note {
  position: absolute;
  right: 8vw; /* alineado con el margen derecho del resto */
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.hero-note strong { font: 28px Georgia, serif; color: var(--gold-light); }

/* 6. Calendario social (solo el primer evento) */
.events-section { padding: 96px 8vw 80px; } /* mismo margen lateral que la portada y "Why we gather" */
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 38px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.08; letter-spacing: -0.02em; }
.calendar-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid #aeb8c6;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
@media (hover: hover) { .calendar-toggle:hover { border-color: var(--navy); } }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card { background: var(--white); border: 1px solid #e5dece; }
.event-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #7d93b0, #1f416b);
}
.event-art > span { position: absolute; top: 16px; left: 18px; font-size: 9px; letter-spacing: 0.18em; }
.event-content { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 18px; padding: 22px; }
.date-tile { width: 50px; padding-right: 15px; border-right: 1px solid var(--sand); text-align: center; }
.date-tile strong { display: block; font: 26px Georgia, serif; }
.date-tile span, .event-book span { font-size: 9px; letter-spacing: 0.15em; color: var(--gold-text); }
.event-info h3 { margin: 0 0 8px; font-size: 21px; }
.event-info p { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.event-info p > svg { flex: none; }
.event-info p.event-parking { align-items: flex-start; }
.event-info p.event-parking > svg { margin-top: 3px; }
.venue-link { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
@media (hover: hover) { .venue-link:hover { color: var(--navy); text-decoration-thickness: 2px; } }
.event-info .venue-links { gap: 14px; padding-left: 21px; font-size: 12px; }
.venue-links a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.venue-links a::after { content: " ↗"; }
.event-book { grid-column: 2; text-align: left; }
.event-book span, .event-book strong { display: inline; margin-right: 6px; }
.event-book strong { font: 17px Georgia, serif; }
.event-book button { display: block; margin-top: 10px; }
.event-book button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  background: none;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}

/* Tarjeta de ADANA */
.charity-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 6%;
  color: #fff;
  background: linear-gradient(115deg, #bf9d5d, #8a6934);
}
.charity-label { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.charity-card h3 { margin: 16px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.charity-card p { max-width: 560px; margin: 0 0 22px; font: 17px/1.65 Georgia, serif; color: #fff8e9; }
.charity-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.charity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.charity-actions .button { color: #6b4f24; }
.charity-qr { margin: 0; padding: 12px 12px 8px; background: #fff; text-align: center; }
.charity-qr img { width: 148px; height: 148px; image-rendering: pixelated; }
.charity-qr figcaption { margin-top: 4px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b4f24; }
.charity-link {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Ventanas (calendario y reserva) */
.modal {
  width: min(520px, calc(100% - 32px));
  max-height: 94vh;
  padding: 24px;
  border: 1px solid #d9cdb9;
  background: #f9f6ef;
  color: var(--ink);
}
.booking-modal { width: min(610px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.modal h2 { margin: 0 0 8px; padding-right: 30px; font: 34px Georgia, serif; }
.modal-text { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
/* La X se queda siempre visible arriba a la derecha, también al bajar por el formulario */
.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -12px -12px 0 8px;
  padding: 0;
  border: 1px solid #d9cdb9;
  border-radius: 50%;
  background: #f9f6ef;
  box-shadow: 0 2px 8px rgba(8, 31, 58, 0.12); /* se ve como botón aunque pase por encima del texto */
  color: var(--ink);
  opacity: 0.7;
  cursor: pointer;
}
.modal-close:hover { opacity: 1; }

.calendar { width: max-content; margin: 0 auto 20px; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calendar-nav button { padding: 6px 10px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.calendar-month { font-size: 14px; font-weight: 500; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 4px; text-align: center; font-size: 14px; }
.calendar-grid .weekday { font-size: 12.8px; color: var(--muted); }
.calendar-grid span, .calendar-grid button { display: grid; place-items: center; height: 34px; }
.calendar-grid .outside { color: #a6aebb; }
.calendar-grid button {
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) { .calendar-grid button:hover { background: #e4ddcf; } }
.calendar-list { display: grid; gap: 8px; }
.calendar-list button {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #ded4c3;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.calendar-list button span { font-size: 11px; color: var(--gold-text); }
.calendar-list button strong { font: 16px Georgia, serif; }
.calendar-empty { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

.booking-kicker { font-size: 10px; letter-spacing: 0.2em; color: var(--gold-text); }
.booking-modal h2 { margin-top: 10px; }
.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px 0;
  border-block: 1px solid #ded4c3;
  font-size: 13px;
}
.booking-meta span { display: flex; align-items: center; gap: 7px; }
.booking-meta svg { flex: none; }
.booking-meta span.meta-multiline { align-items: flex-start; }
.booking-meta span.meta-multiline > svg { margin-top: 3px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form > label { display: grid; gap: 8px; font-size: 10px; letter-spacing: 0.12em; }
.booking-form input[type="text"],
.booking-form input[type="email"] {
  height: 45px;
  padding: 0 12px;
  border: 1px solid #d7cbb7;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
}
.booking-form .check,
.booking-form .guest-field,
.booking-form .donation-note,
.booking-form .button,
.booking-form .attendance,
.booking-form .dog-fields,
.booking-form .attendance-summary,
.booking-form .dog-rules,
.booking-form .waitlist-form-note,
.form-status { grid-column: 1 / -1; }
.booking-form .field { display: grid; gap: 8px; font-size: 10px; letter-spacing: 0.12em; }
.attendance { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.attendance legend { margin-bottom: 8px; padding: 0; font-size: 10px; letter-spacing: 0.12em; }
.attendance .option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #ded4c3; background: var(--white); font-size: 14px; cursor: pointer; }
.attendance .option input { margin-top: 3px; accent-color: var(--navy); }
.attendance .option:has(input:checked) { border-color: var(--navy); }
.attendance-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.attendance-note a { text-decoration: underline; }
.dog-fields { display: grid; gap: 14px; }
.dog-fields[hidden], .booking-form .field[hidden] { display: none; }
.dog-count-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-form[hidden], .booking-done[hidden] { display: none; }
.booking-done { display: grid; justify-items: center; gap: 14px; padding: 26px 0 6px; text-align: center; }
.booking-done svg { color: var(--gold-text); }
.booking-done-title { margin: 0; font-size: 28px; }
.booking-done-title:focus { outline: none; }
.booking-done-text { max-width: 46ch; margin: 0; color: var(--muted); line-height: 1.6; }
.attendance-summary { margin: 0; font-size: 13px; color: var(--ink); }
.attendance-summary:empty { display: none; }
.dog-rules { margin: 0; padding-left: 12px; border-left: 2px solid var(--gold); font-size: 12px; color: var(--muted); }
/* Lista de espera (8/11): aviso encima del botón cuando el evento está lleno */
.waitlist-form-note { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(184, 149, 88, 0.12); font-size: 13px; line-height: 1.5; color: var(--ink); }
.booking-form .check { display: flex; align-items: flex-start; gap: 10px; letter-spacing: 0; font-size: 14px; }
.booking-form .check input { margin-top: 3px; accent-color: var(--navy); }
.booking-form .check strong { display: block; font-weight: 400; }
.booking-form .check small { display: block; font-size: 12px; color: var(--muted); }
.booking-form .check a { text-decoration: underline; }
.donation-note {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ded4c3;
  background: var(--white);
  color: var(--gold-text);
}
.donation-note svg { flex: none; margin-top: 2px; }
.donation-note p { margin: 0; font-size: 13px; color: var(--muted); }
.donation-note strong { color: var(--ink); }
.booking-form .button { justify-content: center; }
.form-status { margin: 0; font-size: 13px; color: var(--muted); }

/* 7. Pie de página */
footer {
  display: grid;
  grid-template-columns: auto 1fr auto; /* frase centrada entre el logo y los enlaces */
  align-items: center;
  gap: 25px;
  padding: 55px 8vw 30px; /* mismo margen lateral que el resto de secciones */
  background: var(--navy-deep);
  color: #fff;
}
.footer-logo-link { display: block; width: 190px; }
.footer-logo { width: 100%; height: auto; }
footer p { color: var(--muted-light); text-align: center; text-wrap: balance; }
/* Pie (9/11, opción C): arriba iconos de email y redes; abajo ©, enlaces legales y crédito */
footer > .footer-contact { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.footer-social { display: inline-grid; place-items: center; width: 40px; height: 40px; color: #c9a96a; transition: color 0.2s; } /* dorado del logo; 40 px: zona fácil de tocar en el móvil */
.footer-social svg { width: 18px; height: 18px; stroke-width: 1.2; }
@media (hover: hover) { .footer-social:hover { color: #fff; } }
footer > small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #8e9db3; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; }
.footer-legal a { color: #b4c0d0; text-decoration: none; }
@media (hover: hover) { .footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; } }
/* Crédito: más pequeño y suave que el del negocio (contraste 5.3:1, AA) */
footer > small .footer-credit { font-size: 11px; letter-spacing: 0.04em; color: #8494ab; text-decoration: none; text-underline-offset: 3px; }
@media (hover: hover) { footer > small .footer-credit:hover { color: #fff; text-decoration: underline; } }

/* 8. Menú con botón: por debajo de 1180 px el menú no cabe en una línea */
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  nav { display: none; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--navy);
    background: none;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .site-header.menu-open nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-self: stretch; /* el menú abierto ocupa todo el ancho */
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 8vw 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 12px 24px rgba(8, 31, 58, 0.12);
  }
  .site-header.menu-open nav a { padding: 14px 0; border-bottom: 1px solid #e5dece; font-size: 16px; }
  .site-header.menu-open nav a:last-child { border-bottom: 0; }
}

/* 9. Tableta */
@media (max-width: 900px) {
  .site-header { padding-inline: 6vw; }
  .site-header.menu-open nav { padding-inline: 6vw; }
  .hero { min-height: 650px; }
  .hero-copy { margin-left: 6vw; }
  .hero-note { display: none; }
  .events-section { padding-top: 70px; }
  .section-heading { align-items: start; }
  .event-grid { grid-template-columns: 1fr; }
  .charity-card { grid-column: auto; }
  .event-art { height: 120px; }
  footer { grid-template-columns: auto minmax(0, 1fr); }
  footer p { display: none; }
  footer > .footer-contact { justify-content: flex-end; }
}

/* 9/11: entre 561 y 720 px no cabían logo + EN | ES + "View events" + menú: el botón se esconde antes (el menú y la portada ya llevan a los eventos) */
@media (max-width: 720px) {
  .nav-cta { display: none; }
}

/* 10. Móvil */
@media (max-width: 560px) {
  .site-header { grid-template-columns: 1fr auto auto; height: 76px; gap: 12px; padding: 0 22px; } /* logo | idioma | menú */
  .brand { gap: 8px; }
  .header-logo-mark { height: 26px; }
  .brand strong { font-size: 15px; }
  .nav-cta { display: none; } /* en el móvil: menú + botón "Explore events" de la portada */
  .menu-toggle { width: 38px; height: 38px; }
  .site-header.menu-open nav { padding: 4px 22px 12px; }
  .hero { height: calc(100svh - 76px); }
  .hero > img { object-position: 62% 50%; } /* móvil: que se vean los perros */
  .hero-copy { width: auto; margin: 0 22px; }
  .hero-shade { background: linear-gradient(90deg, rgba(8, 31, 58, 0.8), rgba(8, 31, 58, 0.28)); }
  .hero-copy > p { font-size: 16px; }
  h1 { font-size: 10vw; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-heading { gap: 20px; }
  .calendar-toggle { padding: 12px; }
  .calendar-toggle span { display: none; }
  .charity-card { padding: 32px 24px; }
  .charity-body { grid-template-columns: 1fr; }
  .charity-qr { display: none; } /* en el móvil no se puede escanear la propia pantalla: basta el botón */
  .newsletter-fields { grid-template-columns: 1fr; }
  .booking-form { grid-template-columns: 1fr; }
  .booking-meta { display: grid; gap: 10px; }
  .calendar-grid { grid-template-columns: repeat(7, 32px); }
  /* Pie en el móvil: centrado, con la frase de la marca visible */
  footer { grid-template-columns: 1fr; justify-items: center; gap: 22px; text-align: center; }
  footer p { display: block; margin: 0; }
  footer > small { display: block; width: 100%; }
  footer > small span { display: block; }
  footer > small .footer-credit { display: inline-block; margin-top: 10px; }
  /* Contacto en una fila y enlaces legales en otra */
  footer > .footer-contact { flex-wrap: wrap; justify-content: center; }
  .footer-legal { justify-content: center; margin: 12px 0 4px; }
  .footer-logo-link { width: 170px; }
}

/* Móviles muy estrechos (menos de 350 px): que la cabecera quepa en una línea */
@media (max-width: 400px) { /* logo + EN | ES + menú caben sin desbordar */
  .site-header { gap: 8px; padding: 0 16px; }
  .lang-switch { gap: 6px; }
  .lang-switch > * + *::before { margin-right: 6px; }
  .brand { gap: 6px; }
  .header-logo-mark { height: 22px; }
  .brand strong { font-size: 12px; letter-spacing: 0.05em; }
}

/* 10. Accesibilidad */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Aviso de privacidad del formulario */
.privacy-note { grid-column: 1 / -1; margin: -6px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.privacy-note a { text-decoration: underline; }
/* Más eventos próximamente */
.more-events {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* Por qué nos reunimos */
.story {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  align-items: start;
  gap: 5vw;
  padding: 110px 8vw;
  background: var(--white);
}
.story-number { padding-top: 12px; border-top: 1px solid var(--gold-text); font: italic 18px Georgia, serif; color: var(--gold-text); }
.story h2 { margin: 15px 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.04; }
.story h2 em { color: var(--gold-text); }
.story-copy { max-width: 520px; padding-top: 34px; }
.story-copy p { font: 18px/1.7 Georgia, serif; color: var(--muted); }
.story-copy .story-tagline { margin-top: 26px; font-size: 24px; font-style: italic; line-height: 1.3; color: var(--ink); }
.story-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold-text);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* La experiencia */
.experience { padding: 90px 8vw; text-align: center; background: #e8e1d3; }
.experience > .kicker { justify-content: center; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1150px; margin: 55px auto 0; }
.experience article { padding: 15px 60px; border-right: 1px solid #c9bda8; }
.experience article:last-child { border: 0; }
.experience svg { color: var(--gold-text); }
.experience h3 { margin: 20px 0 10px; font-size: 25px; }
.experience p { line-height: 1.6; color: var(--muted); }

/* Cierre */
.closing { padding: 105px 20px; text-align: center; background: var(--navy); color: #fff; }
.closing > svg { margin-bottom: 14px; color: var(--gold-light); }
.closing > span { display: block; font-size: 11px; letter-spacing: 0.22em; color: var(--gold-light); }
.closing h2 { margin: 18px 0 18px; font-size: clamp(44px, 5vw, 68px); line-height: 1.06; text-wrap: balance; }
.closing h2 em { display: block; color: var(--gold-light); }
.closing-text { max-width: 560px; margin: 0 auto 36px; font-size: 17px; line-height: 1.6; color: var(--muted-light); }

/* Newsletter (dentro de "Join the society") */
.newsletter-form { display: grid; gap: 16px; max-width: 620px; margin: 0 auto; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.16); text-align: left; }
.newsletter-form[hidden], .newsletter-done[hidden] { display: none; }
.newsletter-title { margin: 0; font-size: 26px; line-height: 1.25; text-align: center; color: #fff; }
.newsletter-intro { margin: -6px 0 4px; font-size: 15px; text-align: center; color: var(--muted-light); }
.newsletter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsletter-fields input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.newsletter-fields input::placeholder { color: #b8c4d4; }
.newsletter-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted-light); }
.newsletter-check input { margin-top: 3px; accent-color: var(--gold-light); }
.newsletter-check a { color: #fff; text-decoration: underline; }
.newsletter-form .button { justify-self: center; }
.newsletter-status { margin: 0; min-height: 1em; font-size: 13px; text-align: center; color: var(--muted-light); }
.newsletter-status:empty { display: none; }
.newsletter-done { max-width: 520px; margin: 0 auto; padding: 22px; border: 1px solid rgba(228, 201, 144, 0.5); font: 18px/1.6 Georgia, serif; color: var(--gold-light); }
.newsletter-done:focus { outline: none; }
.event-info .event-limited { margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }

@media (max-width: 900px) {
  .events-section { padding-inline: 6vw; }
  .story { grid-template-columns: 40px 1fr; }
  .story-copy { grid-column: 2; }
  .experience article { padding: 15px 25px; }
}
@media (max-width: 650px) {
  .events-section { padding-inline: 22px; }
  .story { grid-template-columns: 1fr; padding: 75px 22px; }
  .story-number { width: 40px; }
  .story-copy { grid-column: 1; padding-top: 0; }
  .experience { padding: 70px 22px; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid { margin-top: 30px; }
  .experience article { padding: 18px 5px; border-right: 0; border-bottom: 1px solid #c9bda8; }
  .experience h3 { margin: 12px 0 6px; }
  .more-events { flex-wrap: wrap; text-align: center; }
  .closing h2 { font-size: 34px; }
  .closing h2 br { display: none; }
}

/* Páginas legales (privacidad) */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 22px 100px; }
.legal h1 { margin: 14px 0 6px; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; white-space: normal; }
.legal-updated { margin: 0 0 40px; font-size: 13px; color: var(--muted); }
.legal h2 { margin: 40px 0 10px; font-size: 24px; }
/* Tabla de la Política de cookies (9/11): en el móvil se desplaza dentro de su caja, no la página */
.legal-table { overflow-x: auto; margin: 16px 0; }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid rgba(11, 42, 79, 0.15); text-align: left; vertical-align: top; }
.legal-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { /* en el móvil, cada fila se lee como una ficha */
  .legal-table table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr, .legal-table td { display: block; }
  .legal-table td { padding: 8px 0; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}
.legal p, .legal li { color: var(--muted); }
.legal a { text-decoration: underline; }
.legal-back { margin-top: 50px; }
/* Página 404: el pie siempre abajo, aunque la página sea corta */
body:has(.not-found) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(.not-found) > main { flex: 1; width: 100%; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.legal .not-found-actions .button { text-decoration: none; color: var(--white); }
.not-found-es { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(11, 42, 79, .15); }
.not-found-es .not-found-actions { margin-top: 18px; }

/* Community Partners */
.partners { max-width: 1100px; margin: 0 auto; padding: 80px 22px 100px; }
.partners h1 { margin: 14px 0 12px; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; white-space: normal; text-wrap: balance; }
.partners-intro { max-width: 60ch; margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.partner-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--sand); background: var(--white); }
.partner-cat { font-size: 12px; letter-spacing: 0.18em; color: var(--gold-text); }
.partner-card h2 { margin: 0; font-size: 22px; }
.partner-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.partner-logo-img { box-sizing: border-box; width: 176px; height: 96px; padding: 8px 14px; object-fit: contain; border-radius: 12px; border: 1px solid var(--sand); background: #fff; }
.partner-card .partner-offer { font-size: 13px; color: var(--ink); }
/* Contact links as icons (same icons as the footer); the name is in a hidden label and in the tooltip */
.partner-card .partner-links { display: flex; flex-wrap: wrap; gap: 4px; margin: auto 0 0 -10px !important; padding-top: 8px; }
.partner-links a { display: inline-grid; place-items: center; width: 40px; height: 40px; color: #a8874d; transition: color 0.2s; } /* 40 px: easy to tap; icon left edge aligned with the text via the -10px margin. Gold of the brand, slightly deeper for 3:1 contrast on the card (3.3:1) */
.partner-links svg { width: 19px; height: 19px; stroke-width: 1.2; } /* fine line, like the footer icons */
@media (hover: hover) { .partner-links a:hover { color: var(--navy); } }
.partner-links a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Pie (10/11): enlaces legales centrados en la página. El menú de arriba se queda con huecos iguales a los dos lados (decisión de Cristina: se ve más equilibrado) */
@media (min-width: 901px) {
  footer > small { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  footer > small .footer-credit { justify-self: end; }
}

/* Community Partners (10/11): 5 partners, two columns; offer highlighted */
.partner-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-card { scroll-margin-top: 110px; }
.partner-card h2 { margin: 0; font-size: 24px; line-height: 1.25; }
.partner-card .partner-offer-box { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--cream); color: var(--ink); font-size: 14px; line-height: 1.5; }
.partner-offer-label { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
@media (min-width: 761px) {
  /* Join card: fills the gap next to an odd last partner; with an even number of partners it becomes a full-width band. Partners always keep the same size. */
  .partner-grid--two > .partner-card--join:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .partner-grid--two { grid-template-columns: 1fr; } }
/* "Meet our event collaborators" on the event section */
.event-collaborators { margin: 28px 0 0; padding: 22px 24px; border: 1px solid var(--sand); background: var(--white); }
.event-collaborators h3 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); font-family: inherit; }
.event-collaborators ul { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 14px; padding: 0; list-style: none; }
.event-collaborators li a { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 14px; text-decoration: none; }
.event-collaborators li a:hover span:last-child, .event-collaborators li a:focus-visible span:last-child { text-decoration: underline; }
.event-collaborators img { box-sizing: border-box; width: 104px; height: 56px; padding: 4px 8px; flex: none; border-radius: 10px; border: 1px solid var(--sand); object-fit: contain; background: #fff; }
.event-collaborators-all { font-size: 13px; color: var(--navy); }
/* All partner logos share one box size so no partner looks more prominent than another. */
.partner-card--join { justify-content: center; align-items: center; text-align: center; border-style: dashed; border-color: var(--gold); background: var(--cream); padding: 36px 28px; }
.partner-card--join h2 { font-size: 24px; }
.partner-card--join p { max-width: 42ch; margin: 0 auto 12px; }
/* Event collaborators strip (10/11, v2): fills the full width. Equal columns with fine gold dividers, logo above the name, all centred (same style as "The Canines Connect experience"). Works for any number of collaborators. */
@media (min-width: 561px) {
  .event-collaborators { padding: 30px 24px 26px; text-align: center; }
  .event-collaborators h3 { margin-bottom: 22px; }
  .event-collaborators ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-bottom: 20px; }
  .event-collaborators li + li { border-left: 1px solid var(--sand); }
  .event-collaborators li a { flex-direction: column; justify-content: flex-start; gap: 12px; height: 100%; padding: 4px 16px; font-size: 15px; }
  .event-collaborators img { width: 168px; height: 92px; padding: 8px 14px; border-radius: 12px; }
}
/* Event card photo (10/11). AI-generated illustration (sign text removed, so it does not depict the real venue); the alt text says it is an illustration. No visible label (decision of Cristina, 10/11). */
.event-art--photo { height: 200px; background: #1f416b; overflow: hidden; }
.event-art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 900px) { .event-art--photo { height: 190px; } }
/* Partners page (10/11): main menu in the header, and a navy title band (same colours as "Join the club") so the top of the page doesn't feel empty */
#main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.page-hero { padding: 72px 22px 64px; text-align: center; background: var(--navy); color: #fff; }
.page-hero .kicker { justify-content: center; color: var(--gold-light); }
.page-hero h1 { margin: 14px 0 14px; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; color: #fff; text-wrap: balance; }
.page-hero .partners-intro { max-width: 60ch; margin: 0 auto; font-size: 17px; color: var(--muted-light); line-height: 1.6; }
.page-hero + .partners { padding-top: 56px; }
/* Site review (10/11): the event card's "Request your place" is now a real button, like the others (it was 9 px text); event details a little larger */
.event-book .button { display: inline-flex; gap: 20px; margin-top: 14px; padding: 14px 20px; border: 0; background: var(--navy); color: var(--white); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; }
@media (hover: hover) { .event-book .button:hover { background: var(--ink); } }
.event-book .button span { display: inline; margin: 0; font-size: inherit; letter-spacing: inherit; color: inherit; }
.event-info p { font-size: 14px; }
.event-info .venue-links { font-size: 13px; }
/* Events layout (10/11, v2): side by side kept, but 50/50 instead of 1/3 + 2/3, so the event card (now with photo and button) and the ADANA card end up about the same height, without empty areas */
@media (min-width: 901px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charity-card { grid-column: auto; padding: 40px 7%; }
  .event-art--photo { height: clamp(220px, 20vw, 270px); }
  .event-art--photo img { object-position: 50% 0%; } /* keep the logo and the faces; only the table edge is cropped */
}
@media (min-width: 901px) and (max-width: 1199px) { .charity-body { grid-template-columns: 1fr; } .charity-qr { display: none; } } /* narrow laptops and tablets: half-width ADANA card is too narrow for text + QR; the "Donate" button is enough (as on mobile) */
/* Partners page (10/11): same width and side margins as the home page sections (8vw), so cards line up with the header logo and the footer */
.page-hero + .partners, .partners { max-width: none; padding-left: 8vw; padding-right: 8vw; }
@media (max-width: 900px) { .partners { padding-left: 6vw; padding-right: 6vw; } }
@media (max-width: 650px) { .partners { padding-left: 22px; padding-right: 22px; } }
/* Fine review (10/11): */
.date-tile span, .event-book > span { font-size: 11px; } /* "NOV" / "ENTRADA": were 9 px */
@media (max-width: 900px) { .event-art--photo { height: auto; aspect-ratio: 16 / 9; } } /* tablet and mobile: whole photo, logo not cut */
@media (max-width: 420px) { /* small phones: date above the details, so the text gets the full width */
  .event-content { grid-template-columns: 1fr; }
  .date-tile { display: flex; align-items: baseline; gap: 8px; width: auto; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--sand); text-align: left; }
  .date-tile strong { display: inline; }
  .event-book { grid-column: auto; }
}
/* Collaborators strip (11/11, Natasha): all 5 partners. Logos shrink with the column so 5 fit side by side; below 1100 px they wrap in a centred grid. */
.event-collaborators img { max-width: 100%; height: auto; aspect-ratio: 168 / 92; }
@media (min-width: 561px) and (max-width: 1099px) {
  .event-collaborators ul { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 22px; }
  .event-collaborators li { flex: 0 0 33.333%; }
  .event-collaborators li + li { border-left: 0; }
}

/* Menú: "Event collection" / "Experiencias" oculto hasta que tenga página propia (Natasha, WhatsApp 12/11, 0:39) */
.nav-later { display: none; }
