/*
Theme Name: Kele Premium
Author: Antigravity
Description: Diseño de lujo clonado del diseño original, adaptado a colores claros (Beige Arena, Salmón, Dorado Fino, Blanco Limpio).
Version: 1.0
*/

:root {
    --bg-color: #F9F6F0; /* Beige Arena */
    --card-bg: #FFFFFF; /* Blanco Limpio */
    --text-color: #333333; /* Dark gray for readability */
    --gold: #A67C00; /* Dorado Fino adaptado a fondo claro */
    --salmon: #FA8072; /* Salmón Elegante */
    --salmon-hover: #e07063;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, .serif-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-weight: 600;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(156, 122, 49, 0.2);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 600;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gold);
}
.main-nav {
    display: flex;
    align-items: center;
}
.main-nav a {
    margin-left: 20px;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-salmon {
    background-color: var(--salmon);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-salmon:hover {
    background-color: var(--salmon-hover);
}
.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 24px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
}

/* Hero */
.hero-split {
    display: flex;
    min-height: 80vh;
}
.hero-content {
    flex: 1;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-subtitle {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 2px;
}
.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 20px 0;
}
.hero-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
}
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: auto;
    border-top: 1px solid rgba(156, 122, 49, 0.2);
    padding-top: 20px;
}
.hero-stats strong {
    display: block;
    font-size: 24px;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}
.hero-image {
    flex: 1;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Features Grid */
.features-grid, .pricing-section {
    padding: 80px 0;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(156, 122, 49, 0.1);
}
.feature-card .icon {
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
}
.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.feature-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Activities */
.bg-white {
    background-color: var(--card-bg);
    padding: 80px 0;
}
.activities-split {
    display: flex;
    gap: 40px;
    align-items: center;
}
.activities-text {
    flex: 1;
}
.activities-image {
    flex: 1;
    height: 400px;
    background-color: #eee;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}
ul.check-list {
    list-style: none;
    padding: 0;
}
ul.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.price-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(156, 122, 49, 0.2);
}
.price-card.highlight {
    border: 2px solid var(--gold);
}
.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 12px;
}
.season {
    font-size: 12px;
    letter-spacing: 1px;
    color: #888;
}
.price-card .price {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: var(--gold);
    margin: 10px 0;
}
.period {
    font-size: 14px;
}
.price-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}
.w-100 {
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

/* MotoPress specific overrides */
.mphb-calendar, .mphb-booking-form {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(166, 124, 0, 0.2);
}
.mphb-calendar input, .mphb-booking-form input, .mphb-booking-form select, .mphb-booking-form textarea {
    background-color: #fafafa;
    color: var(--text-color);
    border: 1px solid rgba(166, 124, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
}

/* Efectos Premium Hover */
.price-card, .feature-card, .rule-card, .activities-image, .galeria-item, .floating-badge { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(166,124,0,0.15); border-color: var(--gold); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top-color: var(--gold); }
.rule-card:hover { transform: scale(1.02); background: #fffaf9; border-color: var(--salmon); }
.activities-image:hover { transform: scale(1.01); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.galeria-item:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.1); z-index: 2; position: relative; cursor: pointer; }
.btn-salmon:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(250,128,114,0.3); }
.btn-outline:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(166,124,0,0.2); }
.floating-badge:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* Lightbox */
.kele-lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}
.kele-lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    animation: zoom 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.kele-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.kele-lightbox-close:hover {
    color: var(--salmon);
}
@keyframes zoom {
    from {transform:scale(0.9); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.mphb-book-button, 
input[type="submit"].button,
.mphb-confirm-reservation,
.mphb-checkout-button {
    background-color: var(--salmon) !important;
    color: #fff !important;
    border-radius: 6px;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.mphb-book-button:hover, 
input[type="submit"].button:hover,
.mphb-confirm-reservation:hover,
.mphb-checkout-button:hover {
    background-color: var(--salmon-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 128, 114, 0.3);
}
.mphb-remove-from-cart {
    color: #ff4444 !important;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-left: 15px;
}

/* MotoPress Pages Premium Styling (Results & Checkout) */
.mphb-room-type {
    border: 1px solid rgba(166,124,0,0.1);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.mphb-room-type-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.mphb-price {
    font-size: 1.8rem;
    color: var(--salmon);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}
.mphb-checkout-form input[type="text"],
.mphb-checkout-form input[type="email"],
.mphb-checkout-form input[type="tel"],
.mphb-checkout-form input[type="number"],
.mphb-checkout-form textarea,
.mphb-checkout-form select {
    width: 100%;
    background-color: #fcfcfc;
    border: 1px solid rgba(166,124,0,0.2);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.mphb-checkout-form input:focus,
.mphb-checkout-form select:focus,
.mphb-checkout-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(166,124,0,0.1);
}
.mphb-checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}
.mphb-details-title, .mphb-booking-details-title, .mphb-customer-details-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(166,124,0,0.1);
    padding-bottom: 10px;
}
.mphb-reserve-room-section {
    margin-top: 20px;
    text-align: right;
}
.mphb-gateways-list {
    padding: 20px;
    background: #fffaf9;
    border-left: 4px solid var(--salmon);
    border-radius: 4px;
    margin-top: 20px;
}

/* =============================================
   RESPONSIVE — Mobile First (max 768px)
   ============================================= */
@media (max-width: 768px) {

    /* --- HEADER & NAVEGACIÓN MÓVIL --- */
    .site-header {
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--card-bg);
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }
    .logo a {
        font-size: 20px;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: rgba(166,124,0,0.08);
        font-size: 22px;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        padding: 15px 20px 20px;
        z-index: 999;
        border-top: 2px solid var(--gold);
        gap: 4px;
    }
    .main-nav.nav-open {
        display: flex;
    }
    .main-nav a {
        margin: 0;
        padding: 13px 16px;
        text-align: left;
        width: 100%;
        border-radius: 8px;
        font-size: 15px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(166,124,0,0.08);
    }
    .main-nav a:last-child {
        border-bottom: none;
        margin-top: 8px;
        text-align: center;
        padding: 14px;
    }
    .main-nav a:hover {
        background: rgba(166,124,0,0.06);
    }

    /* --- HERO SECTION --- */
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }
    .hero-content {
        padding: 40px 5% 30px;
        order: 2;
    }
    .hero-image {
        min-height: 280px;
        order: 1;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.15;
        margin: 15px 0;
    }
    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }
    .hero-actions .btn-salmon,
    .hero-actions .btn-outline {
        width: 100%;
        padding: 15px;
        font-size: 14px;
        text-align: center;
    }
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding-top: 20px;
        margin-top: 20px;
    }
    .hero-stats > div {
        flex: 1;
        min-width: 80px;
        text-align: center;
        font-size: 13px;
    }
    .hero-stats strong {
        font-size: 20px;
    }

    /* --- SECCIONES GENERALES --- */
    .activities-split {
        flex-direction: column;
        gap: 25px;
    }
    .activities-image {
        height: 230px;
        width: 100%;
        order: -1;
    }
    .activities-text h2.serif-title {
        font-size: 2rem !important;
    }
    section {
        padding: 50px 0 !important;
    }
    .container {
        padding: 0 16px;
    }

    /* --- GALERÍA --- */
    #galeria .container > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .galeria-item {
        height: 180px !important;
        border-radius: 10px !important;
    }
    /* Última foto ocupa todo el ancho si hay número impar */
    .galeria-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    /* --- PRECIOS --- */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .price-card {
        padding: 28px 24px;
    }
    .price-card .price {
        font-size: 34px;
    }
    .price-card.highlight {
        order: -1; /* Mostrar "Recomendado" primero en móvil */
    }

    /* --- NORMAS (Rules) --- */
    .rules-section .activities-split > div:last-child {
        grid-template-columns: 1fr !important;
    }

    /* --- SECCIÓN DE RESERVAS --- */
    .booking-section .activities-split {
        flex-direction: column;
    }
    .booking-section .activities-text,
    .kele-booking-widget {
        width: 100%;
        flex: none !important;
    }
    .kele-booking-widget {
        margin-top: 10px;
    }
    #kele-booking-form > div {
        flex-direction: column !important;
    }
    #kele-booking-form > div > div {
        width: 100% !important;
    }
    #kele-booking-form input,
    #kele-booking-form select {
        font-size: 16px !important; /* Evita el zoom automático en iOS */
        padding: 14px 12px !important;
    }
    #kele_submit_btn {
        padding: 16px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    /* Flatpickr más grande en móvil */
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto;
    }
    .flatpickr-day {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 14px !important;
    }

    /* --- FOOTER --- */
    footer .container {
        flex-direction: column !important;
        gap: 20px;
        text-align: center;
    }
    footer nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 20px !important;
    }
    footer nav a {
        font-size: 13px;
    }
    footer h2 {
        font-size: 22px !important;
    }

    /* --- LIGHTBOX EN MÓVIL --- */
    .kele-lightbox-content {
        max-width: 96%;
        max-height: 75vh;
    }
    .kele-lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 40px;
    }
}

