
/* styles.min.css - CSS con popup simple y footer actualizado */
:root {
    --primary-blue: #65a3d4;
    --primary-blue-dark: #4a7aa8;
    --secondary-red: #dc3545;
    --accent-gold: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* IndivisaFont aplicada globalmente */
body {
    font-family: 'Indivisa', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    padding-top: 76px;
}

/* Clase específica para IndivisaFont */
.indivisa-font {
    font-family: 'Indivisa', sans-serif !important;
}

/* Aplicar IndivisaFont a todos los elementos de texto */
h1, h2, h3, h4, h5, h6,
p, span, a, li,
button, input, textarea,
.navbar-nav .nav-link,
.dropdown-menu .dropdown-item,
.btn,
.footer-copyright p {
    font-family: 'Indivisa', sans-serif;
}

/* Espaciado entre secciones */
.section-spacing {
    padding: 5rem 0;
}

.section-row {
    margin-bottom: 3rem;
}

.section-row:last-child {
    margin-bottom: 0;
}

/* Títulos de sección más grandes */
.section-title {
    font-family: 'Indivisa', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2.5rem;
}

/* Navbar con nuevo azul */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), #4a8bc5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand { margin-right: 1rem; }
.logos-nav { display: flex; align-items: center; }
.logo-nav { height: 50px; width: auto; transition: transform 0.3s ease; }
.logo-nav:hover { transform: scale(1.05); }

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-family: 'Indivisa', sans-serif;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

.dropdown-menu .dropdown-item {
    font-family: 'Indivisa', sans-serif;
    font-weight: 400;
}

/* Botón Systelar DORADO (mantenido) */
.btn-systelar {
    background: var(--accent-gold);
    color: var(--dark-text);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Indivisa', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-systelar:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Botón Calendario ROJO con tamaño ajustado al texto */
.btn-systelar-calendario {
    background: var(--secondary-red);
    color: var(--white);
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Indivisa', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    min-width: auto;
    width: auto;
}

.btn-systelar-calendario:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: var(--white);
    text-decoration: none;
}

/* Hero Section con YouTube - MEJORADO PARA LLENAR COMPLETAMENTE */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Overlay para mejor contraste */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.hero-logo {
    max-width: 600px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    width: 100%;
    height: auto;
}

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

/* Botones del hero con mismo tamaño */
.btn-inscribete,
.btn-conocenos,
.btn-ver-video {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Indivisa', sans-serif;
    font-weight: 600;
    border: none;
    min-width: 200px;
    text-align: center;
}

.btn-inscribete {
    background: var(--secondary-red);
    color: var(--white);
}

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

.btn-ver-video {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-inscribete:hover { 
    background: #c82333; 
    transform: translateY(-2px); 
}

.btn-conocenos:hover { 
    background: #4a8bc5; 
    border-color: #4a8bc5;
    transform: translateY(-2px); 
}

.btn-ver-video:hover { 
    background: rgba(255,255,255,0.3); 
    transform: translateY(-2px); 
}

/* Features Section */
.feature-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-azul { 
    background: linear-gradient(135deg, var(--primary-blue), #7ab1dc); 
    color: var(--white); 
}

.card-rojo { 
    background: linear-gradient(135deg, var(--secondary-red), #e83e8c); 
    color: var(--white); 
}

.card-dorado { 
    background: linear-gradient(135deg, var(--accent-gold), #fd7e14); 
    color: var(--dark-text); 
}

.card-blanco { 
    background: var(--white); 
    color: var(--dark-text); 
    border: 2px solid #e9ecef; 
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h5 {
    font-family: 'Indivisa', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    font-family: 'Indivisa', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Sections Grid - Más separación y títulos más grandes */
.section-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.section-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.section-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-card:hover .section-image {
    transform: scale(1.1);
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(101, 163, 212, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-card:hover .section-overlay {
    opacity: 1;
}

.btn-view-more {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Indivisa', sans-serif;
}

.section-content {
    padding: 2rem;
}

.section-card-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Indivisa', sans-serif;
    font-size: 1.5rem;
}

.section-card-text {
    font-family: 'Indivisa', sans-serif;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Vida Escolar Grid con popup simple */
.vida-escolar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.grid-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* POPUP SIMPLE - Estilos nuevos */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-red);
    color: var(--white);
    border: null;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.popup-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-family: 'Indivisa', sans-serif;
}

/* Noticias Carousel */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.visually-hidden {
    font-family: 'Indivisa', sans-serif;
}

/* Social & Maps */
.social-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-container iframe {
    display: block;
}

/* Contact Section */
.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-family: 'Indivisa', sans-serif;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(101, 163, 212, 0.25);
}

.contact-form .form-control::placeholder {
    font-family: 'Indivisa', sans-serif;
    color: #6c757d;
}

.btn-enviar {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Indivisa', sans-serif;
    font-weight: 600;
}

.btn-enviar:hover {
    background: #4a8bc5;
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item.text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item.text-center .contact-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.contact-item h6 {
    font-family: 'Indivisa', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-family: 'Indivisa', sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Footer Actualizado */
footer {
    background: linear-gradient(135deg, var(--primary-blue), #4a8bc5);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.footer-social a:hover {
    color: var(--primary-blue);
    background: var(--white);
    transform: translateY(-3px);
}

.footer-calendario {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer-copyright p {
    font-family: 'Indivisa', sans-serif;
    font-weight: 400;
    margin: 0;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for YouTube video - ELIMINAR ESPACIOS NEGROS */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .video-foreground iframe {
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-inscribete,
    .btn-conocenos,
    .btn-ver-video {
        min-width: 250px;
    }
}

/* Asegurar que el video llene completamente en todas las orientaciones */
@media (orientation: portrait) {
    .video-foreground iframe {
        width: 177.78vh; /* 16:9 ratio based on height */
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
    }
}

@media (orientation: landscape) {
    .video-foreground iframe {
        width: 100vw;
        height: 56.25vw; /* 16:9 ratio based on width */
        min-width: 100%;
        min-height: 100%;
    }
}
