:root {
    --bg: rgb(255, 249, 234);
    --surface: #ffffff;
    --text: #212529;
    --muted: #6c757d;
    --green: #1aa37a;
    --brand: #1aa37a;
    --shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg)
}


img {
    max-width: 100%;
    display: block;
    border-radius: 14px
}

#hero, 
#nosotros, 
#jardin, 
#escuela, 
#admision, 
#contacto, 
#recursos {
    scroll-margin-top: 195px;
}

/* ===== COMPONENTES GENERALES ===== */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px
}

.bg-soft {
    background: var(--bg)
}


/*===== HEADER & NAVBAR ==== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255, 249, 234);
    box-shadow: var(--shadow);
    padding: 0 16px;

}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0px;
    border-bottom: 1px solid #1aa37a;
}

.brand img {
    height: 150px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand__link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none
}

.brand a {
    font-weight: 800;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.tab {
    display: block;
    text-align: center;
    padding: 12px 10px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid transparent
    
}

.tab:hover {
    background: #f6ce5f;
}

.tab.is-active {
    border-bottom-color: var(--brand);
    color: var(--brand)
}


/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    position: absolute;
    top: 20px;
    right: 16px;
}

.menu-toggle:hover {
    background:rgba(0, 0, 0, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/*==Responsive==*/
@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
    flex: 1;
    padding: 8px 0;
    border-bottom: none;
    }
    
    .brand img {
        height: 80px;
    }
    
    .brand a {
        font-size: 14px;
    }
    /* === MOSTRAR BOTÓN HAMBUR === */
    .menu-toggle {
        display: flex;
    }

    .tabs {
        display: none;
        grid-template-columns: 1fr;
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        z-index: 1000;
        gap: 0;
    }
    

  /* MENÚ ACTIVO   */
    .tabs.active {
        display: grid;
        animation: slideDown 0.3s ease;
    }
    
    .tab {
        padding: 16px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(26, 163, 122, 0.2);
        border-radius: 0;
        font-size: 1rem;
    }
    
    .tab:last-child {
        border-bottom: none;
    }
    
    .tab:hover {
        background: #f6ce5f;
    }
    
    /* ANIMACIÓN HAMBURGUESA */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}


/*===== HERO =====*/

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center
}

.hero__text h1 {
    margin: 0 0 8px
    
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 0;
}

.gallery img {
    flex: 0 0 auto;
    width: 200px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    scroll-snap-align: start;
}

.gallery {
    overflow-x: hidden;
}

.gallery::-webkit-scrollbar {
    display: none;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card__body {
    padding: 14px
}


/* ========== RESPONSIVE GENÉRICO ========== */

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .cards-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cards-grid--2 {
        grid-template-columns: 1fr;
    }
    
    .card__body {
        padding: 16px;
    }
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px
}

/* ESTILO DE VIDA ESCOLAR - CHIPS */

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    background: #eef2ff;
    color: #2e4dca;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700
}




.mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--shadow)
}

.btn--primary {
    background: var(--green);
    color: #fff
}

.btn--outline {
    color: var(--green);
    border: 2px solid var(--green);
    background: transparent
}

footer {
    padding: 24px 0;
    color: var(--muted);
    text-align: center
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #dfe7e2;
    margin: 8px 0
}

.contact-form button {
    margin-top: 8px
}

/* WhatsApp */
.wa-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    text-decoration: none;
    z-index: 20
}



#inicio {
    background: url("/img/hero.png") center/cover no-repeat;
    color: #fff;
    position: relative;
    padding: 80px 0;
}

#inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

#inicio .hero__text {
    position: relative;
    z-index: 2;
}


/* Estilos  para la sección de admisión */
.admision {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.admision .tt {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.admision .info-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.admision .info-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.admision .btn-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}




/* Estilos para la sección de Talleres Extra Programáticos */
.talleres-extra {
    width: 100%;
    background: #fafafa;
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Título de la sección */
.titulo-seccion {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-seccion h2 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
}

.titulo-seccion p {
    font-size: 1.2rem;
    color: #4caf50;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de talleres - 2x2 para desktop */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

/* Cards individuales */
.taller-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Imagen de la card */
.taller-imagen {
    height: 250px;
    overflow: hidden;
}

.taller-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.taller-card:hover .taller-imagen img {
    transform: scale(1.05);
}

/* Contenido de la card (texto debajo de la imagen) */
.taller-contenido {
    padding: 25px;
}

/* Colores pasteles distintos para cada card */
.taller-card:nth-child(1) .taller-contenido {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); /* Verde pastel */
}

.taller-card:nth-child(2) .taller-contenido {
    background: linear-gradient(135deg, #f9fbe7 0%, #f0f4c3 100%); /* Amarillo pastel */
}

.taller-card:nth-child(3) .taller-contenido {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); /* Azul pastel */
}

.taller-card:nth-child(4) .taller-contenido {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); /* Lila pastel */
}

.taller-contenido h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000000; /* Negro */
    font-weight: 600;
}

