/* 
 * EXPERIENCIAS CSS - Instituto Lao
 * Página de testimonios de estudiantes
 * Color principal: Rojo #DE2910
 */

/* ===========================
   1. HERO SECTION
   =========================== */
.hero-experiencias {
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6753 0%, #f78121 100%);
    padding: 8rem 0 6rem;
    margin-top: 100px; /* 100px navbar + 45px topbar */
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Partículas decorativas de caracteres chinos */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 6rem;
    font-weight: bold;
    color: white;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 4s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 50%;
    animation-delay: 8s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 12s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 70%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Estadísticas en el hero */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   2. SECCIÓN DE TESTIMONIOS
   =========================== */
.testimonios-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

/* Header de sección */
.section-header-experiencias {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title-experiencias {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title-experiencias::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #DE2910, #FF9F5A);
    border-radius: 2px;
}

.section-subtitle-experiencias {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-top: 1.5rem;
}

/* Grid de testimonios */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* ===========================
   3. CARD DE TESTIMONIO
   =========================== */
.testimonio-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #DE2910, #FF9F5A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.testimonio-card:hover::before {
    transform: scaleX(1);
}

.testimonio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(222, 41, 16, 0.15);
}

/* Header del testimonio */
.testimonio-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonio-avatar {
    position: relative;
    flex-shrink: 0;
}

.testimonio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar-decoration {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 90px;
    height: 90px;
    border: 3px solid #DE2910;
    border-radius: 50%;
    opacity: 0.3;
}

.testimonio-info {
    flex: 1;
}

.testimonio-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Badges de programa */
.testimonio-programa {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programa-mandarinitas {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.programa-integral {
    background: linear-gradient(135deg, rgba(235, 116, 37, 0.15), rgba(217, 100, 25, 0.15));
    color: #d96419;
    border: 1px solid rgba(235, 116, 37, 0.3);
}

.programa-secundaria {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.programa-oro {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 134, 11, 0.15));
    color: #B8860B;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Body del testimonio */
.testimonio-body {
    position: relative;
    margin-bottom: 1.5rem;
}

.comillas-icon {
    color: #DE2910;
    opacity: 0.15;
    margin-bottom: 1rem;
}

.testimonio-texto {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    position: relative;
    z-index: 1;
}

/* Footer del testimonio */
.testimonio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.testimonio-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.25rem;
    color: var(--color-gray-300);
}

.star.filled {
    color: #FFD700;
}

.testimonio-fecha {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

/* ===========================
   4. CTA SECTION
   =========================== */
.cta-experiencias {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-experiencias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="30" fill="rgba(222,41,16,0.05)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    color: #DE2910;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #DE2910 0%, #FF6B35 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(222, 41, 16, 0.4);
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(222, 41, 16, 0.5);
    background: linear-gradient(135deg, #FF6B35 0%, #DE2910 100%);
}

.btn-cta-primary svg {
    transition: transform 0.3s ease;
}

.btn-cta-primary:hover svg {
    transform: translateX(5px);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ===========================
   5. RESPONSIVE
   =========================== */

/* Tablet (< 1024px) */
@media screen and (max-width: 1024px) {
    .hero-experiencias {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .section-title-experiencias {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Mobile (< 767px) */
@media screen and (max-width: 767px) {
    .hero-experiencias {
        padding: 4rem 0 3rem;
        margin-top: 140px; /* 100px navbar + 40px topbar mobile */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-divider {
        height: 40px;
    }
    
    .testimonios-section {
        padding: 4rem 0;
    }
    
    .section-header-experiencias {
        margin-bottom: 3rem;
    }
    
    .section-title-experiencias {
        font-size: 1.75rem;
    }
    
    .section-subtitle-experiencias {
        font-size: 1rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonio-card {
        padding: 1.5rem;
    }
    
    .testimonio-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .avatar-decoration {
        width: 80px;
        height: 80px;
    }
    
    .testimonio-nombre {
        font-size: 1.1rem;
    }
    
    .testimonio-programa {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .testimonio-texto {
        font-size: 0.95rem;
    }
    
    .cta-experiencias {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .particle {
        font-size: 4rem;
    }
}


/* ===================================================================
   GALERÍA DE FOTOS - ESTILOS NUEVOS AGREGADOS
   Sección agregada para mostrar fotos con filtros y lightbox
   =================================================================== */

/* Sección Galería */
.galeria-section {
    padding: 6rem 0;
    background: white;
}

/* Tabs de filtros */
.galeria-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tab-button {
    background: #F3F4F6;
    color: #6B7280;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-button:hover {
    background: #E5E7EB;
    color: #374151;
}

.tab-button.active {
    background: linear-gradient(135deg, #DE2910, #FF6B35);
    color: white;
    border-color: #DE2910;
    box-shadow: 0 4px 15px rgba(222, 41, 16, 0.3);
}

/* Grid de galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Item de galería */
.galeria-item {
    position: relative;
    aspect-ratio: 9/4;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Agregamos sombra para que resalte más */
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* Overlay del item */
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: rgba(222, 41, 16, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.galeria-item:hover .overlay-content {
    transform: scale(1);
}

.icon-zoom {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Ocultar items filtrados */
.galeria-item.hidden {
    display: none;
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contenido del lightbox */
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Botón cerrar */
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(222, 41, 16, 0.9);
    border-color: #DE2910;
    transform: rotate(90deg);
}

/* Flechas de navegación */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-arrow:hover {
    background: rgba(222, 41, 16, 0.9);
    border-color: #DE2910;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Contador */
.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10000;
}

/* ===========================
   RESPONSIVE GALERÍA
   =========================== */

/* Tablet (< 1024px) */
@media screen and (max-width: 1024px) {
    .galeria-section {
        padding: 4rem 0;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .galeria-tabs {
        gap: 0.75rem;
    }
    
    .tab-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .lightbox-arrow {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile (< 767px) */
@media screen and (max-width: 767px) {
    .galeria-section {
        padding: 3rem 0;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .galeria-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .galeria-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Lightbox mobile */
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-arrow {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-counter {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    .galeria-grid {
        gap: 0.75rem;
    }
    
    .galeria-item {
        border-radius: 8px;
    }
    
    .icon-zoom {
        width: 32px;
        height: 32px;
    }
    
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .lightbox-close svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== FIN GALERÍA DE FOTOS ===== */

