/* ESTILO MINIMALISTA MODERNO - AGENCIA PREMIUM */
:root {
    --bg-color: #050505; /* Deep rich black */
    --surface: #121212;
    --surface-hover: #1a1a1a;
    --border: #262626;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa; /* Zinc 400 */
    
    --accent: #e4e4e7; /* Primary button white */
    --accent-hover: #ffffff;
    --accent-text-color: #000000;
    
    --brand-glow: #3b82f6; /* Subtle blue glow */
    --brand-glow-alt: #8b5cf6;

    /* Superficies "glass" y bordes translúcidos (tema oscuro por defecto) */
    --glass-subtle: rgba(255, 255, 255, 0.02);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hi: rgba(255, 255, 255, 0.05);
    --border-soft: rgba(255, 255, 255, 0.1);
    --border-mid: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.4);
    --text-faint: rgba(255, 255, 255, 0.3);
    --nav-bg: rgba(5, 5, 5, 0.8);
    --nav-bg-solid: rgba(5, 5, 5, 0.98);
    --text-gradient: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);

    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ── TEMA CLARO ──
 * Se activa con [data-theme="light"] en <html>. Redefine únicamente las
 * variables de color; el resto de la hoja las consume, por lo que todo el
 * sitio conmuta sin tocar cada selector. */
:root[data-theme="light"] {
    --bg-color: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f4f4f5;
    --border: #e4e4e7;

    --text-primary: #09090b;
    --text-secondary: #52525b;

    --accent: #18181b;       /* Botón primario oscuro sobre fondo claro */
    --accent-hover: #000000;
    --accent-text-color: #ffffff;

    --glass-subtle: rgba(0, 0, 0, 0.02);
    --glass: rgba(0, 0, 0, 0.03);
    --glass-hi: rgba(0, 0, 0, 0.05);
    --border-soft: rgba(0, 0, 0, 0.1);
    --border-mid: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.18);
    --border-hover: rgba(0, 0, 0, 0.35);
    --text-faint: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-bg-solid: rgba(255, 255, 255, 0.98);
    --text-gradient: linear-gradient(135deg, #09090b 0%, #52525b 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
    z-index: 100;
}

.glow-bg {
    position: absolute;
    top: -20vh;
    left: 20vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.05) 40%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-hi);
    z-index: 99;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

.logo-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo-img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
        border-radius: 12px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

.desktop-nav {
    display: none;
    gap: 32px;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-primary);
}

/* Sección activa: subrayado sutil bajo el enlace del nav */
.desktop-nav a.active {
    position: relative;
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
}

/* Foco visible para navegación por teclado (accesibilidad) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.lang-btn:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

/* Acciones del navbar (selector de idioma + CTA) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Selector de idioma: en móvil vive dentro del menú desplegable, no en la
   barra superior, para dejarle espacio al botón de tema y al hamburguesa */
.nav-actions > .lang-switcher {
    display: none;
}

@media (min-width: 768px) {
    .nav-actions > .lang-switcher {
        display: flex;
    }
}

.lang-switcher {
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.lang-switcher-mobile {
    display: flex;
    align-self: flex-start;
    margin-top: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 10px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--accent-text-color);
}

/* Botón conmutador de tema (claro/oscuro) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.theme-toggle i {
    width: 18px;
    height: 18px;
}

.nav-actions .nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-actions .nav-cta { display: inline-flex; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text-color);
    box-shadow: 0 0 30px var(--border-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 0 40px var(--border-strong);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-hi);
    border-color: var(--border-hover);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--glass-hi);
    border: 1px solid var(--border-soft);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.micro-trust {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.micro-trust i { width: 16px; height: 16px; color: var(--text-primary); }

.trust-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-item i { width: 18px; color: var(--text-primary); }

/* Form Card */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--border-hover);
    background: var(--glass-hi);
}

/* Estado de error de validación en el formulario */
input.input-error {
    border-color: #f87171;
}

.field-error {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #f87171;
}

.select-wrapper {
    position: relative;
}

select { appearance: none; cursor: pointer; }

/* El menú desplegable de <option> lo pinta el navegador/SO con fondo claro,
   sin importar el tema del sitio, así que el texto siempre debe ser oscuro */
select option {
    color: #111;
    background: #fff;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    width: 18px;
}

.form-trust-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-trust-text i { width: 14px; }

.hidden { display: none !important; }

.form-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 48px;
    height: 48px;
    color: #10b981; /* green */
    margin: 0 auto 16px;
}

/* ============================================================
   FORMULARIO EN 2 PASOS (barra de progreso, transición, Paso 2)
   ============================================================ */

/* ── Barra de progreso ── */
.form-progress {
    margin-bottom: 28px;
}

.progress-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.progress-track {
    height: 6px;
    border-radius: 100px;
    background: var(--glass-hi);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 50%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--brand-glow), var(--brand-glow-alt));
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.progress-fill.step-2 {
    width: 100%;
}

/* ── Pantalla de transición entre pasos ── */
.transition-screen {
    text-align: center;
    padding: 24px 0 8px;
}

.transition-icon {
    width: 48px;
    height: 48px;
    color: #10b981;
    margin: 0 auto 20px;
}

