/* Variables globales */
:root {
    --primary-color: #663300;
    --secondary-color: #B50202;
    --accent-color: #dd9933;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --text-secondary: #666666;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

/* Reset b¨˘sico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado y navegaci¨Žn */
.site-header {
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    max-height: 60px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--dark-color);
}

.nav-menu a:hover, 
.nav-menu .active a {
    color: var(--secondary-color);
    background-color: rgba(181, 2, 2, 0.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Hero con slider */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--light-color);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.prev-slide, .next-slide {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-color);
    transition: var(--transition);
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--secondary-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--light-color);
    transform: scale(1.2);
}

/* Contenido Principal */
.site-content {
    flex: 1;
    padding: 60px 0;
}

/* Secciones */
section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Habitaciones */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background-color: var(--light-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.room-image {
    height: 250px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-info {
    padding: 25px;
}

.room-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.room-features {
    margin-bottom: 20px;
}

.room-features li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.room-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* CTA Reservation */
.cta-reservation {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
    margin: 100px 0;
    background-image: linear-gradient(rgba(102, 51, 0, 0.9), rgba(102, 51, 0, 0.9)), url('https://hoteldosnaciones.com.mx/images/galeria/IMG_0590.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Formulario de Reservaci¨Žn */
.reservation-form {
    max-width: 900px;
    margin: 0 auto;
}

.modern-form {
    background-color: var(--gray-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: var(--secondary-color);
    margin-left: 3px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.input-icon input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 51, 0, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Ubicaci¨Žn */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.address-card, .contact-card, .email-card {
    background-color: var(--gray-color);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.location-details h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location-details i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
}

.footer-contact h3, .footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-color);
    font-family: var(--font-heading);
    position: relative;
}

.footer-contact h3::after, .footer-links h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 992px) {
    .header-flex {
        flex-wrap: wrap;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-slider {
        height: 60vh;
    }
    
    .location-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--light-color);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .booking-btn {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .booking-btn a {
        width: 100%;
    }
    
    .hero-slider {
        height: 50vh;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .footer-links ul {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .prev-slide, .next-slide {
        width: 35px;
        height: 35px;
    }
    
    .hero-slider {
        height: 40vh;
    }
}