/* 1. Configuración General */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px; /* Ajusta este número según el alto de tu menú */
}

:root {
    --purpura: #5e35b1;
    --purpura-oscuro: #4527a0;
    --dorado: #D4AF37;
    --blanco: #ffffff;
    --gris-claro: #f4f4f9;
    --texto-oscuro: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ESTILO PARA EL TEXTO DORADO RESALTADO */
.fuente-especial {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    background-image: linear-gradient(
        135deg,
        #b38b2d 0%,
        #f1c40f 22%,
        #fef9e7 45%,
        #b38b2d 50%,
        #f1c40f 75%,
        #fef9e7 85%,
        #b38b2d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.15);
    display: inline-block;
    margin: 0;
    line-height: 1;
}

.fuente-servicios {
    font-family: Georgia, 'Times New Roman', serif;
    color: #D4AF37; /* RGB: 212, 175, 55 */
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}



.hero-text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hero-text .subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero-text h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-text h1 span {
    display: block;
    margin-bottom: 0.25em;
}

.hero-text h1 span:last-child {
    margin-bottom: 0;
}

.hero-text p {
    margin: 0;
    font-size: 1.15rem;
    max-width: 620px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* --- LOGO CON MARCO DORADO --- */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; 
    height: 80px; 
    background-color: #000;
    border: 3px solid var(--dorado);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* --- REDES SOCIALES FIJAS EN PANTALLA --- */
.social-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
}

.float-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.instagram-color {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.whatsapp-color {
    background-color: #25d366;
}

/* --- Header y Navegación --- */
header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: rgba(140, 33, 198, 0.8);
    color: white;
    text-align: center;
    padding: 5px 10%;
    font-size: 0.8rem;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 10%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--dorado);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: capitalize;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 500;
}

.instagram-link {
    color: var(--dorado) !important;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reserva {
    background-image: linear-gradient(
        135deg,
        #c1982f 0%,
        #e2b93b 30%,
        #f6d57d 60%,
        #ddae2e 100%
    );
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}

.btn-reserva:hover {
    background-image: linear-gradient(
        135deg,
        #b88f27 0%,
        #d4a637 40%,
        #f0c869 80%,
        #c8982c 100%
    );
    transform: translateY(-0.3px);
}

/* 3. Hero Section (Banner Principal) */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 10% 40px;
    background: linear-gradient( rgba(186, 57, 255, 0.8), rgba(140, 33, 198, 0.8)), 
                url('img/fondo_spa.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 85vh;
}

.hero-image-container {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.main-img {
    width: 350px;
    max-width: 100%;
    border-radius: 20px;
    border: 5px solid rgba(255,255,255,0.2);
}

/* 4. Servicios (Cards) */
.servicios {
    padding: 80px 10%;
    text-align: center;
    background-color: var(--gris-claro);
}

.services-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-purple {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 5. Galería - Carrusel Interactivo */
.galeria {
    text-align: center;
    padding: 100px 10%;
    background: rgba(186, 57, 255, 0.8);
    color: white;
    border-radius: 40px;
    margin: 50px auto;
}

.galeria h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    background-image: linear-gradient(
        135deg,
        #d4a94a 0%,
        #e8c547 50%,
        #d4a94a 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 40px;
    font-size: 2.5rem;
    display: inline-block;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.card {
    flex: 0 0 calc(33.333% - 14px);
    height: 350px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    user-select: none;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

.card:hover .play-icon {
    opacity: 1;
}

.card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 2;
    letter-spacing: 1px;
}

.card-category.gallery {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
    max-width: 80%;
}

.card-title {
    font-size: 22px;
    margin: 0 0 8px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: capitalize;
}

.card-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
    font-size: 12px;
    display: none;
}

.read-more {
    position: absolute;
    bottom: 30px;
    right: 30px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    z-index: 2;
    display: none;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.3s;
}

@media (max-width: 1024px) {
    .card {
        flex: 0 0 calc(50% - 10px);
        height: 320px;
    }
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 calc(100% - 0px);
        height: 300px;
    }

    .card-title {
        font-size: 18px;
    }

    .galeria {
        padding: 60px 5%;
    }
}


.thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--dorado);
}

.thumbnail:hover {
    opacity: 0.8;
}

/* 6. Formulario de Contacto */
.contacto-container {
    display: flex;
    gap: 50px;
    padding: 50px 10%;
}

.booking-form {
    flex: 2;
    display: grid;
    gap: 15px;
}

.booking-form input, .booking-form select, .booking-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.info-card {
    flex: 1;
    background: var(--purpura);
    color: white;
    padding: 40px;
    border-radius: 15px;
}

@media (max-width: 768px) {
    /* --- LA BARRA SUPERIOR (Con tres puntos) --- */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        position: relative !important;
    }

    .brand {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        gap: 8px !important;
    }

    .nav-toggle {
        display: flex !important;
        border: none !important;
        background: none !important;
        cursor: pointer;
        font-size: 26px !important;
        color: #333 !important;
    }

    .nav-toggle::before {
        content: '\22EE'; /* Código de los tres puntos verticales */
        font-weight: bold;
    }

    /* --- EL MENÚ DESPLEGABLE --- */
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column !important;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Esta clase se activa con JavaScript al hacer click */
    nav.navbar.nav-open .nav-links {
        display: flex !important;
    }

    /* --- EL HERO (Restaurado a tu versión original) --- */
    .hero {
        display: flex !important;
        flex-direction: column !important; /* Texto arriba, Imagen abajo */
        align-items: left !important;    /* Centrado horizontal */
        text-align: left!important;      /* Texto centrado */
        padding: 40px 20px !important;
    }

    .hero-text {
        max-width: 100% !important;
        margin-bottom: 30px !important;    /* Espacio antes de la imagen */
    }

    .hero-text h1 {
        font-size: 2.5rem !important;      /* Tamaño que tenías antes */
        line-height: 1.2 !important;
    }

    .hero-image-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .main-img {
        width: 90% !important;             /* Que no se corte en los lados */
        max-width: 320px !important;       /* El tamaño del diamante de antes */
        height: auto !important;
        border-radius: 20px !important;
    }

    /* Ocultar el menú de links que estorba */
    .nav-links {
        display: none !important;
    }
}

