/* ==============================================================================
   ARGUS Hotel Web Suite — Base CSS Mobile-First (<2s Load Time Optimized)
   ============================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ── Botones Táctiles Accesibles (mínimo 48px de área táctil) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
    touch-action: manipulation;
}
.btn:active {
    transform: scale(0.97);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--primary-contrast, #fff);
}
.btn-sm {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* ── Header & Navegación Móvil ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    height: 44px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}
.brand-name {
    font-family: var(--font-heading, serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

/* Menú de Escritorio */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 22px;
}
.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Botón Hamburguesa Móvil */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menú Móvil Desplegable Off-Canvas */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-surface);
    z-index: 1060;
    padding: 85px 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
}
.mobile-nav.open {
    transform: translateX(0);
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color-soft);
}
.mobile-nav-link i {
    width: 24px;
    color: var(--primary);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    min-height: 85vh;
    padding: 120px 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}
.hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: inline-block;
}
.hero-title {
    font-family: var(--font-heading, serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

/* ── Motor de Búsqueda Rápida de Reservas (Booking Bar) ── */
.booking-bar {
    position: relative;
    z-index: 5;
    margin-top: -35px;
    margin-bottom: 40px;
}
.booking-bar-card {
    background: var(--bg-surface);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    border: 1px solid var(--border-color);
}
.booking-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.booking-field {
    text-align: left;
}
.booking-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.booking-field .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.booking-field .input-wrap i {
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-size: 1rem;
}
.booking-field input, .booking-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px 10px 38px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color-soft);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}
.booking-field input:focus, .booking-field select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── Títulos de Secciones ── */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title .section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}
.section-title h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    border-radius: 2px;
}

/* ── Habitaciones (Grid & Cards con Fotos) ── */
.rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.room-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.room-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #1e293b;
}
.room-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.room-card:hover .room-media img {
    transform: scale(1.05);
}
.room-photo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.room-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-available {
    background: #10b981;
    color: #fff;
}
.room-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.room-type {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.room-num {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.room-price-box {
    text-align: right;
}
.room-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.room-price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.room-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
}
.room-amenity-pill {
    background: var(--badge-bg);
    color: var(--badge-color);
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.room-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color-soft);
    display: flex;
    gap: 10px;
}

/* ── Servicios / Amenidades del Hotel ── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}
.amenity-card {
    padding: 22px 14px;
    text-align: center;
    border-radius: var(--card-radius);
    transition: transform 0.25s ease;
}
.amenity-card:hover {
    transform: translateY(-4px);
}
.amenity-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--badge-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.amenity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Ofertas y Temporadas ── */
.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.offer-card {
    border-radius: var(--card-radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.offer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.offer-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.offer-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

/* ── Galería Fotográfica Táctil (Lightbox) ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gallery-item {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 150px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Modal Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-modal.open {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

/* ── Ubicación & Contacto ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.contact-info-card, .contact-form-card {
    background: var(--bg-surface);
    border-radius: var(--card-radius);
    padding: 26px;
    border: 1px solid var(--border-color);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}
.contact-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.map-container {
    width: 100%;
    height: 250px;
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border-color-soft);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Formulario */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color-soft);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── Botón Flotante de WhatsApp ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* ── Footer ── */
.site-footer {
    background: #090b0e;
    color: #94a3b8;
    padding: 50px 0 25px;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    color: #ffffff;
    font-family: var(--font-heading, serif);
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

/* ── Media Queries Responsive (Mobile-First a Tablet & Desktop) ── */
@media (min-width: 640px) {
    .booking-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-form .btn-submit-booking {
        grid-column: span 2;
    }
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }
    .gallery-item {
        height: 180px;
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
    .booking-form {
        grid-template-columns: 1.2fr 1.2fr 1fr 1.2fr;
    }
    .booking-form .btn-submit-booking {
        grid-column: span 1;
    }
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-item {
        height: 220px;
    }
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

