.event-itinerary-list li::marker {
  font-weight: bold;
  font-size: 1em;
}
/* Moved from inline <style> in landingPage.html */
:root {
  /* Paleta más rica y cálida */
  --primary-gold: #d4910a;
  --accent-gold: #fdb913;
  --rich-cream: #f7f0e1;
  --warm-white: #fdfbf6;
  --deep-brown: #2a1810;
  --medium-brown: #4a3424;
  --light-brown: #6b4f3a;
  --text-dark: #1a1a1a;
  --text-medium: #3c3c3c;
  --text-light: #666666;
  --shadow: 0 4px 25px rgba(212, 145, 10, 0.15);
  --shadow-lg: 0 8px 40px rgba(212, 145, 10, 0.25);
  --shadow-warm: 0 4px 20px rgba(42, 24, 16, 0.1);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --max-width: 1200px;
  --header-height: 120px; /* altura base del header para evitar solapamientos */
} 

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--rich-cream) 0%, #f2e6cc 50%, var(--rich-cream) 100%);
  color: var(--text-dark);
  /* Global site font stack */
  font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  padding-top: var(--header-height); /* espacio para header fijo */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(212, 145, 10, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(253, 185, 19, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Full-bleed container */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: 0;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, var(--deep-brown) 0%, var(--medium-brown) 100%);
  color: var(--warm-white);
  padding: 2rem;
  text-align: center;
  position: fixed; /* fijado en la parte superior */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
  overflow: visible;
  border-radius: 0;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 185, 19, 0.1) 0%, transparent 70%);
  animation: subtle-rotate 40s linear infinite;
}

@keyframes subtle-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem; /* small padding for edge-to-edge views */
  min-height: calc(var(--header-height) - 12px); /* slight offset to account for interior spacing */
}

.logo {
  width: 96px;
  height: auto;
  border-radius: 0px;
  box-shadow: 0 4px 20px rgba(253, 185, 19, 0.3);
  border: 2px solid rgba(253, 185, 19, 0.2);
}

.header-text h1 {
  font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-text p {
  font-size: 1.1rem;
  color: rgba(253, 251, 246, 0.9);
  margin: 0;
  font-weight: 400;
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--rich-cream) 100%);
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--warm-white);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h2 {
  font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--deep-brown);
  text-shadow: 0 2px 4px rgba(212, 145, 10, 0.1);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-medium);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--warm-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-warm);
  border: 1px solid rgba(212, 145, 10, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-gold);
  display: block;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(212, 145, 10, 0.2);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--warm-white);
  box-shadow: var(--shadow);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: var(--warm-white);
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  box-shadow: var(--shadow-warm);
}

.btn-secondary:hover { background: var(--primary-gold); color: var(--warm-white); transform: translateY(-2px); }

/* Compact style for direct-contact buttons under the form */
.form-container > div[style*="border-top"] a.btn.btn-secondary {
  padding: 0.55rem 0.9rem;
  font-size: 0.98rem;
  border-radius: 14px;
  min-width: 180px;
  box-shadow: none;
  font-weight: 600;
}
.form-container > div[style*="border-top"] a.btn.btn-secondary i { font-size: 0.95em; }

.btn .btn-lines { display: flex; flex-direction: column; line-height: 1.15; align-items: center; text-align: center; }
.btn .btn-lines span + span { margin-top: 2px; }
.btn-phone .btn-lines span:first-child { font-weight: 800; }
.btn-phone .btn-lines span:last-child { opacity: 0.95; font-size: 0.98em; letter-spacing: 0.2px; }
.btn:focus-visible { outline: 3px solid rgba(253,185,19,0.45); outline-offset: 2px; }
.btn:active { transform: translateY(0) scale(0.99); box-shadow: var(--shadow-warm); }
.btn.is-hovered { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-lg), 0 0 0 2px rgba(253,185,19,0.18); }

.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }

.cta-compact { padding: 1.5rem 1rem !important; }
.cta-compact .section-title { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
.cta-compact .section-subtitle { font-size: 0.98rem !important; margin-bottom: 1rem !important; }
.cta-compact .btn { padding: 0.6rem 1.1rem !important; font-size: 1rem !important; border-radius: 12px !important; box-shadow: none !important; }
.cta-compact .btn-primary { padding: 0.6rem 1.2rem !important; }
.cta-compact .btn-secondary { padding: 0.45rem 1rem !important; }

/* ========== SECTIONS ========== */
.section { padding: 3.2rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.section:nth-child(even) { background: linear-gradient(135deg, var(--rich-cream), #f0e2c7); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.section-badge { display: inline-block; background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); color: var(--warm-white); padding: 0.8rem 1.5rem; border-radius: 20px; font-size: 1rem; font-weight: 700; margin-top: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow); }

/* Badge especial para "Memoria" - diseño elegante sin aspecto de botón */
.past-events-section .section-badge {
  background: none;
  color: var(--primary-gold);
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: 3px;
  position: relative;
  text-transform: uppercase;
  display: inline-block;
}

.past-events-section .section-badge::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold) 20%, var(--accent-gold) 50%, var(--primary-gold) 80%, transparent);
  opacity: 0.7;
}

.past-events-section .section-badge::after {
  content: '✦';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Estilo especial para el título de actividades anteriores */
.past-events-section .section-title {
  background: linear-gradient(135deg, var(--deep-brown) 40%, var(--medium-brown) 70%, var(--light-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.past-events-section .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--deep-brown), var(--medium-brown), transparent);
  border-radius: 2px;
}

.section-title {  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1.5rem; color: var(--deep-brown); text-shadow: 0 2px 4px rgba(42, 24, 16, 0.1); }
.section#eventos .section-title,
#eventos .section-title { color: var(--primary-gold); text-shadow: 0 2px 4px rgba(212, 145, 10, 0.1); }
.section-subtitle { font-size: 1.05rem; color: var(--text-medium); line-height: 1.5; font-weight: 400; margin: 0 auto; max-width: 86%; }

/* Neutral highlighted title for events badge (no button look) */
.titulo-propers {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 2rem); /* bigger for emphasis, responsive */
  text-transform: uppercase; /* requested: show in uppercase */
  background: linear-gradient(135deg, var(--deep-brown) 40%, var(--medium-brown) 70%, var(--light-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: none;
  border-radius: 0;
  padding: 0 0 0.5rem 0;
  margin: 1.25rem auto 0; /* more separation from the paragraph above */
  text-decoration: none;
  cursor: default;
  box-shadow: none;
  transition: none;
  position: relative;
}

/* Responsive adjustments to prevent content being hidden under fixed header */
@media (max-width: 900px) {
  :root { --header-height: 160px; }
  body { padding-top: var(--header-height); }
  .header { padding: 1.25rem 1rem; }
  .header-content { gap: 0.75rem; padding: 0 0.8rem; }
  .logo { width: 76px; }
  .header-text h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .header-text p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  /* On small phones header stacks taller; give extra top padding to body */
  :root { --header-height: 200px; }
  body { padding-top: var(--header-height); }
  .header { padding: 0.9rem 0.8rem; }
  .header-content { gap: 0.5rem; padding: 0 0.6rem; min-height: calc(var(--header-height) - 10px); }
  .logo { width: 64px; }
  .header-text h1 { font-size: 1.2rem; line-height: 1.15; }
  .header-text p { font-size: 0.95rem; }

  /* Make section intro narrower and add spacing below header for readability */
  .section { padding: 2rem 1rem; }
  .section-header { margin-top: 0.4rem; max-width: 92%; }
  .section-subtitle { font-size: 0.98rem; max-width: 100%; }
  .titulo-propers { margin-top: 1rem; font-size: 1.05rem; }
}

.titulo-propers::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--deep-brown), var(--medium-brown), transparent);
  border-radius: 2px;
}

