/* Paleta */
:root {
    --bg: #370776;
    --accent: #5DD62C;
    --accent-2: #A8FF78;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.8);
    --surface: #35165e;
}

/* Reset básico y tipografía */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 800px at 80% -10%, rgba(93, 214, 44, 0.05), transparent 60%),
        radial-gradient(900px 600px at -10% 20%, rgba(93, 214, 44, 0.04), transparent 60%),
        var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Header/Nav */
header.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(43, 18, 76, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(93, 214, 44, 0.3);
    box-shadow: 0 0 0 3px rgba(93, 214, 44, 0.08) inset;
}

/* Logo completo en el header */
.brand-logo-full {
    height: 28px;
    width: auto;
    display: block;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand-pill {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(93, 214, 44, 0.35);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(93, 214, 44, 0.10);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--accent);
    opacity: 1;
    text-shadow: 0 0 18px rgba(93, 214, 44, 0.25);
}

/* Subrayado animado en nav */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite, pulseGlow 3.6s ease-in-out infinite;
    color: #0f1a10;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(93, 214, 44, 0.32);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.cta-btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 40px rgba(93, 214, 44, 0.36);
}

.cta-btn:active {
    transform: translateY(0) scale(0.99);
    filter: saturate(0.95);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
}

.menu-toggle[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 214, 44, 0.18);
}

/* Hero */
.hero {
    position: relative;
    padding: 96px 0 56px;
    overflow: hidden;
}

/* Banda de líneas animadas en hero */
.hero::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: -20px;
    height: 140px;
    background: repeating-linear-gradient(90deg, rgba(93, 214, 44, 0.18) 0 1px, transparent 1px 12px);
    transform: rotate(-6deg);
    opacity: .16;
    pointer-events: none;
    animation: slideLines 18s linear infinite;
}

/* Overlay sutil tipo grid de puntos en el hero */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(1px 1px at 20px 20px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: .18;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

/* Asegurar stacking por encima de decoraciones */
.hero .container {
    position: relative;
    z-index: 1;
}

/* Líneas decorativas en el hero */
.decor-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.decor-lines path {
    fill: none;
    stroke: var(--accent);
    stroke-opacity: .22;
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(93, 214, 44, .18));
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(28px, 4.2vw, 54px);
    line-height: 1.12;
    margin: 12px 0 16px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 20px);
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 10px 16px;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
}

.ghost-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.inline-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    filter: drop-shadow(0 2px 6px rgba(93, 214, 44, 0.3));
}

.hero-badges .badge {
    animation: drift 7s ease-in-out infinite;
}

.hero-badges .badge:nth-child(2) {
    animation-delay: .2s;
}

.hero-badges .badge:nth-child(3) {
    animation-delay: .4s;
}

.hero-badges .badge:nth-child(4) {
    animation-delay: .6s;
}

.badge {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.badge:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
    position: relative;
    aspect-ratio: 2/3;
    border: 0;
    border-radius: 20px;
    padding: 0;
    background: transparent;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(93, 214, 44, 0.18), transparent 60%);
    filter: blur(18px);
}

.hero-visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: radial-gradient(600px 300px at 50% 0%, rgba(93, 214, 44, 0.18), transparent 50%);
}

.stamp-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    opacity: .9;
    filter: drop-shadow(0 6px 16px rgba(93, 214, 44, 0.26));
    z-index: 2;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
    opacity: 0.97;
    animation: floaty 6s ease-in-out infinite;
}

/* Sections */
section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Marquee sutil de frases/logros */
.marquee {
    position: relative;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 10px 0;
    width: 100%;
    min-width: 0;
    white-space: normal;
    animation: none;
    transform: none;
}

.marquee:hover .marquee-track {
    animation: none;
}

.marquee-track+.marquee-track {
    display: none;
}

.section-head {
    display: grid;
    gap: 8px;
    align-items: start;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 36px);
}

.section-eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 12px;
}

.section-desc {
    color: var(--muted);
    max-width: 780px;
}

/* Integraciones / Logo wall */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.logo-tile {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.logo-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 214, 44, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(93, 214, 44, 0.08) inset;
    color: var(--accent);
}

.logo-tile svg {
    width: 48px;
    height: 48px;
}

.logo-name {
    font-size: 12px;
    color: var(--muted);
}

/* Tabs (Funcionalidades) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tab {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}

.tab:hover {
    border-color: rgba(93, 214, 44, 0.35);
    color: var(--accent);
    background: rgba(93, 214, 44, 0.06);
}

.tab.is-active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(93, 214, 44, 0.15), rgba(168, 255, 120, 0.08));
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 214, 44, 0.12), 0 4px 12px rgba(93, 214, 44, 0.15);
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}


.tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
}

.tab-media .media-placeholder {
    min-height: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: grid;
    place-items: center;
    position: relative;
    overflow: visible;
    padding: 0;
    backdrop-filter: none;
}

.tab-media .media-placeholder::before {
    display: none;
}

.tab-media-icon {
    width: 80px;
    height: 80px;
    color: var(--accent);
    filter: drop-shadow(0 8px 20px rgba(93, 214, 44, 0.3));
    position: relative;
    z-index: 1;
}

.tab-media-image {
    width: 50%;
    height: auto;
    max-width: 50%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    filter: contrast(1.05) brightness(0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tab-media-image:hover {
    transform: scale(1.02);
    filter: contrast(1.1) brightness(1);
}

.tab-content h3 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
}

.checks {
    display: grid;
    gap: 12px;
    padding-left: 0;
    margin: 0;
}

.checks li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    line-height: 1.6;
}

.checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0f1a10;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(93, 214, 44, 0.25);
}

/* Cards */
.grid {
    display: grid;
    gap: 16px;
}

.grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 18px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    backdrop-filter: saturate(120%) blur(6px);
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(93, 214, 44, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(93, 214, 44, 0.10) inset;
}

.card h3 {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.chip {
    display: inline-block;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

/* Timeline / Roadmap */
.timeline {
    position: relative;
    margin-top: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(93, 214, 44, 0.2));
    background-size: 100% 200%;
    animation: shimmer 6s linear infinite;
}

.timeline-item {
    position: relative;
    padding-left: 36px;
    margin: 18px 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    left: 8px;
    top: 6px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(93, 214, 44, 0.15);
}

.timeline-item h4 {
    margin: 0 0 6px;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

/* Stepper (Cómo funciona) */
.stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.step {
    position: relative;
    padding-top: 40px;
}

.step-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0f1a10;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 16px rgba(93, 214, 44, 0.28);
}

.step h4 {
    margin: 0 0 6px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* KPIs + Sparklines */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.kpi-value {
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.1;
}

.kpi-label {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.sparkline {
    width: 100%;
    height: 32px;
    margin-top: 10px;
    color: var(--accent);
    filter: drop-shadow(0 4px 10px rgba(93, 214, 44, 0.25));
}

/* Contacto */
.contact {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.contact .panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: saturate(120%) blur(6px);
}

.contact form {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 13px;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 12px 12px;
    border-radius: 12px;
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(93, 214, 44, 0.18);
}

.helper {
    font-size: 12px;
    color: var(--muted);
}

.submit-btn {
    margin-top: 6px;
}

/* Footer */
footer.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}

.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 8px 24px rgba(93, 214, 44, 0.18);
}

/* Helpers */
.accent {
    color: var(--accent);
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
}

.mt-4 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 18px;
}

.center {
    text-align: center;
}

/* Carrusel Casos */
.casos-carousel {
    position: relative;
}

.casos-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.casos-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.casos-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.casos-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Acordeones */
.accordion {
    display: none;
    gap: 12px;
}

@media (max-width: 760px) {
    .accordion {
        display: grid;
    }
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.accordion-item.active {
    border-color: rgba(93, 214, 44, 0.35);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    gap: 12px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--accent);
    flex-shrink: 0;
}

.accordion-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.accordion-toggle {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content-inner {
    padding: 0 16px 16px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 760px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 4%;
        top: 64px;
        flex-direction: column;
        background: rgba(43, 18, 76, 0.96);
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .grid.cols-2,
    .grid.cols-3 {
        grid-template-columns: 1fr;
    }

    /* Carrusel Casos en móvil */
    .casos-track {
        grid-template-columns: repeat(3, 100%);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .casos-track::-webkit-scrollbar {
        display: none;
    }

    .casos-track .card {
        scroll-snap-align: start;
        min-width: 100%;
        margin-right: 16px;
    }

    .casos-dots {
        display: flex;
    }

    /* Tabs a acordeones en móvil */
    .tabs {
        display: none;
    }

    .tab-panel {
        display: block !important;
        margin-bottom: 8px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        overflow: hidden;
        position: relative;
    }

    .tab-accordion-header {
        display: flex;
        align-items: center;
        padding: 10px 36px 10px 14px;
        cursor: pointer;
        font-weight: 600;
        position: relative;
        z-index: 2;
        user-select: none;
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
        min-height: 0;
        height: auto;
    }

    .tab-accordion-header::before {
        content: attr(data-tab-label);
        line-height: 1;
        margin: 0;
        padding: 0;
        display: block;
    }

    .tab-accordion-header span {
        margin-right: 10px;
    }

    .tab-accordion-header::after {
        content: "▼";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        transition: transform 0.3s ease;
        pointer-events: none;
        font-size: 12px;
    }

    .tab-panel.is-active .tab-accordion-header::after {
        transform: translateY(-50%) rotate(180deg);
        color: var(--accent);
    }

    .tab-panel .tab-grid {
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        margin: 0;
    }

    .tab-panel:not(.is-active) .tab-grid {
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tab-panel.is-active .tab-grid {
        max-height: 3000px;
        padding: 0 16px 16px;
        margin: 0;
    }

    /* Nuevo Paradigma a acordeones */
    #paradigma .grid.cols-2,
    #paradigma .grid.cols-3 {
        display: none;
    }

    #paradigma .accordion {
        display: grid;
    }

    /* Stepper más compacto en móvil */
    .stepper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stepper::before {
        left: 16px;
        width: 2px;
        height: calc(100% - 32px);
        top: 16px;
        right: auto;
    }
}


/* Accesibilidad y estados de foco modernos */
:is(a, button, .ghost-btn, .cta-btn, input, select, textarea):focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 214, 44, 0.24);
    border-color: var(--accent);
}

/* Simple fade-in */
[data-animate] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].in {
    opacity: 1;
    transform: translateY(0);
}

/* Playful animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideLines {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 400px 0;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(93, 214, 44, 0.24);
    }

    50% {
        box-shadow: 0 16px 40px rgba(93, 214, 44, 0.38);
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes rotateSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-1.4deg);
    }
}

@keyframes shimmer {
    0% {
        background-position-y: 0%;
    }

    100% {
        background-position-y: 100%;
    }
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Reduce motion para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}