/* =====================================================================
   KondaTools · index.css — Refactor comercial (mobile-first)
   Mantiene la paleta de marca y extiende tokens semánticos.
   ===================================================================== */

/* --- VARIABLES BASE (marca, intactas) --- */
:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;

    /* --- Extensiones tonales (derivadas del primary) --- */
    --primary-50:  #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --primary-800: #115e59;

    /* --- Escala neutra --- */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-700: #334155;
    --gray-900: #0f172a;

    /* --- Acentos por categoría (sutiles, solo como stripe) --- */
    --accent-docs:      #0d9488;   /* teal */
    --accent-images:    #10b981;   /* esmeralda */
    --accent-video:     #f59e0b;   /* ámbar */
    --accent-audio:     #ec4899;   /* rosa */
    --accent-ai:        #8b5cf6;   /* violeta */
    --accent-downloads: #06b6d4;   /* cian */
    --accent-qr:        #0ea5e9;   /* azul cielo */

    /* --- Sombras y radios estandarizados --- */
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md:  0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg:  0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 10px 30px -10px rgba(13, 148, 136, 0.35);

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Fondo decorativo sutil del hero (radial gradient suave) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% -10%, rgba(13, 148, 136, 0.08), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.05), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* =====================================================================
   NAVBAR (mobile-first)
   Móvil: logo izquierda + botón hamburguesa derecha. Menú colapsa.
   Desktop: navbar horizontal limpia, sin separadores "|".
   ===================================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo span { color: var(--text-main); }

/* Botón hamburguesa (móvil) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
/* Anim hamburguesa → X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú colapsable (móvil) */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card-bg);
    list-style: none;
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-200);
    gap: 0.25rem;
}
.nav-links.is-open { display: flex; }

.nav-links li.nav-sep { display: none; } /* ocultamos los | */

.nav-links a {
    display: block;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--primary-50); color: var(--primary); }

/* CTA destacado dentro del menú (Instalar app) */
.nav-cta {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}
.nav-cta a {
    background: var(--primary);
    color: white !important;
    text-align: center;
    font-weight: 700;
}
.nav-cta a:hover { background: var(--primary-hover); }

.nav-coffee-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    text-align: center;
    padding: 3rem 1.25rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-100);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.15s var(--ease),
                box-shadow 0.2s var(--ease),
                background 0.2s var(--ease);
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(13, 148, 136, 0.45);
}
.btn-secondary {
    background: white;
    color: var(--text-main);
    border-color: var(--gray-200);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Trust strip — beneficios clave bajo el hero */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}
.trust-item::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
}

/* =====================================================================
   CONTENEDOR Y CUADRÍCULA DE HERRAMIENTAS
   ===================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}
.section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

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

/* Card de herramienta con stripe de acento por categoría */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: transform 0.25s var(--ease),
                box-shadow 0.25s var(--ease),
                border-color 0.25s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--card-accent, var(--primary));
    transition: width 0.25s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-accent, var(--primary));
}
.card:hover::before { width: 6px; }
.card:focus-visible {
    outline: 3px solid var(--primary-200);
    outline-offset: 2px;
}

.card-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
    flex-grow: 1;
}
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: var(--card-accent, var(--primary));
    font-weight: 700;
    font-size: 0.9rem;
}
.card-cta::after {
    content: "→";
    transition: transform 0.2s var(--ease);
}
.card:hover .card-cta::after { transform: translateX(4px); }

/* Acentos por categoría (asignados con clase modificadora) */
.card.is-docs      { --card-accent: var(--accent-docs); }
.card.is-images    { --card-accent: var(--accent-images); }
.card.is-video     { --card-accent: var(--accent-video); }
.card.is-audio     { --card-accent: var(--accent-audio); }
.card.is-ai        { --card-accent: var(--accent-ai); }
.card.is-downloads { --card-accent: var(--accent-downloads); }
.card.is-qr        { --card-accent: var(--accent-qr); }

/* =====================================================================
   SECCIÓN "CÓMO FUNCIONA" (3 pasos)
   ===================================================================== */
.steps {
    margin-top: 4rem;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-100);
}
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.step-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
}
.step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =====================================================================
   "POR QUÉ" — value props
   ===================================================================== */