.taller-contenido p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000; /* Negro */
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .talleres-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .talleres-extra {
        padding: 40px 0;
    }
    
    .titulo-seccion h2 {
        font-size: 2rem;
    }
    
    .titulo-seccion p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .taller-imagen {
        height: 200px;
    }
    
    .taller-contenido {
        padding: 20px;
    }
    
    .taller-contenido h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .taller-imagen {
        height: 180px;
    }
    
    .taller-contenido {
        padding: 15px;
    }
    
    .titulo-seccion h2 {
        font-size: 1.8rem;
    }
    
    .titulo-seccion p {
        font-size: 1rem;
    }
}

/* Para pantallas muy grandes (más de 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .talleres-grid {
        gap: 40px;
    }
    
    .taller-imagen {
        height: 280px;
    }
}



/* ===== SECCIÓN CELEBRACIONES MEJORADA ===== */
.celebraciones-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fdfb 0%, #f0f9f6 100%);
}

.celebraciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.celebracion-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: white;
  position: relative;
}

.celebracion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 163, 122, 0.2);
}

.celebracion-img-container {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.celebracion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.celebracion-card:hover .celebracion-img {
  transform: scale(1.05);
}

.celebracion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 163, 122, 0.1) 30%,
    rgba(26, 163, 122, 0.7) 80%,
    rgba(26, 163, 122, 0.9) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: all 0.4s ease;
}

.celebracion-card:hover .celebracion-overlay {
  opacity: 1;
}

.celebracion-content {
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  text-align: center;
  width: 100%;
}

.celebracion-card:hover .celebracion-content {
  transform: translateY(0);
}

.celebracion-desc {
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.celebracion-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1aa37a;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.celebracion-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Área de información con título siempre visible */
.celebracion-info {
  padding: 25px 20px;
  text-align: center;
  background: white;
  border-top: 3px solid #e8f5e9;
  transition: all 0.3s ease;
}

.celebracion-card:hover .celebracion-info {
  background: linear-gradient(135deg, #f8fdfb 0%, #e8f5e9 100%);
  border-top-color: #1aa37a;
}

.celebracion-title {
  font-size: 1.5rem;
  color: #1aa37a;
  margin: 0;
  font-weight: 700;
  transition: all 0.3s ease;
}

.celebracion-card:hover .celebracion-title {
  color: #148a65;
  transform: scale(1.05);
}

/* Efecto de borde colorido al hover */
.celebracion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #1aa37a, #ffd166, #1f4610);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.celebracion-card:hover::before {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .celebraciones-grid {
    gap: 20px;
    padding: 0 15px;
  }
  
  .celebracion-img-container {
    height: 280px;
  }
  
  .celebracion-info {
    padding: 20px 15px;
  }
  
  .celebracion-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .celebraciones-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
  }
  
  .celebracion-img-container {
    height: 300px;
  }
  
  .celebracion-overlay {
    padding: 20px;
    opacity: 1;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(26, 163, 122, 0.3) 50%,
      rgba(26, 163, 122, 0.8) 100%
    );
  }
  
  .celebracion-content {
    transform: translateY(0);
  }
  
  .celebracion-info {
    padding: 20px;
  }
  
  .celebracion-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .celebraciones-section {
    padding: 30px 0;
  }
  
  .celebracion-img-container {
    height: 250px;
  }
  
  .celebracion-overlay {
    padding: 15px;
  }
  
  .celebracion-info {
    padding: 15px;
  }
  
  .celebracion-title {
    font-size: 1.3rem;
  }
  
  .celebracion-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .celebracion-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.celebracion-card {
  animation: fadeInUp 0.6s ease forwards;
}

.celebracion-card:nth-child(2) {
  animation-delay: 0.1s;
}

.celebracion-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Efecto de icono decorativo en el título */
.celebracion-info::before {
  display: block;
  font-size: 1.2rem;
  color: #1aa37a;
  margin-bottom: 8px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.celebracion-card:hover .celebracion-info::before {
  transform: scale(1.3) rotate(15deg);
  opacity: 1;
}






/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* ===== TIPOGRAFÍA PACIFIO - ORGANIZADA ===== */

/* 1. NAVBAR CON PACIFIO Y TAMAÑO AGRANDADO */
.site-header .brand a {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
    font-size: 1.4rem; /* ✅ Tamaño agrandado */
    color: #333;
    text-decoration: none;
}

.tabs .tab {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
    font-size: 1.1rem; /* ✅ Tamaño agrandado */
}

/* 2. TÍTULOS PRINCIPALES CON PACIFIO */
h1, h2, h3, h4, .tt, .tty {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
}

/* 3. ELEMENTOS ESPECÍFICOS CON PACIFIO */
.hero__content h1,
.section h2.tt,
.jardin-title,
.jardin-subtitle,
.celebracion-title,
.modal__title,
.card__body h4 {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
}

/* 4. SECCIÓN "NUESTRA HISTORIA" - VERDE Y ESPACIADO */
.split__content h3 {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
    color: #2E8B57;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.split__content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split__content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.split__content .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* 5. PERFILES DE TARJETAS CON PACIFIO */
.card__body h4 {
    font-size: 1.4rem;
    color: #2E8B57;
    margin-bottom: 0.8rem;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}