.titulo-propers:hover,
.titulo-propers:focus { background: linear-gradient(135deg, var(--deep-brown) 40%, var(--medium-brown) 70%, var(--light-brown)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; box-shadow: none; }

/* ========== CARDS ========== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; margin: 4rem 0; }
.card { background: var(--warm-white); border: 1px solid rgba(212, 145, 10, 0.2); border-radius: var(--border-radius); padding: 2.5rem; box-shadow: var(--shadow-warm); transition: all 0.4s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-gold), var(--accent-gold)); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-gold); }
.card-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--warm-white); margin-bottom: 2rem; box-shadow: var(--shadow); }
.card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--deep-brown); }
.card-text { color: var(--text-medium); line-height: 1.7; margin-bottom: 2rem; font-weight: 400; }

/* ========== EVENTOS ========== */
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 3rem 0; align-items: stretch; grid-auto-rows: 1fr; }
.event-card { background: var(--warm-white); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: box-shadow 0.3s ease, transform 0.3s ease; border: 1px solid rgba(212, 145, 10, 0.2); display: flex; flex-direction: column; height: 100%; min-height: 0; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(212, 145, 10, 0.3); }
.event-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;            /* alturas consistentes en todas las tarjetas */
  object-fit: cover;
  object-position: center;
  background-color: var(--rich-cream);
  border-bottom: 4px solid var(--primary-gold);
  transition: transform 0.4s ease;
  display: block;
}
.event-card:hover .event-image { transform: scale(1.02); }
.event-content { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 0.5 0.5 auto; min-height: 0; }
/* --- EVENTO 2 (sólo segunda tarjeta) ajustes para igualdad visual con evento 1 --- */
.events-grid > .event-card:nth-child(2) .event-content { flex: 1 1 auto; }
.events-grid > .event-card:nth-child(2) .event-itinerary-list {
  height: auto;
  max-height: none;      /* sin límite: evita scroll interno */
  overflow: visible;     /* mostrar todo el contenido */
}
.events-grid > .event-card:nth-child(2) .event-date span { text-transform: uppercase; letter-spacing: 0.2px; }
/* Fecha con altura fija y ancho completo */
.event-date { min-height: 60px; height: auto; width: 100%; background: #f4b400; /* dorado cálido */ color: var(--warm-white); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px 20px; font-size: 0.98rem; font-weight: 400; letter-spacing: 0.3px; box-shadow: var(--shadow); }
.event-date i { font-size: 1rem; margin-right: 8px; }
.events-grid, .event-card, .event-content, .event-details, .event-actions, .event-description, .event-title {
  font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}
.event-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--deep-brown); line-height: 1.3; }
.event-description { font-weight: 500; }
.event-title { margin-top: 0.2rem; margin-bottom: 0.6rem; }
.event-description { color: var(--text-medium); line-height: 1.7; margin: 0; font-weight: 500; }
.event-subtitle { font-size: 17px; font-weight: 500; color: var(--deep-brown); margin: 0 0 0.75rem; }
.event-details { background: linear-gradient(135deg, var(--rich-cream), #f0e2c7); border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; border-left: 4px solid var(--primary-gold); box-shadow: var(--shadow-warm); }
.event-details p { margin: 0.8rem 0; color: var(--text-dark); font-size: 0.95rem; font-weight: 500; }
.event-details strong { color: var(--primary-gold); font-weight: 700; }
/* Show email as plain text (no link look) only inside event details */
.event-details a[href^="mailto:"] { color: var(--primary-gold); font-weight: 700; text-decoration: none; pointer-events: none; cursor: default; }
.event-details a[href^="mailto:"]:hover,
.event-details a[href^="mailto:"]:focus,
.event-details a[href^="mailto:"]:visited { color: var(--primary-gold); text-decoration: none; }
.event-card-details { margin-top: 1rem; }
/* Body wrapper for new event cards (title + subtitle + intro paragraph) */
.event-card-body {
  max-width: 600px;
  margin-bottom: 0.5rem;
}
actions { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; }

.past-event-full-text {
  margin-top: 1.5rem;
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--text-dark);
  border-left: 4px solid rgba(212,145,10,0.95); /* elegant accent */
  padding: 1rem 1.25rem;
  border-radius: 10px;
  max-width: 980px;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  position: relative;
  overflow: visible;
}

.past-event-full-text p {
  margin-bottom: 1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/* Decorative large initial letter (drop cap) */
.past-event-full-text p:first-of-type::first-letter {
  /* first letter rendered normally for a calm, elegant look */
  float: none;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  font-weight: inherit;
  color: inherit;
}

/* Two-column layout on wider screens for a magazine-like feel */
@media (min-width: 900px) {
  .past-event-full-text {
    column-count: 2;
    column-gap: 2rem;
  }
}

/* Ensure accessibility on small screens */
@media (max-width: 899px) {
  .past-event-full-text { column-count: 1; padding: 1rem; }
  /* On small screens render the first letter normally (no drop-cap) */
  .past-event-full-text p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    font-weight: inherit;
    color: inherit;
  }
}

/* Blockquote styling inside the full text to stand out */
.past-event-full-text blockquote {
  margin: 0.6rem 0 1rem 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, rgba(253,185,19,0.04), rgba(212,145,10,0.02));
  border-left: 4px solid var(--primary-gold);
  color: var(--text-medium);
  font-style: italic;
  border-radius: 8px;
}

/* Prevent images/galleries inside the text from breaking the columns awkwardly */
.past-event-full-text img { max-width: 100%; height: auto; column-span: all; display: block; margin: 0.8rem auto; }

