/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colores del jardín maternal - Basados en el logo */
:root {
    --logo-green: #b6d67b;        /* Verde de las letras del logo */
    --logo-yellow: #f6da63;       /* Amarillo del sol del logo */
    --primary-color: #b6d67b;     /* Verde principal (letras logo) */
    --secondary-color: #f6da63;   /* Amarillo secundario (sol logo) */
    --accent-color: #FFE66D;      /* Amarillo cálido complementario */
    --success-color: #95E1D3;     /* Verde menta */
    --text-dark: #2C3E50;         /* Azul oscuro suave */
    --text-light: #7F8C8D;        /* Gris suave */
    --background-light: #F8F9FA;  /* Gris muy claro */
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Header y navegación */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 2.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--logo-yellow) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(246, 218, 99, 0.3);
    animation: logo-glow 2s ease-in-out infinite alternate;
}

.logo-icon i {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--logo-green);
    font-weight: 400;
    letter-spacing: -1px;
}

/* Estilo especial para los emojis soles */
.logo-main {
    color: var(--logo-green);
    font-variation-settings: 'COLR' 1; /* Permite colores de emoji */
}

/* Forzar color amarillo en los emojis usando spans */
.logo-main .sun-emoji {
    color: var(--logo-yellow);
    font-size: 1em;
}

.logo-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
}

/* Logo glow animation */
@keyframes logo-glow {
    0% {
        box-shadow: 0 4px 12px rgba(246, 218, 99, 0.3);
    }
    100% {
        box-shadow: 0 6px 20px rgba(246, 218, 99, 0.5);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 15rem;
    color: var(--white);
    opacity: 0.3;
}

/* Secciones generales */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--background-light);
}

h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Sobre Nosotros */
.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-text p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.valor {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.valor:hover {
    transform: translateY(-5px);
}

.valor i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.valor h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Programas */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.programa-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.programa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.programa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.programa-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.programa-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.programa-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.programa-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Instalaciones */
.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.instalacion {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.instalacion:hover {
    transform: translateX(10px);
}

.instalacion-icon {
    background: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instalacion-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.instalacion h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.instalacion p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Equipo */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.equipo-member {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.equipo-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-photo i {
    font-size: 3rem;
    color: var(--white);
}

.equipo-member h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.equipo-member p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.galeria-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
}

.galeria-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.galeria-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.galeria-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Contacto */
.contacto {
    background: var(--background-light);
}

.contacto-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contacto-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para cards clickeables */
.contacto-item-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contacto-item-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.contacto-item-clickable:hover::before {
    left: 100%;
}

.contacto-item-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contacto-item-clickable:active {
    transform: translateY(-3px);
}

.contacto-icon {
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contacto-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contacto-text p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo-container {
    gap: 10px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo-icon i {
    font-size: 1.4rem;
}

.footer-logo .logo-main {
    font-size: 1.4rem;
}

.footer-logo .logo-subtitle {
    font-size: 0.7rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #34495E;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-icon {
        font-size: 8rem;
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    h2 {
        font-size: 2.5rem;
    }

    .contacto-content {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .contacto-info {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .valores,
    .programas-grid,
    .instalaciones-grid,
    .equipo-grid {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* WhatsApp button responsive */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Logo responsive */
    .logo-container {
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 1.4rem;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programa-card,
.valor,
.instalacion,
.equipo-member,
.contacto-item {
    animation: fadeInUp 0.6s ease forwards;
}

.programa-card:nth-child(1) { animation-delay: 0.1s; }
.programa-card:nth-child(2) { animation-delay: 0.2s; }
.programa-card:nth-child(3) { animation-delay: 0.3s; }
.programa-card:nth-child(4) { animation-delay: 0.4s; }
.programa-card:nth-child(5) { animation-delay: 0.5s; }
.programa-card:nth-child(6) { animation-delay: 0.6s; }
