/* ========================================
   CSS VARIABLES - RUMBO (CAPS)
   ======================================== */

:root {
    --color-primary: #822428;
    --color-primary-dark: #65191d;
    --color-primary-light: #f2ece5;
    --color-primary-rgb: 130, 36, 40;
    --color-accent: #e4a66c;
    --color-heading: #822428;
    --color-text: #24201f;
    --color-text-light: #3b3634;
    --color-text-muted: #6b625c;
    --color-bg: #ffffff;
    --color-bg-light: #fbfaf7;
    --color-bg-cream: #f2ece5;
    --color-bg-dark: #2a2928;
    --color-border: #d9cfc4;
    --font-main: 'Alegreya Sans', sans-serif;
    --font-serif: 'Alegreya', serif;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* ========================================
   PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   HERO
   ======================================== */

.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.hero-content {
    color: var(--color-bg);
    padding: 90px 0 20px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-bg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    max-width: 780px;
    line-height: 1.55;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    background-color: var(--color-bg);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    display: inline-block;
    color: var(--color-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--color-bg);
}

.btn-hero-secondary:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
}

/* ========================================
   SECTIONS
   ======================================== */

.content-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.content-section.bg-light {
    background-color: var(--color-bg-light);
}

.content-section.bg-cream {
    background-color: var(--color-bg-cream);
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title.title-long {
    font-size: 2rem;
}

.content-text {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.sim {
    background: var(--color-bg);
    border-top: 4px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sim-controls {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-bg-cream);
    padding: 1.75rem 1.5rem 1.5rem;
}

.sim-tabs,
.sim-slider,
.sim-scale {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.sim-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sim-tab {
    padding: 0.7rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sim-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sim-tab.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(130, 36, 40, 0.25);
}

/* Botones */

.btn-main {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-main:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

.btn-main.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.12);
}

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

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

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item.is-closing summary::after {
    transform: none;
}

.faq-answer {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* ========================================
   CONTACTO
   ======================================== */

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg);
    text-align: center;
}

.contact-quote {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    max-width: 860px;
    margin: 0 auto 0.75rem;
}

.contact-author {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-intro {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-wsp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-accent);
    color: var(--color-text);
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-wsp:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.btn-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid var(--color-bg);
    color: var(--color-bg);
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
}

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

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
    padding: 3rem 0 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-tagline {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    text-wrap: balance;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--color-bg);
}

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

.footer-bottom {
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
}


/* ========================================
   FLOTANTES
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    animation: pulse 2.5s infinite;
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
    display: block;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-primary);
}

.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.brand-light .brand-title {
    color: var(--color-bg);
}

.brand-light .brand-sub {
    color: var(--color-accent);
}


/* ========================================
   HEADER (mismas medidas que caps.com.ar)
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(130, 36, 40, 0.12);
    transition: box-shadow 0.3s ease;
}

.header-inner {
    width: min(calc(100% - 56px), 1400px);
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand-text {
    flex: 0 0 auto;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text .brand-title {
    font-size: 1.3rem;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.87rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.main-nav>a:not(.nav-cta) {
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav>a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: 0.25s;
}

.main-nav>a:not(.nav-cta):hover::after,
.main-nav>a.is-active::after {
    width: 100%;
}

.nav-cta {
    white-space: nowrap;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.5rem 1.05rem;
    border-radius: 50px;
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 8px;
    margin-left: auto;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    margin: 5px;
}

@media (max-width: 1599px) {
    .brand-text .brand-title {
        font-size: 1.1rem;
    }

    .main-nav {
        gap: 12px;
        font-size: 0.76rem;
    }

    .nav-cta {
        padding: 0.45rem 0.85rem;
    }
}

@media (max-width: 1280px) {
    .header-inner {
        height: 76px;
    }

    .brand-text .brand-title {
        font-size: 1.05rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 76px 0 auto 0;
        background: var(--color-bg-light);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px 28px;
        font-size: 0.87rem;
        border-bottom: 1px solid var(--color-border);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .main-nav.is-open {
        display: flex;
        animation: navOpen 0.3s ease-out;
    }

    .main-nav.is-open.is-closing {
        animation: navClose 0.25s ease-in forwards;
    }

    .main-nav>a:not(.nav-cta) {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-bg-cream);
    }

    .main-nav>a:not(.nav-cta)::after {
        display: none;
    }

    .main-nav>a.is-active {
        color: var(--color-primary);
    }

    .nav-cta {
        margin-top: 16px;
        padding: 0.8rem 1.2rem;
        text-align: center;
    }
}

@keyframes navOpen {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

@keyframes navClose {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .main-nav.is-open,
    .main-nav.is-open.is-closing {
        animation: none;
    }
}

@media (max-width: 820px) {
    .header-inner {
        width: calc(100% - 32px);
    }
}

@media (max-width: 575px) {
    .brand-text .brand-title {
        font-size: clamp(0.7rem, 3.9vw, 1.05rem);
    }
}

@media (max-width: 400px) {
    .brand-text .brand-sub {
        font-size: 0.58rem;
    }
}

.chk-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.4rem 1.6rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
}

.chk-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-heading);
}

.chk-card .chk-hint {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.chk {
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: left;
    width: 100%;
    min-height: 36px;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.chk:hover {
    border-color: var(--color-primary);
}

.chk .box {
    flex: 0 0 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    color: var(--color-bg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.chk[aria-pressed="true"] {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.chk[aria-pressed="true"] .box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.chk[aria-pressed="true"] .box::after {
    content: "\2713";
}

.chk-verdict {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin: 0.35rem 0 0.25rem;
}

.programa {
    margin: 0;
}

.programa-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem 1.75rem;
}

.programa-step {
    position: relative;
    padding-top: 1.1rem;
    text-align: left;
}

.programa-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.programa-step:nth-child(2)::before { transition-delay: 0.35s; }
.programa-step:nth-child(3)::before { transition-delay: 0.55s; }
.programa-step:nth-child(4)::before { transition-delay: 0.75s; }
.programa-step:nth-child(5)::before { transition-delay: 0.95s; }

.programa.aos-animate .programa-step::before {
    transform: scaleX(1);
}

.programa-num {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-accent);
}

.programa-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.5rem;
}

.programa-step p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-light);
    text-wrap: pretty;
}

@media (max-width: 1279px) {
    .programa-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .programa-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .programa-steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .programa-step::before {
        transform: none;
        transition: none;
    }
}

/* ========================================
   RUMBO - COMPONENTES PROPIOS
   ======================================== */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