/* Highlight for the inline important quote: subtle and elegant */
.highlight-quote {
  background: rgba(253,185,19,0.07);
  color: var(--deep-brown);
  font-weight: 700;
  padding: 0.06rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(212,145,10,0.06);
}

/* Upcoming activities list inside past-event text (no numbers) */
.upcoming-activities {
  list-style: none;
  margin: 0.6rem 0 0 0;
  padding-left: 0;
  display: block;
}
.upcoming-activities li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.4rem 0;
  font-weight: 600;
  color: var(--text-dark);
}
.upcoming-activities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(212,145,10,0.18);
}

@media (max-width: 899px) {
  .upcoming-activities li { font-weight: 600; }
  .upcoming-activities li::before { top: 0.7rem; width: 7px; height: 7px; }
}



/* ========== FORM ========== */
.form-container { background: var(--warm-white); border-radius: var(--border-radius-lg); padding: 2rem; margin: 2.2rem auto; max-width: 620px; box-shadow: var(--shadow-lg); border: 2px solid var(--accent-gold); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.form-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--primary-gold), var(--accent-gold)); }
.form-group { margin-bottom: 2rem; }
.form-label { display: block; color: var(--deep-brown); font-weight: 700; margin-bottom: 0.8rem; font-size: 1rem; }
.form-input { width: 100%; padding: 1.2rem; border: 2px solid rgba(212, 145, 10, 0.3); border-radius: 12px; background: var(--rich-cream); color: var(--text-dark); font-size: 1rem; transition: all 0.3s ease; font-weight: 500; }
.form-input:focus { outline: none; border-color: var(--primary-gold); background: var(--warm-white); box-shadow: 0 0 0 3px rgba(212, 145, 10, 0.1); }
.form-input::placeholder { color: var(--text-light); font-weight: 400; }
.form-select { appearance: none; background-image: url("../assets/img/select-arrow.svg"); background-position: right 1rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 3rem; }
#name,
#email { background: var(--rich-cream); }
.form-select { padding-right: 3rem; }
/* Inline validation */
.is-invalid { border-color: #c62828 !important; background: #fff4f4 !important; }
.form-error { color: #c62828; font-weight: 700; margin-top: 0.4rem; font-size: 0.95rem; }

/* ========== PAST EVENTS ========== */
.past-events-section { background: linear-gradient(135deg, var(--rich-cream), #f0e2c7); }
.past-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin: 3rem 0; }
.past-event-card { background: var(--warm-white); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: all 0.3s ease; border: 1px solid rgba(212, 145, 10, 0.2); display: flex; flex-direction: column; }
.past-event-card:hover { transform: translateY(-8px); box-shadow: 0 15px 45px rgba(212, 145, 10, 0.25); }
.past-event-image-wrapper { position: relative; overflow: hidden; }
.past-event-image { width: 100%; height: 240px; object-fit: cover; object-position: center; transition: transform 0.4s ease; display: block; }
.past-event-card:hover .past-event-image { transform: scale(1.05); }
.past-event-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); color: var(--warm-white); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow); }
.past-event-content { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.past-event-title { font-size: 1.5rem; font-weight: 700; color: var(--deep-brown); margin: 0; line-height: 1.3; }
.past-event-description { color: var(--text-medium); line-height: 1.7; margin: 0; font-weight: 500; }
/* Galería de fotos en la tarjeta */
.past-event-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.gallery-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.past-event-details { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; background: linear-gradient(135deg, var(--rich-cream), #f0e2c7); border-radius: 10px; border-left: 3px solid var(--primary-gold); }
.past-event-details p { margin: 0; color: var(--text-dark); font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.past-event-details i { color: var(--primary-gold); font-size: 1rem; }
.past-event-actions { display: flex; gap: 1rem; margin-top: auto; }
.btn-past-event { flex: 1; justify-content: center; min-width: 0; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; margin: 4rem 0; grid-auto-rows: 1fr; }
.testimonial { background: var(--warm-white); border-radius: var(--border-radius); padding: 2.5rem; box-shadow: var(--shadow-warm); border-left: 5px solid var(--primary-gold); transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial-quote { font-size: 1.15rem; color: var(--text-medium); font-style: italic; margin-bottom: 1.5rem; line-height: 1.7; font-weight: 400; flex: 1 1 auto; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; align-items: center; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); display: flex; align-items: center; justify-content: center; color: var(--warm-white); font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow); }
.testimonial-info { display: flex; flex-direction: column; justify-content: center; }
.testimonial-info h4 { color: var(--deep-brown); font-weight: 700; margin: 0 0 0.25rem 0; line-height: 1.1; }
.testimonial-info p { color: var(--text-light); font-size: 0.9rem; font-weight: 500; margin: 0; line-height: 1.1; }

/* ========== FOOTER ========== */
.footer { background: linear-gradient(135deg, var(--deep-brown), var(--medium-brown)); color: var(--warm-white); padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at center, rgba(253, 185, 19, 0.1) 0%, transparent 70%); }
.footer-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.footer h3 { font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif; margin-bottom: 1rem; font-size: 1.5rem; color: var(--accent-gold); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.footer-links { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.footer-links a { color: rgba(253, 251, 246, 0.9); text-decoration: none; transition: all 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: var(--accent-gold); transform: translateY(-2px); }

/* Ensure header/footer site logo shows as a pure image without effects */
.site-logo {
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.header .site-logo, .footer .site-logo { box-shadow: none !important; border: none !important; }

/* ========== RESPONSIVE ========== */
/* Responsive header height helpers */
@media (max-width: 1024px) {
  :root { --header-height: 92px; }
}
@media (max-width: 768px) {
  :root { --header-height: 84px; }
}
@media (max-width: 480px) {
  :root { --header-height: 72px; }
}
/* Destacar enlaces legales del pie */
.footer-legal p { display: flex; justify-content: center; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-legal a {
  color: var(--accent-gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: text-decoration-thickness 0.15s ease;
}
.footer-legal a:hover { text-decoration-thickness: 3px; }
.footer-legal a:focus { outline: none; text-decoration-thickness: 4px; }

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(253, 251, 246, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 145, 10, 0.35);
  box-shadow: 0 8px 22px rgba(42,24,16,0.12);
  z-index: 20;
}
.lang-switcher .btn { /* override heavy defaults */
  padding: 6px 12px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--deep-brown);
  text-transform: none;
  letter-spacing: .4px;
  box-shadow: none;
}
.lang-switcher .btn::before { display: none; }
.lang-switcher .btn:hover { background: rgba(253,185,19,0.12); color: var(--deep-brown); transform: none; }
.lang-switcher .btn:focus-visible { outline: 3px solid rgba(253,185,19,0.45); outline-offset: 2px; }
.lang-switcher .btn.is-active {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--warm-white);
}
@media (max-width: 768px) {
  .lang-switcher { top: 10px; right: 10px; padding: 3px; }
  .lang-switcher .btn { padding: 7px 10px; font-size: 0.88rem; }
}
@media (max-width: 1024px) {
  .container { margin: 0; border-radius: 12px; padding: 0; }
  .header { padding: 1.5rem; }
  .header-content { flex-direction: column; gap: 1rem; }
  .logo { width: 68px; }
  .hero { padding: 1.25rem 0.75rem; }
  .hero-stats { gap: 2rem; }
  .stat-item { padding: 1rem; }
  .section { padding: 2.5rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 2rem; }
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .past-events-grid { grid-template-columns: 1fr; gap: 2rem; }
  .event-content { padding: 0.75rem 0.75rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { min-width: 220px; justify-content: center; padding: 0.7rem 1rem; }
  #cooperation-form .form-submit,
  #cooperation-form button[type="submit"] { display: block; margin: 0.6rem auto 0 auto; width: auto; min-width: 220px; box-sizing: border-box; }
  .form-container { margin: 2rem auto; width: min(92%, 720px); padding: 1.75rem; }
  .footer-links { flex-direction: column; gap: 1rem; }
  .footer .site-logo { width: 55px !important; height: auto !important; margin-bottom: 0.4rem !important; }
}

/* iPad (horizontal/vertical) ajustes finos */
@media (min-width: 769px) and (max-width: 1024px) {
  .form-container { width: min(86%, 760px); }
}

/* Móviles y tablets pequeñas */
@media (max-width: 768px) {
  .form-container { margin: 1.25rem 1rem; width: auto; padding: 1.25rem; }
}

/* iPad Mini/Pro: centrar y alinear el bloque de formulario con su encabezado */
@media (min-width: 768px) and (max-width: 820px) {
  #formulario .section-header { max-width: 700px; margin-left: auto; margin-right: auto; }
  #formulario .form-container { max-width: 700px; width: 92%; margin-left: auto; margin-right: auto; }
}

/* Tablets pequeñas y móviles: una columna */
@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; gap: 1rem; }
  /* Mantener proporción uniforme también en móvil */
  .event-image { aspect-ratio: 16 / 9; height: auto; }
  /* Mantener el icono pegado a la primera línea del texto en responsive */
  .event-date { min-height: 52px; height: auto; font-size: 1rem; padding: 10px 16px; align-items: flex-start; }
  .event-date i { font-size: 0.95rem; margin-right: 6px; margin-top: 2px; }
  .event-content { padding: 0.85rem; gap: 0.7rem; }
}

/* Responsive: mostrar la descripción completa (sin puntos suspensivos) */
@media (max-width: 1024px) {
  .event-description {
    display: block;               /* no usar -webkit-box */
    -webkit-line-clamp: unset;    /* eliminar clamping */
    line-clamp: unset;
    -webkit-box-orient: initial;  /* reset orientación */
    overflow: visible;            /* permitir texto completo */
    text-overflow: clip;          /* sin elipsis */
  }
}

@media (max-width: 480px) {
  .container { border-radius: 0; padding: 0; }
  body { margin: 0; padding: 0; }
  .header { padding: 0.75rem 0.5rem; }
  .hero { padding: 1rem 0.5rem; }
  .hero h2 { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.92rem; }
  /* Mobile: allow each event card to size naturally (avoid equal-height rows)
     and keep a small gap between cards so activities are visually separated. */
  .events-grid { grid-template-columns: 1fr; gap: 0.8rem !important; margin: 1rem 0; grid-auto-rows: auto !important; }
  /* Ensure event cards don't stretch to match the tallest sibling */
  .event-card { height: auto !important; }
  /* Add explicit bottom margin so each event has a visible separation on mobile */
  .event-card { margin-bottom: 10px !important; }
  .event-content { padding: 0.6rem 0.6rem; }
  .cta-compact .section-header { padding: 0 0.4rem; }
  .cta-compact .btn { min-width: 120px; padding: 0.35rem 0.6rem !important; font-size: 0.88rem !important; }
  .form-container > div[style*="border-top"] a.btn.btn-secondary { min-width: 150px; padding: 0.4rem 0.6rem; font-size: 0.9rem; border-radius: 12px; }
  .price-reserve { background: var(--warm-white); border: 1.5px solid rgba(212,145,10,0.35); border-radius: 14px; padding: 0.8rem; margin: 0.9rem 0 0.4rem; box-shadow: var(--shadow-warm); }
  .price-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; align-items: stretch; }
  .price-box { padding: 0.85rem 0.75rem; border-radius: 12px; text-align: center; box-sizing: border-box; }
  
  /* Past events gallery - single column on mobile */
  .past-event-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .gallery-photo {
    height: 200px;
  }
  
  .price-box.price-main { background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); color: var(--warm-white); font-weight: 800; box-shadow: 0 6px 14px rgba(212,145,10,0.25); }
  .price-box.price-supplemental { background: var(--rich-cream); border: 2px solid var(--primary-gold); color: var(--primary-gold); font-weight: 700; }
  .reserve-box { background: #fff; border: 1.5px dashed rgba(212,145,10,0.45); color: var(--deep-brown); padding: 0.85rem 0.75rem; border-radius: 12px; margin-top: 0.6rem; box-sizing: border-box; }
  .reserve-box p { margin: 0 0 0.5rem 0 !important; }
  .reserve-box p em { color: var(--text-medium); }
  .event-actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; margin: 0.9rem 0 0 0; }
  .event-actions .btn { width: 100% !important; min-width: 0; justify-content: center; padding: 0.9rem 1rem !important; font-size: 1rem !important; border-radius: 14px !important; }
  .event-actions .btn .btn-lines { align-items: center; }
  .quote-with-photo { display: flex; align-items: center; gap: 1.5rem; background: var(--rich-cream); border-radius: var(--border-radius-lg); padding: clamp(1rem, 2.5vw, 2.5rem); margin: 2.5rem auto; max-width: 980px; border: 2px solid var(--primary-gold); box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
  /* Mostrar la foto completa (no recortar la cabeza). Mantenerla sin bordes para que se vea entera */
  .quote-photo {
    object-fit: contain; /* mostrar la imagen entera dentro del contenedor */
    object-position: top center; /* priorizar la parte superior para que no corte la cabeza */
    border-radius: 0; /* sin bordes/curvas */
    flex: 0 0 auto;
    box-shadow: none; /* sin sombra */
    background: transparent; /* sin fondo para que se integre con la sección */
    width: 100%;
    height: auto;
    display: block;
  }
  .quote-body { flex: 1 1 auto; text-align: left; }
  .quote-text { color: var(--deep-brown); font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif; font-size: clamp(1rem, 2.2vw, 1.6rem); margin: 0 0 0.6rem 0; line-height: 1.25; }
  .quote-author { color: var(--text-medium); font-size: clamp(0.9rem, 1.6vw, 1.1rem); font-style: italic; margin: 0; }
  @media (max-width: 720px) {
    .quote-with-photo { flex-direction: column; text-align: center; padding: 0.8rem 0.8rem; }
    .quote-body { text-align: center; }
    .quote-photo { width: min(60vw, 260px); height: min(60vw, 260px); border-radius: 10px; margin-bottom: 0.6rem; }
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .price-reserve { max-width: 560px; margin: 1rem auto; }
  .event-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch; max-width: 560px; margin: 1rem auto 0.5rem auto; }
  .event-actions .btn { width: 100% !important; max-width: none !important; min-width: 0 !important; justify-content: center; padding: 0.9rem 1rem; border-radius: 12px; }
}

@media (min-width: 1025px) {
  /* Past events: stack cards in a single column on desktop */
  .past-events-grid {
    grid-template-columns: 1fr !important;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
  .quote-with-photo { display: grid; grid-template-columns: minmax(220px, 28vw) 1fr; align-items: center; gap: 2rem; background: var(--rich-cream); border-radius: var(--border-radius-lg); padding: 2rem 2.25rem; margin: 2.5rem auto; max-width: 1100px; border: 2px solid rgba(212, 145, 10, 0.35); box-shadow: 0 10px 30px rgba(212, 145, 10, 0.15); }
  /* Desktop: mostrar la imagen completa sin recortes y sin bordes ni sombras */
  .quote-with-photo .quote-photo {
    width: 100%;
    height: auto;
    max-height: none; /* permitir que la imagen use su altura natural */
    /* eliminamos aspect-ratio para respetar la proporción real de la imagen */
    object-fit: contain !important;
    object-position: top center !important;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .quote-with-photo .quote-body { text-align: left; }
  .quote-with-photo .quote-text { color: var(--deep-brown); font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25; margin: 0 0 0.85rem 0; text-wrap: balance; }
  .quote-with-photo .quote-author { color: var(--medium-brown); font-size: clamp(1rem, 1.2vw, 1.15rem); font-style: italic; margin: 0; padding-top: 0.85rem; border-top: 2px solid rgba(212, 145, 10, 0.25); }
  #cooperation-form .form-submit,
  #cooperation-form button[type="submit"] { display: block; margin: 0.6rem auto 0 auto; width: auto; max-width: 320px; min-width: 200px; padding: 1rem 1.4rem; font-size: 1.05rem; box-sizing: border-box; }
  .event-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; align-items: stretch; max-width: 520px; margin: 1rem auto; }
  .event-actions .btn { width: 100% !important; max-width: none !important; min-width: 0 !important; box-sizing: border-box; padding: 0.95rem 1.2rem; text-align: center; }
  .event-content > div[style*="display: flex"],
  .event-content > div[style*="display:flex"] { justify-content: center !important; align-items: center !important; gap: 1rem !important; flex-wrap: nowrap !important; }
  .event-content > div[style*="display: flex"] .btn,
  .event-content > div[style*="display:flex"] .btn { flex: 0 0 auto !important; min-width: 200px !important; max-width: 320px !important; }
  .site-logo { width: 110px !important; height: auto !important; box-shadow: none !important; border: none !important; filter: none !important; transition: none !important; }
  .price-reserve { max-width: 520px; margin: 1.25rem auto; }
  .price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
  .price-box { padding: 1.2rem 1rem; border-radius: 12px; text-align: center; box-sizing: border-box; }
  .price-main { background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); color: var(--warm-white); font-weight: 700; font-size: 1.25rem; }
  .price-supplemental { background: var(--rich-cream); border: 2px solid var(--primary-gold); color: var(--primary-gold); font-weight: 700; font-size: 1.05rem; }
  .reserve-box { background: var(--deep-brown); color: var(--warm-white); padding: 1.4rem 1rem; border-radius: 12px; margin-top: 1rem; box-sizing: border-box; }
  .reserve-box p { margin: 0 0 0.6rem 0; }
  .reserve-box p small { display: block; opacity: 0.95; }
  .event-image { object-fit: contain !important; object-position: center center !important; }
  .event-actions { gap: 0.85rem; }
  .event-actions .btn { padding: 0.95rem 1.4rem; font-size: 1.05rem; border-radius: 12px; width: 100% !important; justify-content: center; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.8s ease forwards; }
.scroll-animate { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* Font Awesome is now self-hosted locally (css/all.min.css + /webfonts). No emoji fallbacks needed. */

/* ========== SPECIAL EFFECTS ========== */
.hero-badge:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); }
.event-card:hover .event-title { color: var(--primary-gold); }
.card:hover .card-icon { transform: scale(1.1) rotate(5deg); }

/* Invert color chunk for 'Jornada X.' prefix: gold by default, deep brown when parent title turns gold */
.event-title .jornada-prefix { color: var(--primary-gold); }
.event-card:hover .event-title .jornada-prefix { color: var(--deep-brown); }

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ========== NEW CLASSES FOR PREVIOUS INLINE STYLES ========== */
.event-location { background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold)); color: var(--warm-white); padding: 1.2rem; border-radius: 12px; margin: 1.5rem 0; text-align: center; }
.event-location-text { margin: 0; font-weight: 700; font-size: 1rem; }
.event-location a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 800; }
.event-itinerary-list {
  margin: 0.8rem 0;
  padding-left: 2rem;
  color: var(--text-dark); /* reforzado para mejor contraste */
  height: auto;            /* altura natural */
  max-height: none;        /* sin límite */
  overflow: visible;       /* sin scroll interno */
}
.event-itinerary-list li {
  color: var(--text-dark);
  font-weight: 600; /* un poco más de peso para destacar los items */
}
.price-amount { margin: 0; font-weight: 700; font-size: 1.3rem; }
.price-note { margin: 0; font-size: 0.9rem; opacity: 0.9; }
.price-supp-amount { margin: 0; color: var(--primary-gold); font-weight: 700; font-size: 1.3rem; }
.price-supp-note { margin: 0; color: var(--text-medium); font-size: 0.9rem; }
.reserve-title { margin: 0 0 0.8rem 0; font-weight: 700; font-size: 1.1rem; }
.reserve-info { margin: 0; font-size: 0.95rem; opacity: 0.9; }
.form-message { margin-top: 1.5rem; text-align: center; display: none; }
.form-message.is-visible { display: block; }
/* Success by default uses gold */
.form-message--success .form-message-text { color: var(--primary-gold); }
/* Error variant in red */
.form-message--error .form-message-text { color: #c62828; }
.form-message-text { font-weight: 700; font-size: 1.1rem; }
.direct-contact { text-align: center; margin-top: 1.2rem; padding-top: 0.6rem; }
.direct-contact-text { color: var(--text-medium); margin-bottom: 1rem; font-weight: 500; }
.direct-contact-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.footer-logo-centered { display: block; margin: 0.25rem auto 0.6rem auto; }
.footer-tagline { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.9; }
.footer-legal { font-size: 0.95rem; opacity: 0.7; margin-top: 2rem; line-height: 1.6; }
.event-started-msg { color: var(--accent-gold); font-weight: 700; font-size: 1.2rem; }

/* Direct contact inline email: neutral background, dark text to match site palette */
.direct-contact-email {
  display: inline-block;
  background: transparent; /* no dark background */
  color: var(--deep-brown) !important; /* dark color from palette */
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  border: 2px solid rgba(212,145,10,0.12);
}

/* Stack the email link above the button in the contact block and keep it compact */
.direct-contact .direct-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.direct-contact .btn.btn-secondary { min-width: 220px; }

/* Stack the email link above the button in the contact block */
.direct-contact .direct-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Optional: JS hover class if needed */
.btn.is-hovered { transform: translateY(-2px) scale(1.02); }

/* ========== COOKIE BANNER (neutral, site-wide) ========== */
/* Use a warm, light card-style banner so it is subtle on the landing and privacy pages */
#cookie-banner{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  width: min(980px, calc(100% - 28px));
  background: var(--warm-white);
  color: var(--text-dark);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,145,10,0.12);
  box-shadow: var(--shadow-warm);
  display: none;
  gap: 12px;
  align-items: center;
  z-index: 9999;
}
#cookie-banner p{ margin:0; flex:1; font-size: 0.95rem; }
#cookie-banner div{ display:flex; gap:8px; }
#cookie-banner button{
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  background: transparent;
  color: var(--deep-brown);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#cookie-banner button:hover{ box-shadow: none; }
