/* ==============================
   Fuente Poppins local
   ============================== */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

/* ==============================
   Paleta de colores
   ============================== */

:root {
   --color-bg: #FFFFFF;
  --color-bg-soft: #F5F6F3;

  --color-primary: #E3A529;      /* Mostaza (se mantiene) */
  --color-primary-dark: #C4841F;

  /* Verde más profundo, menos amarillo */
  --color-olive: #272b00;
  --color-olive-dark: #181b00;

  --color-petrol: #27343A;
  --color-grey: #5A646B;
}

/* Helpers de color */

.text-petrol { color: var(--color-petrol); }
.text-grey   { color: var(--color-grey); }
.text-olive  { color: var(--color-olive); }

.bg-soft   { background-color: var(--color-bg-soft); }
.bg-petrol { background-color: var(--color-petrol); }
.bg-primary { background-color: var(--color-primary); }

.bg-olive-soft {
  background-color: rgba(39, 43, 0, 0.1);
}

/* Sombras suaves */

.shadow-soft {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* ==============================
   Logo
   ============================== */

.site-logo {
  max-height: 3rem;   /* ~48px */
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-logo {
    max-height: 3.5rem; /* ~56px */
  }
}


header {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   Navegación y botones
   ============================== */

.nav-link {
  font-size: 0.875rem;
  color: var(--color-grey);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-petrol);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;           /* p-2 px-5 aprox */
  border-radius: 9999px;             /* full */
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(227, 165, 41, 0.35);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-petrol);
  background-color: transparent;
  color: var(--color-petrol);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--color-petrol);
  color: #FFFFFF;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: transparent;
  color: var(--color-petrol);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-ghost:hover {
  background-color: rgba(39, 52, 58, 0.06);
}

/* Navegación móvil */

.mobile-link {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.875rem;
  color: var(--color-grey);
}

.mobile-link:hover {
  background-color: rgba(148, 163, 184, 0.12);
}

.mobile-btn-primary,
.mobile-btn-outline {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  text-align: center;
}

.mobile-btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.mobile-btn-outline {
  border: 1px solid var(--color-petrol);
  color: var(--color-petrol);
}

/* ==============================
   Títulos y texto
   ============================== */

.section-title {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-petrol);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-grey);
}

/* ==============================
   Cards y tags
   ============================== */

.feature-card {
  background-color: var(--color-bg-soft);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0; /* slate-200 */
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-petrol);
  margin-bottom: 0.25rem;
}

.feature-text {
  font-size: 0.8rem;
  color: var(--color-grey);
  line-height: 1.5;
}

.tag-primary,
.tag-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-primary {
  background-color: rgba(227, 165, 41, 0.12);
  color: var(--color-primary-dark);
}

.tag-soft {
  background-color: rgba(148, 163, 184, 0.12);
  color: var(--color-grey);
}

/* ==============================
   Eventos
   ============================== */

.event-card {
  background-color: #FFFFFF;
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.event-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  margin-bottom: 0.25rem;
}

.event-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-petrol);
  margin-bottom: 0.25rem;
}

.event-text {
  font-size: 0.8rem;
  color: var(--color-grey);
  line-height: 1.5;
}

/* ==============================
   Galería
   ============================== */

.gallery-item {
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #e2e8f0; /* slate-200 */
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   Formulario
   ============================== */

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-petrol);
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1; /* slate-300 */
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-petrol);
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(227, 165, 41, 0.3);
}

/* Mensajes del formulario */

#form-message.success {
  background-color: rgba(39, 43, 0, 0.12);
  color: var(--color-olive-dark);
  border: 1px solid rgba(39, 43, 0, 0.5);
}

#form-message.error {
  background-color: rgba(220, 38, 38, 0.07);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.6);
}



/* ==============================
   HERO SLIDER
   ============================== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 420px;          /* alto fijo solicitado */
  max-height: 420px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay de contenido */

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(39, 52, 58, 0.85),
    rgba(39, 52, 58, 0.25),
    rgba(39, 52, 58, 0)
  );
  display: flex;
  align-items: center;
  color: #FFFFFF;
}

.hero-slide-content {
  max-width: 26rem;
}

@media (min-width: 768px) {
  .hero-slide-content {
    max-width: 32rem;
  }
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.9);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(243, 244, 246, 0.9);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn-alt {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.hero-btn-alt:hover {
  background-color: #FFFFFF;
  color: var(--color-petrol);
}

/* Flechas */

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-petrol);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  transition: background-color 0.15s ease, transform 0.1s ease;
  z-index: 3;
}

.hero-slider-arrow:hover {
  background-color: #FFFFFF;
  transform: translateY(-50%) translateY(-1px);
}

.hero-slider-arrow-prev {
  left: 1rem;
}

.hero-slider-arrow-next {
  right: 1rem;
}

/* Puntos */

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
}

.hero-slider-dot.is-active {
  background-color: #FFFFFF;
}

/* Ajuste en pantallas pequeñas: un poco más alto si quieres */
@media (max-width: 480px) {
  .hero-slider {
    height: 420px; /* lo mantengo por lo que pediste */
  }
}

/* ==============================
   FRANJA DE 3 CAJAS
   ============================== */

.info-stripe {
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  /* sin gap: cajas pegadas */
  gap: 0;
}

/* En desktop, 3 columnas pegadas */
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-card {
  min-height: 180px;
  padding: 2rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Colores según paleta */
.info-card-1 {
  background-color: var(--color-olive);
}

.info-card-2 {
  background-color: var(--color-petrol);
}

.info-card-3 {
  background-color: var(--color-primary);
  color: var(--color-petrol);
}

.info-card-3 .info-title {
  color: var(--color-petrol);
}

.info-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================
   Icono hamburguesa fijo
   ========================== */

#mobile-menu-toggle {
  position: relative;
  z-index: 40;
}

/* Ocultamos las líneas internas y usamos un pseudo-elemento */
#mobile-menu-toggle span:not(.sr-only) {
  display: none;
}

/* Dibujamos las 3 barras con un solo pseudo-elemento */
#mobile-menu-toggle::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--color-petrol);
  box-shadow:
    0 -6px 0 0 var(--color-petrol),
    0  6px 0 0 var(--color-petrol);
}



/* Ocultar flechas del slider en responsive (mobile) */
@media (max-width: 640px) { /* hasta ~sm */
  .hero-slider-arrow {
    display: none;
  }
}



/* ==============================
   VIDEOS GRID
   ============================== */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* 2 columnas desde 640px */
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 4 columnas desde 1024px */
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-item {
  background-color: #f8fafc; /* slate-50 */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.video-frame {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}



