/* Hero Section con oscurecido leve */
.freefocal-hero {
    position: relative;
    overflow: hidden;
}

.hero-slide-freefocal {
    position: relative;
    height: 70vh;
    min-height: 600px;
}

.hero-image-freefocal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Oscurecimiento leve directo en la imagen */
    filter: brightness(0.85);
    transition: transform 0.8s ease;
}

.hero-slide-freefocal:hover .hero-bg-image {
    transform: scale(1.03);
}

/* Overlay muy sutil - casi transparente */
.overlay-subtle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Negro al 15% de opacidad - MUY sutil */
    background: rgba(0, 0, 0, 0.15);
    
    /* O un gradiente vertical aún más sutil */
    /* background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%
    ); */
    
    /* O un gradiente radial sutil */
    /* background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.25) 100%
    ); */
}

.hero-content-freefocal {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

/* Texto con sombras para mejor legibilidad */
.hero-title-freefocal {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4),
                 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title-freefocal .highlight {
    color: #FFD700;
    position: relative;
    display: inline-block;
}

.hero-title-freefocal .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 215, 0, 0.2);
    z-index: -1;
    border-radius: 3px;
}

.hero-subtitle-freefocal {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3),
                 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    animation-fill-mode: both;
}

/* Botón con buen contraste */
.freefocal-hero .btn-primary {
    background: rgba(0, 188, 212, 0.95);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3),
                0 0 0 2px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    animation-fill-mode: both;
}

.freefocal-hero .btn-primary:hover {
    background: #00ACC1;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.4),
                0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slide-freefocal {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-title-freefocal {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-slide-freefocal {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title-freefocal {
        font-size: 2.2rem;
    }
    
    .hero-subtitle-freefocal {
        font-size: 1.2rem;
    }
    
    .hero-bg-image {
        filter: brightness(0.8); /* Un poco más oscuro en móvil para mejor legibilidad */
    }
    
    .overlay-subtle {
        background: rgba(0, 0, 0, 0.2); /* Un poco más oscuro en móvil */
    }
}

@media (max-width: 576px) {
    .hero-slide-freefocal {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-title-freefocal {
        font-size: 1.8rem;
    }
    
    .hero-subtitle-freefocal {
        font-size: 1rem;
    }
}

/* CSS para controlar el tamaño de los modales */
.custom-fancybox-modal .fancybox__content {
    max-width: 900px !important;
    max-height: 700px !important;
    width: 90vw !important;
    height: 90vh !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.custom-fancybox-modal .fancybox__slide {
    padding: 20px !important;
}

.custom-fancybox-modal .fancybox__content > .fancybox__html {
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .custom-fancybox-modal .fancybox__content {
        max-width: 95% !important;
        max-height: 90% !important;
        width: 95vw !important;
        height: 90vh !important;
    }
}

/* Botón cerrar más visible */
.custom-fancybox-modal .fancybox__button--close {
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(26, 58, 109, 0.9) !important;
    border-radius: 50% !important;
    z-index: 99999 !important;
}

.custom-fancybox-modal .fancybox__button--close svg {
    stroke: white !important;
    width: 20px !important;
    height: 20px !important;
}