/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090909;
    color: white;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .9)), url("../img/habitaciones/premium-suite/producto.png");
    background-size: cover;
    background-position: center;
}

.main-logo {
    max-width: 300px;
    margin-bottom: 40px;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 400;
    font-family: serif;
    letter-spacing: 4px;
    color: white;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #eee;
}

.gold-line {
    width: 90px;
    height: 2px;
    background: #c9a45c;
    margin: 35px auto 70px;
    padding: 0;
}

.features {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.feature-item {
    width: 220px;
    text-align: center;
    border-right: 1px solid rgba(201, 164, 92, .35);
}

.feature-item:last-child {
    border-right: 0;
}

.feature-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
    color: #ddd;
}

.available-title {
    font-size: 28px;
    letter-spacing: 10px;
    color: #c9a45c;
    font-weight: bold;
    text-align: center;
}

/* =========================
   BOTONES
========================= */

.btn,
button {
    background: #c9a45c;
    border: none;
    padding: 14px 35px;
    color: #111;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: .3s ease;
}

.btn:hover,
button:hover {
    background: #fff;
}

/* =========================
   HABITACIONES
========================= */

.rooms {
    padding: 100px 8%;
    background: #090909;
    text-align: center;
}

.rooms h2 {
    font-size: 42px;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.room-card {
    background: #141414;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.room-card h3 {
    font-size: 32px;
    color: #c9a45c;
    margin: 30px 0 15px;
}

.room-card p {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 35px 30px;
    color: #ddd;
}

.room-card > button {
    margin-bottom: 35px;
}

/* =========================
   SLIDER
========================= */

.slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #000;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: .6s ease;
}

.slider img.active {
    opacity: 1;
    visibility: visible;
}

.slider .prev,
.slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: white;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    border: none;
    cursor: pointer;
}

.slider .prev {
    left: 20px;
}

.slider .next {
    right: 20px;
}

/* =========================
   FORMULARIO
========================= */

.reservation {
    background: #f5f1e9;
    color: #111;
    padding: 90px 8%;
    text-align: center;
}

form {
    max-width: 650px;
    margin: auto;
}

input,
textarea,
select {
    width: 100%;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    background: white;
    font-size: 15px;
    color: #555;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #c9a45c 50%), linear-gradient(135deg, #c9a45c 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 15px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

textarea {
    height: 140px;
    resize: none;
    display: block;
    padding: 18px;
    line-height: 20px;
}

.reservation button {
    margin-top: 20px;
    width: 300px;
    max-width: 100%;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #090909;
    color: white;
    padding: 35px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
}

/* =========================
   ESTILOS ADICIONALES
========================= */

.room-type {
    display: block;
    color: #c9a45c;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 2px;
}

.room-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px;
}

.room-info div {
    background: #222;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
}

.amenities {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.amenities span {
    background: #0b0b0b;
    border: 1px solid #333;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: #ddd;
}

.room-price {
    font-size: 22px;
    font-weight: bold;
    color: #c9a45c;
    margin: 25px 0;
}

.date-field {
    width: 100%;
    margin-bottom: 22px;
}

.date-field label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0;
}

.date-field input {
    margin-bottom: 0;
}

.reserve-btn {
    background: #c9a45c;
    color: #111;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: .3s ease;
}

.reserve-btn:hover {
    background: #dab86c;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .hero {
        height: 65vh;
    }
    .room-grid {
        grid-template-columns: 1fr;
    }
    .slider {
        height: 420px;
    }
    .rooms h2 {
        font-size: 32px;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 50px 20px;
    }
    .main-logo {
        max-width: 240px;
    }
    .hero-content h2 {
        font-size: 38px;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 25px;
        margin-bottom: 70px;
    }
    .feature-item {
        width: auto;
        border: 0;
    }
    .available-title {
        font-size: 24px;
        letter-spacing: 6px;
    }
}

@media (max-width: 500px) {
    .slider {
        height: 320px;
    }
    .btn,
    button {
        padding: 12px 25px;
    }
    .main-logo {
        width: 280px;
        max-width: 80%;
        margin-bottom: 25px;
    }
}

/* ============================================
   MODAL DE RESERVA
   ============================================ */

#reservationModal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    padding: 20px;
}