/* Esto fuerza a que el menú se vea cuando el JS añade la clase */
.navbar.nav-open .nav-links {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    flex-direction: column !important;
    padding: 20px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* =========================================
   EFECTO DORADO METÁLICO (NUEVO)
   ========================================= */

/* Esta clase aplicará el efecto a cualquier elemento */
.efecto-dorado,
.navbar .brand-name, /* Aplicar específicamente al nombre de la marca */
.servicios h2 .fuente-servicios, /* Aplicar específicamente al título de servicios */
.services-grid .service-card h3 { /* Aplicar específicamente a los títulos de las tarjetas de servicio */
    
    /* 1. Fuente y Estilo (Elegante para dorados) */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase; /* Opcional: mayúsculas suelen verse bien en dorado */

    /* 2. El Degradado Dorado Metálico */
    /* Alternamos ocre (#b38b2d), amarillo dorado (#f1c40f) y casi blanco (#fef9e7) */
    background-image: linear-gradient(
        135deg,
        #b38b2d 0%,    /* Sombra inicial */
        #f1c40f 22%,   /* Medio dorado */
        #fef9e7 45%,   /* Brillo intenso (Luz) */
        #b38b2d 50%,   /* Sombra media */
        #f1c40f 75%,   /* Medio dorado */
        #fef9e7 85%,   /* Brillo secundario */
        #b38b2d 100%   /* Sombra final */
    );

    /* 3. Recortar el fondo para que solo se vea EN el texto */
    -webkit-background-clip: text; /* Para Safari y Chrome antiguos */
    background-clip: text;         /* Estándar moderno */

    /* 4. Hacer el color de texto transparente para mostrar el fondo recortado */
    -webkit-text-fill-color: transparent; /* Para Safari y Chrome antiguos */
    color: transparent;                   /* Estándar moderno */

    /* 5. Efecto opcional de sombra suave para dar relieve (bevel) */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.15);
    
    /* Asegurar que se muestre correctamente en elementos en línea */
    display: inline-block; 
}

/* Ajustes específicos para que los títulos de servicios no pierdan su centrado u otras propiedades */
.servicios h2 {
    text-align: center;
}

.services-grid .service-card h3 {
    font-size: 1.5rem; /* Ajusta el tamaño según tu diseño */
    margin-bottom: 10px;
    display: block; /* Para que ocupe todo el ancho en la tarjeta */
}

