/* =====================================================================
   LA GAMBETA — estilos premium
   Paleta: negros profundos + dorado champagne. Mobile-first.
   Tipografías: Playfair Display (display) / Inter (cuerpo).
   ===================================================================== */

:root {
    /* Negros estratificados (no un solo #000 plano) */
    --negro-abismo:   #0a0a0b;
    --negro-carbon:   #121214;
    --negro-humo:     #1b1b1f;
    --negro-borde:    #2a2a30;

    /* Dorados: del champagne tenue al oro intenso */
    --oro:            #c9a24b;
    --oro-claro:      #e6c878;
    --oro-tenue:      rgba(201, 162, 75, 0.16);

    /* Neutros */
    --hueso:          #f4f1ea;
    --gris-texto:     #a7a39b;

    --fuente-display: 'Playfair Display', Georgia, serif;
    --fuente-cuerpo:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radio:          4px;
    --transicion:     0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --sombra-honda:   0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

/* ----------------------- Reset suave ----------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--fuente-cuerpo);
    background-color: var(--negro-abismo);
    color: var(--hueso);
    line-height: 1.6;
    overflow-x: hidden;
    /* Textura sutil de grano sobre el negro para dar profundidad */
    background-image:
        radial-gradient(circle at 20% 0%, rgba(201,162,75,0.05), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(201,162,75,0.04), transparent 45%);
    background-attachment: fixed;
}

h1, h2, h3, .display {
    font-family: var(--fuente-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ----------------------- Utilidades ----------------------- */
.contenedor {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.oro { color: var(--oro); }

.kicker {
    font-family: var(--fuente-cuerpo);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--oro);
    font-weight: 600;
    margin-bottom: 0.9rem;
    display: inline-block;
}

.seccion {
    padding-block: clamp(3.5rem, 9vw, 7rem);
    position: relative;
}

.titulo-seccion {
    font-size: clamp(1.9rem, 6vw, 3.2rem);
    margin: 0 0 2.5rem;
}

/* Línea divisoria dorada decorativa */
.divisor-oro {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--oro), transparent);
    margin-bottom: 1.5rem;
}

/* ----------------------- Botones ----------------------- */
.btn-oro, .btn-fantasma {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--fuente-cuerpo);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.95rem 2rem;
    border-radius: var(--radio);
    cursor: pointer;
    transition: var(--transicion);
    border: 1px solid transparent;
}

.btn-oro {
    background: linear-gradient(135deg, var(--oro-claro), var(--oro));
    color: var(--negro-abismo);
    box-shadow: 0 8px 24px -8px rgba(201, 162, 75, 0.55);
}
.btn-oro:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(201, 162, 75, 0.7);
}

.btn-fantasma {
    background: transparent;
    color: var(--oro);
    border-color: var(--oro);
}
.btn-fantasma:hover {
    background: var(--oro-tenue);
}

/* ----------------------- Navbar ----------------------- */
.lg-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 11, 0);
    transition: background var(--transicion), padding var(--transicion),
                border-color var(--transicion);
    border-bottom: 1px solid transparent;
}
.lg-nav.activa {
    background: rgba(10, 10, 11, 0.92);
    backdrop-filter: blur(12px);
    padding-block: 0.7rem;
    border-bottom-color: var(--negro-borde);
}
.lg-logo {
    font-family: var(--fuente-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.lg-logo span { color: var(--oro); }

.lg-nav-links { display: none; gap: 2rem; align-items: center; }
.lg-nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gris-texto);
    transition: color var(--transicion);
    position: relative;
}
.lg-nav-links a:hover { color: var(--hueso); }
.lg-nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--oro);
    transition: width var(--transicion);
}
.lg-nav-links a:hover::after { width: 100%; }

/* ----------------------- Hero ----------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.85) 60%, var(--negro-abismo) 100%),
        url('../img/hero.jpg') center/cover no-repeat;
    z-index: -2;
}
/* Marca de agua tipográfica gigante de fondo */
.hero-watermark {
    position: absolute;
    right: -3vw; bottom: -4vw;
    font-family: var(--fuente-display);
    font-size: 32vw;
    line-height: 0.7;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    z-index: -1;
    user-select: none;
}
.hero-contenido { max-width: 640px; }
.hero h1 {
    font-size: clamp(2.6rem, 11vw, 5.5rem);
    margin: 0 0 1.4rem;
}
.hero p {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--gris-texto);
    max-width: 30rem;
    margin: 0 0 2.4rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ----------------------- Servicios ----------------------- */
