/* =============================================
   HOME.CSS - Hotel Ejecutivo Public Landing Page
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #a07c2e;
    --dark: #1a1a2e;
    --dark-alt: #16213e;
    --dark-card: #0f1629;
    --text-light: #f0f0f0;
    --text-muted: #a0a8b8;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.15);
    --shadow-dark: 0 8px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 22, 41, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.8rem;
    color: var(--gold);
}

.nav-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--dark) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hotel-hero.png') center/cover no-repeat;
    filter: brightness(0.35);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.4) 0%,
        rgba(26, 26, 46, 0.2) 40%,
        rgba(26, 26, 46, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--gold);
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--dark);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ====== SECTIONS ====== */
section {
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ====== AMENITIES ====== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.amenity-card {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.4s;
}

.amenity-card:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-6px);
}

.amenity-card i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.amenity-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ====== ROOMS ====== */
#rooms {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-alt) 100%);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(201, 168, 76, 0.2);
}

.room-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(22, 33, 62, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.room-card-image i {
    font-size: 3.5rem;
    color: var(--gold);
    opacity: 0.5;
}

.room-card-image .room-number-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.room-card-image .availability-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.availability-badge.available {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.availability-badge.unavailable {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.room-card-body {
    padding: 24px;
}

.room-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.room-card-body .room-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.room-price .amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}

.room-price .per-night {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.room-card-body .room-features {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.room-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.room-features span i {
    color: var(--gold);
    font-size: 0.8rem;
}

.btn-reserve-room {
    width: 100%;
    padding: 12px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.btn-reserve-room:hover:not(:disabled) {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-reserve-room:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
}

.rooms-empty {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
    color: var(--text-muted);
}

.rooms-empty i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

/* ====== RESERVATION FORM ====== */
#reservar {
    background: linear-gradient(180deg, var(--dark-alt) 0%, var(--dark) 100%);
}

.reservation-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.reservation-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--gold);
    margin-right: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-submit-reservation {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit-reservation:hover:not(:disabled) {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-submit-reservation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====== CONFIRMATION MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-box .success-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.modal-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.modal-box .confirm-details {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.confirm-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}

.confirm-details .detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    color: var(--text-muted);
}

.detail-row .detail-value {
    font-weight: 600;
    color: var(--white);
}

.detail-row.total .detail-value {
    color: var(--gold);
    font-size: 1.1rem;
}

.modal-box .btn-close-modal {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.modal-box .btn-close-modal:hover {
    background: var(--gold-light);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--dark-card);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
}

/* ====== ANIMATIONS ====== */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== TOAST ====== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }

@keyframes slideIn { from { transform: translateX(110%); } to { transform: translateX(0); } }
@keyframes slideOut { to { transform: translateX(110%); opacity: 0; } }

/* ====== LOADING SPINNER ====== */
.loading-rooms {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .navbar { padding: 14px 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 22, 41, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px;
        gap: 16px;
    }
    .mobile-toggle { display: block; }

    section { padding: 60px 20px; }

    .form-row { grid-template-columns: 1fr; }
    .reservation-wrapper { padding: 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .rooms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn-gold, .btn-outline { width: 100%; justify-content: center; }
    .amenities-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