main,
.content-section,
.contact-section,
.hero-banner {
    overflow-x: clip;
}

.footer .brand-text {
    white-space: normal;
}

h1,
h2,
h3,
h4,
.faq-item summary {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

.hero-byline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: #f6dfc0;
    margin: -1rem auto 2.25rem;
}

.hero-route {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 3rem auto 0;
    overflow: visible;
}

.hero-route .route-line {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 1.8s ease-out 0.2s forwards;
}

.hero-route .route-flow {
    fill: none;
    stroke: #f6dfc0;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 6 94;
    stroke-dashoffset: 6;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(246, 223, 192, 0.95));
    animation: bridgeFlow 5s linear 2.4s infinite;
}

.hero-route .route-arrow {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    animation: fadeIn 0.4s ease 1.9s forwards;
}

.hero-route .route-node {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: nodePop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-route .route-node circle:nth-child(2) {
    fill: var(--color-primary-dark);
    stroke: var(--color-accent);
    stroke-width: 3;
}

.hero-route .route-node circle:nth-child(3) {
    fill: var(--color-accent);
}

.hero-route .route-label {
    fill: #f6dfc0;
    font-size: 17px;
    font-weight: 600;
    text-anchor: middle;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.hero-route .n1,
.hero-route .l1 {
    animation-delay: 0.7s;
}

.hero-route .n2,
.hero-route .l2 {
    animation-delay: 1.05s;
}

.hero-route .n3,
.hero-route .l3 {
    animation-delay: 1.4s;
}

.hero-route .n4,
.hero-route .l4 {
    animation-delay: 1.75s;
}

.hero-route .route-node .halo {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: haloPulse 3s ease-out infinite;
}

.hero-route .n1 .halo {
    animation-delay: 2.6s;
}

.hero-route .n2 .halo {
    animation-delay: 3.2s;
}

.hero-route .n3 .halo {
    animation-delay: 3.8s;
}

.hero-route .n4 .halo {
    animation-delay: 4.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes nodePop {
    from {
        opacity: 0;
        transform: scale(0.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes haloPulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(2.4);
    }
}

.foto-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--color-accent);
    border-radius: 12px;
    background: var(--color-bg-cream);
    color: var(--color-text-muted);
    font-weight: 600;
    text-align: center;
}

.foto-slot i {
    font-size: 2.2rem;
    color: var(--color-accent);
}

.foto-slot.is-portrait {
    aspect-ratio: 4 / 5;
}

.foto-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.flow {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.flow-end {
    padding: 1.1rem 1.4rem;
    border-radius: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

.flow-end small {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.flow-out {
    display: grid;
    gap: 1rem;
}

.flow-box {
    background: var(--color-primary);
    border-radius: 12px;
    padding: 1.4rem 1.4rem 1.5rem;
    box-shadow: 0 10px 32px rgba(var(--color-primary-rgb), 0.25);
    color: #fff;
}

.flow-box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    color: #fff;
}

.flow-chips {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.flow-chips li {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.02rem;
    border-left: 3px solid var(--color-accent);
}

.flow-link {
    position: relative;
    height: 2px;
    min-width: 40px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
}

.flow-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-primary-dark);
    transform: translate(-50%, -50%);
    animation: flowDot 2.4s linear infinite;
}

@keyframes flowDot {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.start-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.start-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-top: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.start-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.15);
}

.start-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.start-card:hover .start-icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
}

.start-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.8rem;
}

