/* ============================================================
   Frailes Services 77, C.A. - Identidad Visual Oficial
   Paleta extraida de LogotipoFrailes.png:
     Naranja Corporativo: #FF6600 / #F58220
     Negro / Grafito:     #0A0A0A / #141414 / #262626
     Blanco / Neutro:     #FFFFFF / #F5F5F4
   Soporte ultra-adaptable desde 150px hasta pantallas 4K
   ============================================================ */

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Etiquetas de Superposicion (Overlays) */
.card-overlay-wrap {
    position: relative;
    overflow: hidden;
}

.card-overlay-wrap img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-overlay-wrap:hover img {
    transform: scale(1.07);
}

.overlay-gradient-dark {
    background: linear-gradient(180deg, rgba(10,10,10,0.14) 0%, rgba(17,17,17,0.58) 55%, rgba(10,10,10,0.94) 100%);
}

.overlay-gradient-warm {
    background: linear-gradient(180deg, rgba(42,20,10,0.12) 0%, rgba(59,30,20,0.56) 55%, rgba(24,11,6,0.95) 100%);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ============================================================
   Hero Slider Moderno (SIN FLECHAS - Transicion cada 5 segundos)
   ============================================================ */
.hero-slider {
    position: relative;
    min-height: 550px;
    height: min(82vh, 720px);
    background-color: #0A0A0A;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 6.5s ease-out;
}

.hero-slide.is-active .hero-slide-bg {
    transform: scale(1.08);
}

/* Barra de progreso elegante (5s exactos) en Naranja Frailes */
.slider-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.3s ease;
}

.slider-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6600, #F58220);
    border-radius: 999px;
}

.slider-progress-bar.is-active .slider-progress-fill {
    animation: slideProgress5s 5s linear forwards;
}

@keyframes slideProgress5s {
    from { width: 0%; }
    to { width: 100%; }
}

/* ============================================================
   Adaptabilidad Extrema: Dispositivos desde 150px hasta 360px
   ============================================================ */
@media (max-width: 360px) {
    .hero-slider {
        min-height: 440px;
        height: auto;
    }
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
    .dock-btn {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 260px) {
    .logo-full {
        display: none !important;
    }
    .logo-compact {
        display: block !important;
    }
    .nav-inner {
        height: 52px !important;
        gap: 2px !important;
    }
    .lang-btn {
        padding: 2px 4px !important;
        font-size: 9px !important;
    }
    .hero-slider {
        min-height: 360px;
    }
    .hero-title {
        font-size: 1.15rem !important;
        overflow-wrap: anywhere;
    }
    .hero-subtitle {
        font-size: 0.75rem !important;
        overflow-wrap: anywhere;
    }
    h1, h2, h3, p, a, span, button {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .floating-dock {
        right: 6px !important;
        bottom: 8px !important;
        gap: 6px !important;
    }
    .dock-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

@media (max-width: 185px) {
    .nav-inner {
        flex-wrap: wrap;
        height: auto !important;
        padding: 6px 0;
        justify-content: center;
    }
    .lang-switcher {
        transform: scale(0.92);
    }
    .hero-cta-group {
        flex-direction: column;
    }
    .hero-cta-group a {
        width: 100%;
        text-align: center;
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
}
