:root {
    --primary: #3A5F3D;     /* Verde oscuro - botones, header */
    --accent: #A8BBA2;      /* Pistacho - precios, hover */
    --light: #F5F0E6;       /* Beige claro - fondo general */
    --dark: #2C3E2A;        /* Verde muy oscuro - texto */
    --secondary: #5D7B5A;   /* Verde medio - hover */
    --cream: #FDFBF7;       /* Crema - texto claro */
    --beige: #E8DAB2;       /* Beige medio - secciones */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light); /* Beige claro */
    color: var(--dark);       /* Verde oscuro para texto */
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

header {
    background: rgba(58, 95, 61, 0.97); /* Verde oscuro */
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(58, 95, 61, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav a {
    color: var(--cream);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent); /* Pistacho */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    margin-top: 70px;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../images/espacios/portada.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s;
}

.btn {
    background: var(--primary);     /* Verde oscuro */
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(58, 95, 61, 0.3);
}

.btn:hover {
    background: var(--secondary);   /* Verde medio */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 95, 61, 0.4);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 2rem;
    justify-content: center;
}

.social-links a {
    color: var(--primary);
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.contact-info {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    z-index: 999;
}

.ai-assistant:hover {
    transform: scale(1.1);
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 998;
}

.chat-box.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin: 1rem 0;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
}

.bot-message {
    background: var(--light);
    align-self: flex-start;
}

.user-message {
    background: var(--secondary);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin-left: 0.5rem;
    border-radius: 25px;
    cursor: pointer;
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--primary);
        padding: 1rem 0;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hero-content h1 { font-size: 2rem; }
    .contact-container { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .chat-box { width: 90%; right: 5%; }
}

/* === CARRUSEL ADAPTATIVO - AJUSTE PERFECTO A CADA FOTO === */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(58, 95, 61, 0.15);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: auto !important;
}

.carousel img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;     /* ← CLAVE: MANTIENE PROPORCIÓN */
    flex-shrink: 0;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}

/* Flechas adaptativas */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(58, 95, 61, 0.8);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

/* Puntos debajo */
.dots {
    text-align: center;
    padding: 15px 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active, .dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive móvil */
@media (max-width: 768px) {
    .carousel img {
        max-height: 400px;
        padding: 5px;
    }
    .prev, .next {
        padding: 10px 12px;
        font-size: 1.5rem;
    }

/* SECCIONES ALTERNAS */
section:nth-child(even) {
    background: var(--beige); /* Beige medio */
}

section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* TARJETAS */
.service-card, .room-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(58, 95, 61, 0.1);
    transition: 0.3s;
}

.service-card:hover, .room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(58, 95, 61, 0.2);
}

.room-info .price {
    color: var(--accent); /* Pistacho */
    font-size: 1.3rem;
}

}