/* --- RESET GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: #faf6f5; 
    color: #38423a; 
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    color: #222a23;
    letter-spacing: -0.5px;
}

.text-center { text-align: center; }

/* --- TÍTULOS DE SECCIÓN --- */
.titulo-seccion {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #222a23;
    margin-bottom: 18px;
}

.sub-galeria {
    text-align: center;
    font-size: 15px;
    color: #607261;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- MENÚ DE NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8%; 
    background-color: rgba(250, 246, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(177, 197, 124, 0.15);
}

.logo { display: flex; align-items: center; }
.logo-img { height: 75px; width: auto; object-fit: contain; }

nav a {
    text-decoration: none;
    color: #525d54;
    font-size: 13px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s;
}

nav a:hover { color: #b1c57c; }
.btn-nav {
    background-color: #b1c57c; 
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 25px;
}

/* --- HERO PREMIUM --- */
.hero {
    height: 95vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    background-color: #faf6f5;
}

.hero-bg-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center 30%; 
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-bg-unified::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 246, 245, 0.42);
    z-index: 2;
}

.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative;
    z-index: 10; 
}

.hero-content h1 { 
    font-size: 64px; 
    font-weight: 600; 
    line-height: 1.15; 
    margin-bottom: 18px; 
    color: #222a23;
    text-shadow: 0 4px 20px rgba(250, 246, 245, 0.9);
    display: inline-block;
}

.hero-content h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px); 
    animation: brotarLetra 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hero-content h1 span.espacio-letra {
    width: 14px;
}