.start-card p {
    font-size: 1.12rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.start-card p:last-of-type {
    font-weight: 600;
    color: var(--color-text);
}

.start-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.start-link i {
    transition: transform 0.3s ease;
}

.start-link:hover i {
    transform: translateX(6px);
}

.disp .sim-tabs {
    grid-template-columns: repeat(4, 1fr);
    max-width: 980px;
    margin-bottom: 0;
}

.disp .sim-controls {
    padding-bottom: 1.5rem;
}

.disp .sim-text {
    background: var(--color-bg);
}

.disp .sim-canvas {
    flex-direction: column;
}

.disp .sim-title {
    font-size: 2rem;
}

.disp .sim-desc {
    font-size: 1.12rem;
}

.disp-svg {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    overflow: visible;
}

.disp-svg text {
    font-family: var(--font-main);
    font-weight: 700;
    text-anchor: middle;
}

.dg {
    opacity: 0.28;
    transition: opacity 0.6s ease;
}

.disp[data-stage="1"] .g1,
.disp[data-stage="2"] .g2,
.disp[data-stage="3"] .g3,
.disp[data-stage="4"] .g4 {
    opacity: 1;
}

.disp:not([data-stage="1"]) .g1 {
    opacity: 0.6;
}

.disp .g2 .ring {
    fill: rgba(228, 166, 108, 0.12);
    stroke: var(--color-accent);
    stroke-width: 2.5;
    stroke-dasharray: 7 6;
}

.disp .g1 .core {
    fill: var(--color-primary);
}

.disp .g1 .core-pulse {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.disp[data-stage="1"] .g1 .core-pulse {
    animation: haloPulse 2.2s ease-out infinite;
}

.disp .box {
    fill: #fff;
    stroke: var(--color-primary);
    stroke-width: 2.5;
}

.disp .arrow {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.disp .arrow-flow {
    stroke-dasharray: 6 8;
}

.disp[data-stage="3"] .g3 .arrow-flow,
.disp[data-stage="4"] .g4 .arrow-flow {
    animation: dash 0.9s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -14;
    }
}

.orbit {
    transform-origin: 220px 140px;
}

.disp[data-stage="2"] .orbit {
    animation: orbit 9s linear infinite;
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

.orbit circle {
    fill: var(--color-accent);
    stroke: var(--color-primary);
    stroke-width: 2;
}

.queda-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.queda-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.queda-list li:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.12);
}

.queda-check {
    flex: 0 0 34px;
    height: 34px;
}

.queda-check circle {
    fill: var(--color-primary);
}

.queda-check path {
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.6s ease 0.4s;
}

.queda-list li.aos-animate .queda-check path {
    stroke-dashoffset: 0;
}

.tl {
    margin: 0 auto 3rem;
    max-width: 900px;
    padding: 0 1.5rem 2.4rem;
}

.tl-track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.tl-seg {
    position: relative;
    height: 40px;
    background: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.tl-seg:nth-child(1) {
    border-radius: 999px 0 0 999px;
}

.tl-seg:nth-child(2) {
    border-radius: 0 999px 999px 0;
}

.tl-seg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.tl-seg:nth-child(2)::before {
    background: var(--color-primary-dark);
    transition-delay: 1.5s;
}

.tl.aos-animate .tl-seg::before {
    transform: scaleX(1);
}

.tl-seg span {
    position: relative;
    z-index: 1;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease 1s;
}

.tl-seg:nth-child(2) span {
    transition-delay: 2.2s;
}

.tl.aos-animate .tl-seg span {
    opacity: 1;
}

.tl-mark {
    position: absolute;
    top: 44px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-mark::before {
    content: "";
    width: 3px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 2px;
}

.tl-mark b {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.tl-mark.m1 {
    left: 20px;
}

.tl-mark.m2 {
    left: 50%;
}

.tl-mark.m3 {
    left: calc(100% - 20px);
}

.diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.diag-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.4rem 1.6rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.diag-card.is-hit {
    border-top-color: var(--color-accent);
    box-shadow: 0 10px 34px rgba(var(--color-primary-rgb), 0.2);
}

.diag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.diag-head h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0;
}

.diag-count {
    flex: none;
    min-width: 58px;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    text-align: center;
    transition: all 0.3s ease;
}

.diag-card.is-hit .diag-count {
    background: var(--color-primary);
    color: #fff;
}

.diag-bar {
    height: 6px;
    border-radius: 6px;
    background: var(--color-bg-cream);
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.diag-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.diag-card.is-hit .diag-bar i {
    background: var(--color-primary);
}

.diag-tag {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    font-weight: 700;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.diag-tag i {
    color: var(--color-accent);
    margin-right: 0.4rem;
}

.diag-card.is-hit .diag-tag {
    max-height: 3rem;
    opacity: 1;
    margin-top: 0.35rem;
}

.diag-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.diag-cta .btn-main {
    padding: 1rem 2.6rem;
}

.director {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.director h2 {
    margin-bottom: 1.25rem;
}

.resena-slot {
    padding: 1.5rem;
    border: 2px dashed var(--color-accent);
    border-radius: 12px;
    background: var(--color-bg-cream);
    color: var(--color-text-muted);
    font-weight: 600;
}

.cierre-text {
    font-size: 1.5rem;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
    font-family: var(--font-serif);
}

.contact-section .btn-wsp {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .split,
    .director,
    .start-grid,
    .diag-grid {
        grid-template-columns: 1fr;
    }

    .split .foto-slot,
    .director .foto-slot {
        max-width: 520px;
        margin: 0 auto;
    }

    .flow {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.5rem;
    }

    .flow-link {
        width: 2px;
        height: 44px;
        min-width: 0;
        background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    }

    .flow-link::before {
        animation-name: flowDotY;
    }

    .flow-box,
    .flow-end {
        width: 100%;
        max-width: 520px;
    }

    .disp .sim-tabs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 60px 0 10px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero,
    .btn-wsp,
    .btn-mail {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .content-section,
    .contact-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-quote {
        font-size: 1.7rem;
    }

    .cierre-text {
        font-size: 1.25rem;
    }

    .faq-item summary {
        font-size: 1.1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .scroll-top {
        right: 20px;
        bottom: 90px;
    }

    .floating-whatsapp {
        right: 20px;
        bottom: 20px;
    }

    .hero-route .route-label {
        display: none;
    }

    .hero-route {
        width: 112%;
        max-width: none;
        margin-left: -6%;
    }

    .tl-seg {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-route .route-line,
    .hero-route .route-arrow,
    .hero-route .route-node,
    .hero-route .route-label {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
        transform: none;
    }

    .hero-route .route-flow,
    .hero-route .halo,
    .flow-link::before,
    .disp .orbit,
    .disp .arrow-flow,
    .disp .core-pulse,
    .floating-whatsapp {
        animation: none !important;
    }

    .tl-seg::before {
        transform: none;
        transition: none;
    }

    .tl-seg span {
        opacity: 1;
        transition: none;
    }

    .queda-check path {
        stroke-dashoffset: 0;
        transition: none;
    }
}

@keyframes bridgeFlow {
    0% {
        stroke-dashoffset: 9;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -91;
        opacity: 0;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.sim-stage {
    display: grid;
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
}

.sim-canvas {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    min-height: 340px;
    background: var(--color-bg-cream);
}

.sim-text {
    display: grid;
    background: var(--color-bg);
    overflow: hidden;
    transition: background-color 0.5s ease, height 0.45s ease;
}


.sim-panel {
    grid-area: 1 / 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.sim-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0.1s, 0.1s, 0s;
}

.sim-tag {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
}

.sim-title {
    font-family: var(--font-serif);
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.9rem;
}

.sim-desc {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 1.75rem;
}

.sim-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--color-border);
}

.sim-insight {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sim-next {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sim-next:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 991px) {
    .sim-stage {
        grid-template-columns: 1fr;
    }

    .sim-canvas {
        padding: 2rem 1.25rem;
        min-height: 0;
    }

    .sim-panel {
        padding: 2rem 1.5rem;
    }
}
@keyframes flowDotY {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 575px) {
    .disp .sim-tabs {
        gap: 0.5rem;
    }

    .disp .sim-tab {
        padding: 0.45rem 0.5rem;
        font-size: 0.85rem;
        border-width: 1.5px;
    }
}