.benefits {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.benefit {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.benefit:hover {
    transform: translateY(-3px);
    border-color: var(--primary-200);
}
.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.benefit h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.benefit p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.final-cta {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--shadow-glow);
}
.final-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.final-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.final-cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: none;
}
.final-cta .btn-primary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 1.25rem 1.5rem;
    background: white;
    border-top: 1px solid var(--gray-200);
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
}
.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================================================================
   FLUJO POR PASOS (cada step-pane se muestra solo cuando is-active)
   ===================================================================== */
.step-pane {
    display: none;
    animation: fadeSlideIn 0.35s var(--ease);
}
.step-pane.is-active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@keyframes pop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- DROP AREA (paso 1: subir archivo) --- */
.upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-color) 0%, white 100%);
    cursor: pointer;
    transition: border-color 0.25s var(--ease),
                background 0.25s var(--ease),
                transform 0.15s var(--ease);
}
.upload-label:hover,
.upload-label.is-dragover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    transform: translateY(-2px);
}
.upload-label.is-dragover {
    border-style: solid;
    box-shadow: 0 0 0 4px var(--primary-100);
}
.upload-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.upload-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}
.upload-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
/* Input file real escondido — el label es el "botón" */
.upload-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* --- FILE PREVIEW (cabecera de paso 2: archivo ya subido) --- */
.file-preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
.file-preview-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}
.file-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.file-preview-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-preview-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.file-preview-change {
    background: white;
    border: 1px solid var(--primary-200);
    color: var(--primary);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.file-preview-change:hover {
    background: var(--primary);
    color: white;
}

/* --- SUCCESS CARD (paso 3: descarga lista) --- */
.success-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
}
.success-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: #10b981;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
    animation: pop 0.4s var(--ease);
}
.success-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}
.success-card > p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.success-filename {
    display: inline-block;
    max-width: 100%;
    padding: 0.5rem 0.85rem;
    background: white;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #15803d;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-download {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    margin-bottom: 0.75rem;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}
.btn-restart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s var(--ease);
}
.btn-restart:hover { color: var(--primary); }

/* =====================================================================
   STEPPER (indicador de pasos en formularios de conversión)
   ===================================================================== */
.stepper {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.stepper::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}
.stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}
.stepper-num {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--card-bg);
    border: 2px solid var(--gray-300);
    color: var(--text-muted);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.25s var(--ease);
}
.stepper-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.2px;
}
.stepper-item.is-active .stepper-num {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-100);
}
.stepper-item.is-active .stepper-label {
    color: var(--primary);
}
.stepper-item.is-done .stepper-num {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* Pequeña ayuda contextual debajo del input — patrón reutilizable */
.field-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}
.field-hint strong { color: var(--text-main); font-weight: 600; }

/* =====================================================================
   BREAKPOINTS — TABLET (≥640px)
   ===================================================================== */
