/* ============================================================
   RLA PRO SYSTEM - FULL VERTICAL STACK & STICKY BINDING
   Desarrollado por: Distortion Code
   ============================================================ */

/* 1. RESET Y FUNDAMENTOS */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --cherry: #D61E43;
    --violet: #7E22CE;
    --orange: #F97316;
    --text-main: #1d1d1f;
    --text-sec: #6e6e73;
    --white: #ffffff;
    --bg-light: #f5f5f7;
    --border: rgba(0,0,0,0.08);
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* 2. HERO: IMPACTO VISUAL */
.programa-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 650px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.45);
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent, rgba(0,0,0,0.9));
    z-index: 2;
}

.hero-text-container {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 1100px;
}

.tagline {
    color: var(--cherry);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.big-number {
    font-size: clamp(8rem, 25vw, 16rem);
    font-weight: 950;
    line-height: 0.7;
    background: linear-gradient(135deg, var(--orange), var(--cherry), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

.months-text {
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-top: 10px;
    display: block;
}

.programa-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 950;
    margin: 20px 0;
    line-height: 1;
}

.programa-hero h1 span { color: var(--cherry); }

.hero-p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 3. LAYOUT DINÁMICO STICKY SIDEBAR - REVISADO */
.section-padding {
    padding: 100px 0;
    background-color: var(--bg-light);
    /* El overflow debe ser visible para que el sticky no se rompa */
    overflow: visible !important; 
}

.sticky-layout {
    display: flex; /* Flex es más estable para sticky que grid en este caso */
    align-items: flex-start; 
    gap: 60px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    overflow: visible;
}

.lead-form-box {
    width: 420px;
    flex-shrink: 0;
    position: relative;
    /* Esto asegura que el aside tenga la misma altura que el contenido de la derecha */
    height: 100%; 
}

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 40px; /* Se anclará a 40px del borde superior al hacer scroll */
    z-index: 100;
    align-self: flex-start;
}

.scroll-content {
    flex: 1;
    min-width: 0;
}

/* 4. FORMULARIO PREMIUM */
.form-rla {
    background: var(--white);
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.form-header { margin-bottom: 25px; }
.form-header h3 { font-size: 1.7rem; font-weight: 900; margin-bottom: 5px; }
.form-header p { font-size: 0.9rem; color: var(--text-sec); }

.input-group { margin-bottom: 18px; }
.input-group label { 
    font-size: 0.65rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: var(--text-sec); 
    display: block; 
    margin-bottom: 6px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
    background: #f9f9fb;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--cherry);
    background: #fff;
    outline: none;
}

.form-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--text-main);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--cherry);
    transform: translateY(-3px);
}

.form-footer-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-sec);
}

/* 5. CONTENIDO DERECHA: BENTO VERTICAL */
.info-block { margin-bottom: 100px; }
.section-title { font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; }
.section-title span { color: var(--cherry); }
.section-subtitle { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 40px; }

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    align-items: stretch;
}

.methodology-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-item {
    background: var(--white);
    padding: 35px;
    border-radius: 35px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.item-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-box {
    width: 65px; height: 65px;
    background: #fff1f2;
    color: var(--cherry);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.item-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.item-text p { color: var(--text-sec); font-size: 0.95rem; }

.item-image-large {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 35px;
    display: flex;
}

.item-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.cycles-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cycle-card { padding: 25px; }

.cycle-tag {
    background: var(--bg-light);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 10px;
}

/* 6. ECOSISTEMA RLA (BENEFICIOS) */
.benefits-list-v2 {
    display: grid;
    gap: 20px;
}

.benefit-item-v2 {
    background: var(--white);
    padding: 30px;
    border-radius: 30px;
    display: flex;
    gap: 25px;
    align-items: center;
    border: 1px solid var(--border);
}

.b-icon { font-size: 1.6rem; color: #22c55e; }
.b-content h4 { font-size: 1.2rem; font-weight: 800; }
.b-content p { color: var(--text-sec); font-size: 0.95rem; }

/* 7. HIGHLIGHT CTA FINAL */
.bento-highlight {
    background: var(--text-main);
    color: var(--white);
    padding: 60px;
    border-radius: 45px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
    overflow: hidden;
}

.highlight-content h3 { font-size: 2.4rem; font-weight: 900; margin-bottom: 15px; }
.highlight-content p { opacity: 0.8; margin-bottom: 30px; }

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--white);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
}

.btn-secondary:hover { transform: scale(1.05); }

.highlight-image img { width: 100%; border-radius: 25px; }

/* 8. RESPONSIVE - REVISADO */
@media (max-width: 1200px) {
    .sticky-layout { flex-direction: column; align-items: center; }
    .lead-form-box { width: 100%; max-width: 500px; order: 2; margin-top: 40px; }
    .sticky-sidebar { position: relative; top: 0; }
    .scroll-content { order: 1; width: 100%; }
    .visual-grid { grid-template-columns: 1fr; }
    .item-image-large { height: 450px; order: -1; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .big-number { font-size: 7rem; }
    .programa-hero h1 { font-size: 3rem; }
    .bento-highlight { grid-template-columns: 1fr; padding: 40px; text-align: center; }
    .highlight-image { display: none; }
}