#cookie-banner button:active{ transform: translateY(0); }
#cookie-banner button:focus-visible{ outline: 3px solid rgba(212,145,10,0.14); outline-offset: 2px; }

/* Primary - subtle warm tone */
#cookie-banner .accept{
  background: rgba(253,185,19,0.12);
  color: var(--deep-brown);
  border-color: rgba(253,185,19,0.28);
}
#cookie-banner .accept:hover{ background: rgba(253,185,19,0.16); }

/* Secondary - light outline */
#cookie-banner .reject{
  background: transparent;
  color: var(--deep-brown);
  border-color: rgba(42,24,16,0.12);
}
#cookie-banner .reject:hover{ background: rgba(42,24,16,0.04); }

/* Config as subtle link */
#cookie-banner .config{
  background: transparent;
  color: var(--text-medium);
  border: none;
  text-decoration: underline;
}

#cookie-settings{
  display: none;
  background: var(--warm-white);
  color: var(--text-dark);
  padding: 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-warm);
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 60px));
  border: 1px solid rgba(212, 145, 10, 0.12);
}
#cookie-settings p{ color: var(--deep-brown); margin: 0 0 10px; }
#cookie-settings label{ color: var(--text-medium); }

@media (max-width: 640px){
  #cookie-banner{ flex-direction: column; align-items: stretch; padding: 14px; }
  #cookie-banner div{ justify-content: flex-end; }
  #cookie-settings{ position: static; transform: none; width: 100%; margin-top: 8px; }
}

