/* ==========================================================================
   GRUPO SCOUT SAN BENITO - SISTEMA DE DISEÑO
   ========================================================================== */

:root {
  /* Paleta Corporativa Scout */
  --color-primary-blue: #0f4c81;       /* Azul marino scout */
  --color-primary-blue-dark: #0a3258;
  --color-primary-blue-light: #e8f1f8;
  
  --color-primary-green: #2e7d32;      /* Verde bosque scout */
  --color-primary-green-dark: #1b5e20;
  --color-primary-green-light: #e8f5e9;
  --color-accent-amber: #f59e0b;       /* Acento aventura / fuego de campamento */

  /* Colores por Ramas / Secciones */
  --color-castores: #e77e38;   /* Celeste */
  --color-lobatos: #fbc02d;    /* Amarillo */
  --color-tropa: #2b43c9;      /* Verde */
  --color-pioneros: #d32f2f;   /* Rojo */
  --color-rutas: #2e8818;      /* Verde oscuro/Gris */
  --color-kraal: #6e96eb;      /* Púrpura */
  --color-antiguos: #b434aa;   /* Marrón / Tierra */

  /* Neutros y Superficies */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  /* Tipografías */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevaciones / Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -2px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 20px 30px -4px rgba(15, 76, 129, 0.12);
  --shadow-hover: 0 24px 38px -4px rgba(46, 125, 50, 0.2);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reseteo y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   CABECERA & NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1.5rem;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-logo img.custom-logo-img,
.site-logo img {
  height: clamp(60px, 6vw, 80px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height 0.2s ease;
}

.site-logo .logo-icon {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
}

.site-logo .logo-text-main {
  color: var(--color-primary-blue);
  white-space: nowrap;
}

.site-logo .logo-text-highlight {
  color: var(--color-primary-green);
  white-space: nowrap;
}




.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-blue), var(--color-primary-green));
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-green));
  color: #fff !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-green));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary-blue);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--color-primary-blue);
  background: var(--color-primary-blue-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIONES & HERO (PORTADA)
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary-green);
  background: var(--color-primary-green-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Hero */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(46, 125, 50, 0.9)), url('https://images.unsplash.com/photo-1510312305653-8ed496efae75?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 8rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   TARJETAS DE RAMAS SCOUTS
   ========================================================================== */
.ramas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.rama-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rama-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--rama-color, var(--color-primary-blue));
}

.rama-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.rama-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  background: var(--rama-color, var(--color-primary-blue));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.rama-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.rama-age {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.rama-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Colores específicos de ramas */
.rama-castores { --rama-color: var(--color-castores); }
.rama-lobatos  { --rama-color: var(--color-lobatos); }
.rama-tropa    { --rama-color: var(--color-tropa); }
.rama-pioneros { --rama-color: var(--color-pioneros); }
.rama-rutas    { --rama-color: var(--color-rutas); }
.rama-kraal    { --rama-color: var(--color-kraal); }
.rama-antiguos { --rama-color: var(--color-antiguos); }

/* ==========================================================================
   BLOG / NOTICIAS & GALERÍA
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.post-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-thumb {
  height: 220px;
  overflow: hidden;
  background-color: var(--color-primary-blue-light);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0b1e33;
  color: #e2e8f0;
  padding: 4.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.7;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #48bb78;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 868px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-blue);
  }

  .site-header {
    position: relative;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: none;
    z-index: 999;
  }

  .main-navigation.is-active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .site-logo a {
    font-size: 1.1rem;
    gap: 8px;
  }
  
  .header-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

