/**
 * Hoja de estilos principal - Palmera Beach Resort
 * Reproducción fiel de la estética original (colores, tipografía y proporciones)
 */

:root {
    --pb-top-bar-bg: #d8e6ff;
    --pb-navy: #0a356c;
    --pb-navy-dark: #00316d;
    --pb-active-blue: #1e56c5;
    --pb-gray-bg: #f6f6f6;
    --pb-text-gray: #777777;
    --pb-footer-bg: #1c1c1c;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: calc(1rem + 1px);
    color: var(--pb-text-gray);
    background-color: #ffffff;
    overflow-x: hidden;
}

.small,
small {
    font-size: calc(0.875em + 1px) !important;
}

.text-navy {
    color: var(--pb-navy) !important;
}

.btn-navy {
    background-color: var(--pb-navy-dark);
    color: #ffffff;
    border-radius: 2px;
    font-size: calc(0.82rem + 1px);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.btn-navy:hover,
.btn-navy:focus {
    background-color: var(--pb-active-blue);
    color: #ffffff;
}

/* ==========================================================================
   1. Barra Superior y Header Principal
   ========================================================================== */
.top-bar {
    background-color: var(--pb-top-bar-bg);
    padding: 5px 0;
}

.top-bar-phones {
    color: var(--pb-navy);
    font-size: calc(0.78rem + 6px);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-logo {
    height: 90px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

.main-nav-link {
    color: var(--pb-navy) !important;
    font-size: calc(0.75rem + 2px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s ease;
}

.main-nav-link:hover,
.main-nav-link.active {
    color: var(--pb-active-blue) !important;
}

/* ==========================================================================
   2. Hero Slider (Inicio)
   ========================================================================== */
.hero-slide-img {
    height: 540px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-slide-img {
        height: 320px;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.9;
}

.hero-slider-arrow {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control-prev:hover .hero-slider-arrow,
.carousel-control-next:hover .hero-slider-arrow {
    background-color: rgba(0, 49, 109, 0.65);
    transform: scale(1.05);
}

/* ==========================================================================
   3. Sección Bienvenida y Cards de Inicio
   ========================================================================== */
.section-title-navy {
    color: var(--pb-navy);
    font-size: calc(1.35rem + 1px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.title-divider {
    width: 22px;
    height: 2px;
    background-color: #222222;
}

.welcome-lead {
    color: var(--pb-navy);
    font-size: calc(1.02rem + 1px);
    font-weight: 400;
}

.welcome-paragraph {
    color: var(--pb-text-gray);
    font-size: calc(0.84rem + 1px);
    line-height: 1.65;
}

.welcome-subtitle {
    color: var(--pb-navy);
    font-size: calc(0.98rem + 1px);
    font-weight: 700;
}

.highlight-card-img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.highlight-card:hover .highlight-card-img {
    transform: scale(1.03);
}

.highlight-card-title,
.highlight-card-title a {
    color: var(--pb-navy);
    font-size: calc(0.82rem + 1px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.highlight-card-title a:hover {
    color: var(--pb-active-blue);
}

.highlight-card-text {
    color: var(--pb-text-gray);
    font-size: calc(0.82rem + 1px);
    line-height: 1.6;
}

/* ==========================================================================
   4. Sección Ubicación, CTA Reserva y Footer
   ========================================================================== */
.location-header-bar {
    background-color: var(--pb-gray-bg);
}

.location-map-iframe {
    height: 360px;
}

.reserve-cta-bar {
    background-color: var(--pb-navy-dark);
    transition: background-color 0.2s ease;
}

.reserve-cta-bar:hover {
    background-color: #002452;
}

.reserve-cta-text {
    color: #ffffff;
    font-size: calc(1.25rem + 1px);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.site-footer {
    background-color: var(--pb-footer-bg);
    padding: 9px 0;
}

.footer-copy {
    color: #d0d0d0;
    font-size: calc(0.72rem + 1px);
    letter-spacing: 0.2px;
}

.footer-credit-link {
    color: #d0d0d0;
    text-decoration: none;
}

.footer-credit-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   5. Páginas Internas (page.php: EL HOTEL, SERVICIOS, HABITACIONES, etc.)
   ========================================================================== */
.page-hero-banner {
    position: relative;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
}

.page-hero-title {
    color: #ffffff;
    font-size: calc(2.4rem + 1px);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.page-content-section {
    background-color: var(--pb-gray-bg);
}

.page-intro-text,
.page-body-text {
    color: var(--pb-text-gray);
    font-size: calc(0.88rem + 1px);
    line-height: 1.75;
}

.rooms-centered-heading {
    color: var(--pb-navy);
    font-size: calc(1.25rem + 1px);
    font-weight: 400;
    line-height: 1.5;
}

.hotel-inline-map {
    height: 290px;
}

.contact-inline-map {
    height: 450px;
}

.service-section-title {
    color: var(--pb-navy);
    font-size: calc(1.35rem + 1px);
    font-weight: 400;
}

.service-checklist {
    color: var(--pb-text-gray);
    font-size: calc(0.88rem + 1px);
}

.service-bullet {
    color: var(--pb-navy);
    font-weight: 700;
}

.original-style-form .form-control {
    border-color: #e0e0e0;
    background-color: #ffffff;
    padding: 0.55rem 0.75rem;
    font-size: calc(0.9rem + 1px);
}

.original-style-form .form-control:focus {
    border-color: var(--pb-navy);
    box-shadow: none;
}

/* ==========================================================================
   6. Galería Fotográfica Sin Espacio (Estilo Qode Bridge gallery_without_space)
   ========================================================================== */
.gallery-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 49, 109, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.04);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

/* ==========================================================================
   7. Enlaces telefónicos y optimización Mobile (390px / pantallas pequeñas)
   ========================================================================== */
.top-bar-phone-link {
    color: var(--pb-navy);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar-phone-link:hover {
    color: var(--pb-active-blue);
    text-decoration: underline;
}

.footer-phone-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone-link:hover {
    color: var(--pb-top-bar-bg);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .top-bar-phones {
        font-size: 0.85rem !important;
        text-align: center;
    }
    .brand-logo {
        max-height: 60px !important;
        height: auto;
        width: auto;
    }
}