#reservationModal .modal-content {
    background: #0d0d0d;
    max-width: 580px;
    margin: 30px auto;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(201, 164, 92, 0.3);
    position: relative;
}

#reservationModal .close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

#reservationModal .close-modal:hover {
    color: #c9a45c;
}

#reservationModal .modal-header {
    text-align: center;
    margin-bottom: 25px;
}

#reservationModal .modal-header h2 {
    color: white;
    font-size: 22px;
    margin: 0;
}

#reservationModal .modal-header h2 span {
    color: #c9a45c;
}

#reservationModal .form-group {
    margin-bottom: 16px;
}

#reservationModal .form-group label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 5px;
}

#reservationModal .form-group input,
#reservationModal .form-group textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

#reservationModal .form-group input:focus,
#reservationModal .form-group textarea:focus {
    outline: none;
    border-color: #c9a45c;
}

#reservationModal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#reservationModal .submit-btn {
    width: 100%;
    background: #c9a45c;
    color: #111;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

#reservationModal .submit-btn:hover {
    background: #dab86c;
}

#reservationModal .stay-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

#reservationModal .stay-btn {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 10px;
    color: #888;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

#reservationModal .stay-btn.active {
    border-color: #c9a45c;
    background: #1a1508;
    color: white;
}

#reservationModal .stay-btn .icon {
    display: block;
    font-size: 22px;
}

#reservationModal .stay-btn .badge {
    background: #c9a45c;
    color: #111;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

@media (max-width: 600px) {
    #reservationModal .modal-content {
        padding: 20px 15px;
        margin: 15px auto;
    }
    #reservationModal .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    #reservationModal .stay-type-selector {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   AVAILABLE SUITES - INFO
   ============================================ */

.available-title {
    font-size: 28px;
    letter-spacing: 10px;
    color: #c9a45c;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 15px;
    clear: both;
}

.available-info {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 18px 25px;
    background: rgba(201, 164, 92, 0.06);
    border: 1px solid rgba(201, 164, 92, 0.15);
    border-radius: 12px;
    text-align: center;
    clear: both;
}

.available-info p {
    color: #bbb;
    font-size: 15px;
    line-height: 1.8;
    margin: 4px 0;
    letter-spacing: 0.5px;
}

.available-info strong {
    color: #c9a45c;
}

/* ============================================
   ROOMS - TÍTULO
   ============================================ */

.rooms h2 {
    font-size: 42px;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-align: center;
    clear: both;
    padding-top: 10px;
}

.room-grid {
    clear: both;
}

/* ============================================
   RESPONSIVE MÓVIL
   ============================================ */

@media (max-width: 700px) {
    .available-title {
        font-size: 22px;
        letter-spacing: 6px;
        margin-top: 30px;
        margin-bottom: 12px;
    }
    
    .available-info {
        padding: 14px 18px;
        margin: 0 15px 25px;
    }
    
    .available-info p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .rooms h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
        padding-top: 5px;
        clear: both !important;
    }
    
    .room-grid {
        clear: both !important;
        padding-top: 5px;
    }
}

@media (max-width: 480px) {
    .available-title {
        font-size: 18px;
        letter-spacing: 4px;
        margin-top: 25px;
    }
    
    .available-info p {
        font-size: 12px;
        line-height: 1.5;
    }
    /* ============================================
   FIX SUPERPOSICIÓN PARA PANTALLAS MUY PEQUEÑAS
   ============================================ */

@media (max-width: 420px) {
    
    /* Forzar que el header termine antes */
    .hero {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Separador invisible pero con altura */
    .hero + div {
        display: block !important;
        height: 15px !important;
        clear: both !important;
    }
    
    /* Forzar separación del título */
    .rooms {
        padding-top: 10px !important;
        margin-top: 0 !important;
        clear: both !important;
    }
    
    .rooms h2 {
        font-size: 22px !important;
        margin-top: 5px !important;
        margin-bottom: 20px !important;
        padding-top: 5px !important;
        display: block !important;
        clear: both !important;
        position: relative !important;
        top: auto !important;
    }
    
    .available-title {
        font-size: 18px !important;
        letter-spacing: 4px !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .available-info {
        padding: 10px 12px !important;
        margin: 0 10px 15px !important;
    }
    
    .available-info p {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .room-grid {
        clear: both !important;
        padding-top: 5px !important;
        margin-top: 5px !important;
    }
}
    
}
