/* =========================================
   1. CONFIGURACIÓN GLOBAL Y FUENTES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Tulpen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #f8f8d9;
    --text-color: #1a1a1a;
    --gold: #aa8c2c;
    --green: #88aa2c;
    --gray-light: #cabfb1;
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Velista', 'Times New Roman', serif; 
    overflow-x: hidden;
    color: var(--text-color);
}

/* =========================================
   2. HEADER & MENU (Global)
   ========================================= */
.header-main {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 2.5rem; z-index: 2100;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.5s ease;
    background: transparent;
}

.header-main.scrolled {
    background-color: #000; color: #fff; padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
    font-family: 'Tulpen One', sans-serif; font-size: 2.8rem; line-height: 1;
    color: inherit; z-index: 2200;
}

.menu-toggle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 7px; z-index: 2200;
}
.menu-toggle .line {
    width: 30px; height: 2px; background-color: currentColor; transition: 0.4s;
}
.menu-toggle.active .line { background-color: #fff !important; }
.menu-toggle.active .line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.active .line:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.full-menu {
    position: fixed; inset: 0; background-color: #f8f8d9; z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    visibility: hidden; clip-path: circle(0% at 95% 5%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}
.full-menu.active { visibility: visible; clip-path: circle(150% at 95% 5%); }

.menu-nav { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.menu-item a {
    font-size: clamp(3rem, 8vw, 6rem); text-decoration: none; color: #000;
    font-family: 'Tulpen One', serif; position: relative;
    opacity: 0; transform: translateY(50px); display: block;
}
.menu-item a:hover { color: var(--gold); }
.menu-footer {
    position: absolute; bottom: 5vh; color: #666; letter-spacing: 2px;
    text-transform: uppercase; font-size: 0.8rem; opacity: 0;
}

/* =========================================
   3. HERO SECTION (HOME)
   ========================================= */
.hero-section { height: 100vh; width: 100%; position: relative; }
.hero-container {
    height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center;
    position: relative;
    background-image: url('./images/salon.jpeg'); 
    background-size: cover; background-position: center;
}
.hero-light-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255,255,255,0.7) 35%, transparent 65%);
    z-index: 2;
}
#black-overlay {
    position: absolute; inset: 0; background-color: #f8f8d9;
    opacity: 0; z-index: 3; pointer-events: none;
}
#hero-title {
    font-family: 'Tulpen One', sans-serif; font-weight: 800;
    font-size: clamp(6rem, 18vw, 22rem); line-height: 0.8;
    z-index: 1000; position: relative;
    display: flex; justify-content: center; align-items: center;
}
.txt-verde { color: #808570; }
.txt-marron { color: #cabfb1; }
.logo-part { display: block; will-change: transform; margin: 0 -0.02em; }

/* =========================================
   4. INVASION SECTION
   ========================================= */
.invasion-section {
    position: relative;
    z-index: 20;
    background-color: transparent; 
    margin-top: -80vh; 
    pointer-events: none;
}

.content-box {
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-top: 15vh;
    background: linear-gradient(to bottom, transparent 0%, #f8f8d9 30%, #f8f8d9 100%);
    pointer-events: auto;
}

#invasion-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 5rem;
    text-transform: uppercase;
    text-align: center;
}

.line-mask {
    display: block;
    overflow: hidden;
    width: 100%;
    margin-bottom: 2.5rem; 
}

#invasion-text .line-inner-text {
    display: block;
    font-size: clamp(2rem, 8vw, 6rem);
    color: #000;
    transform: translateX(100%);
    opacity: 0;
    line-height: 1.1;
}

#invasion-description {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.line-inner {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: #757508;
    transform: translateY(30px);
    opacity: 0;
    line-height: 1.6;
}

/* =========================================
   DIVIDER: ENERGY PULSE
   ========================================= */
.energy-pulse-section {
    width: 100%;
    background-color: #f8f8d9;
    padding: 12vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 50;
}

.pulse-container {
    width: 100%;
    max-width: 1000px;
    height: 150px;
}