@keyframes brotarLetra {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitulo {
    font-size: 17.5px;
    color: #1e2520;
    max-width: 580px;
    margin: 0 auto 35px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0px 2px 10px rgba(255, 255, 255, 0.95);
}

.btn-principal {
    display: inline-block;
    padding: 16px 45px;
    background-color: #fbcad7; 
    color: #222a23;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(251, 202, 215, 0.3);
}

.btn-principal:hover { background-color: #f7b3c4; transform: translateY(-1px); }
.btn-principal:active, .btn-enviar:active { transform: scale(0.97); }

.magic-badge {
    background-color: rgba(177, 197, 124, 0.12);
    color: #72824d;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.artist-section { padding: 90px 8% 40px; }
.artist-container { display: flex; align-items: center; gap: 60px; max-width: 1100px; margin: 0 auto; }

.studio-mosaic {
    flex: 1.2;
    display: flex;
    gap: 15px;
    max-width: 550px;
    height: 480px;
}

.mosaic-main {
    flex: 1;
    height: 100%;
}

.mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.mosaic-side {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.mosaic-side img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.mosaic-side img:nth-child(1) { height: 55%; } 
.mosaic-side img:nth-child(2) { height: 45%; } 

.artist-text { flex: 1; }
.artist-text h2 { font-size: 38px; margin-bottom: 20px; font-weight: 600; }
.artist-text p { font-size: 15px; color: #525d54; line-height: 1.7; margin-bottom: 15px; }

/* --- SIMULADOR ANTES/DESPUÉS CUADRADO PERFECTO --- */
.transformacion-section { 
    padding: 60px 8% 40px; 
}

.split-slider-container { 
    width: 100%; 
    max-width: 500px; 
    height: 500px;    
    margin: 30px auto 0; 
    position: relative; 
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.06); 
    cursor: ew-resize; 
    user-select: none; 
}

.slider-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center center; 
}

.img-after {
    z-index: 1;
    background-image: url('despues.jpg');
}

.img-before { 
    z-index: 2;
    background-image: url('antes.jpg');
    clip-path: inset(0 50% 0 0); 
    -webkit-clip-path: inset(0 50% 0 0);
}

.slider-handle { 
    position: absolute; 
    top: 0; 
    left: 50%; 
    width: 4px; 
    height: 100%; 
    background-color: #ffffff; 
    transform: translateX(-50%); 
    z-index: 10; 
}

.handle-button { 
    width: 42px; 
    height: 42px; 
    background-color: #ffffff; 
    color: #72824d; 
    font-weight: bold; 
    border-radius: 50%; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    font-size: 14px; 
}

/* --- QUIZ INTERACTIVO CSS --- */
.quiz-container-web { display: flex; justify-content: center; padding: 40px 8% 20px; }
.quiz-box { background: #ffffff; border-radius: 24px; padding: 40px; width: 100%; max-width: 750px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid rgba(177,197,124,0.1); }
.quiz-badge { background-color: rgba(177, 197, 124, 0.15); color: #7f934b; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 25px; text-transform: uppercase; }
.quiz-box h2 { font-size: 28px; margin: 15px 0 8px; }
.quiz-intro { font-size: 14px; color: #525d54; margin-bottom: 30px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.4s ease-out; }
.quiz-step h3 { font-size: 18px; margin-bottom: 20px; color: #222a23; font-weight: 500; }
.quiz-opciones { display: flex; flex-direction: column; gap: 12px; max-width: 500px; margin: 0 auto; width: 100%; }

.btn-quiz-opt { padding: 16px 20px; background: #faf6f5; border: 1px solid #e3dad4; border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 14px; color: #38423a; text-align: left; cursor: pointer; transition: background 0.2s, border-color 0.2s; width: 100%; }
.btn-quiz-opt:hover { background: #ffffff; border-color: #b1c57c; box-shadow: 0 4px 12px rgba(177,197,124,0.1); }
.btn-quiz-opt:active, .servicio-card:active, .faq-question:active { transform: scale(0.985); transition: transform 0.08s ease; }

.resultado-highlight { font-size: 24px; font-weight: 700; color: #b1c57c; margin: 15px 0; }
.resultado-sub { font-size: 13.5px; color: #525d54; margin-bottom: 20px; }

/* --- PESTAÑAS DE CATEGORÍAS (TABS) --- */
.tabs-nav-container { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 40px; 
    background: rgba(96, 114, 97, 0.04); 
    padding: 6px; 
    border-radius: 35px; 
    max-width: 680px; 
    margin-left: auto; 
    margin-right: auto;
    position: relative;
}

.tab-link { 
    padding: 12px 28px; 
    border: none; 
    background: transparent; 
    font-family: 'Inter', sans-serif; 
    font-size: 14px; 
    font-weight: 500; 
    color: #525d54; 
    border-radius: 25px; 
    cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.tab-link:hover { color: #222a23; }
.tab-link.active { 
    background-color: #fbcad7; 
    color: #222a23; 
    font-weight: 600; 
    box-shadow: 0 4px 12px rgba(251, 202, 215, 0.4); 
}
.tab-link.active::after { content: ''; position: absolute; top: 0; left: -150%; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: skewX(-25deg); animation: flashGlint 0.55s ease-out; }

.tab-content { display: none; }
.tab-content.active-content { display: block; animation: fadeIn 0.5s ease-out; }

/* --- CATÁLOGO EDITORIAL: BLINDAJE DESKTOP --- */
.servicios-section {
    padding: 80px 8%;
}

.servicio-card { 
    background-color: #ffffff; 
    padding: 24px; 
    border-radius: 20px; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.01); 
    border: 1px solid rgba(0,0,0,0.02); 
    display: flex; 
    align-items: center;
    gap: 30px;
    overflow: hidden;
}

.servicio-img {
    width: 150px;    
    height: 150px;   
    flex-shrink: 0;  
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    object-fit: cover; 
    display: block;
}

.servicio-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servicio-cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 15px; }
.servicio-cabecera h4 { font-size: 18px; font-weight: 600; color: #222a23; }
.precio { font-size: 18px; font-weight: 600; color: #72824d; white-space: nowrap; }
.servicio-desc { font-size: 14px; color: #5c665d; line-height: 1.5; margin-bottom: 12px; }

.micro-copy { display: block; font-size: 12px; color: #72824d; font-weight: 500; margin-bottom: 14px; font-style: italic; background-color: rgba(177, 197, 124, 0.05); padding: 4px 10px; border-radius: 4px; width: fit-content; }
.servicio-detalles { display: flex; gap: 20px; font-size: 12px; color: #8da091; font-weight: 500; border-top: 1px dashed #eade; padding-top: 12px; flex-wrap: wrap; }
.combo-highlight { border-left: 4px solid #fbcad7; }

/* --- POLÍTICAS --- */
.politicas-section {
    background-color: #ffffff;
    padding: 80px 8%;
    margin-top: 40px;
}

.politicas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.politica-item {
    background-color: #faf6f5;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(177, 197, 124, 0.05);
}

.politica-item h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222a23;
}

.politica-item p {
    font-size: 13.5px;
    color: #525d54;
    line-height: 1.5;
}

/* --- PROMO GLASSMORPHISM --- */
.promo-section { display: flex; justify-content: center; padding: 50px 4%; }
.glass-mirror-container { background: linear-gradient(135deg, rgba(251, 202, 215, 0.15), rgba(177, 197, 124, 0.1)), url('studio_interior.png') center/cover; padding: 50px 30px; border-radius: 28px; width: 100%; max-width: 750px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); border: 1px solid rgba(255, 255, 255, 0.3); }
.glass-card-inner { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 35px 40px; border-radius: 20px; max-width: 580px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 32px rgba(96, 114, 97, 0.08); position: relative; z-index: 2; }
.badge-promo { background-color: #222a23; color: #ffffff; font-size: 10px; font-weight: 600; padding: 5px 14px; border-radius: 25px; text-transform: uppercase; display: inline-block; letter-spacing: 0.5px; }
.glass-card-inner h3 { font-size: 28px; margin: 15px 0 10px; font-weight: 700; color: #222a23; }
.glass-card-inner p { font-size: 14.5px; line-height: 1.6; color: #38423a; font-weight: 400; }
.glass-shimmer-line { position: absolute; top: 0; left: -150%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-25deg); animation: elegantShimmer 6s infinite ease-in-out; z-index: 1; }

/* --- PREGUNTAS FRECUENTES --- */
.faq-section { padding: 60px 8%; background: #ffffff; }
.faq-container { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #ffffff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(177, 197, 124, 0.25); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.faq-question { width: 100%; padding: 20px 24px; background: #ffffff; border: none; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #222a23; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; transition: background 0.3s; gap: 15px; }
.faq-question:hover { background: #faf6f5; }
.faq-question::after { content: '+'; font-size: 18px; color: #b1c57c; font-weight: bold; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); background: #ffffff; }
.faq-answer p { padding: 0 24px 20px; font-size: 14px; color: #525d54; line-height: 1.6; }

/* --- FORMULARIO Y AGENDA --- */
.agenda-section { background-color: #ffffff; border-radius: 24px 24px 0 0; margin-top: 40px; display: flex; justify-content: center; padding: 60px 4%; }
.contenedor-formulario { width: 100%; max-width: 550px; text-align: center; }
.form-beauty { background: #faf6f5; padding: 40px; border-radius: 20px; text-align: left; border: 1px solid rgba(0,0,0,0.01); width: 100%; }
.grupo-input { display: flex; flex-direction: column; margin-bottom: 20px; }
.grupo-input label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; color: #b1c57c; font-weight: 600; }
.grupo-input input, .grupo-input select { padding: 14px; border: 1px solid #dcd5ce; background-color: #ffffff; font-size: 14px; border-radius: 8px; outline: none; width: 100%; font-family: 'Inter', sans-serif; }
.grupo-input input:focus, .grupo-input select:focus { border-color: #b1c57c; }

.smart-tip-card { background-color: #ffffff; border-left: 4px solid #b1c57c; padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.01); animation: slideDown 0.3s ease; text-align: left; }
.smart-tip-card.hidden { display: none; }
.tip-icon { font-size: 18px; }
.smart-tip-card p { font-size: 12.5px; color: #525d54; line-height: 1.4; margin-bottom: 0; }

.fila-doble { display: flex; gap: 15px; }
.fila-doble .grupo-input { flex: 1; }

.btn-enviar { width: 100%; padding: 16px; background-color: #b1c57c; color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-enviar:hover { background-color: #9cb16b; }
.info-footer-studio { margin-top: 30px; font-size: 13px; color: #607261; line-height: 1.6; }

/* --- KEYFRAMES COMPLEMENTARIOS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes elegantShimmer { 0% { left: -150%; } 30% { left: 150%; } 100% { left: 150%; } }
@keyframes flashGlint { 0% { left: -150%; } 100% { left: 150%; } }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
footer { padding: 40px; text-align: center; background-color: #faf6f5; font-size: 12px; color: #8fa091; }

/* ================================================================= */
/* 📱 --- SECCIÓN DE OPTIMIZACIÓN RESPONSIVA MÓVIL TOTAL (CORREGIDA) --- */
/* ================================================================= */
@media (max-width: 768px) {
    section { padding: 50px 20px; }
    header { padding: 10px 20px; }
    .logo-img { height: 60px; }
    nav a:not(.btn-nav) { display: none; } 

    /* Hero en móvil */
    .hero { height: 85vh; padding: 0 16px; }
    .hero-bg-unified { background-position: center 25%; }
    .hero-content h1 { font-size: 42px; margin-bottom: 12px; }
    .hero-content h1 span.espacio-letra { width: 8px; }
    .subtitulo { font-size: 14.5px; margin-bottom: 25px; }
    .btn-principal { padding: 14px 35px; font-size: 13px; }

    /* Mosaico Quiénes Somos en móvil — solo foto principal */
    .artist-section { padding: 60px 20px 30px; }
    .artist-container { flex-direction: column; gap: 30px; text-align: center; }
    
    .artist-text h2 { font-size: 28px; }
    
    /* Slider interactivo en móvil */
    .split-slider-container { height: 320px; max-width: 320px; margin-top: 20px; border-radius: 16px; }
    .slider-handle { width: 4px; }
    .handle-button { width: 46px; height: 46px; font-size: 16px; } 

    /* Quiz en móvil */
    .quiz-container-web { padding: 30px 15px 10px; }
    .quiz-box { padding: 24px 16px; border-radius: 18px; }
    .quiz-box h2 { font-size: 22px; }
    .quiz-intro { font-size: 13px; margin-bottom: 20px; }
    .quiz-step h3 { font-size: 15px; margin-bottom: 15px; }
    .btn-quiz-opt { padding: 14px 16px; font-size: 13px; border-radius: 10px; line-height: 1.4; }
    .resultado-highlight { font-size: 20px; }

    /* Forzar fondo blanco nativo a las secciones requeridas en móvil */
    .servicios-section { background-color: #ffffff !important; padding: 60px 20px; }
    .faq-section { background-color: #ffffff !important; padding: 60px 20px; }

    /* Barra selectora de categorías con deslizamiento táctil horizontal */
    .tabs-nav-container { 
        display: flex !important;
        justify-content: flex-start !important; 
        align-items: center !important;
        gap: 10px !important;
        overflow-x: auto !important; 
        white-space: nowrap !important;
        padding: 8px 16px !important;
        border-radius: 25px !important;
        max-width: 100% !important;
        width: 100% !important;
        background: rgba(96, 114, 97, 0.05) !important;
        -webkit-overflow-scrolling: touch !important; 
        scroll-snap-type: x mandatory;
        margin: 0 auto 30px !important;
    }
    .tabs-nav-container::-webkit-scrollbar { display: none !important; }

    .tab-link { 
        flex: 0 0 auto !important; 
        display: inline-block !important;
        padding: 10px 22px !important; 
        font-size: 13px !important; 
        font-weight: 500 !important;
        border-radius: 20px !important;
        scroll-snap-align: start;
    }

    .tab-link.active {
        font-weight: 600 !important;
        background-color: #fbcad7 !important;
        box-shadow: 0 4px 10px rgba(251, 202, 215, 0.35) !important;
    }

    /* Títulos de sección alineados correctamente en móvil */
    .titulo-seccion { font-size: 28px !important; text-align: center !important; margin-bottom: 25px !important; }
    
    /* El catálogo de servicios: layout horizontal compacto en móvil */
    .servicio-card { flex-direction: row !important; align-items: flex-start !important; gap: 14px !important; padding: 16px !important; border-radius: 16px !important; }
    .servicio-img { width: 100px !important; height: 100px !important; flex-shrink: 0 !important; border-radius: 10px !important; } 
    .servicio-info-block { width: auto !important; flex: 1 !important; }
    .servicio-cabecera { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; margin-bottom: 6px !important; }
    .servicio-cabecera h4 { font-size: 15px; }
    .precio { font-size: 14px; }
    .servicio-desc { font-size: 12.5px; }
    .servicio-detalles { gap: 10px; font-size: 10.5px; }

    /* Políticas e ítems rectangulares restaurados a su fondo beige premium */
    .politicas-section { margin: 0 10px; padding: 40px 15px !important; }
    .politicas-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .politica-item { padding: 18px !important; border-radius: 12px !important; background-color: #faf6f5 !important; border: 1px solid rgba(177, 197, 124, 0.05) !important; }

    /* Promos, FAQ y Agenda */
    .promo-section { padding: 30px 15px; }
    .glass-mirror-container { padding: 30px 15px; border-radius: 20px; }
    .glass-card-inner { padding: 25px 20px; border-radius: 16px; }
    .glass-card-inner h3 { font-size: 22px; }
    .glass-card-inner p { font-size: 13px; }

    .faq-question { padding: 16px; font-size: 13.5px; }
    .faq-answer p { padding: 0 16px 16px; font-size: 13px; }

    .agenda-section { padding: 40px 15px; }
    .form-beauty { padding: 25px 20px; border-radius: 16px; }
    .fila-doble { flex-direction: column; gap: 0; }
}