/* ========================================
   ESTILOS PREMIUM EDITORIALES Y RESPONSIVOS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --primary-color: #7A6855;       /* Taupe Orgánico */
    --accent-color: #A3907C;        /* Arena */
    --bg-cream: #FAF7F2;            /* Fondo Hueso */
    --bg-sand: #F3EDE2;             /* Bloques de Contraste */
    --text-dark: #2F2B27;           /* Texto Intenso */
    --text-muted: #706961;          /* Texto Secundario */
    --border-color: #E6DFD5;
    --white: #ffffff;

    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* GENERAL */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

.bg-light {
    background-color: var(--bg-sand) !important;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-title);
    font-weight: 400;
}

/* INTRO ANIMADA */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}
.intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.intro-content { text-align: center; padding: 0 1.5rem; }
.intro-logo { width: 110px; height: auto; border-radius: 50%; opacity: 0; animation: fadeUp 1s ease forwards; }
.intro-subtitle { font-family: var(--font-title); font-size: 1.8rem; font-style: italic; color: var(--primary-color); opacity: 0; animation: fadeUp 1s ease forwards 0.3s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NAVBAR RESPONSIVO */
.navbar {
    background: rgba(250, 247, 242, 0.96) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color) !important;
}
.site-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark) !important;
    margin-left: 1.2rem;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--primary-color) !important; }
.nav-cta {
    border: 1px solid var(--primary-color);
    padding: 0.4rem 0.9rem !important;
    color: var(--primary-color) !important;
}
.nav-cta:hover { background: var(--primary-color); color: var(--white) !important; }

/* HERO SECTION EDITORIAL RESPONSIVO */
.hero-section {
    position: relative;
    background: url('../cabina.jpg');
    background-size: cover;
    background-position: center;
    min-height: max(78vh, 460px);
    padding: 7rem 0 3rem;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(47, 43, 39, 0.82) 0%, rgba(47, 43, 39, 0.6) 45%, rgba(47, 43, 39, 0.25) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: var(--white);
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--white);
}
.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.trust-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}
.trust-pills li {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-pills i { color: var(--accent-color); }

/* BOTONES */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 2rem;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.hero-section .btn-primary:hover { color: var(--white) !important; background: var(--accent-color) !important; border-color: var(--accent-color) !important; }
.btn-outline-hero {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.btn-outline-hero:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }

/* SECCIONES */
section { padding: 6rem 0; }
section h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 4rem; color: var(--text-dark); }
.contacto-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: -3rem; font-weight: 300; }

/* DISEÑO ASIMÉTRICO (SPLIT) */
.visual-editorial {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    background: var(--white);
}
.essence-card {
    background: var(--white);
    padding: 2rem;
    border-left: 2px solid var(--primary-color);
}
.essence-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ESPECIALISTA / QUIÉN TE ATIENDE */
.specialist-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.specialist-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: var(--bg-sand);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid var(--border-color);
}
.specialist-info h4 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.specialist-info .specialist-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-color); margin-bottom: 0.5rem; }
.specialist-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; font-weight: 300; }

/* ESPECIALIDADES */
.specialty-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.8rem;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.specialty-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}
.specialty-icon { color: var(--accent-color); font-size: 1.8rem; margin-bottom: 1rem; }
.specialty-card h4 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.specialty-card p { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; flex-grow: 1; }
.specialty-link {
    font-size: 0.78rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    border-bottom: 1px solid transparent;
    width: fit-content;
    transition: border-color 0.3s ease;
}
.specialty-link:hover { border-color: var(--primary-color); }
.specialty-link i { font-size: 1.3rem; }

/* MENÚ DE TRATAMIENTOS */
.category-title { font-size: 1.8rem; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.price-menu-item { margin-bottom: 2rem; }
.price-menu-item h4 { font-size: 1.25rem; margin-bottom: 0; font-family: var(--font-body); font-weight: 400; color: var(--text-dark); }
.price-menu-item p.item-desc { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; margin-top: 0.4rem; margin-bottom: 0; }
.price-sublist { list-style: none; padding-left: 0; margin-top: 0.4rem; }
.price-sublist li { font-size: 0.8rem; color: var(--text-muted); position: relative; padding-left: 1rem; font-weight: 300; }
.price-sublist li::before { content: "•"; position: absolute; left: 0; color: var(--accent-color); }

/* GALERÍA RESPONSIVA AVANZADA */
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-sand);
    cursor: zoom-in;
}
.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-wrapper:hover .gallery-img { transform: scale(1.04); }
.gallery-caption {
    padding: 0.6rem 0.2rem;
    font-family: var(--font-title);
    font-size: 1rem;
    text-align: center;
    color: var(--text-dark);
}
#transformaciones .lightbox-img { cursor: zoom-in; }

/* LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 21, 18, 0.94);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox-overlay.is-active { display: flex; }
.lightbox-full {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.15);
}
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
}

/* FORMULARIOS EDITORIALES */
.form-control, .form-select {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.8rem 0 !important;
    font-size: 0.9rem;
    width: 100%;
}
.form-control:focus, .form-select:focus {
    border-bottom-color: var(--primary-color) !important;
    box-shadow: none !important;
}
.form-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 0.3rem; }

/* INFOCARD Y MAPA */
.info-card-editorial { background: var(--white); border: 1px solid var(--border-color); padding: 3rem 2rem; height: 100%; }
.info-item { margin-bottom: 1.5rem; }
.info-item h6 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-color); margin-bottom: 0.3rem; }
.info-item p, .info-item a { font-size: 0.88rem; color: var(--text-muted); text-decoration: none; }
.directions-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--primary-color) !important; font-size: 0.78rem !important; margin-top: 0.3rem; border-bottom: 1px solid var(--border-color); }
.social-link { color: var(--text-dark); font-size: 1.2rem; transition: color 0.3s; }
.social-link:hover { color: var(--primary-color); }
.map-container { border: 1px solid var(--border-color); min-height: 320px; }

/* CERTIFICADOS Y FOOTER */
.cert-mockup { background: var(--white); border: 1px solid var(--border-color); padding: 1.5rem 1rem; }
.cert-mockup i { font-size: 1.5rem; color: var(--accent-color); display: block; }
.cert-mockup p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0; text-transform: uppercase; letter-spacing: 0.05em; }
footer { background: #262320 !important; }
footer h5 { font-size: 1.3rem; color: var(--white); letter-spacing: 0.04em;}
footer p, footer a { color: #BAB4AE !important; font-size: 0.85rem; text-decoration: none; }
.footer-logo { max-height: 45px; width: auto; filter: brightness(0) invert(1); opacity: 0.5; }

/* WHATSAPP FLOTANTE */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 999;
    transition: all 0.3s;
}
.whatsapp-btn:hover { background: var(--text-dark); color: var(--white); transform: scale(1.05); }

/* ACCESIBILIDAD - FOCO VISIBLE */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .specialty-card, .gallery-wrapper, section, .intro-logo, .intro-subtitle { transition: none !important; animation: none !important; }
}

/* ========================================
   TABLET
   ======================================== */
@media (max-width: 991.98px) {
    .hero-content { max-width: 100%; }
}

/* ========================================
   REGLAS RESPONSIVAS EXCLUSIVAS PARA MÓVIL
   ======================================== */
@media (max-width: 767.98px) {
    section { padding: 4rem 0; }
    section h2 { margin-bottom: 2.5rem; }

    .navbar-collapse {
        background: var(--bg-cream);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }
    .nav-link { margin-left: 0; padding: 0.5rem 0; font-size: 0.85rem; }
    .nav-cta { display: inline-block; margin-top: 0.5rem; width: fit-content; }

    .hero-section { min-height: max(64vh, 420px); padding: 6rem 0 2.5rem; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .hero-cta-group .btn-primary, .hero-cta-group .btn-outline-hero { justify-content: center; text-align: center; }
    .contacto-subtitle { margin-top: -2rem; }

    .price-menu-item { margin-bottom: 1.6rem; }
    .price-menu-item h4 { margin-bottom: 0.1rem; }

    .specialist-card { flex-direction: column; text-align: center; }

    .gallery-img { height: 160px; }
    .gallery-caption { font-size: 0.85rem; }

    .lightbox-close { top: 0.6rem; right: 0.6rem; font-size: 1.4rem; }
}

@media (max-width: 420px) {
    .hero-content h1 { font-size: 1.9rem; }
}