/* 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;
}

* {
  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);
  /* Use system font stack to avoid external font loads under strict CSP */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

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: var(--max-width);
  margin: 0 auto;
  padding: 0;
  background: var(--warm-white);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  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: relative;
  overflow: hidden;
}

.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;
}

.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 {
  /* fallback to Georgia if Playfair isn't self-hosted */
  font-family: Georgia, 'Times New Roman', Times, 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: Georgia, 'Times New Roman', Times, 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;
}

/* ========== COUNTDOWN ========== */
.countdown-container {
  background: linear-gradient(135deg, var(--deep-brown), var(--medium-brown));
  color: var(--warm-white);
  border-radius: var(--border-radius-lg);
  padding: clamp(0.75rem, 1.8vw, 2.5rem);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
}

.countdown-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(253,185,19,0.08) 0%, transparent 25%, transparent 75%, rgba(253,185,19,0.08) 100%);
  pointer-events: none;
}

.countdown-title {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 1.2rem);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.countdown-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(253, 185, 19, 0.12);
  border: 2px solid var(--accent-gold);
  border-radius: 10px;
  padding: clamp(0.35rem, 0.9vw, 1rem) clamp(0.5rem, 1.1vw, 1rem);
  min-width: 56px;
  margin: 0;
  backdrop-filter: blur(6px);
}

.countdown-number {
  font-size: clamp(1rem, 3.4vw, 1.9rem);
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.countdown-label {
  font-size: clamp(0.64rem, 1.4vw, 0.9rem);
  color: rgba(253, 251, 246, 0.9);
  margin-top: 0.25rem;
  font-weight: 600;
}

@media (max-width: 420px) {
  .countdown-container { padding: 0.45rem 0.5rem; margin: 0.8rem 0; }
  .countdown { gap: 0.35rem; }
  .countdown-item { padding: 0.25rem 0.45rem; min-width: 48px; }
  .countdown-number { font-size: 0.95rem; }
  .countdown-label { font-size: 0.62rem; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  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; }
.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-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: var(--shadow); }
.section-title { font-family: Georgia, 'Times New Roman', Times, serif; 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(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%; }

/* ========== 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; }
.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; min-height: 100%; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(212, 145, 10, 0.3); }
.event-image { width: 100%; object-fit: cover; object-position: center; background-color: var(--rich-cream); border-bottom: 4px solid var(--primary-gold); transition: transform 0.4s ease; max-height: 260px; }
.event-card:hover .event-image { transform: scale(1.02); }
.event-content { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; flex: 1 1 auto; }
/* Fecha con altura fija y ancho completo */
.event-date { height: 60px; 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: 800; 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.6rem; 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-details { background: linear-gradient(135deg, var(--rich-cream), #f0e2c7); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; 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; }
.event-actions { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== 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; }

/* ========== 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: Georgia, 'Times New Roman', Times, 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 ========== */
/* 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; }
  .countdown { gap: 1rem; }
  .countdown-item { min-width: 75px; padding: 1rem 0.5rem; }
  .section { padding: 2.5rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; gap: 2rem; }
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .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; }
  .event-image { max-height: 200px; }
  .event-date { height: 52px; font-size: 0.95rem; padding: 10px 16px; }
  .event-date i { font-size: 0.95rem; margin-right: 6px; }
  .event-content { padding: 0.85rem; gap: 0.7rem; }
}

/* Clamping de descripción para simetría en layouts no-desktop */
@media (max-width: 1024px) {
  .event-description { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 768px) {
  .event-description { -webkit-line-clamp: 3; line-clamp: 3; }
}

@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; }
  .events-grid { grid-template-columns: 1fr; gap: 0.75rem; margin: 1rem 0; }
  .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; }
  .countdown-container { padding: 0.75rem 0.75rem; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
  .countdown-title { margin-bottom: 0.6rem; }
  .countdown { display: flex !important; align-items: stretch; justify-content: space-between; gap: 0.45rem; overflow: hidden; }
  .countdown .countdown-item:last-child { display: none; }
  .countdown-item { flex: 1 1 0; min-width: 0 !important; padding: 0.5rem 0.45rem; border: 1.25px solid var(--accent-gold); border-radius: 10px; background: rgba(253,185,19,0.10); box-shadow: var(--shadow-warm); text-align: center; }
  .countdown-number { font-size: clamp(1rem, 3.5vw, 1.12rem); line-height: 1.1; }
  .countdown-label { font-size: 0.72rem; letter-spacing: 0.15px; }
  .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; }
  .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); }
  .quote-photo { object-fit: cover; border-radius: 8px; flex: 0 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
  .quote-body { flex: 1 1 auto; text-align: left; }
  .quote-text { color: var(--deep-brown); font-family: Georgia, 'Times New Roman', Times, 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) {
  .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); }
  .quote-with-photo .quote-photo { width: 100%; height: auto; max-height: 520px; aspect-ratio: 3 / 4; object-fit: cover !important; object-position: center center !important; display: block; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: #00000008; }
  .quote-with-photo .quote-body { text-align: left; }
  .quote-with-photo .quote-text { color: var(--deep-brown); font-family: Georgia, 'Times New Roman', Times, 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); }

/* ========== 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-medium); }
.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; }