/* ==================================== */
/* wsw.css - CON línea bajo el título como misión/convocatoria */
/* ==================================== */

/* --- Hero Section - IGUAL que misión y convocatoria --- */
.wsw-hero {
    background-color: var(--color-light-gray);
    color: var(--color-dark); 
    padding: 60px 20px;
    text-align: center;
}

.wsw-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px; /* Aumentado para más espacio */
    display: block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.wsw-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-dark);
}

/* --- Video Section --- */
.video-section {
    width: 100%;
    height: 1057px;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
}

.responsive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback */
.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* =======================================================
    SECCIÓN wsw-content CON BACKGROUND RESPONSIVO
    ======================================================= */
.wsw-content {
    padding: 200px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    
    /* Propiedades comunes para todas las imágenes */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

/* Imágenes diferentes por breakpoint */
/* Pantallas grandes (desktop) */
@media (min-width: 1920px) {
    .wsw-content {
        background-image: url('../img/background/background-xxlarge.png');
    }
}

/* Laptops y desktops estándar */
@media (min-width: 1200px) and (max-width: 1919px) {
    .wsw-content {
        background-image: url('../img/background/background-large.png');
        min-height: 65vh;
        padding: 180px 20px;
    }
}

/* Tablets y laptops pequeñas */
@media (min-width: 768px) and (max-width: 1199px) {
    .wsw-content {
        background-image: url('../img/background/background-medium.png');
        min-height: 60vh;
        padding: 160px 20px;
    }
    
    .content-grid {
        gap: 30px;
    }
}

/* Móviles grandes */
@media (min-width: 480px) and (max-width: 767px) {
    .wsw-content {
        background-image: url('../img/background/background-small.png');
        min-height: 50vh;
        padding: 100px 20px;
    }
    
    .content-grid {
        gap: 25px;
    }
}

/* Móviles pequeños */
@media (max-width: 479px) {
    .wsw-content {
        background-image: url('../img/background/background-mobile.png');
        min-height: 40vh;
        padding: 80px 15px;
    }
    
    .content-grid {
        gap: 20px;
    }
}

/* FALLBACK para wsw-content (IMPORTANTE: debe estar DESPUÉS de las media queries) */
.wsw-content {
    background-image: url('../img/background/background-large.png'); /* Imagen por defecto */
}

.container1 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Columna Izquierda (Poster) --- */
.poster-container {
    text-align: center;
}

.poster-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.poster-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.poster-image:hover img {
    transform: scale(1.03);
}

/* Botón Descargar - CONSISTENTE */
.btn-download {
    display: inline-block;
    background-color: var(--color-primary);
    color: white !important;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    text-align: center;
    cursor: pointer;
}

.btn-download:hover {
    background-color: var(--color-accent) !important;
    color: white !important;
    transform: translateY(-2px);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
}

/* =======================================================
    INFO-CONTAINER CON EFECTO VIDRIO (Glassmorphism)
    ======================================================= */
.info-container {
    /* Efecto vidrio (glassmorphism) */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Estilos base */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    
    /* Mejora de contraste para el texto */
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Efecto hover para el info-container */
.info-container:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.info-container h2 {
    color: var(--color-white);
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.info-container p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botón Externo - CONSISTENTE */
.btn-external {
    display: inline-block;
    background-color: var(--color-accent);
    color: white !important;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-external:hover {
    background-color: var(--color-secondary) !important;
    color: white !important;
    transform: translateY(-2px);
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(242, 135, 5, 0.4);
}

/* --- Asegurar consistencia --- */
.btn-download:link,
.btn-download:visited,
.btn-download:hover,
.btn-download:active,
.btn-download:focus,
.btn-external:link,
.btn-external:visited,
.btn-external:hover,
.btn-external:active,
.btn-external:focus {
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

/* Focus para accesibilidad */
.btn-download:focus,
.btn-external:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .video-section {
        height: 800px;
    }
    
    .wsw-content {
        padding: 150px 20px;
    }
}

@media (max-width: 768px) {
    .video-section {
        height: 600px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wsw-hero h1 {
        font-size: 2rem;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }
    
    .wsw-hero p {
        font-size: 1rem;
    }
    
    .info-container {
        padding: 25px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .info-container h2 {
        font-size: 1.6rem;
        padding-bottom: 8px;
    }
    
    .btn-download,
    .btn-external {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        height: 400px;
    }
    
    .wsw-hero {
        padding: 40px 15px;
    }
    
    .wsw-hero h1 {
        font-size: 1.8rem;
        padding-bottom: 6px;
        margin-bottom: 12px;
    }
    
    .wsw-content {
        padding: 60px 15px;
    }
    
    .info-container {
        padding: 20px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .btn-download,
    .btn-external {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-container h2 {
        font-size: 1.5rem;
    }
}

/* Optimización para dispositivos con soporte limitado de backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .info-container {
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-dark);
        text-shadow: none;
    }
    
    .info-container h2 {
        color: var(--color-primary);
        text-shadow: none;
    }
    
    .info-container p {
        color: var(--color-dark);
        text-shadow: none;
        opacity: 0.9;
    }
}

/* Para móviles con rendimiento limitado, reducimos el blur */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .info-container {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Asegurar que los botones no se salgan */
.poster-container {
    width: 100%;
    border-radius: 8px;
}

.btn-download,
.btn-external {
    white-space: normal;
    word-wrap: break-word;
    display: block;
}