.brand-name, 
.fuente-especial, 
.fuente-servicios, 
.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    background-image: linear-gradient(
        135deg,
        #b38b2d 0%,    /* Sombra */
        #f1c40f 25%,   /* Dorado */
        #fef9e7 50%,   /* Reflejo Blanco */
        #f1c40f 75%,   /* Dorado */
        #b38b2d 100%   /* Sombra */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
    display: inline-block;
}   

/* --- NUEVA CONFIGURACIÓN DE FONDO PARA GALERÍA --- */
.galeria {
    position: relative; /* Necesario para el filtro */
    background-image: url('img/fondo2.jpg'); /* Pon aquí tu imagen de fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

/* El filtro morado que solo toca el fondo */
.galeria::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color:rgba(186, 57, 255, 0.8); /* Morado al 70% */
    z-index: -1; /* Se queda atrás de las fotos */
}

/* Forzamos a que el carrusel y el título no se vean morados */
.carousel-container {
    position: relative;
    z-index: 2; /* Pasa al frente del filtro */
}

.galeria h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    background-image: linear-gradient(
        135deg,
        #b38b2d 0%,    /* Sombra */
        #f1c40f 25%,   /* Dorado */
        #fef9e7 50%,   /* Reflejo Blanco */
        #f1c40f 75%,   /* Dorado */
        #b38b2d 100%   /* Sombra */
    );
}

.contacto h2 {
    text-align: center;
    width: 100%;
    display: block;
    font-family: 'Playfair Display', serif; /* O la que uses */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* El truco del dorado premium */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Sombra suave para que resalte del fondo blanco */
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
    margin-bottom: 30px;
}

.info-card {
    background:rgba(186, 57, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card {
    background-color: transparent; /* Mantiene la foto limpia */
    border: 1px solid rgba(197, 160, 89, 0.4); /* Borde dorado fino */
}

/* --- ARREGLO PARA EL MAPA EN CELULARES --- */

/* 1. El contenedor debe permitir que los elementos se apilen (uno abajo del otro) */
.contacto-container {
    display: flex;
    flex-wrap: wrap;       /* CLAVE: permite que el mapa e info se separen en móvil */
    gap: 20px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* Asegura que el padding no estire el cuadro */
}

/* 2. El mapa debe ser flexible */
.mapa-wrapper {
    flex: 1 1 300px;       /* El mapa intentará medir al menos 300px */
    width: 100%;           /* En móvil ocupará el 100% disponible */
}

/* 3. El iframe (el mapa de Google) debe obedecer al contenedor */
.mapa-wrapper iframe {
    width: 100% !important; /* Fuerza a que no se pase de los bordes */
    height: 300px;          /* En móvil 300px de alto está perfecto */
    border-radius: 15px;
}

.btn-mapa {
    display: block;
    text-align: center;
    background: linear-gradient( 135deg,
        #b38b2d 0%,    /* Sombra */
        #f1c40f 25%,   /* Dorado */
        #fef9e7 50%,   /* Reflejo Blanco */
        #f1c40f 75%,   /* Dorado */
        #b38b2d 100%   /* Sombra */);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    padding: 12px;
    margin-top: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.btn-mapa:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

/* Ajuste para que se vea bien en móviles */
@media (max-width: 768px) {
    .contacto-container {
        flex-direction: column;
    }
}

/* --- ESTILOS SOLO PARA MÓVIL (Android/iPhone) --- */
@media (max-width: 767px) {
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Logo/Nombre a la izquierda, Puntos a la derecha */
        padding: 5px 15px;
    }

    .logo-brand {
        display: flex;
        align-items: center;
        gap: 8px; /* Espacio pequeño entre logo y nombre */
    }

    .logo-img {
        height: 40px; /* Logo más compacto en el celu */
        width: auto;
    }

    .brand-name {
        font-size: 1rem; /* Tamaño de letra ajustado para móvil */
        white-space: nowrap;
        display: block; /* Asegura que se vea al lado del logo */
    }

    /* Mostramos el botón de 3 puntos solo en móvil */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #b38b2d; /* Dorado para que combine */
    }

    /* Ocultamos el menú de links normal en móvil (para que no estorbe) */
    .nav-menu {
        display: none; 
    }
}

/* --- ESTILOS PARA PC (Escritorio) --- */
@media (min-width: 768px) {
    /* Ocultamos el botón de los 3 puntos en PC */
    .menu-toggle {
        display: none;
    }

    /* Aquí tu menú normal de PC se mostrará como siempre */
    .nav-menu {
        display: block;
    }
}