/* =============================================
   FLATPICKR - Estilos del Calendario de Reservas
   ============================================= */

.flatpickr-calendar {
    font-family: 'Inter', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(166, 124, 0, 0.2) !important;
    overflow: hidden;
}
.flatpickr-months {
    background: var(--gold) !important;
    padding: 8px 0;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
    color: #fff !important;
    fill: #fff !important;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #fff !important;
}
.flatpickr-weekdays {
    background: #fff9f0 !important;
}
.flatpickr-weekday {
    color: var(--gold) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
}
.flatpickr-day {
    border-radius: 6px !important;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.flatpickr-day:hover {
    background: #fff0eb !important;
    border-color: var(--salmon) !important;
    color: var(--salmon) !important;
}
.flatpickr-day.today {
    border-color: var(--gold) !important;
    font-weight: 700;
}
.flatpickr-day.today:hover {
    background: var(--gold) !important;
    color: #fff !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--salmon) !important;
    border-color: var(--salmon) !important;
    color: #fff !important;
    font-weight: 700;
}
.flatpickr-day.inRange {
    background: rgba(250, 128, 114, 0.15) !important;
    border-color: transparent !important;
    color: var(--text-color) !important;
    box-shadow: -5px 0 0 rgba(250,128,114,0.15), 5px 0 0 rgba(250,128,114,0.15) !important;
}

/* ⛔ Fechas bloqueadas: rojas y tachadas */
.flatpickr-day.flatpickr-disabled {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    text-decoration: line-through !important;
    opacity: 0.85 !important;
    border-color: #fecaca !important;
    cursor: not-allowed !important;
}

/* Leyenda de colores bajo el calendario */
#kele-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
}
#kele-calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
#kele-calendar-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}
#kele-calendar-legend .dot-available { background: #fff; border: 1px solid #ccc; }
#kele-calendar-legend .dot-blocked   { background: #fef2f2; border: 1px solid #fecaca; }
#kele-calendar-legend .dot-selected  { background: #FA8072; }

