/**
 * EXPMU - Página de inicio (Versión compacta)
 * Carrusel más junto + Videos con efecto hover + Modal sin fondo
 */

.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--img-hero);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1rem;
    color: #e2e8f0;
    max-width: 520px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.intro h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.intro p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-features,
.card-videos {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.card-features h3,
.card-videos h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.card-features h3::after,
.card-videos h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.feature-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-item:first-child {
    padding-top: 0;
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.feature-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   LISTA DE VIDEOS
   ============================================ */
.video-list {
    list-style: none;
}

.video-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.video-item:last-child {
    border-bottom: none;
}

.video-item.empty {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.8rem;
}

.video-link {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    text-decoration: none;
}

.video-item:hover {
    transform: translateX(5px);
}

.video-item:hover .video-link {
    background: var(--primary-soft);
}

.video-item:hover .video-title {
    color: var(--primary);
}

.video-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.15rem;
    transition: color 0.25s ease;
}

.video-item:hover .video-date {
    color: var(--primary-light);
}

.video-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.25s ease;
    display: inline-block;
}

/* ============================================
   CARRUSEL 3D - CORREGIDO
   ============================================ */
.carousel-3d {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.carousel-3d-container {
    position: relative;
    height: 220px;
    perspective: 1200px;
}

.carousel-3d-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.carousel-3d-stack:active {
    cursor: grabbing;
}

.carousel-3d-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: #1a1a2e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Forzar tamaño correcto de las imágenes */
.carousel-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Tarjeta central */
.carousel-3d-card.center {
    width: 320px;
    height: 180px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: auto;
}

/* Tarjetas laterales nivel 1 */
.carousel-3d-card.left-1,
.carousel-3d-card.right-1 {
    width: 240px;
    height: 135px;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 80;
    opacity: 0.85;
}

.carousel-3d-card.left-1 {
    left: 30%;
}

.carousel-3d-card.right-1 {
    left: 70%;
}

/* Tarjetas laterales nivel 2 */
.carousel-3d-card.left-2,
.carousel-3d-card.right-2 {
    width: 180px;
    height: 101px;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    opacity: 0.7;
}

.carousel-3d-card.left-2 {
    left: 16%;
}

.carousel-3d-card.right-2 {
    left: 84%;
}

/* Tarjetas ocultas */
.carousel-3d-card.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Línea inferior del carrusel */
.carousel-3d::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 0.75rem auto 0;
    border-radius: var(--radius-sm);
}

/* Dots del carrusel */
.carousel-3d-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel-3d-dot {
    width: 6px;
    height: 6px;
    background: var(--border-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-3d-dot.active {
    width: 24px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.carousel-3d-dot:hover {
    background: var(--primary);
    opacity: 0.7;
}

/* ============================================
   MODAL DE IMAGEN AMPLIADA
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.modal-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

/* Benefits */
.benefits-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.benefits-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.benefits-title h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.benefits-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.benefit-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.benefit-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.benefit-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.benefit-tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .carousel-3d-card.center {
        width: 280px;
        height: 157px;
    }
    .carousel-3d-card.left-1,
    .carousel-3d-card.right-1 {
        width: 210px;
        height: 118px;
    }
    .carousel-3d-card.left-2,
    .carousel-3d-card.right-2 {
        width: 160px;
        height: 90px;
    }
    .carousel-3d-card.left-1 { left: 28%; }
    .carousel-3d-card.right-1 { left: 72%; }
    .carousel-3d-card.left-2 { left: 14%; }
    .carousel-3d-card.right-2 { left: 86%; }
}

@media (max-width: 992px) {
    .hero {
        min-height: 360px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .carousel-3d-container {
        height: 200px;
    }
    .carousel-3d-card.center {
        width: 250px;
        height: 140px;
    }
    .carousel-3d-card.left-1,
    .carousel-3d-card.right-1 {
        width: 190px;
        height: 107px;
    }
    .carousel-3d-card.left-2,
    .carousel-3d-card.right-2 {
        width: 140px;
        height: 79px;
    }
    .carousel-3d-card.left-1 { left: 26%; }
    .carousel-3d-card.right-1 { left: 74%; }
    .carousel-3d-card.left-2 { left: 12%; }
    .carousel-3d-card.right-2 { left: 88%; }
}

@media (max-width: 850px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 300px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .carousel-3d-container {
        height: 170px;
    }
    .carousel-3d-card.center {
        width: 220px;
        height: 124px;
    }
    .carousel-3d-card.left-1,
    .carousel-3d-card.right-1 {
        width: 160px;
        height: 90px;
    }
    .carousel-3d-card.left-2,
    .carousel-3d-card.right-2 {
        display: none;
    }
    .carousel-3d-card.left-1 {
        left: 24%;
    }
    .carousel-3d-card.right-1 {
        left: 76%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
    .carousel-3d-container {
        height: 140px;
    }
    .carousel-3d-card.center {
        width: 180px;
        height: 101px;
    }
    .carousel-3d-card.left-1,
    .carousel-3d-card.right-1 {
        width: 130px;
        height: 73px;
    }
    .carousel-3d-card.left-1 {
        left: 22%;
    }
    .carousel-3d-card.right-1 {
        left: 78%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

