/* ==========================================================================
   CSS PRINCIPAL - HOTEL POSADA DE DON JUAN
   Diseño Premium, Responsivo y Veloz (Sin Dependencias)
   ========================================================================== */

/* 1. Variables Globales & Temas */
:root {
    /* Paleta de Colores HSL y Hex */
    --color-primary: #1a3c34;        /* Verde Pizarra Bosque (Celaque) */
    --color-primary-dark: #112621;   /* Verde Pizarra Oscuro */
    --color-primary-light: #2c584c;  /* Verde Pizarra Claro */
    --color-gold: #c59b27;           /* Dorado / Cobre Elegante */
    --color-gold-hover: #b0871f;     /* Dorado Oscurecido */
    --color-bg-light: #faf8f5;       /* Fondo Crema Cálido */
    --color-bg-white: #ffffff;
    --color-text-dark: #2b3531;      /* Texto Principal Oscuro */
    --color-text-muted: #6e7a75;     /* Texto Secundario / Desvanecido */
    --color-sage: #8da290;           /* Verde Sabio (Acento suave) */
    --color-danger: #d9534f;
    --color-success: #2ea44f;
    
    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    
    /* Efectos & Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
}

/* 2. Reseteo y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* 3. Componentes de UI Comunes */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-bg-white);
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.badge-stars {
    color: var(--color-gold);
    font-size: 14px;
    letter-spacing: 2px;
}

/* 4. Barra Superior (Topbar) */
.top-bar {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-light);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bar-separator {
    opacity: 0.3;
    margin-right: 20px;
}

.admin-preview-badge {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-preview-badge:hover {
    background-color: var(--color-bg-white);
}

/* 5. Cabecera Principal (Navbar) */
.main-header {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo-stars {
    font-size: 10px;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a:not(.btn) {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    padding: 10px 0;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn).active::after {
    width: 100%;
}

.nav-menu a:not(.btn):hover {
    color: var(--color-primary);
}

.btn-booking {
    padding: 10px 20px;
    font-size: 12px;
    background-color: var(--color-gold);
    color: var(--color-bg-white);
}

/* Hamburguesa Móvil */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary-dark);
    cursor: pointer;
}

/* 6. Héroe con Ken Burns y Glassmorphism */
.hero-slider {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.slide.active .slide-img {
    transform: scale(1);
}

.hero-overlay-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 5;
    max-width: 550px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dark);
    border-left: 5px solid var(--color-gold);
}

.hero-overlay-card h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-overlay-card p {
    font-size: 16px;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    font-weight: 400;
}

/* 7. Secciones Generales */
.section {
    padding: 80px 0;
}

.section-bg-alt {
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
}

/* 8. Sección de Habitaciones (Grilla) */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.room-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.room-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.room-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img-container img {
    transform: scale(1.08);
}

.room-price-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    padding: 8px 15px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--color-gold);
    font-size: 14px;
}

.room-content {
    padding: 30px;
}

.room-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.room-meta i {
    color: var(--color-gold);
}

.room-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.room-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    height: 66px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.room-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.room-actions .price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

.room-actions .price span {
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* 9. Galería con Filtros */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 30px;
    color: var(--color-text-muted);
    border: 1px solid #ddd;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-bg-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 240px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 52, 0.8);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.gallery-item-overlay h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.gallery-item-overlay p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(10px);
    transition: transform 0.3s 0.1s;
}

.gallery-item:hover .gallery-item-overlay h4,
.gallery-item:hover .gallery-item-overlay p {
    transform: translateY(0);
}

/* 10. Restaurante El Mesón */
.restaurant-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.restaurant-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.restaurant-info p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.restaurant-hours {
    background: rgba(197, 155, 39, 0.08);
    border-left: 4px solid var(--color-gold);
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 30px;
}

.restaurant-hours p {
    margin-bottom: 5px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.restaurant-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

/* 11. Quiénes Somos / Nosotros */
.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    border-top: 3px solid var(--color-primary);
}

.feature-box i {
    color: var(--color-gold);
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-box h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.feature-box p {
    font-size: 12px;
    color: var(--color-text-muted);
}

.award-badge-container {
    background: var(--color-primary-dark);
    color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-gold);
    margin-top: 30px;
}

.award-badge-container h4 {
    color: var(--color-gold);
    margin-bottom: 10px;
}

/* 12. Contacto & Mapa */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    color: var(--color-gold);
    font-size: 20px;
    margin-top: 4px;
}

.contact-info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--color-text-muted);
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 450px;
    border: 1px solid #ddd;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Formulario */
.contact-form {
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

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

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

.form-control label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-control input, .form-control textarea, .form-control select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
    background-color: #fafafa;
}

.form-control input:focus, .form-control textarea:focus, .form-control select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 5px rgba(26,60,52,0.15);
}

/* 13. Pie de Página (Footer) */
.main-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--color-bg-white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
}

.footer-col-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-bg-white);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

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

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

.footer-col-links ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-col-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col-contact i {
    color: var(--color-gold);
    font-size: 16px;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
}

/* 14. Diseño de la Página de Mantenimiento */
.maintenance-body {
    background: linear-gradient(135deg, #112621 0%, #1a3c34 100%);
    color: var(--color-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.maintenance-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    box-shadow: var(--shadow-dark);
    border-top: 5px solid var(--color-gold);
}

.maintenance-card h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
}

.maintenance-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.maintenance-badge {
    display: inline-block;
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 30px;
}

.maintenance-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.maintenance-contacts span i {
    color: var(--color-gold);
    margin-right: 5px;
}

/* 15. Estilos Generales para Políticas y Nosotros Interno */
.inner-header {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--color-gold);
}

.inner-header h1 {
    color: white;
    font-size: 42px;
}

.inner-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0,0,0,0.05);
}

.inner-content h2 {
    font-size: 24px;
    margin: 35px 0 15px 0;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 10px;
}

.inner-content h2:first-of-type {
    margin-top: 0;
}

.inner-content p {
    margin-bottom: 20px;
    color: var(--color-text-dark);
    font-size: 15px;
}

.inner-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.inner-content ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* 15.5 Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    background-color: #128c7e;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 16. Media Queries para Responsividad */
@media (max-width: 992px) {
    .header-container {
        height: 70px;
    }
    
    .logo-title {
        font-size: 16px;
    }
    
    /* Mostrar menú móvil */
    .hamburger-menu {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transition: left 0.4s ease-in-out;
        box-shadow: var(--shadow-medium);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-overlay-card {
        left: 5%;
        right: 5%;
        max-width: none;
        padding: 30px;
    }
    
    .hero-overlay-card h2 {
        font-size: 32px;
    }
    
    .restaurant-showcase, .about-section-grid, .contact-container, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-overlay-card h2 {
        font-size: 26px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
