/* FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Raleway&family=Abril+Fatface&display=swap');

@font-face {
    font-family: "Sedgwick";
    src: url('https://res.cloudinary.com/amenitiz/raw/upload/v1699978915/tamcenam4r1tpswpbwrn.ttf');
}

@font-face {
    font-family: "abrilfatface";
    src: url('https://res.cloudinary.com/amenitiz/raw/upload/v1718795090/uqmrwxsckioxwbs8cfrk.ttf');
}

/* VARIABLES Y ESTILOS GLOBALES */
:root {
    --color-primary: #560707;
    --color-secondary: #fff4d5;
    --color-accent: #000076;
    --color-text: #000000;
    --color-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'abrilfatface', serif;
    font-weight: normal;
    color: var(--color-primary);
    text-transform: uppercase;
    text-align: center;
}

p {
    font-size: 18px;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    font-family: 'abrilfatface', serif;
    font-size: 20px;
    line-height: 20px;
    padding: 10px 16px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 30px;
    margin-bottom: 20px;
}

.separator {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.separator hr {
    height: 1px;
    padding: 0;
    color: var(--color-accent);
    background-color: var(--color-accent);
    border: 0;
    max-width: 50%;
    width: 100px;
    margin: 0 8px;
}

.separator .icon {
    height: 24px;
    width: auto;
    margin: 0 8px;
}

.separator .icon path {
    fill: var(--color-accent);
}

.text-center {
    text-align: center;
}

/* HEADER */
header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hacer que el header ocupe todo el ancho y los elementos queden pegados a los bordes */
header .header-container {
    max-width: 100% !important;
    width: 100%;
    margin: 0 auto;
    /* margen interno a ambos bordes */
    padding: 0 90px;
}

/* Asegurar que la navegación no tenga padding/margin por defecto */
header nav ul {
    margin: 0;
    padding: 0;
}

.logo {
    max-width: 320px;
    height: auto;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.logo h2 {
    white-space: nowrap;
    margin: 0;
    color: var(--color-white);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
}

/* Language Switcher */
.lang-switcher-item {
    position: relative;
    display: inline-block;
    margin-left: 30px;
}

.language-switcher-wrapper {
    position: relative;
}

.language-switcher {
    position: relative;
}

.language-active {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    outline: none;
    white-space: nowrap;
}

#lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#lang-toggle:hover,
.language-active:hover {
    color: var(--color-secondary);
}

.arrow-down-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 12px;
    height: 8px;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

#lang-toggle.active .arrow-down-small {
    transform: rotate(180deg);
}

.languages-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--color-primary);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

.languages-list.active {
    display: block;
}

.lang-option-item {
    list-style: none;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--color-white);
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.lang-option:hover {
    background-color: rgba(255,255,255,0.15);
}

/* HERO SECTION */
.hero {
    position: relative;
    /* Mostrar la imagen completa: usar `contain` y aumentar el área si es necesario */
    overflow: hidden;
    /* Usamos un <img> absoluto dentro de .hero para mejor control responsivo */
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3c4059;
    opacity: 0.4;
}

.hero h1 {
    font-size: 48px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* ABOUT SECTION */
.about {
    background-color: var(--color-secondary);
    padding: 60px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ROOMS SECTION */
.rooms {
    background-color: #f6f1ed;
    padding: 60px 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 150px;
    margin-top: 40px;
}

.room-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-10px);
}

.room-image {
    /* Altura flexible: el contenedor se adapta a la imagen para mostrarla completa */
    width: 100%;
    height: auto;
    background-color: #ddd;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos para el carrusel */
.room-carousel {
    position: relative;
    width: 100%;
    background-color: #ddd;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(86, 7, 7, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(86, 7, 7, 1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(86, 7, 7, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--color-primary);
}

.dot:hover {
    background-color: rgba(86, 7, 7, 0.8);
}

.room-content {
    padding: 24px;
}

.room-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.room-content p {
    margin-bottom: 16px;
    font-size: 16px;
}

.room-card .btn {
    margin-top: 16px;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-column {
    flex: 0 1 45%;
    margin-bottom: 20px;
}

.footer-column.left {
    text-align: left;
}

.footer-column.right {
    text-align: left;
}

.instagram-logo {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.instagram-logo:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.instagram-svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.room-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* RESERVATION SECTION */
.reservation {
    background-color: #f6f1ed;
    padding: 60px 0;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Inline form error messages */
.form-errors {
    margin-bottom: 16px;
}
.form-errors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.form-error {
    background-color: #ffe6e6;
    color: #8a0000;
    border: 1px solid #ffb3b3;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Estilo para inputs con error */
.input-error {
    border-color: #8a0000 !important;
    box-shadow: 0 0 0 4px rgba(255, 179, 179, 0.25);
}

/* Instagram SVG adjustments */
.instagram-svg {
    width: 28px;
    height: 28px;
    display: block;
    color: var(--color-primary);
}
.instagram-logo {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border-radius: 8px;
    text-decoration: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(86, 7, 7, 0.1);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #8a0000;
}

.form-control:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 3px rgba(255, 179, 179, 0.25);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* FOOTER */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 0 1 auto;
    margin-bottom: 20px;
    text-align: left;
}

.footer-column.left {
    margin-left: 20px;
}

.footer-column.right {
    margin-right: 20px;
}

.footer-column h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-icon {
    flex-shrink: 0;
    color: var(--color-white);
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--color-secondary);
}

.footer-contact-item span {
    color: var(--color-white);
    flex: 1;
}

.instagram-link {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.instagram-link:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: space-between;
}

.modal-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal h2 {
    margin-bottom: 20px;
}

.modal p {
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }

    /* Ajustes específicos para que la foto del hero se vea bien en móviles */
    .hero {
        height: 50vh;
        min-height: 40vh;
        /* en móviles priorizamos mostrar la parte superior/central de la imagen */
        background-position: top center;
        background-size: cover;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .section {
        padding: 30px 0;
    }

    /* Footer responsive: columnas centradas y apiladas */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-column.right, .footer-column.left {
        text-align: center;
        flex: 0 1 100%;
    }

    .lang-switcher {
        margin-top: 10px;
    }

    /* Ajustes específicos para el logo en móviles */
    .logo {
        max-width: 100%;
        justify-content: space-between;
    }

    .logo h2 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}




