/*
 Theme Name:   Hostal Granado
 Theme URI:    http://8theme.com/
 Description:  Royal Child Theme
 Author:       8theme
 Author URI:   http://8theme.com
 Template:     royal
 Version:      1.1
 Text Domain:  royal-child
*/

/* ========================================================
   1. PREVENCION DE CLS (Cumulative Layout Shift)
   Reserva de altura para el contenedor del slider
   ======================================================== */
.page-heading-slider,
.page-heading-slider .slider-wrapper,
.page-heading-slider rs-module-wrap,
#rev_slider_1_1_wrapper,
#rev_slider_2_1_wrapper {
    min-height: 520px;
    position: relative;
    background-color: #1a1a1a;
}

@media (max-width: 991px) {
    .page-heading-slider,
    .page-heading-slider .slider-wrapper,
    .page-heading-slider rs-module-wrap,
    #rev_slider_1_1_wrapper,
    #rev_slider_2_1_wrapper {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .page-heading-slider,
    .page-heading-slider .slider-wrapper,
    .page-heading-slider rs-module-wrap,
    #rev_slider_1_1_wrapper,
    #rev_slider_2_1_wrapper {
        min-height: 280px;
    }
}

/* ========================================================
   2. ACCESIBILIDAD: Objetivos tactiles (>= 48px) y Contraste
   ======================================================== */
.cmplz-link.cookie-statement,
.cmplz-link.impressum,
.white-text.letter-offset,
.menu-icon,
.mobile-menu-block a {
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
}

.aio-icon-description {
    color: #444444 !important;
}

#reserva-directa-titulo {
    color: #b8571e !important;
}

/* ========================================================
   3. BUENAS PRACTICAS: Aspect Ratio para imagenes
   ======================================================== */
.ti-logo-fb {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 24px;
    height: 24px;
}

/* Correccion de aspect ratio en logo de Google Trustindex */
.ti-large-logo img.ti-logo-fb,
.ti-large-logo img {
    width: auto !important;
    height: 25px !important;
    max-height: 25px !important;
    object-fit: contain !important;
}

/* ========================================================
   4. WPO & UX: HERO BANNER WPBakery (Sustitucion RevSlider)
   Misma altura garantizada en PC y Movil (520px)
   ======================================================== */
.custom-hero-banner {
    position: relative !important;
    width: 100% !important;
    min-height: 520px !important;
    height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 15px !important;
}

/* Capa de contraste oscuro (Overlay) para legibilidad perfecta */
.custom-hero-banner::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.40) 0%, rgba(15, 15, 15, 0.68) 100%) !important;
    z-index: 1 !important;
}

/* Contenedor de contenido por encima del overlay */
.custom-hero-banner > .vc_column_container,
.custom-hero-banner .hero-content-inner {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Tipografia fluida y adaptable sin desbordamiento */
.hero-badge-stars {
    color: #f5b041;
    font-size: 22px;
    letter-spacing: 5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    line-height: 1;
}

.hero-main-title {
    color: #ffffff !important;
    font-size: clamp(24px, 5.2vw, 42px) !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 12px 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
}

.hero-subtitle {
    color: #f0f0f0 !important;
    font-size: clamp(15px, 2.8vw, 19px) !important;
    line-height: 1.35 !important;
    font-weight: 300 !important;
    margin: 0 auto 24px auto !important;
    max-width: 760px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

/* Botones de llamada a la accion (CTAs) */
.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-btn-primary {
    background-color: #b8571e !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 13px 28px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-height: 48px !important;
    box-shadow: 0 4px 14px rgba(184, 87, 30, 0.5) !important;
    transition: all 0.25s ease-in-out !important;
}

.hero-btn-primary:hover {
    background-color: #9c4513 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 87, 30, 0.65) !important;
}

.hero-btn-secondary {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 11px 24px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    min-height: 48px !important;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease-in-out !important;
}

.hero-btn-secondary:hover {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
}

/* Barra de ventajas y confianza */
.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 22px;
    color: #e4e4e4;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 400;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
}
.hero-cta-wrapper br,
.hero-trust-bar br,
.custom-hero-banner > br,
.custom-hero-banner .wpb_wrapper > br {
    display: none !important;
}
