/* 1. FOUNDATIONS & TOKENS */
:root {
    /* Colors V2 (Light Minimalist) */
    --color-bg-page: #FAFAFA;
    --color-bg-card: #FFFFFF;
    --color-primary: #0E1E38;
    /* Azul Medianoche Profundo */
    --color-accent: #00B16A;
    /* Verde Esmeralda Vibrante */
    --color-accent-hover: #008f55;
    --color-text-body: #475569;
    /* Gris Pizarra */
    --color-border: #E2E8F0;
    --color-gray-light: #F1F5F9;

    /* Typography */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1100px;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-glow: 0 0 20px rgba(0, 177, 106, 0.4);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-page);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    text-wrap: balance;
}

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mt-2 {
    margin-top: 1.5rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pt-4 {
    padding-top: 5rem;
}

.pb-4 {
    padding-bottom: 5rem;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none !important;
}

.bg-white {
    background-color: var(--color-bg-card);
}

.bg-gray {
    background-color: var(--color-bg-page);
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-white {
    color: white;
}

/* 2. COMPONENTS */
.bento-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

/* Buttons */
button,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 1.5rem;
    height: 56px;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background-color: white;
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--color-gray-light);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius-md);
}

/* 3. LAYOUT SECTIONS */

/* Header */
.header {
    background-color: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: white;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #008f55 100%);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* HERO SECTION (IMAGE BACKGROUND) */
.hero-section {
    position: relative;
    padding: 10rem 0 8rem;
    background-color: var(--color-primary);
    background-image: linear-gradient(rgba(0, 177, 106, 0.85), rgba(14, 30, 56, 0.9)), url('img/happy-family-hero01.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 1;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        background-size: 100% auto;
    }

    100% {
        background-size: 110% auto;
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-simple-text {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 1.05rem;
}

.hero-features svg {
    width: 24px;
    height: 24px;
    color: #4ade80;
    /* Lighter green to pop on dark bg */
}

.hero-shape-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-shape-bottom svg {
    width: 100%;
    height: 80px;
}

/* Multi-step Form */
.form-panel-transparent {
    position: relative;
    z-index: 10;
    color: white;
}

.form-panel-transparent h3 {
    color: white;
}

.form-panel-transparent .step-desc {
    color: rgba(255, 255, 255, 0.8);
}

.form-panel-transparent .radio-btn span {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.form-panel-transparent .radio-btn input:checked~span {
    background-color: rgba(0, 177, 106, 0.4);
    border-color: white;
    color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-panel-transparent .input-group input {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.form-panel-transparent .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-panel-transparent .checkbox-group {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-panel-transparent .checkbox-group label,
.form-panel-transparent .security-note {
    color: rgba(255, 255, 255, 0.8);
}

.form-progress {
    height: 8px;
    background-color: var(--color-gray-light);
    border-radius: 4px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step {
    display: none;
    animation: fadeInStep 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.options-vertical {
    grid-template-columns: 1fr;
}

.radio-btn {
    display: block;
    position: relative;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-btn span {
    display: block;
    padding: 1.25rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: white;
}

.options-vertical .radio-btn span {
    text-align: left;
}

.radio-btn input:checked~span {
    border-color: var(--color-accent);
    background-color: rgba(0, 177, 106, 0.05);
    color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 177, 106, 0.1);
}

.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 177, 106, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    background: var(--color-gray-light);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.checkbox-group input {
    margin-top: 0.25rem;
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-body);
}

.security-note {
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text-body);
    margin-top: 1.5rem;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* SECTION 2: DIAGNÓSTICO VIZ */
.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.data-viz-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.viz-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.viz-label {
    display: block;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.bar {
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
}

.bar-gray {
    background-color: var(--color-border);
    color: var(--color-text-body);
    width: 50%;
}

.bar-green {
    background: linear-gradient(90deg, var(--color-accent), #059669);
    width: var(--bar-width);
    justify-content: space-between;
}

.viz-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.viz-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

/* Bento Grid Dolores */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-span-2 {
    grid-column: span 2;
}

.bento-icon {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.bento-icon svg {
    width: 48px;
    height: 48px;
}

.bento-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Traductor & Daniela */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.split-layout.align-center {
    align-items: center;
}

.split-35-65 {
    grid-template-columns: 35fr 65fr;
}

.fuga-content {
    text-align: left;
}

.accordion {
    margin-top: 2.5rem;
}

.acc-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.acc-item summary {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    font-family: var(--font-heading);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.acc-item summary::-webkit-details-marker {
    display: none;
}

.acc-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--color-accent);
}

.acc-item[open] summary::after {
    content: "-";
}

.acc-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-body);
}

.daniela-card {
    background: white;
    border: 3px solid var(--color-accent);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .daniela-card {
        flex-direction: row;
    }
}

.daniela-content {
    padding: 2.5rem;
    flex: 1;
}

.daniela-photo {
    flex: 0 0 45%;
    min-height: 250px;
}

.daniela-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.daniela-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.daniela-header h3 {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.badge-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.daniela-body p {
    color: var(--color-text-body);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}


/* Footer */
.legal-text {
    font-size: 0.75rem;
    color: #64748B;
    max-width: 800px;
    margin: 0 auto;
}

/* 4. CUSTOM SCROLL ANIMATIONS */
/* Definimos las clases que JavaScript interceptará */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-bounce {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-bounce {
    transform: translateY(40px) scale(0.9);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Cuando el IntersectionObserver añade la clase .active */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-fade.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.reveal-bounce.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .bento-card:first-child,
    .bento-card:last-child {
        grid-column: span 2;
    }

    .hero-section {
        padding: 8rem 0 6rem;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card:first-child,
    .bento-card:last-child {
        grid-column: span 1;
    }

    .bar {
        padding: 0 1rem;
        font-size: 0.8rem;
    }

    .viz-badge {
        right: 10px;
        bottom: -15px;
        font-size: 0.85rem;
    }

    .hero-section {
        animation: none;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }

    .hero-subtitle {
        display: none;
    }

    .fuga-content {
        text-align: center;
    }

    .fuga-content .section-title,
    .fuga-content h3 {
        text-align: center !important;
    }

    .fuga-content .bento-icon {
        text-align: center;
    }
}