/* ═══════════════════════════════════════════
   SIERRA NORTE GUADALAJARA — Estilos globales
   ═══════════════════════════════════════════ */

:root {
  /* Paleta de color */
  --sng-verde-bosque:    #2D5A27;   /* color principal */
  --sng-verde-claro:     #5A8F52;   /* hover / acento */
  --sng-tierra:          #8B5E3C;   /* acento cálido */
  --sng-cielo:           #1B3A6B;   /* astroturismo / noche */
  --sng-arena:           #F4ECD8;   /* fondos cálidos */
  --sng-blanco:          #FAFAF8;   /* fondo general */
  --sng-texto:           #2C2C2C;   /* texto principal */
  --sng-texto-suave:     #666660;   /* texto secundario */

  /* Tipografía */
  --sng-font-titulo:     'Playfair Display', Georgia, serif;
  --sng-font-cuerpo:     'Lato', Arial, sans-serif;
  --sng-font-acento:     'Merriweather', Georgia, serif;

  /* Espaciado */
  --sng-radio:           8px;
  --sng-sombra:          0 4px 20px rgba(0,0,0,0.10);
}

/* ── Tipografía global ── */
body {
  font-family: var(--sng-font-cuerpo);
  color: var(--sng-texto);
  background-color: var(--sng-blanco);
}

h1, h2, h3 {
  font-family: var(--sng-font-titulo);
  color: var(--sng-verde-bosque);
}

/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&family=Merriweather:wght@400;700&display=swap');

/* Forzar tipografía en elementos Divi 5 */
.et_pb_section h1,
.et_pb_section h2,
.et_pb_section h3,
.et_pb_section h4,
.et_pb_module_header,
.et_pb_title_container h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.et_pb_section p,
.et_pb_section li,
.et_pb_section span,
.et_pb_text_inner,
body, button, input, select, textarea {
  font-family: 'Lato', Arial, sans-serif !important;
}

/* Color primario en enlaces y botones Divi 5 */
a { color: #2D5A27; }
a:hover { color: #5A8F52; }

.et_pb_button,
.et_pb_promo_button {
  background-color: #2D5A27 !important;
  border-color: #2D5A27 !important;
}
.et_pb_button:hover,
.et_pb_promo_button:hover {
  background-color: #5A8F52 !important;
  border-color: #5A8F52 !important;
}


/* ── Botones principales ── */
.sng-btn-primary {
  background-color: var(--sng-verde-bosque);
  color: white;
  padding: 14px 32px;
  border-radius: var(--sng-radio);
  font-family: var(--sng-font-cuerpo);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.sng-btn-primary:hover {
  background-color: var(--sng-verde-claro);
  color: white;
}

.sng-btn-secondary {
  background-color: transparent;
  color: var(--sng-verde-bosque);
  border: 2px solid var(--sng-verde-bosque);
  padding: 12px 30px;
  border-radius: var(--sng-radio);
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.sng-btn-secondary:hover {
  background-color: var(--sng-verde-bosque);
  color: white;
}

/* ── Cards de actividades / zonas ── */
.sng-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--sng-sombra);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sng-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.sng-card__imagen img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.sng-card__contenido {
  padding: 24px;
}
.sng-card__titulo {
  font-family: var(--sng-font-titulo);
  font-size: 1.25rem;
  color: var(--sng-verde-bosque);
  margin-bottom: 8px;
}
.sng-card__texto {
  color: var(--sng-texto-suave);
  font-size: 0.95rem;
  line-height: 1.6;
}
.sng-card__badge {
  display: inline-block;
  background: var(--sng-arena);
  color: var(--sng-tierra);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sng-card__badge--tubkala {
  background: var(--sng-cielo);
  color: white;
}

/* ── Sección con fondo oscuro (astroturismo) ── */
.sng-seccion-noche {
  background: linear-gradient(135deg, var(--sng-cielo) 0%, #0a1628 100%);
  color: white;
  padding: 80px 0;
}
.sng-seccion-noche h2,
.sng-seccion-noche h3 {
  color: #C8D8F0;
}

/* ── Hero ── */
.sng-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.sng-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(45,90,39,0.55) 100%
  );
}
.sng-hero__contenido {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 720px;
}
.sng-hero__contenido h1 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.sng-hero__contenido p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── Selector de idioma ── */
.sng-lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sng-lang-switcher a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sng-texto-suave);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.sng-lang-switcher a.active,
.sng-lang-switcher a:hover {
  background: var(--sng-verde-bosque);
  color: white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sng-hero { min-height: 70vh; }
  .sng-card__imagen img { height: 180px; }
}

/* Header al hacer scroll */
#main-header.sng-header-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
  background-color: rgba(255,255,255,0.97) !important;
}