/* High-specificity override to ensure the neutral cookie banner is applied site-wide
   This helps if another stylesheet or cached rule applies a darker theme. */
.container #cookie-banner, body #cookie-banner, html body #cookie-banner {
  background: var(--warm-white) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(212,145,10,0.12) !important;
  box-shadow: var(--shadow-warm) !important;
}
.container #cookie-banner .accept, body #cookie-banner .accept { background: rgba(253,185,19,0.12) !important; color: var(--deep-brown) !important; border-color: rgba(253,185,19,0.28) !important; }
.container #cookie-banner .reject, body #cookie-banner .reject { background: transparent !important; color: var(--deep-brown) !important; border-color: rgba(42,24,16,0.12) !important; }
.container #cookie-banner .config, body #cookie-banner .config { color: var(--text-medium) !important; text-decoration: underline !important; }

/* Strong overrides: ensure the quote photo shows fully, no border and no cropping */
.quote-with-photo {
  border: none !important;           /* remove gold border */
  background: transparent !important;/* no background behind image */
  padding: 0 !important;             /* reduce extra padding so image can show */
  overflow: visible !important;      /* prevent child image from being clipped */
}

.quote-with-photo .quote-photo {
  width: 100% !important;            /* allow image to scale to container width */
  height: auto !important;           /* keep natural height */
  max-height: none !important;       /* don't cap height */
  object-fit: contain !important;    /* show the whole image */
  object-position: top center !important; /* prioritize top (head) */
  border-radius: 0 !important;       /* no rounded corners */
  box-shadow: none !important;       /* no shadow */
  background: transparent !important;
  display: block !important;
}

