/* ==================== */
/* ESTILOS GENERALES */
/* ==================== */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', sans-serif;
    overflow-x: hidden;
    color: #ffffff;
    background: url('../../static/img/fondo4N.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 80px; /* Espacio para la barra fija */
}

/* ==================== */
/* ESTRUCTURA PRINCIPAL */
/* ==================== */
.seccion {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ==================== */
/* PORTADA - CONTENEDOR */
/* ==================== */
.portada-contenedor {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    padding: 0 15px;
    margin: 0 auto;
    min-height: auto;
}

/* ==================== */
/* CONTENIDO DE PORTADA */
/* ==================== */
.portada-texto {
    flex: 1;
    min-height: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== */
/* ELEMENTOS DE CONTACTO */
/* ==================== */
.info-contacto-portada {
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.info-contacto-item {
    padding: 12px 16px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animación para elementos de contacto (blanco) */
@keyframes contact-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
}

.info-contacto-item {
    animation: contact-glow 3s infinite ease-in-out;
}

.info-contacto-item:hover {
    animation: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ==================== */
/* CONTENIDO PRINCIPAL */
/* ==================== */
.contenido-principal {
    margin: 20px 0;
}

/* Efecto de texto brillante (blanco intenso) */
@keyframes white-glow {
    from {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7),
                     0 0 15px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
                     0 0 25px rgba(255, 255, 255, 0.7),
                     0 0 35px rgba(255, 255, 255, 0.4);
    }
}

@keyframes white-glow-p {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.portada-texto h1 {
    animation: white-glow 2.5s ease-in-out infinite alternate;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    align-items: center;
    margin-bottom: 20px;
}

.portada-texto .subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    animation: white-glow-p 3.5s ease-in-out infinite alternate;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ==================== */
/* LOGO */
/* ==================== */
.logo-titulo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    position: relative;
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-titulo:hover {
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        inset 0 0 15px rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* ==================== */
/* VIDEO DE FONDO */
/* ==================== */
.portada-video {
    flex: 0 0 300px;
    min-height: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portada-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== */
/* BOTÓN SCROLL (blanco) */
/* ==================== */
.boton-scroll {
    background: rgba(255, 255, 255, 0.9);
    color: #1a4e6b;
    padding: 15px 30px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    text-decoration: none !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    margin-top: 20px;
}

.boton-scroll:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ==================== */
/* TARJETAS GLOWING 3D (BLANCO INTENSO) */
/* ==================== */
.glowing-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 40px;
    perspective: 1000px;
    flex-wrap: wrap;
}

.glowing-card {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.glowing-card-3d {
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glowing-card-3d:hover {
    transform: translateY(-15px) translateZ(50px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.6),
        0 0 100px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.card-list {
    list-style-type: none;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

.card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.card-list li:before {
    content: "✦";
    color: white;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
}

/* ==================== */
/* BARRA DE NAVEGACIÓN SUPERIOR FIJA */
/* ==================== */
.navbar-superior-fija {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}

.navbar-superior-fija.collapsed {
    transform: translateY(-100%);
}

.navbar-contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.navbar-info-contacto {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-logo-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-navbar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.titulo-navbar {
    font-size: 1.2rem;
    margin: 0;
    animation: white-glow 2.5s ease-in-out infinite alternate;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* ==================== */
/* BOTÓN TOGGLE PARA MÓVIL */
/* ==================== */
.navbar-toggle {
    display: none;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-radius: 0 0 15px 15px;
    width: 40px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.navbar-toggle .toggle-icon {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.navbar-superior-fija.collapsed .navbar-toggle .toggle-icon {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* ==================== */
/* CONTENEDOR PRINCIPAL CON NAVBAR */
/* ==================== */
.contenido-principal-con-navbar {
    padding-top: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */
@media (max-width: 1200px) {
    .portada-contenedor {
        flex-direction: column;
        gap: 20px;
    }
    
    .portada-texto, .portada-video {
        width: 100%;
        max-width: 100%;
    }
    
    .portada-texto {
        min-height: 750px;
        padding: 40px;
    }
    
    .portada-video {
        height: 400px;
        min-height: auto;
    }
    
    .glowing-cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .portada-texto {
        padding: 30px;
        min-height: 700px;
    }
    
    .info-contacto-portada {
        justify-content: center;
        gap: 20px;
    }
    
    .glowing-card {
        flex: 1 1 100%;
        padding: 25px;
    }
    
    .portada-texto h1 {
        font-size: 2.2rem;
    }
    
    .logo-titulo {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .portada-video {
        height: 300px;
    }
    
    /* Mostrar el botón toggle en móviles */
    .navbar-toggle {
        display: block;
    }
    
    /* Ajustar el padding del body cuando la barra está colapsada */
    body.navbar-collapsed {
        padding-top: 20px;
    }
}

@media (max-width: 576px) {
    .portada-texto h1 {
        font-size: 1.8rem;
    }
    
    .portada-texto .subtitle {
        font-size: 1rem;
    }
    
    .info-contacto-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .glowing-card {
        min-height: 350px;
    }
}

/* ==================== */
/* MEDIA QUERIES PARA LA BARRA DE NAVEGACIÓN */
/* ==================== */
@media (max-width: 768px) {
    .navbar-contenido {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 20px;
    }
    
    .navbar-info-contacto {
        justify-content: center;
        gap: 15px;
    }
    
    .titulo-navbar {
        font-size: 1rem;
    }
    
    .logo-navbar {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .navbar-info-contacto {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-contacto-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .titulo-navbar {
        font-size: 0.9rem;
    }
}

/* ==================== */
/* FOOTER STYLES */
/* ==================== */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        min-width: 100%;
    }
}