.transition-screen h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.transition-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.transition-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.transition-time i { width: 15px; height: 15px; }
.transition-time strong { color: var(--text-primary); font-weight: 600; }

.btn-text-link {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 16px 0 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-text-link:hover { color: var(--text-primary); }

/* ── Secciones del Paso 2 ── */
.step2-form .form-section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.step2-form .form-section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-section-title i {
    width: 20px;
    height: 20px;
    color: var(--brand-glow);
    flex-shrink: 0;
}

.required-mark {
    color: var(--brand-glow-alt);
}

.step2-required-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0 20px;
}

/* ── Chips (checkbox / radio con estilo de píldora) ── */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-group-inline { gap: 10px; }

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

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

.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chip:has(input:checked) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text-color);
}

.chip:has(input:focus-visible) {
    outline: 2px solid var(--brand-glow);
    outline-offset: 2px;
}

/* ── Campos condicionales (URL sitio actual, "Otro" en checkboxes) ── */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease;
}

.conditional-field.show {
    max-height: 140px;
    opacity: 1;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .chip-group-inline { display: inline-flex; }
}

/* Sections */
.section {
    padding: 100px 0;
}

.alt-bg {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-soft);
    transform: translateY(-5px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-hi);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    background: #000;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.8;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
}

/* Texto fijo en blanco: el overlay siempre va sobre foto u overlay oscuro,
   sin importar si el tema del sitio es claro u oscuro */
.portfolio-overlay span {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.portfolio-overlay i {
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    color: #fff;
}

a.portfolio-item,
a.portfolio-item:link,
a.portfolio-item:visited,
a.portfolio-item:hover,
a.portfolio-item:active {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Etiqueta "SaaS en producción" sobre la captura de un producto propio */
.portfolio-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

/* About / Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
    padding: 40px 32px;
    text-align: center;
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.team-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-soft);
    transform: translateY(-5px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--glass-hi);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.team-avatar i { width: 32px; height: 32px; }

.team-avatar {
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-glow);
    margin-bottom: 16px;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
    position: relative;
    padding: 32px;
    border-left: 2px solid var(--border);
}

.step-num {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.step h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }
}

.pricing-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(0,0,0,0.3);
    position: relative;
}

.pricing-card.featured {
    background: var(--surface-hover);
    border-color: var(--border-strong);
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    .pricing-card.featured { transform: scale(1.05); z-index: 10; }
}

.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.tier {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    min-height: 44px;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.features li i {
    color: var(--text-primary);
    width: 18px;
}

.maintenance-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--glass-subtle);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin: 0 auto;
}

.maintenance-box i {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.maintenance-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Final CTA */
.cta-container {
    text-align: center;
    padding: 80px 40px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--glass-hi) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================================
   COMPONENTES AÑADIDOS (menú móvil, testimonios, FAQ, footer,
   garantías, WhatsApp flotante)
   ============================================================ */

/* ── Menú móvil (hamburguesa) ── */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover { background: var(--surface-hover); }
.menu-toggle i { width: 20px; height: 20px; }

@media (min-width: 768px) {
    .menu-toggle { display: none; }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    background: var(--nav-bg-solid);
}

.mobile-menu.open { display: flex; }

.mobile-menu a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu a:not(.btn):hover { color: var(--text-primary); }
.mobile-menu .btn { margin-top: 16px; }

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

/* ── Etiqueta opcional en el formulario ── */
.label-optional {
    font-weight: 400;
    color: rgba(161, 161, 170, 0.6);
    font-size: 0.8rem;
}

/* ── Botones del estado de éxito del formulario ── */
.form-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* ── Barra de métricas ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 56px;
    padding: 32px;
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

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

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ── Testimonios ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-soft);
    transform: translateY(-5px);
}

.stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
}

.stars i { width: 18px; height: 18px; }

.testimonial-quote {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { color: var(--text-secondary); font-size: 0.85rem; }

/* ── Nota de moneda en precios ── */
.currency-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.currency-note i { width: 15px; height: 15px; }

/* ── Tira de garantías ── */
.guarantee-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guarantee-item i { width: 18px; height: 18px; color: #10b981; }

/* ── FAQ ── */
.faq-container { max-width: 800px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open { border-color: var(--border-mid); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── CTA final: acciones y urgencia ── */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.cta-urgency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.cta-urgency i { width: 16px; height: 16px; color: #fbbf24; }

/* ── Footer ampliado ── */
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 360px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }
.footer-col a i { width: 16px; height: 16px; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; }
.footer-legal a { color: var(--text-secondary); text-decoration: underline; }
.footer-legal a:hover { color: var(--text-primary); }

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ── Botón flotante de WhatsApp ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 98;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float i { width: 28px; height: 28px; }

/* ── Barra CTA fija (solo móvil) ──
   Aparece al salir del hero para mantener la acción principal siempre a mano */
.mobile-cta-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 97;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--accent-text-color);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(160%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-cta-bar i { width: 18px; height: 18px; }

@media (max-width: 767px) {
    .mobile-cta-bar { display: flex; }
    .mobile-cta-bar.show { transform: translateY(0); }

    /* Cuando la barra está visible, sube el botón flotante para que no la tape */
    body.cta-bar-visible .whatsapp-float { bottom: 92px; }
}