.pulse-wave {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.wave-white { stroke: #cabfb1; }
.wave-gold { stroke: #cabfb1; stroke-width: 3; filter: drop-shadow(0 0 12px rgba(170, 140, 44, 0.8)); }

svg { width: 100%; height: 100%; }

/* =========================================
   5. THE FORMULA
   ========================================= */
.method-formula-section {
    position: relative;
    width: 100%;
    background-color: #f8f8d9;
    padding: 6vh 0;
    z-index: 30;
}

.formula-header { text-align: center; margin-bottom: 10rem;color: #000; }
.formula-header h2 { font-size: 6.85rem; text-transform: uppercase; letter-spacing: 2px;color: #000; }
.formula-header p { font-family: 'Manrope', sans-serif; color: #666; letter-spacing: 4px; text-transform: uppercase; font-size: 2.85rem; }

.formula-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formula-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 2vh 0; }
.formula-row.reverse { flex-direction: row-reverse; }
.formula-content { flex: 1; padding: 0 5%; color: #000; }

.formula-number { font-family: 'Manrope', sans-serif; color: #88aa2c; font-weight: 700; font-size: 2.9rem; display: block; margin-bottom: 0.5rem; }
.formula-content h3 { font-size: clamp(2rem, 4vw, 8rem); line-height: 1; margin-bottom: 1rem; text-transform: uppercase; }
.formula-content p { color: #888; line-height: 1.5; max-width: 600px; font-size: 1.85rem; }

.formula-visual { flex: 1; display: flex; justify-content: center; }
.image-circle {
    width: 400px; height: 400px; border-radius: 50%; overflow: hidden;
    border: 1px solid rgba(170, 140, 44, 0.3); filter: grayscale(100%);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.image-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.formula-row:hover .image-circle { filter: grayscale(0%); border-color: #aa8c2c; transform: scale(1.02); }

.formula-connector { width: 100%; padding: 3rem 0; display: flex; justify-content: center; align-items: center; background: transparent; }
.formula-number { font-family: 'Manrope', sans-serif; color: #88aa2c; font-weight: 700; font-size: 2.9rem; display: block; margin-bottom: 0.5rem; }
.symbol-gold { font-family: 'Manrope', sans-serif; font-size: clamp(4rem, 10vw, 6rem) !important; color: #88aa2c !important; text-shadow: 0 0 20px rgba(170, 140, 44, 0.3); }

.formula-result { margin-top: 1rem; position: relative; text-align: center; padding: 4vh 0; width: 100%; color: #000;}
.synergy-glow-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(170, 140, 44, 0.1) 0%, transparent 70%); }
.result-content h3 { font-size: clamp(3rem, 8vw, 8.5rem); line-height: 0.9; margin-bottom: 1.5rem; }

/* =========================================
   5. TEAM SECTION - FIX (Foto Derecha - Texto Izquierda)
   ========================================= */
.page-container { padding-top: 100px; min-height: 100vh; }

.team-section-spheres {
    padding: 10vh 5vw;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(170, 140, 44, 0.05) 0%, transparent 60%);
}

.team-header { text-align: center; margin-bottom: 6rem; }
.section-title { font-family: 'Tulpen One', sans-serif; font-size: clamp(4rem, 10vw, 8rem); line-height: 0.8; text-transform: uppercase; }
.section-title .highlight { color: var(--gold); }

/* CONTENEDOR PRINCIPAL: COLUMNA */
.synergy-field-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 0; 
    max-width: 1400px;
    margin: 0 auto;
}

/* FILA DE EXPERTO */
.expert-row {
    display: flex;
    align-items: center;
    gap: 5rem; 
    width: 100%;
    justify-content: center;
    padding: 2rem 0;
    /* CORRECCIÓN: Forzamos que siempre sea fila normal, el orden lo dicta el HTML */
    flex-direction: row !important;
}

/* ESFERAS */
.sphere-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}

.sphere-image {
    width: 340px; height: 340px; border-radius: 50%; overflow: hidden;
    position: relative; z-index: 2;
    border: 3px solid rgba(26,26,26,0.1);
    background: #000;
    transition: all 0.5s ease;
}

.sphere-image img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.2); transform: scale(1.1);
    transition: all 0.5s ease;
}

/* ANILLO */
.rotating-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid transparent;
    background: conic-gradient(from 0deg, transparent 0%, var(--gold) 20%, transparent 40%, var(--green) 60%, transparent 80%, var(--gold) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    z-index: 1; opacity: 0.4;
    animation: spinRing 20s linear infinite;
    transition: all 0.5s ease;
}
@keyframes spinRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* HOVER */
.expert-row:hover .sphere-image { border-color: var(--gold); box-shadow: 0 0 30px rgba(170, 140, 44, 0.3); }
.expert-row:hover .sphere-image img { filter: grayscale(0%); transform: scale(1); }
.expert-row:hover .rotating-ring { opacity: 1; animation-duration: 4s; filter: drop-shadow(0 0 10px var(--gold)); }

/* TEXTOS EXPANDIDOS */
.sphere-details {
    max-width: 600px;
    flex: 1; 
}

/* ALINEACIÓN DE TEXTO ESPEJO */
.text-content-right { text-align: left; } /* Texto de Erika normal a la izq */
.text-content-left { text-align: right; } /* Texto de Dani alineado a la der (hacia la foto) */

.meta-role { display: block; font-family: 'Manrope', monospace; font-size: 0.8rem; color: var(--gold); letter-spacing: 2px; font-weight: 700; margin-bottom: 0.5rem; }
.sphere-details h3 { font-family: 'Velista', 'Times New Roman', serif; font-size: 3.5rem; line-height: 1; margin-bottom: 1.5rem; text-transform: uppercase; }
.meta-bio {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.skills-mini { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }

/* CONECTOR VERTICAL */
.vertical-connector-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 150px; 
    justify-content: center;
    opacity: 0.5;
}
.v-line { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--gold), transparent); }
.connector-icon { font-size: 2rem; color: var(--gold); margin: 10px 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    /* En móvil, queremos Columna */
    .expert-row.left-sphere {
        flex-direction: column !important; /* Erika: Foto arriba, texto abajo */
    }
    
    .expert-row.right-sphere {
        flex-direction: column-reverse !important; /* Dani: Foto arriba, texto abajo */
    }

    .expert-row { text-align: center; gap: 2rem; }
    .text-content-right, .text-content-left { text-align: center; }
    .sphere-container { width: 300px; height: 300px; }
    .sphere-image { width: 260px; height: 260px; }
    .vertical-connector-section { height: 100px; }
    .sphere-details h3 { font-size: 2.8rem; }
}
/* =========================================
   6. PLANS SECTION (REDISEÑO: ESTÉTICA BIO-VERDE)
   ========================================= */
.plans-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
    background: transparent;
}

.plans-header {
    text-align: center;
    margin-bottom: 5rem;
}

.plans-subtitle {
    font-family: 'Manrope', sans-serif;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* CONTENEDOR GRID */
.plans-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* TARJETA INDIVIDUAL (MONOLITO ORGÁNICO) */
.plan-card {
    /* Cambio: Fondo verde muy oscuro (casi negro) en lugar de negro puro */
    background: linear-gradient(180deg, #131612 0%, #0a0c0a 100%);
    /* Borde sutil verde apagado */
    border: 1px solid rgba(128, 133, 112, 0.2); 
    position: relative;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0; /* Para GSAP */
    transform: translateY(30px); /* Para GSAP */
    overflow: hidden;
    border-radius: 4px; /* Un toque suavizado */
}

/* Highlight Card (La del medio) */
.highlight-card {
    /* Borde superior verde vibrante */
    border-top: 4px solid var(--green); 
    /* Fondo ligeramente más claro para destacar */
    background: linear-gradient(180deg, #1a2018 0%, #0f120f 100%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* INTERACCIÓN HOVER */
/* Oscurecer las no seleccionadas */
.plans-container:hover .plan-card {
    opacity: 0.4;
    transform: scale(0.98);
    filter: grayscale(80%); /* Las desaturamos un poco */
}

/* Resaltar la seleccionada */
.plans-container .plan-card:hover {
    opacity: 1;
    transform: scale(1.03);
    filter: grayscale(0%);
    /* Borde verde brillante al hover */
    border-color: var(--green); 
    /* Resplandor verde biológico */
    box-shadow: 0 15px 50px rgba(136, 170, 44, 0.15); 
    z-index: 10;
}

/* Etiqueta Popular */
.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Manrope', monospace;
    font-size: 0.65rem;
    color: var(--green); /* Texto verde */
    border: 1px solid var(--green);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(136, 170, 44, 0.05); /* Fondo verde muy sutil */
}

/* CONTENIDO INTERNO */
.plan-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-family: 'Tulpen One', sans-serif;
    font-size: 4rem; /* Un poco más grande */
    color: #e0e0e0; /* Blanco roto */
    margin-bottom: 0.5rem;
    line-height: 0.8;
}

.plan-price {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    /* Usamos el verde apagado de tu marca para el precio */
    color: #808570; 
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
}

.period {
    font-size: 1rem;
    color: #555;
    margin-left: 5px;
}

.divider-line {
    width: 100%;
    height: 1px;
    /* Gradiente verde sutil */
    background: linear-gradient(90deg, transparent, rgba(136, 170, 44, 0.3), transparent);
    margin-bottom: 2rem;
}

/* LISTA DE CARACTERÍSTICAS */
.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: #bbb; /* Gris claro */
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(136, 170, 44, 0.1); /* Líneas separadoras verdes muy sutiles */
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '•';
    color: var(--green); /* Bullet verde vibrante */
    margin-right: 12px;
    font-size: 1.4rem;
    line-height: 0;
}

/* BOTÓN KNOW MORE */
.btn-know-more {
    display: block;
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

/* Animación de llenado del botón */
.btn-know-more::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    /* Relleno verde vibrante al hacer hover */
    background-color: var(--green); 
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.plan-card:hover .btn-know-more {
    border-color: var(--green);
}

.btn-know-more:hover {
    color: #fff; /* Texto blanco sobre fondo verde */
    font-weight: 700;
    border-color: var(--green);
}

.btn-know-more:hover::before {
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .plans-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .plans-container:hover .plan-card {
        opacity: 1;
        transform: none;
        filter: none;
    }
    
    .plans-container .plan-card:hover {
        transform: translateY(-5px);
    }
}