/* ===== PALETA DE COLORES PROPORCIONADA ===== */
:root {
    --color-primario-sitio: #2caae1;
    --color-secundario-sitio: #f8b519;
    --color-terciario-sitio: #314f6d;
    --color-texto-general: #212529;
}

/* Contenedor principal de contenido (fondo visible) */
.contenido-web-principal {
    text-align: center;
    padding: 2rem;
    z-index: 1;
    max-width: 900px;
}

.titulo-marca-web {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-secundario-sitio);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.titulo-marca-web span {
    color: var(--color-primario-sitio);
}

.descripcion-fondo-web {
    font-size: 1.2rem;
    color: var(--color-texto-general);
    background: rgba(255, 255, 240, 0.8);
    padding: 1rem 1.8rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-primario-sitio);
}

/* Tarjetas demostrativas para ver el fondo detrás del popup */
.galeria-demostracion {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.tarjeta-ejemplo {
    background: white;
    padding: 20px;
    border-radius: 28px;
    width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 6px solid var(--color-primario-sitio);
}

.tarjeta-ejemplo h3 {
    color: var(--color-secundario-sitio);
    margin-bottom: 8px;
}

.tarjeta-ejemplo p {
    color: var(--color-terciario-sitio);
    font-size: 0.9rem;
    background: none;
    padding: 0;
    border-left: none;
}

.boton-reapertura {
    background: var(--color-secundario-sitio);
    border: none;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 6px 0 #0f1840;
    transition: 0.07s linear;
    color: white;
    margin-top: 20px;
}

.boton-reapertura:hover {
    background: var(--color-primario-sitio);
    color: var(--color-secundario-sitio);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.boton-reapertura:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #0f1840;
}

/* ===== POPUP MODAL TRANSPARENTE ===== */
.modal-fondo-luminoso {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.3s ease;
}

.modal-fondo-luminoso.activo-modal {
    visibility: visible;
    opacity: 1;
}

/* Contenedor principal de la ruleta de fotos */
.contenedor-ruleta-especial {
    background: rgba(245, 247, 255, 0.96);
    backdrop-filter: blur(2px);
    border-radius: 56px;
    padding: 15px 20px 20px 20px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    width: 80% !important;
    max-width: 750px !important;
    position: relative;
    border: 2px solid var(--color-primario-sitio);
    transition: all 0.2s;
}

/* Botón de cierre (X) */
.boton-cierre-modal {
    position: absolute;
    top: 14px;
    right: 20px;
    background: var(--color-secundario-sitio);
    color: white;
    border: none;
    font-size: 26px;
    font-weight: bold;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Zona del carrusel central */
.area-carrusel-central {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

/* Marco de imagen - IMAGEN COMPLETA SIN RECORTES */
.marco-imagen-redondo {
    width: 480px !important;
    height: 480px !important;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border-radius: 40px !important;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--color-primario-sitio);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marco-imagen-redondo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background-color: #1a1a2e;
}


/* ===== RESPONSIVE DESIGN ===== */

/* Laptops pequeñas (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
    .contenedor-ruleta-especial {
        max-width: 700px;
        padding: 18px 22px 22px;
    }
    .marco-imagen-redondo {
        width: 420px;
        height: 420px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 55px;
        height: 55px;
        font-size: 45px;
        margin: 0 12px;
    }
}

/* Tablets y laptops medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .contenedor-ruleta-especial {
        max-width: 650px;
        padding: 18px 20px 22px;
    }
    .marco-imagen-redondo {
        width: 380px;
        height: 380px;
        border-radius: 35px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 50px;
        height: 50px;
        font-size: 42px;
        margin: 0 10px;
    }
    .boton-cierre-modal {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 12px;
        right: 16px;
    }
}

/* Tabletas pequeñas (601px - 768px) */
@media (max-width: 768px) {
    .contenedor-ruleta-especial {
        max-width: 90%;
        padding: 16px 16px 20px;
    }
    .marco-imagen-redondo {
        width: 320px;
        height: 320px;
        border-radius: 30px;
        border-width: 3px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 45px;
        height: 45px;
        font-size: 38px;
        margin: 0 8px;
    }
    .lista-indicadores {
        gap: 14px;
        margin-top: 20px;
    }
    .punto-control {
        width: 12px;
        height: 12px;
    }
    .boton-cierre-modal {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: 10px;
        right: 12px;
    }
    .titulo-marca-web {
        font-size: 2.5rem;
    }
    .descripcion-fondo-web {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        margin: 15px auto;
    }
    .tarjeta-ejemplo {
        width: 150px;
        padding: 15px;
    }
}

/* Móviles grandes (481px - 600px) */
@media (max-width: 600px) {
    .contenedor-ruleta-especial {
        max-width: 95%;
        padding: 14px 12px 18px;
    }
    .marco-imagen-redondo {
        width: 280px;
        height: 280px;
        border-radius: 28px;
        border-width: 3px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 40px;
        height: 40px;
        font-size: 32px;
        margin: 0 6px;
    }
    .lista-indicadores {
        gap: 12px;
        margin-top: 18px;
    }
    .punto-control {
        width: 10px;
        height: 10px;
    }
    .boton-cierre-modal {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 8px;
        right: 10px;
    }
    .contenido-web-principal {
        padding: 1rem;
    }
    .titulo-marca-web {
        font-size: 2rem;
    }
    .galeria-demostracion {
        gap: 12px;
    }
    .tarjeta-ejemplo {
        width: 130px;
        padding: 12px;
    }
    .tarjeta-ejemplo h3 {
        font-size: 1rem;
    }
    .boton-reapertura {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

/* Móviles pequeños (hasta 480px) - iPhone SE/12/13/14 */
@media (max-width: 480px) {
    .contenedor-ruleta-especial {
        max-width: 95%;
        padding: 12px 10px 16px;
        border-radius: 40px;
    }
    .marco-imagen-redondo {
        width: 240px;
        height: 240px;
        border-radius: 25px;
        border-width: 3px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 36px;
        height: 36px;
        font-size: 28px;
        margin: 0 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .lista-indicadores {
        gap: 10px;
        margin-top: 15px;
    }
    .punto-control {
        width: 9px;
        height: 9px;
    }
    .boton-cierre-modal {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 6px;
        right: 8px;
    }
    .titulo-marca-web {
        font-size: 1.8rem;
    }
    .descripcion-fondo-web {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    .tarjeta-ejemplo {
        width: 110px;
        padding: 10px;
    }
    .tarjeta-ejemplo h3 {
        font-size: 0.9rem;
    }
    .tarjeta-ejemplo p {
        font-size: 0.75rem;
    }
    .boton-reapertura {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Móviles muy pequeños (hasta 380px) - iPhone 5/SE antiguo */
@media (max-width: 380px) {
    .marco-imagen-redondo {
        width: 200px;
        height: 200px;
        border-radius: 22px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 32px;
        height: 32px;
        font-size: 24px;
        margin: 0 4px;
    }
    .titulo-marca-web {
        font-size: 1.5rem;
    }
    .tarjeta-ejemplo {
        width: 100px;
        padding: 8px;
    }
    .lista-indicadores {
        gap: 8px;
    }
}

/* Pantallas muy grandes (1440px y más) */
@media (min-width: 1440px) {
    .contenedor-ruleta-especial {
        max-width: 900px;
        padding: 25px 30px 30px;
    }
    .marco-imagen-redondo {
        width: 550px;
        height: 550px;
        border-radius: 45px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 75px;
        height: 75px;
        font-size: 60px;
        margin: 0 25px;
    }
    .lista-indicadores {
        gap: 20px;
        margin-top: 30px;
    }
    .punto-control {
        width: 16px;
        height: 16px;
    }
    .titulo-marca-web {
        font-size: 3.5rem;
    }
}

/* Orientación horizontal en móviles */
@media (max-width: 800px) and (orientation: landscape) {
    .contenedor-ruleta-especial {
        padding: 10px 15px 15px;
    }
    .marco-imagen-redondo {
        width: 200px;
        height: 200px;
    }
    .boton-flecha-izquierda,
    .boton-flecha-derecha {
        width: 35px;
        height: 35px;
        font-size: 28px;
        margin: 0 8px;
    }
    .lista-indicadores {
        margin-top: 12px;
    }
    .area-carrusel-central {
        margin: 0;
    }
}


/* Estilos para el iframe del video - ocupar todo el contenedor */
.marco-imagen-redondo iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 40px;
    display: block;
}

/* Ajuste responsive para mantener el border-radius consistente */
@media (max-width: 1024px) {
    .marco-imagen-redondo iframe {
        border-radius: 35px;
    }
}

@media (max-width: 768px) {
    .marco-imagen-redondo iframe {
        border-radius: 30px;
    }
}

@media (max-width: 600px) {
    .marco-imagen-redondo iframe {
        border-radius: 28px;
    }
}

@media (max-width: 480px) {
    .marco-imagen-redondo iframe {
        border-radius: 25px;
    }
}