.grid-servicios {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    /* Sin overflow:hidden ni borde contenedor: cada tarjeta se eleva libre. */
}
.servicio {
    position: relative;
    isolation: isolate;
    padding: 2.2rem 1.8rem;
    min-height: 320px;                  /* alto consistente para que la foto luzca */
    display: flex;
    align-items: flex-end;              /* texto anclado abajo */
    background: var(--negro-carbon);    /* base mientras la foto no cargó */
    overflow: hidden;
    border-radius: var(--radio);
    border: 1px solid transparent;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}
/* La foto de cada tarjeta (la define cada <article> con --bg).
   z-index positivo para quedar SOBRE el fondo base de la tarjeta. */
.servicio::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: grayscale(0.3);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease;
}
/* Degradado: transparente arriba -> negro abajo, para anclar el texto.
   Va sobre la foto. */
.servicio::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(10,10,11,0.15) 0%,
        rgba(10,10,11,0.55) 45%,
        rgba(10,10,11,0.92) 100%);
}
/* --- Animación al pasar el mouse --- */
.servicio:hover {
    transform: translateY(-8px);                       /* se eleva */
    border-color: var(--oro);                          /* borde dorado */
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7),
                0 0 0 1px rgba(201,162,75,0.3);         /* sombra + halo */
}
.servicio:hover::before {
    transform: scale(1.08);                            /* zoom de la foto */
    filter: grayscale(0);                              /* recupera color */
}
.servicio .servicio-contenido {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.servicio:hover .servicio-contenido {
    transform: translateY(-4px);                       /* texto sube suave */
}
.servicio-contenido { position: relative; z-index: 2; }   /* texto sobre todo */
.servicio .num {
    font-family: var(--fuente-display);
    font-size: 0.95rem;
    color: var(--oro);
    opacity: 0.8;
}
.servicio h3 { font-size: 1.4rem; margin: 0.6rem 0 0.6rem; }
.servicio p { color: var(--hueso); opacity: 0.85; font-size: 0.95rem; margin: 0 0 1.2rem; }
.servicio .precio {
    font-family: var(--fuente-display);
    font-size: 1.6rem;
    color: var(--oro);
}

/* ----------------------- Galería ----------------------- */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radio);
    aspect-ratio: 1 / 1;
    background: var(--negro-humo);
}
.galeria-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    filter: grayscale(0.25);
}
.galeria-item:hover img { transform: scale(1.08); filter: grayscale(0); }

/* ----------------------- CTA turnos ----------------------- */
.cta-turnos {
    background:
        linear-gradient(135deg, rgba(201,162,75,0.1), transparent 60%),
        var(--negro-carbon);
    border: 1px solid var(--negro-borde);
    border-radius: 8px;
    padding: clamp(2.5rem, 7vw, 4.5rem);
    text-align: center;
}
.cta-turnos h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 1rem; }
.cta-turnos p { color: var(--gris-texto); margin: 0 0 2rem; }

/* ----------------------- Footer ----------------------- */
.lg-footer {
    border-top: 1px solid var(--negro-borde);
    padding-block: 3rem 2rem;
    background: var(--negro-carbon);
}
.lg-footer .contenedor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.lg-footer .marca { font-family: var(--fuente-display); font-size: 1.4rem; }
.lg-footer .marca span { color: var(--oro); }
.lg-footer .datos { color: var(--gris-texto); font-size: 0.9rem; line-height: 1.9; }
.lg-footer .legal {
    border-top: 1px solid var(--negro-borde);
    margin-top: 1rem; padding-top: 1.5rem;
    font-size: 0.78rem; color: #6b6760;
}

/* ----------------------- Botón WhatsApp flotante -----------------------
   Posicionamiento robusto para móvil:
   - fixed + safe-area-inset para no chocar con barras del sistema
   - z-index alto pero por debajo de modales (que usan 2000+)
   - tamaño táctil >= 56px
*/
.wa-flotante {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 1500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.6);
    transition: transform var(--transicion), box-shadow var(--transicion);
    -webkit-tap-highlight-color: transparent;
}
.wa-flotante:hover, .wa-flotante:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 14px 34px -6px rgba(37, 211, 102, 0.5);
}
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }
/* Pulso sutil para llamar la atención sin ser molesto */
.wa-flotante::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulso 2.6s ease-out infinite;
}
@keyframes wa-pulso {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { opacity: 0; }
}

/* ----------------------- Animaciones de scroll ----------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .wa-flotante::after { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===================== BREAKPOINTS ===================== */
@media (min-width: 768px) {
    .lg-nav-links { display: flex; }
    .grid-servicios { grid-template-columns: repeat(3, 1fr); }
    .grid-galeria { grid-template-columns: repeat(4, 1fr); }
    .lg-footer .contenedor { flex-direction: row; justify-content: space-between; }
    .wa-flotante { width: 62px; height: 62px; right: 1.75rem; bottom: 1.75rem; }
}