/* =========================================================================
   ISACOLORS — Centro Especializado de Color
   Diseño de Alta Gama inspirado en salones premium (ej. Brulee Hair).
   Paleta: Oscura elegante (Carbón, Beige, Oro suave).
   Tipografía: Bodoni Moda (Display, alta moda) + Satoshi (Sans premium).
   ========================================================================= */

/* ---- Tokens ---- */
:root {
    /* Superficies (Oscuro elegante) */
    --bg-base: #101010;
    --bg-surface: #1A1A1A;
    --bg-surface-light: #242424;

    /* Tinta y texto */
    --text-primary: #F7F5F0;
    --text-secondary: #B3B0A8;
    --text-muted: #8C8980; /* AA: ~4.7:1 sobre #1A1A1A, ~5.1:1 sobre #101010 */

    /* Acento de marca (Oro Suave / Beige) */
    --accent: #D4B98E;
    --accent-hover: #E8D3AE;
    --accent-muted: #8E7A5A;

    /* Neutros */
    --border: #333333;
    --border-light: #4A4A4A;
    --border-input: #6E6E6E; /* ≥3:1 sobre el fondo oscuro (WCAG 1.4.11) */

    /* Tipografía — Bodoni Moda (display, alta moda) + Satoshi (sans premium) */
    --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
    --font-sans: 'Satoshi', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.32, 0, 0.67, 0);

    /* Layout */
    --max-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--bg-base); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---- Tipografía base ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

p { max-width: 65ch; } /* Legibilidad ideal */

.tnum { font-variant-numeric: normal; }

/* Eyebrow / kicker */
.eyebrow {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: var(--accent);
}

/* ---- Contenedor ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* Enlaces con subrayado animado */
.link-ul {
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    padding-bottom: 2px;
}
.link-ul::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.link-ul:hover::after, .link-ul:focus-visible::after { transform: scaleX(1); }

/* ---- Botones ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 52px;
    padding: 0 2rem;
    border: 1px solid transparent;
    border-radius: 0; /* Aspecto más editorial/lujoso */
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}
.btn-primary:hover { background: var(--accent); color: var(--bg-base); }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}
.btn-ghost:hover { border-color: var(--text-primary); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.btn-outline:hover { background: var(--text-primary); color: var(--bg-base); }

/* =========================================================================
   NAV
   ========================================================================= */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(16, 16, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s var(--ease-out);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.wordmark {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nav-links a { color: var(--text-secondary); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 0.6em 1.2em;
    border-radius: 2px;
}
.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-base) !important;
}

/* Botón de menú móvil (oculto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16,16,16,0.95) 0%, rgba(16,16,16,0.7) 50%, rgba(16,16,16,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 50ch;
    font-weight: 300;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================================
   SERVICIOS
   ========================================================================= */
.section { padding-block: clamp(5rem, 10vw, 8rem); }

.section-head {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 800px;
}
.section-head h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.section-head .lead {
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.servicio-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.servicio-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/5;
}

.servicio-img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--ease-out);
}

.servicio-card:hover .servicio-img {
    transform: scale(1.05);
}

.servicio-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    font-style: italic;
    display: block;
    margin-bottom: 0.5rem;
}

.servicio-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.servicio-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* =========================================================================
   EL SALÓN / UBICACIÓN
   ========================================================================= */
.salon-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.salon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

