/* ================================
   Variables y Reset CSS
   ================================ */
:root {
    --color-dark: #3c4354;
    --color-accent: #d95368;
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-dark-gray: #333333;
    --color-whatsapp: #25D366;
    --color-facebook: #3b5998;
    --font-family: 'Montserrat', sans-serif;
    --container-max-width: 1200px;
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Header
   ================================ */
.header {
    background-color: var(--color-dark);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(var(--header-height) + 30px);
    position: relative;
}

.nav__logo {
    display: flex;
    align-items: center;
    height: 100px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__logo-img {
    height: 100%;
    width: auto;
    max-height: 100px;
    object-fit: contain;
}

.nav__menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    position: absolute;
    right: 0;
}

.nav__link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__button {
    color: var(--color-accent);
    text-decoration: none;
    border: 2px solid var(--color-accent);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav__button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.nav__toggle {
    display: none !important;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    margin-top: var(--header-height);
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   Booking Prompt
   ================================ */
.booking-prompt {
    background-color: var(--color-dark);
    padding: 4rem 0;
    text-align: center;
}

.booking-prompt__content {
    max-width: 800px;
    margin: 0 auto;
}

.booking-prompt__text {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.booking-prompt__button {
    display: inline-block;
    background-color: transparent;
    color: var(--color-accent);
    text-decoration: none;
    border: 2px solid var(--color-accent);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.booking-prompt__button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ================================
   Promotions
   ================================ */
.promotions {
    background-color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.promotions__title {
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.promotions__description {
    color: var(--color-dark-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promotions__link {
    color: var(--color-facebook);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.promotions__link:hover {
    opacity: 0.8;
}

/* ================================
   Rooms Section
   ================================ */
.rooms {
    background-color: var(--color-dark);
    padding: 4rem 0;
}

.rooms__title {
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.room-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.room-card__header {
    text-align: center;
    padding: 1rem 0;
}

.room-card__image {
    position: relative;
}

.room-card__content {
    padding: 2rem;
}

.room-card__title {
    color: var(--color-accent);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.room-card__description {
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.room-card__amenities {
    list-style: none;
    margin-bottom: 2rem;
}

.room-card__amenities li {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-card__amenities i {
    color: var(--color-accent);
    width: 20px;
}

.room-card__reserve {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.room-card__reserve:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

/* ================================
   Slider
   ================================ */
.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slider__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider__img.active {
    opacity: 1;
}

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider__btn:hover {
    background-color: var(--color-accent);
}

.slider__btn--prev {
    left: 15px;
}

.slider__btn--next {
    right: 15px;
}

.slider__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider__dot.active,
.slider__dot:hover {
    background-color: var(--color-accent);
}

/* ================================
   Services
   ================================ */
.services {
    background-color: var(--color-light-gray);
    padding: 4rem 0;
}

.services__title {
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card--reverse {
    direction: rtl;
}

.service-card--reverse > * {
    direction: ltr;
}

.service-card__image {
    position: relative;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.service-card__content {
    padding: 3rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
}

.service-card__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.service-card__title {
    color: var(--color-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card__description {
    color: var(--color-dark-gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* ================================
   Location
   ================================ */
.location {
    background-color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.location__title {
    color: var(--color-accent);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.location__map {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location__address {
    color: var(--color-dark-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ================================
   WhatsApp Floating Button
   ================================ */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .nav {
        justify-content: center;
        height: calc(var(--header-height) - 20px);
    }

    .nav__logo {
        height: 90px;
        position: static;
        transform: none;
    }

    .nav__logo-img {
        max-height: 90px;
    }

    .nav__menu {
        display: none !important;
    }

    .nav__toggle {
        display: none !important;
    }

    .hero {
        height: 65vh;
    }

    .room-card,
    .service-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* En móvil, mantener el orden: título, imagen, contenido */
    .room-card__header {
        order: 1;
    }

    .room-card__image {
        order: 2;
    }

    .room-card__content {
        order: 3;
    }

    /* En móvil, todos los servicios tienen el mismo orden: imagen arriba, contenido abajo */
    .service-card--reverse .service-card__image {
        order: 1;
    }

    .service-card--reverse .service-card__content {
        order: 2;
    }

    .slider {
        height: 300px;
    }

    .rooms__title,
    .services__title,
    .location__title,
    .promotions__title {
        font-size: 2rem;
    }

    .room-card__title {
        font-size: 1.5rem;
    }

    .service-card__title {
        font-size: 1.5rem;
    }

    .booking-prompt__text {
        font-size: 1rem;
    }

    .promotions__description {
        font-size: 1rem;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        justify-content: center;
    }

    .nav__logo {
        height: 85px;
    }

    .nav__logo-img {
        max-height: 85px;
    }

    .nav__menu {
        display: none !important;
    }

    .nav__toggle {
        display: none !important;
    }

    .hero {
        height: 55vh;
    }

    .booking-prompt,
    .promotions,
    .rooms,
    .services,
    .location {
        padding: 3rem 0;
    }

    .room-card__content,
    .service-card__content {
        padding: 1.5rem;
    }

    .slider {
        height: 250px;
    }

    /* En móvil, mantener el orden: título, imagen, contenido */
    .room-card__header {
        order: 1;
    }

    .room-card__image {
        order: 2;
    }

    .room-card__content {
        order: 3;
    }

    .slider__btn {
        padding: 10px;
        font-size: 1rem;
    }

    .slider__btn--prev {
        left: 10px;
    }

    .slider__btn--next {
        right: 10px;
    }

    .rooms__title,
    .services__title,
    .location__title,
    .promotions__title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .room-card__title {
        font-size: 1.3rem;
    }

    .service-card__title {
        font-size: 1.3rem;
    }

    .nav {
        height: calc(var(--header-height) - 20px);
    }

    .nav__logo {
        height: 80px;
        position: static;
        transform: none;
    }

    .nav__logo-img {
        max-height: 80px;
    }

    .nav__menu {
        position: static;
        right: auto;
    }

    .booking-prompt__button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Extra large screens */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero {
        height: 70vh;
    }

    .slider {
        height: 500px;
    }
}

/* Animation for smooth appearance */
.room-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.room-card:nth-child(2) { animation-delay: 0.1s; }
.room-card:nth-child(3) { animation-delay: 0.2s; }
.room-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}