/* Mobile-specific override: prevent min/max sizing from cropping */
@media (max-width: 720px) {
  .quote-with-photo { padding: 0.6rem 0 !important; }
  .quote-with-photo .quote-photo { width: min(86vw, 320px) !important; height: auto !important; margin: 0 auto !important; }
}

/* Neutralizar peso de fuente en los nombres de calles (usado en listas/itinerarios) */
.calle {
  font-weight: 400 !important;
}

/* Responsive spacing tweaks: remove unwanted top/bottom gaps in mobile views */
@media (max-width: 768px) {
  /* Reduce padding inside event cards and remove gaps that create the purple bars */
  .event-content {
    padding: 0.7rem 1rem !important;
    gap: 0 !important;
    display: block !important; /* avoid flex gaps adding space */
  }

  /* Make quote-with-photo compact on small screens */
  .quote-with-photo {
    padding: 0.25rem 0 !important;
    gap: 0 !important;
    margin: 0.45rem 0 !important;
  }

  .quote-with-photo .quote-photo {
    margin: 0 auto !important;
    width: min(86vw, 320px) !important;
    height: auto !important;
    display: block !important;
  }

  /* Slightly tighten the events grid gap on mobile */
  .events-grid { gap: 0.8rem !important; }
  /* Add a small bottom margin between stacked event cards on smaller screens */
  .event-card { margin-bottom: 10px !important; }
}

/* ========== MODAL HOJA DE CANTOS ========== */
.modal-hoja-cantos {
  position: fixed;
  inset: 0;
  display: none;            /* oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-hoja-cantos.is-open {
  display: flex;            /* mostrar modal cuando tenga la clase is-open */
}

.modal-hoja-cantos__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* fondo oscuro pero no opaco */
}