@media (min-width: 640px) {
    .navbar { padding: 1.1rem 2rem; }
    .hero { padding: 4rem 2rem 2.5rem; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.15rem; }

    .hero-ctas {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .container { padding: 2.5rem 2rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .steps-grid    { grid-template-columns: repeat(3, 1fr); }
    .benefits      { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
}

/* =====================================================================
   BREAKPOINTS — DESKTOP (≥1024px)
   ===================================================================== */
@media (min-width: 1024px) {
    .navbar { padding: 1.2rem 3rem; }

    /* En desktop ocultamos el toggle y mostramos el menú horizontal */
    .nav-toggle { display: none; }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .nav-links a {
        padding: 0.5rem 0;
        color: var(--text-muted);
    }
    .nav-links a:hover {
        background: transparent;
        color: var(--primary);
    }
    .nav-cta {
        margin: 0;
        padding: 0;
        border: none;
    }
    .nav-cta a {
        padding: 0.6rem 1.1rem;
        border-radius: 8px;
    }

    .hero h1 { font-size: 3.25rem; }
    .hero { padding: 5rem 2rem 3rem; }

    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .benefits      { grid-template-columns: repeat(4, 1fr); }

    .card { padding: 1.75rem 1.75rem 1.75rem 2rem; }
    .card-icon { font-size: 2.75rem; }
    .card h3 { font-size: 1.25rem; }

    .final-cta { padding: 3.5rem 2rem; }
    .final-cta h3 { font-size: 2rem; }
}

/* =====================================================================
   ACCESIBILIDAD: respetar prefers-reduced-motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   DARK MODE TOGGLE BUTTON (inyectado por common.js en el nav)
   ===================================================================== */
.btn-dark-mode {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn-dark-mode:hover {
    background: var(--primary-50);
    color: var(--primary);
    border-color: var(--primary-200);
}
/* En desktop reducimos a solo ícono */
@media (min-width: 1024px) {
    .btn-dark-mode .dark-label { display: none; }
    .btn-dark-mode { padding: 0.45rem 0.6rem; }
}

/* =====================================================================
   SHARE STRIP (paso 3 de conversores: compartir el resultado)
   ===================================================================== */
.share-strip {
    margin: 0.75rem 0 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.share-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.share-btns {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), opacity 0.15s;
    color: white;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.92;
}
.share-btn--twitter  { background: #000; }
.share-btn--whatsapp { background: #25d366; }

/* =====================================================================
   FAQ (acordeón nativo con <details>/<summary>)
   ===================================================================== */
.faq { margin-top: 4rem; }
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--primary-200); }
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
    list-style: none;
    user-select: none;
    transition: background 0.15s var(--ease);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--primary-50); }
.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
    line-height: 1;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =====================================================================
   DARK MODE — variables y overrides
   ===================================================================== */
[data-theme="dark"] {
    --bg-color:    #0f172a;
    --text-main:   #f1f5f9;
    --text-muted:  #94a3b8;
    --card-bg:     #1e293b;

    --primary-50:  rgba(13, 148, 136, 0.12);
    --primary-100: rgba(13, 148, 136, 0.22);
    --primary-200: rgba(13, 148, 136, 0.40);

    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-700: #cbd5e1;

    --shadow-sm:   0 1px 2px rgba(0,0,0,0.5);
    --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.4);
    --shadow-lg:   0 20px 25px -5px rgba(0,0,0,0.6), 0 8px 10px -6px rgba(0,0,0,0.5);
    --shadow-glow: 0 10px 30px -10px rgba(13,148,136,0.5);
}

/* Transición suave al cambiar de tema */
body, .navbar, .nav-links, .card, .step, .benefit,
.site-footer, .success-card, .converter-card,
.faq-item, .upload-label, .file-preview {
    transition: background-color 0.25s var(--ease),
                color 0.25s var(--ease),
                border-color 0.25s var(--ease);
}

[data-theme="dark"] body::before { opacity: 0.3; }

[data-theme="dark"] .steps {
    background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, var(--card-bg) 100%);
    border-color: var(--gray-200);
}
[data-theme="dark"] .step { background: var(--bg-color); }

[data-theme="dark"] .benefit { background: var(--card-bg); }

[data-theme="dark"] .site-footer {
    background: var(--card-bg);
    border-top-color: var(--gray-200);
}

[data-theme="dark"] .hero-eyebrow {
    background: rgba(13,148,136,0.12);
    border-color: rgba(13,148,136,0.25);
    color: #93c5fd;
}

[data-theme="dark"] .upload-label {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
}
[data-theme="dark"] .upload-label:hover,
[data-theme="dark"] .upload-label.is-dragover {
    background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, var(--card-bg) 100%);
}

[data-theme="dark"] .success-card {
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, var(--card-bg) 100%);
    border-color: rgba(16,185,129,0.25);
}
[data-theme="dark"] .success-filename {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
    color: #4ade80;
}

[data-theme="dark"] .file-preview {
    background: rgba(13,148,136,0.1);
    border-color: rgba(13,148,136,0.25);
}
[data-theme="dark"] .file-preview-change {
    background: var(--card-bg);
    border-color: var(--gray-300);
}

[data-theme="dark"] .btn-secondary {
    background: var(--card-bg);
    border-color: var(--gray-300);
}

[data-theme="dark"] .share-strip { border-top-color: var(--gray-200); }

[data-theme="dark"] .share-btn--twitter { background: #1a1a1a; }

[data-theme="dark"] .faq-item[open] { border-color: rgba(13,148,136,0.4); }
[data-theme="dark"] .faq-question:hover { background: rgba(13,148,136,0.08); }