/* ==================== */
/* 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;
}

/* ==================== */
/* 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: 1400px;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    padding: 0 20px;
    margin: 0 auto;
}

/* ==================== */
/* CONTENIDO DE PORTADA */
/* ==================== */
.portada-texto {
    flex: 1;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    padding: 50px;
    position: relative;
}

/* ==================== */
/* 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);
}

.info-contacto-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
    z-index: -1;
}

.info-contacto-item:hover::after {
    border-color: rgba(255, 255, 255, 0.4);
}

.info-contacto-item i {
    transition: transform 0.3s ease;
}

.info-contacto-item:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* CONTENIDO PRINCIPAL */
/* ==================== */
.contenido-principal {
    margin: 20px 0;
}

/* Efecto de texto brillante (blanco) */
@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;
}

.portada-texto p {
    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;
}

.portada-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== */
/* BOTÓN SCROLL (blanco) */
/* ==================== */
.boton-scroll {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 10px 20px;
    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;
}

.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;
}

.glowing-card {
    flex: 1;
    min-width: 200px;
    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::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.glowing-card:hover::before {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.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);
}

.glowing-card-3d.selected {
    transform: translateY(-25px) translateZ(80px) rotateX(15deg) rotateY(15deg) scale(1.15);
    box-shadow: 
        0 30px 60px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.8),
        0 0 120px rgba(255, 255, 255, 0.6),
        0 0 180px rgba(255, 255, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 1);
}

.glowing-card-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glowing-card-3d:hover::after {
    opacity: 1;
}

.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);
    }
}

/* Efectos hover mejorados */
.glowing-card:hover .card-title {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8);
}

.glowing-card:hover .card-icon {
    transform: scale(1.2) translateZ(20px);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

.glowing-card:hover .card-list li:before {
    animation: pulse 0.5s infinite;
}

/* Versión con listas */
.glowing-card.with-list {
    width: 320px;
    min-height: 380px;
    text-align: left;
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card-list {
    list-style-type: none;
    padding-left: 0;
}

.card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-list li:before {
    content: "•";
    color: white;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* ==================== */
/* CONTENEDOR DE IMAGEN 1/4 */
/* ==================== */
.imagen-container {
    width: 80px;
    height: 95px;
    margin: 15px auto;
    border-radius: 10px;
  
}

.imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Efectos hover (blanco) */
.glowing-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 0 25px rgba(255, 255, 255, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.glowing-card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

/* ==================== */
/* 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: 992px) {
    .glowing-card {
        flex: 1 1 calc(50% - 20px);
        min-width: auto;
    }
}

@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;
    }
}

@media (max-width: 576px) {
    .portada-texto h1 {
        font-size: 1.8rem;
    }
    
    .portada-texto p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .info-contacto-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .glowing-card {
        min-height: 350px;
    }
}

/* ==================== */
/* TRANSICIONES */
/* ==================== */
.boton-scroll, 
.glowing-card, 
.glowing-card .card-icon,
.info-contacto-item,
.logo-titulo {
    transition: all 0.3s ease-out;
}