.modal-hoja-cantos__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  margin: 0 1rem;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .modal-hoja-cantos__dialog {
    width: 100%;
    max-width: 100%;
    margin: 0 0.5rem;
    border-radius: 12px;
    max-height: 100vh;
  }
}


.modal-hoja-cantos__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #f7f0e1 60%, #fdb913 100%);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 2px 12px rgba(212,145,10,0.08);
  padding: 1.1rem 1.25rem 1.1rem 1.25rem;
}

.modal-hoja-cantos__header-title h2 {
  font-size: 1.45rem;
  font-weight: 400; /* removed strong/bold */
  color: #000000; /* ensure black text */
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(212,145,10,0.04);
}

.modal-hoja-cantos__header--banner {
  border-bottom: 3px solid var(--primary-gold);
}

.repertorio__titulo {
  font-size: 1.18rem;
  font-weight: 800;
  color: #000000; /* título en negro */
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.03);
  text-align: center; /* centrar en la línea */
  display: block;
  width: 100%;
  visibility: hidden; /* ocultar el texto pero conservar el espacio hasta 'Entrada' */
}

.modal-hoja-cantos__subtitle {
  font-size: 0.9rem;
  color: #777;
}

.modal-hoja-cantos__close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-hoja-cantos__content {
  overflow-y: auto;
  padding-right: 0.5rem; /* más espacio para la barra de scroll personalizada */
  max-height: 70vh; /* limitar altura visible */
  overscroll-behavior: contain; /* evitar scroll chaining al body en móviles */
  /* Scrollbar Firefox */
  scrollbar-width: thin;
  scrollbar-color: #f2c230 transparent;
}

.canto {
  margin-bottom: 1.5rem;
}

.canto__titulo {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.canto__texto {
  font-size: 1rem;     /* ponlo grande y cómodo de leer */
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Scrollbar WebKit (Chrome, Edge, Safari) */
.modal-hoja-cantos__content::-webkit-scrollbar { width: 6px; }
.modal-hoja-cantos__content::-webkit-scrollbar-track { background: transparent; }
.modal-hoja-cantos__content::-webkit-scrollbar-thumb { background: #f2c230; border-radius: 999px; }
.modal-hoja-cantos__content::-webkit-scrollbar-thumb:hover { background: #dfac15; }

/* Wrapper + degradado indicador de más contenido */
.modal-hoja-cantos__scroll-wrapper { position: relative; }
.modal-hoja-cantos__scroll-wrapper::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 60%, #ffffff 100%);
  transition: opacity 0.2s ease-out;
}
.modal-hoja-cantos__scroll-wrapper.is-at-bottom::after { opacity: 0; }

/* Repertorio list styling */
.repertorio { margin-bottom: 2rem; }
.repertorio__titulo { font-size: 1.15rem; margin-bottom: 0.75rem; font-weight: 700; }
.repertorio__titulo.repertorio__cancons { font-size: 20px; }
.repertorio__lista { list-style: none; padding-left: 0; margin: 0 0 0.75rem; }
.repertorio__lista > li { margin: 0.4rem 0; font-size: 1rem; line-height: 1.4; }
.repertorio__lista ul { list-style: disc; padding-left: 1.2rem; margin: 0.4rem 0 0.4rem; }
.repertorio__nota { font-size: 0.75rem; color: #666; font-style: italic; }

/* Specific styling for the 'Cançons' heading inside the modal repertory
   This class ensures the title is visually prominent, centered and has
   extra spacing before the following hymn ('Glòria'). */
.repertorio__cancons {
  /* Left-aligned, lighter weight and subtle decorative effects */
  text-align: left;
  display: block;
  width: 100%;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin: 0 0 1.25rem 0; /* extra bottom spacing to separate from the hymn */
  visibility: visible; /* ensure this custom heading is visible even if .repertorio__titulo is hidden elsewhere */
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 0.6rem; /* space for the left accent bar */
}

@media (max-width: 420px) {
  .repertorio__cancons { margin-bottom: 1rem; font-size: 1.05rem; }
}

/* Decorative accents for the 'Cançons' heading */
.repertorio__cancons::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 62%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-gold), var(--accent-gold));
  box-shadow: 0 1px 6px rgba(212,145,10,0.12);
}

.repertorio__cancons::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(212,145,10,0.22), rgba(253,185,19,0.18));
  opacity: 0.95;
}

.btn-hoja-cantos {
  display: block; /* para poder centrar con margin auto */
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.6rem 1rem;
  border-radius: 12px; /* igual a otros botones en tarjetas */
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  /* Ajusta colores para que encajen con la paleta actual de la landing */
  background: #ffc832;
  color: #3c2a0a;
}

/* Evitar scroll del body cuando el modal está abierto */
body.no-scroll {
  overflow: hidden;
}

/* Banner informativo dentro del modal de cantos */
.cantos-info-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, var(--rich-cream), #f0e2c7);
  border: 2px solid rgba(212,145,10,0.25);
  border-left: 6px solid var(--primary-gold);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  margin: 0.4rem 0 1rem;
  box-shadow: var(--shadow-warm);
}
.cantos-info-banner__logo-wrapper {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #fff;
  border: 1.5px solid rgba(212,145,10,0.25);
  border-radius: 12px;
}
.cantos-info-banner__logo {
  max-width: 44px; max-height: 44px; width: auto; height: auto;
  display: block;
}
.cantos-info-banner__text { line-height: 1.2; }
.cantos-info-banner__title {
  margin: 0;
  font-weight: 400; /* removed strong/bold */
  color: #000000; /* ensure black text */
  font-size: 1rem;
  letter-spacing: 0.2px;
}
.cantos-info-banner__subtitle { margin: 2px 0 0 0; color: var(--text-medium); font-weight: 700; font-size: 0.92rem; }

@media (max-width: 768px) {
  .cantos-info-banner { grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.6rem 0.7rem; border-radius: 12px; }
  .cantos-info-banner__logo-wrapper { width: 48px; height: 48px; border-radius: 10px; }
  .cantos-info-banner__logo { max-width: 40px; max-height: 40px; }
  .cantos-info-banner__title { font-size: 1rem; }
  .cantos-info-banner__subtitle { font-size: 0.9rem; }
}

/* ========== POPUP INICIAL: HOJA DE CANTOS ========== */
.popup-hoja-cantos-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.45); /* fondo semitransparente */
  display: none;                   /* oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;                   /* por encima de todo el contenido */
}

.popup-hoja-cantos-overlay.is-visible {
  display: flex;                   /* se muestra cuando tenga esta clase */
}

