/* --- PALETA DE COLORES ---
   Azul Marino Oscuro: #1C2541
   Azul Claro: #87CEFA
   Verde Claro: #90EE90
   Amarillo: #FFFACD
   Naranjo: #FFA07A
   Dorado Institucional: #d4af37
--------------------------- */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    scroll-behavior: smooth;
}

/* Contenedor padrão */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ------------------------------------------- */
/* HEADER */
/* ------------------------------------------- */

.top-header-container {
    background: #1C2541; 
    color: white;
}

.top-bar {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 10px 0;
}

.search-box {
    display: flex;
    margin-right: 20px;
}

.search-box input {
    padding: 8px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2); 
    color: white;
    font-size: 0.9em;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.4); 
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #87CEFA; 
}

.logo-bar {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
}

.logo {
    width: 60px;
    margin-right: 15px;
}

.logo-bar h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: white;
}

/* Navegação */
.main-nav-bar {
    background: white; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; 
    top: 0;
    z-index: 100;
}

.main-nav-bar .container {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
}

.main-nav-bar a {
    color: #1C2541; 
    text-decoration: none;
    font-weight: bold;
    padding: 0 10px;
    transition: color 0.3s;
}

.main-nav-bar a:hover {
    color: #d4af37; 
}

/* ------------------------------------------- */
/* HERO (CARROSSEL) */
/* ------------------------------------------- */

.hero {
    position: relative; 
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
    height: 550px; 
    overflow: hidden; 
    padding: 0; 
    margin-bottom: 0;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    width: 500%; 
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 20%; 
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* ------------------------------------------- */
/* SEÇÕES GERAIS */
/* ------------------------------------------- */

section {
    padding: 60px 0;
    text-align: center;
}

section .container {
    padding: 0 20px;
}

/* ------------------------------------------- */
/* SOBRE NOSOTROS */
/* ------------------------------------------- */

#nosotros {
    background-color: white;
    text-align: left;
}

.about-grid {
    display: flex;
    align-items: center; 
    gap: 50px; 
}

.about-content {
    flex: 1; 
}

.about-content h2 {
    font-size: 2em;
    color: #1C2541; 
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1em;
    line-height: 1.6; 
    color: #555;
    margin-bottom: 20px;
}

.btn-gold {
    display: inline-block;
    background-color: #d4af37; 
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-gold:hover {
    background-color: #c09f30; 
}

.about-video {
    flex: 1; 
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 10px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    #nosotros {
        text-align: center; 
    }
}

/* ------------------------------------------- */
/* CARDS (CURSOS E EQUIPE) */
/* ------------------------------------------- */

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.card {
    background: white;
    padding: 20px; 
    border-radius: 10px;
    width: 250px; 
    height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#cursos .card-infantil {
    background-color: #90EE90; 
    color: #333;
}

#cursos .card-fundamental {
    background-color: #FFFACD; 
    color: #333;
}

#cursos .card-media {
    background-color: #FFA07A; 
    color: #333;
}

/* ------------------------------------------- */
/* DOCUMENTOS INSTITUCIONALES (7 DOCUMENTOS) */
/* ------------------------------------------- */

#documentos {
    background-color: #f9f9f9;
}

.docs-grid-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doc-item {
    background: white;
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid #1C2541;
    text-align: center;
}

.doc-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.doc-item i {
    font-size: 3em;
    color: #d4af37; 
    margin-bottom: 15px;
}

.doc-item h4 {
    color: #1C2541;
    margin: 10px 0;
    font-size: 1.1em;
}

.doc-item p {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
    height: 45px; 
}

.btn-doc {
    display: inline-block;
    background: #1C2541;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-doc:hover {
    background: #87CEFA;
    color: #1C2541 !important;
}

/* ------------------------------------------- */
/* GALERÍA DE FOTOS (ESTILO MOSAICO) */
/* ------------------------------------------- */

#galeria {
    background-color: white;
    padding: 80px 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
    cursor: pointer;
}

.galeria-item img:hover {
    transform: scale(1.1); 
}

/* ------------------------------------------- */
/* SECCIÓN DE CONTACTO MEJORADA */
/* ------------------------------------------- */

#contacto {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px; 
    align-items: center; 
    text-align: left;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: #1C2541;
    margin-bottom: 30px;
    text-align: left;
}

.contact-info p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #d4af37;
    margin-right: 20px;
    font-size: 1.4em;
    width: 30px;
    text-align: center;
}

/* MODIFICAÇÕES NO MAPA */
.contact-map {
    flex: 1.5; 
    min-width: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 400px; 
    border: 0;
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    transition: transform 0.3s ease;
}

.contact-map iframe:hover {
    transform: translateY(-5px); 
}

/* ------------------------------------------- */
/* FOOTER */
/* ------------------------------------------- */

footer {
    background: #87CEFA; 
    color: #1C2541; 
    padding: 30px;
    text-align: center;
    font-weight: bold;
}

/* ------------------------------------------- */
/* ESTILOS DEL MODAL (DIÁLOGO DE FOTOS) */
/* ------------------------------------------- */

.modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
}

.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.cerrar {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.cerrar:hover {
    color: #d4af37;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .main-nav-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-grid {
        flex-direction: column;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .contact-map iframe {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------- */
/* NUEVA ACTUALIZACIÓN: CONTACTO Y FOOTER PREMIUM (APPZEROSTUDIOS) */
/* ------------------------------------------- */

#contacto {
    background-color: #ffffff; 
}

.contact-info {
    background: #1C2541; /* Azul marino profundo */
    padding: 40px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-info h2 {
    color: #d4af37 !important; /* Dorado resaltado */
    margin-bottom: 25px;
}

.contact-info p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.contact-info i {
    background: rgba(212, 175, 55, 0.15);
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer {
    background: #1C2541 !important; /* Azul Marino sólido */
    color: white !important;
    padding: 60px 0 30px 0 !important;
    border-top: 4px solid #d4af37;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #87CEFA;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

.credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
    font-size: 0.9em;
}

.appzero-brand {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 5px;
}

.appzero-brand:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}