:root {
    --color-primary: #6C3CE5;
    --color-primary-dark: #4B2CC4;

    /* Valores por defecto (modo oscuro) */
    --color-bg: #111827;
    --color-bg-soft: #0B1120;
    --color-surface: #1F2933;
    --color-surface-soft: #161E27;
    --color-text: #F9FAFB;
    --color-muted: #9CA3AF;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
    --radius-xl: 18px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

/* =========================== */
/* TEMAS */
/* =========================== */

/* Oscuro (default) */
body.theme-dark {
    background: radial-gradient(circle at top, #1F2937 0, #020617 65%);
    color: var(--color-text);
}

/* Claro */
body.theme-light {
    --color-bg: #F3F4F6;
    --color-bg-soft: #FFFFFF;
    --color-surface: #FFFFFF;
    --color-surface-soft: #E5E7EB;
    --color-text: #111827;
    --color-muted: #4B5563;

    background: linear-gradient(to bottom, #E5E7EB, #F9FAFB);
    color: var(--color-text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================== */
/* PROGRESO DE SCROLL */
/* =========================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    z-index: 50;
    transition: width 0.1s linear;
}

/* =========================== */
/* HEADER + SHRINK + FADE */
/* =========================== */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, #4B2CC4, #6C3CE5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition:
        box-shadow 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Fade out cuando se oculta */
header.header-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem 0 0.9rem;
    position: relative;
    z-index: 2;
    transition: padding 0.25s ease;
}

.logo-link {
    display: inline-flex;
}

.header-logo {
    height: 68px;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    animation: logo-pop 0.5s ease-out 0.1s both;
    transition: height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

@keyframes logo-pop {
    0%   { transform: scale(0.9); opacity: 0; }
    60%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* brillo periódico sobre el logo */
.header-logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    opacity: 0;
    pointer-events: none;
}

.header-logo.logo-shining::after {
    opacity: 1;
    animation: logo-shine 0.9s ease-out forwards;
}

@keyframes logo-shine {
    from { left: -150%; }
    to   { left: 150%; }
}

.brand-text-center {
    margin-top: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #E5E7EB;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: font-size 0.25s ease, margin-top 0.25s ease;
}

/* Barra de navegación */
.nav-bar {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: -12px;
    position: relative;
    z-index: 1;
    transition: margin-top 0.25s ease, opacity 0.25s ease, max-height 0.25s ease;
}

/* Contenedor interno del nav */
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Menú izquierda */
.nav-left {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Menú derecha */
.nav-right {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* Links de la barra (solo texto) */
.nav-bar a {
    color: #F9FAFB;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0;
    display: inline-block;
    transform-origin: center bottom;
    transition: transform 0.12s ease-out, color 0.12s ease-out;
}

/* sin “barra de carga” */
.nav-bar a::after {
    content: none;
}

/* efecto: se hace un poco más grande */
.nav-bar a:hover {
    transform: scale(1.13);
}

/* link activo por scrollspy */
.nav-bar a.nav-active {
    font-weight: 700;
    transform: scale(1.13);
}

/* Links especiales derecha */
.login-link,
.activate-link {
    font-weight: 500;
}

/* toque sutil al pasar el cursor en el lado derecho */
.nav-right a:hover {
    color: #E0E7FF;
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    margin-right: auto;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #F9FAFB;
    margin-bottom: 4px;
}

/* Botón tema fijo en esquina superior derecha */
.theme-toggle {
    position: fixed;
    top: 0.7rem;
    right: 0.9rem;
    z-index: 40;

    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #F9FAFB;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

/* Estado compacto (cuando bajas) */
header.header-compact .header-top {
    padding: 0.5rem 0 0.4rem;
}

header.header-compact .header-logo {
    height: 50px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

header.header-compact .brand-text-center {
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

/* nav-bar se colapsa al estar compacto: queda solo barra con logo */
header.header-compact .nav-bar {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}

/* =========================== */
/* NAV RESPONSIVE */
/* =========================== */

@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }

    .nav-left,
    .nav-right {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.2rem;
        gap: 0.6rem;
    }

    header.nav-open .nav-left,
    header.nav-open .nav-right {
        display: flex;
    }

    .nav-right .activate-link {
        width: fit-content;
    }
}

/* =========================== */
/* MODO CLARO – ajustes header/nav */
/* =========================== */

body.theme-light header {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.25);
}

body.theme-light .nav-bar {
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body.theme-light .theme-toggle {
    background: #FFFFFF;
    color: #111827;
    border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* =========================== */
/* CONTENIDO */
/* =========================== */

main {
    padding: 1rem 1.5rem 3rem;
}

/* Fade-in de secciones + offset de scroll */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 0;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    scroll-margin-top: 140px;
}

/* variantes de animación */
.section.anim-slide-left {
    transform: translate3d(-24px, 0, 0);
}

.section.anim-slide-right {
    transform: translate3d(24px, 0, 0);
}

.section.anim-scale-up {
    transform: scale(0.97);
}

.section.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-muted);
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22C55E;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

body.theme-light .hero-badge {
    background: #E5E7EB;
    color: #111827;
    border-color: rgba(148, 163, 184, 0.7);
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
    line-height: 1.1;
    margin: 1rem 0 0.75rem;
}

.hero h1 strong {
    color: #C4B5FD;
}

body.theme-light .hero h1 strong {
    color: #4F46E5;
}

.hero p {
    color: var(--color-muted);
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* TARJETA HERO */
.hero-card {
    background: radial-gradient(circle at top left, #111827 0, #020617 50%, #0B1120 100%);
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
    animation: hero-float 6s ease-in-out infinite alternate;
}

@keyframes hero-float {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -6px, 0); }
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.hero-card-title {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.hero-metric-main {
    font-size: 2rem;
    font-weight: 700;
    color: #C4B5FD;
}

.hero-metric-sub {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.mini-metric {
    padding: 0.7rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(31, 41, 55, 0.8);
}

.mini-label {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.mini-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hero / métricas en modo claro */
body.theme-light .hero-card {
    background: linear-gradient(135deg, #FFFFFF, #E5E7EB);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    animation: none;
}

body.theme-light .mini-metric {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

/* TÍTULOS GENERALES */
.section-title {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}

.section-subtitle {
    max-width: 520px;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(129, 140, 248, 0.9);
}

.card-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(76, 29, 149, 0.25);
    color: #E9D5FF;
    border: 1px solid rgba(147, 51, 234, 0.5);
    margin-bottom: 0.7rem;
}

body.theme-light .card {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

body.theme-light .card-tag {
    background: rgba(167, 139, 250, 0.18);
    color: #4C1D95;
    border-color: rgba(147, 51, 234, 0.6);
}

/* METODOLOGÍA: tarjetas conectadas por línea */
.steps {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .steps::before {
        content: "";
        position: absolute;
        left: 6%;
        right: 6%;
        top: 32px;
        height: 2px;
        background: rgba(129, 140, 248, 0.85);
        z-index: 0;
    }
}

/* Cada paso como tarjeta */
.step {
    position: relative;
    z-index: 1;
    flex: 1 1 180px;
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.4rem 1rem 1.1rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(88, 28, 135, 0.7);
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-text {
    font-size: 0.88rem;
    color: var(--color-muted);
}

body.theme-light .step {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

/* NOSOTROS */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.about-highlight {
    background: var(--color-surface-soft);
    padding: 1.3rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

body.theme-light .about-highlight {
    background: #FFFFFF;
    border-color: #E5E7EB;
}

.about-photo {
    margin-bottom: 1rem;
    border-radius: 18px;
    background: radial-gradient(circle at top, #4C1D95, #020617);
    padding: 0.75rem;
}

.about-photo-inner {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.2rem;
    text-align: center;
    color: #E5E7EB;
    font-size: 0.9rem;
}

.about-photo-inner span {
    display: block;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.about-list {
    margin-top: 0.6rem;
    padding-left: 1.1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.about-promise {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.35);
    font-size: 0.9rem;
}

body.theme-light .about-photo {
    background: linear-gradient(135deg, #A78BFA, #E0EAFF);
}

body.theme-light .about-photo-inner {
    border-color: rgba(129, 140, 248, 0.7);
    color: #111827;
}

/* TESTIMONIOS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.testimonial-card {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    font-size: 3rem;
    color: rgba(148, 163, 184, 0.15);
    top: -12px;
    left: 10px;
}

.testimonial-text {
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--color-muted);
}

body.theme-light .testimonial-card {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

/* CTA */
.cta {
    text-align: center;
    background: radial-gradient(circle at top, #4B2CC4 0, #111827 50%, #020617 100%);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(129, 140, 248, 0.5);
}

.cta p {
    color: var(--color-muted);
    max-width: 520px;
    margin: 0.4rem auto 1.4rem;
}

.cta-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

body.theme-light .cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(219, 234, 254, 0.95));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
    border-color: rgba(148, 163, 184, 0.4);
}

body.theme-light .cta .section-title {
    color: #111827;
}

body.theme-light .cta p {
    color: #374151;
}

/* BOTONES */
.btn-primary,
.btn-outline {
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 14px 32px rgba(108, 60, 229, 0.6);
    position: relative;
    overflow: hidden;
}

/* brillo que cruza todo el botón */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.7),
        transparent
    );
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
    animation: btn-shine 0.7s ease-out forwards;
}

@keyframes btn-shine {
    from { left: -150%; }
    to   { left: 150%; }
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #E5E7EB;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: #E5E7EB;
}

body.theme-light .btn-outline {
    color: #111827;
    border-color: rgba(148, 163, 184, 0.9);
}

body.theme-light .btn-outline:hover {
    background: #E5E7EB;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    background: #020617;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* texto + correo */
.footer-social {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.85rem;
}

.footer-social a {
    text-decoration: underline;
    color: var(--color-muted);
    border: none;
    width: auto;
    height: auto;
    padding: 0;
}

/* =========================== */
/* MODALES LOGIN / ACTIVAR     */
/* =========================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 1rem;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal {
    max-width: 420px;
    width: 100%;
    background: var(--color-surface);
    border-radius: 18px;
    padding: 1.5rem 1.7rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: none;
}

.modal.is-visible {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.modal-field label {
    color: var(--color-muted);
}

.modal-field input {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--color-bg-soft);
    color: var(--color-text);
}

.modal-field.modal-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.modal-message {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #FCA5A5;
}

.modal-message.success {
    color: #4ADE80;
}

.modal-help {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.modal-help a {
    text-decoration: underline;
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.btn-secondary {
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* modo claro para modales */
body.theme-light .modal {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

body.theme-light .modal-field input {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

body.theme-light .btn-secondary {
    color: #111827;
    border-color: #CBD5F5;
}

body.theme-light .btn-secondary:hover {
    background: #E5E7EB;
}

/* evitar scroll de fondo con modal abierto */
body.modal-open {
    overflow: hidden;
}

/* =========================== */
/* RESPONSIVE LAYOUT */
/* =========================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }

    .section {
        padding: 2.2rem 0;
    }
}

.recover-steps {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.file-dropzone {
    position: relative;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 0.9rem;
    padding: 1.4rem 1rem;
    text-align: center;
    background: radial-gradient(circle at top left,
        rgba(129, 140, 248, 0.15),
        rgba(15, 23, 42, 0.95));
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.file-dropzone p {
    margin: 0;
    font-size: 0.9rem;
}

.file-dropzone span {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.file-dropzone.drag-over {
    border-color: #a855f7;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.5),
                0 18px 45px rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

.file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    display: block;
    z-index: 2;
}


.file-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

#rd-message {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