.salon-image {
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.salon-image img {
    width: 100%;
    height: 100%;
}

.salon-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.salon-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.salon-content em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

.ficha {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.ficha h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.ficha address {
    font-style: normal;
    color: var(--text-primary);
    line-height: 1.8;
}

.ficha .ref { color: var(--text-muted); font-size: 0.9rem; }

.ficha .map-link {
    display: inline-block;
    margin-top: 1.5rem;
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta-section {
    padding-block: clamp(6rem, 12vw, 10rem);
    text-align: center;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: var(--accent);
}

.cta-container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-style: normal;
}

.cta-section p {
    color: var(--text-secondary);
    margin-inline: auto;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================================
   FOOTER LEGAL (idéntico en estructura, adaptado en estilos)
   ========================================================================= */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding-block: 5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand .wordmark {
    font-size: 2rem;
}

.footer-brand .slogan {
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-legal h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-legal dl {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.footer-legal dt { color: var(--text-primary); font-weight: 500; }
.footer-legal dd { color: var(--text-secondary); }
.footer-legal dd a { color: var(--accent); }
.footer-legal dd a:hover { text-decoration: underline; }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom nav {
    display: flex;
    gap: 2rem;
}

/* =========================================================================
   MOTION
   ========================================================================= */
@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        animation: rise 0.8s var(--ease-out) both;
        animation-delay: calc(var(--i, 0) * 100ms);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .on-scroll {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 5% cover 25%;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
    .hero-overlay {
        background: linear-gradient(to top, rgba(16,16,16,1) 0%, rgba(16,16,16,0.7) 40%, rgba(16,16,16,0.3) 100%);
    }
    .hero-bg {
        height: 70vh;
    }
    .hero {
        align-items: flex-end;
        padding-bottom: 4rem;
    }
    .servicios-grid, .salon-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .salon-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        padding: 1.25rem clamp(1.5rem, 5vw, 4rem) 1.75rem;
        display: none;
        box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
    .nav-cta { justify-content: center; margin-top: 0.5rem; }
    .footer-bottom nav a, .metodo a, .back-link, .footer-legal dd a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .footer-legal dl {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .footer-legal dt {
        margin-top: 1rem;
    }
}

/* =========================================================================
   PÁGINAS DE CONTENIDO (contacto / privacidad)
   ========================================================================= */
.page-head { padding-block: clamp(8rem, 12vw, 10rem) clamp(2rem, 4vw, 4rem); max-width: 800px; }
.page-head .eyebrow { margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(3rem, 6vw, 5rem); font-style: normal; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.5em;
    font-weight: 500; color: var(--text-secondary); margin-bottom: 2rem;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.back-link:hover { color: var(--accent); }

.metodos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-block: 2rem 4rem;
}
.metodo {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
}
.metodo h3 {
    font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 1rem;
}
.metodo a, .metodo p { font-size: 1.1rem; color: var(--text-primary); }
.metodo a { font-weight: 500; }
.metodo a:hover { color: var(--accent); }

.horario {
    background: var(--bg-surface-light);
    border-left: 2px solid var(--accent);
    padding: 2rem;
    margin-block: 2rem;
}
.horario h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.horario p { color: var(--text-secondary); font-size: 1rem; }

/* Formulario */
.form { margin-top: 3rem; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 1.5px solid var(--border-input);
    padding: 0.8em 0.6em;
    transition: border-color 0.3s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; margin-top: 0.5rem; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F5F0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
}
.form-titulo {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 4rem 0 1rem;
}
.btn-block { width: 100%; margin-top: 1rem; }
.form-fallback { margin-top: 1.5rem; font-size: 0.95rem; color: var(--text-muted); }

/* Contenido legal (privacidad) */
.legal { max-width: 800px; padding-bottom: clamp(4rem, 8vw, 8rem); }
.legal .updated { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: 4rem; margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.legal p, .legal li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.2rem; }
.legal ul { padding-left: 1.5rem; margin-bottom: 2rem; }
.legal strong { color: var(--text-primary); font-weight: 500; }
.legal .destacado {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-block: 2rem;
}
.legal .destacado p { margin-bottom: 0.5rem; }
.legal .destacado p:last-child { margin-bottom: 0; }

/* =========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (persistente en todas las páginas)
   ========================================================================= */
.wa-fab {
    position: fixed;
    right: clamp(1rem, 4vw, 1.75rem);
    bottom: clamp(1rem, 4vw, 1.75rem);
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366; /* verde WhatsApp, contrasta sobre el fondo oscuro */
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.wa-fab:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.wa-fab:active { transform: scale(0.97); }
.wa-fab svg { width: 30px; height: 30px; }

/* Mapa embebido (sección El salón) */
.bloque-titulo { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }

.map-embed {
    margin-top: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-surface-light);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2); }