.popup-hoja-cantos {
  background: linear-gradient(135deg, #fdfbf6 0%, #f7f0e1 100%); /* fondo con ligero degradado cálido */
  width: 100%;
  max-width: 520px;
  min-height: 320px;
  max-height: 70vh;
  height: auto;
  padding: 2rem 2.5rem;
  border-radius: 16px;             /* bordes redondeados sutiles */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto; /* permitir scroll interno si el contenido supera 70vh */
  overscroll-behavior: contain; /* evitar que arrastre el scroll del fondo en iOS/Android */
}

.popup-hoja-cantos__texto {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--deep-brown);
  font-weight: 800;
}

.popup-hoja-cantos__acciones {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.popup-hoja-cantos__btn {
  cursor: pointer;
  font-weight: 400;
  font-size: 1.15rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 2px solid transparent;
  min-width: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.popup-hoja-cantos__btn:focus-visible { outline: 3px solid rgba(253,185,19,0.35); outline-offset: 2px; }
.popup-hoja-cantos__btn:active { transform: translateY(0) scale(0.99); }

.popup-hoja-cantos__btn--primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
  color: var(--warm-white);
  box-shadow: var(--shadow);
}
.popup-hoja-cantos__btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.popup-hoja-cantos__btn--secondary {
  background: #ffffff;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}
.popup-hoja-cantos__btn--secondary:hover { background: rgba(253,185,19,0.08); }

@media (max-width: 600px) {
  .popup-hoja-cantos { max-width: 90%; padding: 1.5rem 1.25rem; }
  .popup-hoja-cantos__btn { min-width: 180px; padding: 0.7rem 1rem; }
}

/* ====== Carousel styles for past event gallery ====== */
/* ====== Carousel Mejorado ====== */
.past-event-gallery-carousel { margin-top: 1.2rem; max-width: 980px; margin-left: auto; margin-right: auto; position: relative; }
.carousel { position: relative; width: 100%; }
.carousel-viewport { overflow: hidden; width: 100%; border-radius: 18px; position: relative; background: linear-gradient(135deg,#fdfbf6,#f7f0e1); }
.carousel-track { display: flex; gap: 0; transition: transform 0.6s cubic-bezier(.16,.72,.29,.99); will-change: transform; touch-action: pan-y; }
.carousel-slide { min-width: 100%; max-width: 100%; flex: 0 0 100%; flex-shrink: 0; user-select: none; position: relative; }
.carousel-slide a { display:block; width: 100%; }
.carousel-slide img { display:block; width:100%; height:auto; object-fit:cover; aspect-ratio: 16/9; border-radius: 14px; box-shadow: 0 6px 20px rgba(42,24,16,0.12); margin: 0; padding: 0; }

/* Para carruseles de eventos pasados, evitar recortes */
.past-event-gallery-carousel .carousel-slide img { object-fit: contain; }

/* Botones overlay */
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,0.82); backdrop-filter: blur(4px); border: 1px solid rgba(0,0,0,0.08); color: var(--deep-brown); font-size: 1.6rem; width: 48px; height: 48px; border-radius: 999px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.12); transition: background .25s, transform .25s; }
.carousel-btn--prev { left: 4px; }
.carousel-btn--next { right: 4px; }
.carousel-btn { background: rgba(255,255,255,0.55); box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.carousel-btn:hover { background: rgba(255,255,255,0.75); color: var(--deep-brown); transform: translateY(-50%) scale(1.04); }
.carousel-btn:active { transform: translateY(-50%) scale(.96); }
.carousel-btn.is-disabled { opacity: 0.22; pointer-events: none; filter: grayscale(40%); }

/* Barra inferior: progreso + dots */
.carousel-bottom-bar { display:flex; flex-direction:column; align-items:center; gap: 0.55rem; margin-top: 0.65rem; }
.carousel-progress { width: 100%; height: 4px; background: rgba(0,0,0,0.08); border-radius: 4px; position:relative; overflow:hidden; }
.carousel-progress::after { content:""; position:absolute; left:0; top:0; height:100%; width:0%; background: linear-gradient(90deg,var(--primary-gold),var(--accent-gold)); border-radius:4px; transition: width .45s ease; }

.carousel-dots { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; padding: 12px 0; }
.carousel-dots button { width:52px; height:40px; padding:0; border-radius:8px; border:3px solid rgba(212,145,10,0.3); background:rgba(42,24,16,0.15); cursor:pointer; position:relative; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,0.15); transition: all 0.3s ease; }
.carousel-dots button::before { content:""; position:absolute; inset:0; background-image: var(--thumb-url); background-size:cover; background-position:center; filter:brightness(.7) contrast(1.1); transition: filter .3s ease, transform .3s ease; }
.carousel-dots button:hover { border-color: rgba(212,145,10,0.6); }
.carousel-dots button:hover::before { filter:brightness(.95) contrast(1.05); transform:scale(1.05); }
.carousel-dots button.is-active { border-color: var(--primary-gold); background: rgba(212,145,10,0.2); box-shadow:0 4px 16px rgba(212,145,10,0.45); transform: scale(1.08); }
.carousel-dots button.is-active::before { filter:brightness(1.1) contrast(1.05); }

/* Lightbox */
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.75); display:none; align-items:center; justify-content:center; padding:1rem; z-index:10000; }
.lightbox.is-open { display:flex; }
.lightbox-img-wrapper { max-width: min(1200px,92vw); max-height: 86vh; position:relative; }
.lightbox-img-wrapper img { width:100%; height:100%; object-fit:contain; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.45); }
.lightbox-close { position:absolute; top:-14px; right:-14px; background: var(--primary-gold); color: var(--warm-white); border:none; width:44px; height:44px; border-radius:999px; font-size:1.4rem; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.35); }
.lightbox-close:hover { background: var(--accent-gold); }

@media (min-width: 980px){
  .carousel-slide { min-width: 100%; max-width: 100%; flex: 0 0 100%; }
}
@media (max-width: 640px){
  .past-event-gallery-carousel { 
    max-width: none; 
    padding: 0; 
    margin-left: -1rem; 
    margin-right: -1rem; 
    width: calc(100% + 2rem); 
  }
  .carousel-viewport { 
    border-radius: 0; 
    margin: 0; 
    width: 100%; 
  }
  .carousel-slide { 
    min-width: 100%; 
    max-width: 100%; 
    width: 100%;
    flex: 0 0 100%; 
  }
  .carousel-slide a { width: 100%; }
  .carousel-slide img { aspect-ratio: 3/2; border-radius: 0; width: 100%; }
  .carousel-btn { width:42px; height:42px; font-size:1.3rem; }
  .carousel-dots { padding: 12px 1rem; }
  .carousel-dots button { width:42px; height:32px; }
}

/* For tablets (iPad/Surface) and below, ensure section header has larger top margin so it sits visibly below the fixed header */
@media (max-width: 1366px) {
  .section-header {
    margin-top: 8rem;
  }
}