/* ============================================
   SOFTRESTAURANT - LANDING PAGE DISTRIBUIDOR
   GLASSMORPHISM + MINIMALIST REDESIGN
   Hoja de estilos principal
   ============================================ */

/* ---------- Variables CSS ---------- */
:root {
    /* Paleta oficial Softrestaurant - Naranja */
    --color-primary: #F97316;
    --color-primary-dark: #C2410C;
    --color-primary-light: #FFF7ED;
    --color-accent: #FBBF24;
    --color-accent-light: #FEF3C7;
    
    /* Tonos neutros */
    --color-dark: #0f172a;
    --color-gray-900: #0f172a;
    --color-gray-800: #1e293b;
    --color-gray-700: #334155;
    --color-gray-600: #475569;
    --color-gray-500: #64748b;
    --color-gray-400: #94a3b8;
    --color-gray-300: #cbd5e1;
    --color-gray-200: #e2e8f0;
    --color-gray-100: #f1f5f9;
    --color-gray-50: #f8fafc;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-error: #ef4444;
    
    /* Fondos glass */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(194, 65, 12, 0.07);
    --glass-shadow-lg: 0 8px 32px rgba(194, 65, 12, 0.12);
    
    /* Fuentes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sombras sutiles */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.1);
    
    /* Radios más pronunciados */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max: 1140px;
    --container-padding: 1.5rem;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-600);
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f0 25%, #f5fff7 50%, #f0f9ff 75%, #f0f4ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Utilidades ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding: 7rem 0;
}

/* Transiciones visuales discretas entre los bloques claros. */
.distribuidor,
.caracteristicas,
.beneficios,
.testimonios,
.planes:not(#cloud),
.contacto {
    position: relative;
    isolation: isolate;
}

.distribuidor::before,
.caracteristicas::before,
.beneficios::before,
.testimonios::before,
.planes:not(#cloud)::before,
.contacto::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: min(84%, 1100px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.22) 30%, rgba(251, 191, 36, 0.28) 50%, rgba(249, 115, 22, 0.22) 70%, transparent);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.1);
}

.distribuidor::after,
.caracteristicas::after,
.beneficios::after,
.testimonios::after,
.planes:not(#cloud)::after,
.contacto::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 120px;
    pointer-events: none;
    background: radial-gradient(ellipse 48% 60% at 50% 0%, rgba(249, 115, 22, 0.055), transparent 72%);
}

.distribuidor > .container,
.caracteristicas > .container,
.beneficios > .container,
.testimonios > .container,
.planes:not(#cloud) > .container,
.contacto > .container {
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

/* ---------- Tipografía Minimalista ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.3; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.0625rem; font-weight: 500; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-gray-500);
    line-height: 1.8;
}

p:last-child:not(.section-subtitle) {
    margin-bottom: 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding: 0.375rem 1rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.section-title {
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-500);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.9;
}

/* ---------- Botones Minimalistas ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--color-gray-900);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.2);
    background: var(--color-gray-800);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    color: var(--color-gray-800);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn-outline:hover {
    background: var(--glass-bg-strong);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lg);
}

/* Botón outline en hero (sobre fondo oscuro) */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ---------- Navegación Glass ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 0.625rem 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.scroll-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}

.scroll-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.55);
    transition: transform 0.1s linear;
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    padding-left: 1rem;
    margin-right: auto;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.nav-logo-dark {
    display: none;
}

.navbar.scrolled .nav-logo-light {
    display: none;
}

.navbar.scrolled .nav-logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-mobile-cta {
    display: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    position: relative;
    padding: 0.25rem 0;
    transition: all var(--transition-base);
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--color-gray-600);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-gray-900);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    margin-left: auto;
}

.nav-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

.navbar.scrolled .nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.nav-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.375rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    align-items: center;
    justify-content: center;
}

.navbar.scrolled .nav-toggle {
    color: var(--color-gray-900);
    background: var(--color-gray-100);
    border-color: var(--color-gray-200);
}

/* ---------- Hero con Glass ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(194, 65, 12, 0.82)),
                url('../images/hero-restaurante.jpg') center/cover no-repeat;
    padding-top: 100px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    color: var(--color-accent);
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-title span {
    background: linear-gradient(135deg, #FDBA74, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-stats-source {
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-align: center;
}

.hero-buttons + .hero-stats-source {
    margin-top: 1.5rem;
}

.hero-stats + .hero-buttons {
    margin-top: 2.25rem;
}

/* ---------- Distribuidor ---------- */
.distribuidor {
    background: transparent;
}

.distribuidor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.distribuidor-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.distribuidor-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);
}

.distribuidor-image:hover img {
    transform: scale(1.02);
}

.distribuidor-producto {
    background: transparent;
}

.distribuidor-producto img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
}

/* ---------- Showcase de Producto ---------- */
.product-showcase {
    position: relative;
    padding: 6.5rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #f8fafc 100%);
}

.product-showcase::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -220px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 70%);
    pointer-events: none;
}

.product-showcase-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.product-showcase-content h2 {
    max-width: 560px;
    margin: 0.75rem 0 1.15rem;
    font-size: clamp(2rem, 3.4vw, 3rem);
    color: var(--color-gray-900);
}

.product-showcase-content > p {
    max-width: 510px;
    margin-bottom: 2rem;
    color: var(--color-gray-600);
}

.product-tabs {
    display: grid;
    gap: 0.75rem;
    max-width: 460px;
}

.product-tab {
    display: grid;
    grid-template-columns: 2.65rem 1fr;
    column-gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    color: var(--color-gray-700);
    text-align: left;
    transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.product-tab i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.product-tab span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.product-tab small {
    color: var(--color-gray-500);
    font-size: 0.78rem;
}

.product-tab:hover,
.product-tab.active {
    border-color: rgba(249, 115, 22, 0.55);
    background: var(--color-white);
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.1);
}

.product-tab:hover {
    transform: translateX(4px);
}

.product-tab.active i {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.product-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding: 0.7rem 0;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.product-showcase-cta i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.product-showcase-cta:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.product-showcase-cta:hover i {
    transform: translateX(4px);
}

.product-showcase-cta-mobile {
    display: none;
}

.product-stage {
    min-height: 470px;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.75));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.product-panel {
    width: 100%;
    display: grid;
    place-items: center;
}

.product-panel[hidden] {
    display: none;
}

.product-panel.active {
    animation: productReveal 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.product-panel img {
    display: block;
    width: 100%;
    max-width: 500px;
    max-height: 390px;
    object-fit: contain;
}

.product-panel[data-product-panel="movil"] img {
    max-height: 400px;
}

.product-panel p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--color-gray-600);
    font-size: 0.875rem;
    text-align: center;
}

.product-panel p i {
    color: var(--color-success);
}

@keyframes productReveal {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Profundidad sutil para imágenes de producto */
.distribuidor-producto,
.beneficios-image,
.product-stage {
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.distribuidor-producto::after,
.beneficios-image::after,
.product-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 38%, rgba(249, 115, 22, 0.12));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.product-stage {
    position: relative;
    overflow: hidden;
}

.product-panel {
    position: relative;
    z-index: 1;
}

.beneficios-image img {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.distribuidor-badge {
    z-index: 2;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .distribuidor-producto:hover,
    .beneficios-image:hover {
        transform: perspective(1200px) rotateY(-1.2deg) rotateX(0.7deg) translateY(-5px);
        box-shadow: 0 28px 54px rgba(194, 65, 12, 0.18);
    }

    .product-stage:hover {
        transform: perspective(1200px) rotateY(1.2deg) rotateX(0.7deg) translateY(-5px);
        box-shadow: 0 30px 64px rgba(194, 65, 12, 0.16);
    }

    .distribuidor-producto:hover::after,
    .beneficios-image:hover::after,
    .product-stage:hover::after {
        opacity: 1;
    }

    .beneficios-image:hover img {
        transform: scale(1.025);
    }
}

.distribuidor-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    color: var(--color-gray-900);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-lg);
}

.distribuidor-badge i {
    color: var(--color-primary);
}

.distribuidor-content h2 {
    margin-bottom: 1.5rem;
}

.distribuidor-content p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.distribuidor-list {
    margin-top: 2rem;
}

.distribuidor-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
    color: var(--color-gray-600);
    font-size: 0.9375rem;
}

.distribuidor-list i {
    color: var(--color-success);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* ---------- Características ---------- */
.caracteristicas {
    background: #FAFAFA;
    position: relative;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.caracteristica-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.caracteristica-card::before {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.caracteristica-card:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
    border-color: #D1D5DB;
}

.caracteristica-card:hover::before {
    width: 2.75rem;
}

.caracteristica-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.caracteristica-icon i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.caracteristica-card:hover .caracteristica-icon {
    background: linear-gradient(135deg, #FFEDD5, #FED7AA);
    animation: featureIconPulse 0.62s ease-out both;
}

@media (max-width: 768px) {
    .caracteristica-card.feature-scroll-active {
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
        border-color: #D1D5DB;
    }

    .caracteristica-card.feature-scroll-active::before {
        width: 2.75rem;
    }

    .caracteristica-card.feature-scroll-active .caracteristica-icon {
        background: linear-gradient(135deg, #FFEDD5, #FED7AA);
        animation: featureIconPulse 0.62s ease-out both;
    }
}

@keyframes featureIconPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
    48% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(249, 115, 22, 0.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.caracteristica-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #111827;
}

.caracteristica-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: #4B5563;
}

.caracteristicas:not(.features-expanded) .caracteristica-extra {
    display: none;
}

.features-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.features-toggle i {
    transition: transform var(--transition-fast);
}

.caracteristicas.features-expanded .features-toggle i {
    transform: rotate(180deg);
}

/* ---------- Beneficios ---------- */
.beneficios {
    background: transparent;
}

/* ---------- Flujo Operativo ---------- */
.operacion-flow {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    color: var(--color-gray-300);
    background: radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.22), transparent 30%), linear-gradient(135deg, #0f172a, #172033 58%, #111827);
}

.operacion-flow::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
    pointer-events: none;
}

.operacion-flow .container {
    position: relative;
}

.operacion-flow-header {
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.operacion-flow-header h2 {
    margin: 0.75rem 0 1rem;
    color: var(--color-white);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.operacion-flow-header p {
    color: var(--color-gray-400);
}

.flow-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.flow-rail {
    position: absolute;
    z-index: 1;
    top: 2.25rem;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.18);
}

.flow-progress {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.72);
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}

.flow-signal {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.26), 0 0 28px rgba(251, 191, 36, 1);
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: flowSignal 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s infinite;
    will-change: left, top, opacity, transform;
}

.flow-step {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    opacity: 0.35;
    text-align: center;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.flow-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #1e293b;
    color: var(--color-gray-300);
    font-size: 1.35rem;
    box-shadow: 0 0 0 8px rgba(15, 23, 42, 0.94);
    transition: color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.flow-step span {
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.flow-step h3 {
    margin: 0.25rem 0 0.35rem;
    color: var(--color-white);
    font-size: 1.05rem;
}

.flow-step p {
    max-width: 210px;
    color: var(--color-gray-400);
    font-size: 0.875rem;
    line-height: 1.55;
}

.operacion-flow.visible .flow-progress {
    width: 100%;
}

.operacion-flow.visible .flow-step {
    opacity: 1;
    transform: translateY(0);
}

.operacion-flow.visible .flow-step:nth-of-type(2) { transition-delay: 0.12s; }
.operacion-flow.visible .flow-step:nth-of-type(3) { transition-delay: 0.24s; }
.operacion-flow.visible .flow-step:nth-of-type(4) { transition-delay: 0.36s; }

.operacion-flow.visible .flow-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 0 0 8px rgba(15, 23, 42, 0.94), 0 0 26px rgba(249, 115, 22, 0.34);
}

@keyframes flowSignal {
    0% { left: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.65); }
    8% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.beneficios-content {
    order: 2;
}

.beneficios-image {
    order: 1;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.beneficios-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.beneficio-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.beneficio-item:hover {
    transform: translateX(4px);
    background: var(--glass-bg-strong);
    box-shadow: var(--glass-shadow);
}

.beneficio-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.beneficio-icon i {
    color: var(--color-white);
    font-size: 1rem;
}

.beneficio-text h4 {
    margin-bottom: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
}

.beneficio-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ---------- Negocios Glass ---------- */
.negocios {
    background: linear-gradient(-45deg, #1a0f00, #3d1f00, #7c2d12, #c2410c, #7c2d12, #3d1f00, #1a0f00);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

/* Patrón de puntos animado */
.negocios .dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: dotScroll 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dotScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(32px, 32px); }
}

/* Orbes flotantes */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.6) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: 40%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 40px) scale(0.9); }
    75% { transform: translate(20px, -50px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.15); }
    66% { transform: translate(30px, -40px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 20px) scale(1.2); }
}

.negocios .section-title {
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.negocios .section-subtitle {
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.negocios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.negocio-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.25rem 1.25rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.negocio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.negocio-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.negocio-card:hover::before {
    transform: scaleX(1);
}

.negocio-card i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.negocio-card:hover i {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border-color: transparent;
    transform: scale(1.1);
}

.negocio-card h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.negocio-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

/* ---------- Clientes: loop de logos ---------- */
.clientes-loop {
    overflow: hidden;
    padding: 2.25rem 0 9rem;
    background: transparent;
}

.clientes-loop-intro {
    margin-bottom: 1rem;
}

.clientes-marquee {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    padding: 1rem 1.5rem;
}

.clientes-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.clientes-marquee-set {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0 0.75rem;
    list-style: none;
}

.cliente-logo {
    display: grid;
    flex: 0 0 120px;
    height: 100px;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.25rem 1rem;
    background: var(--color-white);
    border: 1px solid #ffe5de;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(255, 82, 39, 0.26);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cliente-logo::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    background: #ff522c;
    mix-blend-mode: color;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.cliente-logo img {
    display: block;
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: 82px;
    max-height: 58px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.cliente-logo:hover {
    z-index: 1;
    box-shadow: 0 5px 18px rgba(255, 82, 39, 0.34);
}

.cliente-logo:hover::after {
    opacity: 0.9;
}

.cliente-logo:hover img {
    animation: cliente-logo-tada 0.85s both;
}

@keyframes cliente-logo-tada {
    from,
    to {
        transform: scale3d(1, 1, 1);
    }

    10%,
    20% {
        transform: scale3d(0.92, 0.92, 0.92) rotate(-3deg);
    }

    30%,
    50%,
    70%,
    90% {
        transform: scale3d(1.08, 1.08, 1.08) rotate(3deg);
    }

    40%,
    60%,
    80% {
        transform: scale3d(1.08, 1.08, 1.08) rotate(-3deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clientes-marquee-track {
        transition: none !important;
    }

    .cliente-logo:hover img {
        animation: none;
    }
}

@media (max-width: 480px) {
    .clientes-loop {
        padding: 1.75rem 0 9rem;
    }

    .clientes-marquee {
        padding: 1rem;
    }

    .clientes-marquee-set {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .cliente-logo {
        flex-basis: 112px;
        height: 92px;
        padding: 1rem;
    }

    .cliente-logo img {
        max-width: 74px;
        max-height: 52px;
    }
}

/* ---------- Testimonios Carrusel ---------- */
.testimonios {
    background: transparent;
}

.testimonios-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.testimonios-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

.testimonio-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

.testimonio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    transition: all var(--transition-base);
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--color-gray-700);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 16px;
    margin-top: 2rem;
    overflow: visible;
}

.carousel-dot {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
    transform-origin: center;
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--color-primary-light);
}

.carousel-pause {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem auto 0;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--color-white);
}

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

.carousel-pause[aria-pressed="true"] {
    border-color: rgba(249, 115, 22, 0.38);
    color: var(--color-primary-dark);
    background: #fff7ed;
}

.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
    background: var(--glass-bg-strong);
}

.testimonio-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonio-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.15;
}

.testimonio-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: var(--color-gray-600);
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonio-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.testimonio-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: transparent;
    border: 2px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonio-avatar-img.avatar-contain {
    object-fit: contain;
    padding: 3px;
}

.testimonio-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
    font-weight: 600;
}

.testimonio-info span {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* ---------- Slider Testimonios ---------- */

.slider-indicators {
    display: none;
}

/* ---------- Planes Glass ---------- */
.planes {
    background: transparent;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.planes-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
}

.plan-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-lg);
    background: var(--glass-bg-strong);
}

.plan-card.featured {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.3);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.plan-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.plan-icon i {
    font-size: 1.375rem;
    color: var(--color-primary);
}

.plan-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.plan-price-year {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-bottom: 1.25rem;
}

.plan-price-year strong {
    color: var(--color-gray-700);
    font-weight: 600;
}

.plan-save {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.plan-card.featured .plan-save {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray-500);
}

.plan-description {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 1.5rem;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    border-bottom: 1px solid var(--color-gray-200);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--color-success);
    font-size: 0.8125rem;
}

.plan-features i.fa-times {
    color: var(--color-gray-300);
}

/* ---------- Contacto Glass ---------- */
.contacto {
    background: transparent;
    position: relative;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "intro form"
        "details form";
    column-gap: 4rem;
    row-gap: 0;
    align-items: start;
}

.contacto-info {
    grid-area: intro;
}

.contacto-details {
    grid-area: details;
    margin-top: 1.5rem;
}

.contacto-info h2 {
    margin-bottom: 1.25rem;
}

.contacto-intro > p {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contacto-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item-icon i {
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* Sistema visual para íconos funcionales */
.product-tab i,
.caracteristica-icon,
.beneficio-icon,
.plan-icon,
.contacto-item-icon {
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.carousel-btn i {
    transition: transform 0.22s ease;
}

@media (hover: hover) {
    .product-tab:hover i {
        transform: rotate(-4deg) scale(1.06);
        box-shadow: 0 7px 16px rgba(249, 115, 22, 0.16);
    }

    .beneficio-item:hover .beneficio-icon,
    .plan-card:hover .plan-icon,
    .contacto-item:hover .contacto-item-icon {
        transform: translateY(-2px) scale(1.06);
        border-color: rgba(249, 115, 22, 0.28);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16);
    }

    .carousel-prev:hover i {
        transform: translateX(-2px);
    }

    .carousel-next:hover i {
        transform: translateX(2px);
    }
}

.contacto-item-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contacto-item-text p {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
}

.contacto-social {
    display: flex;
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.contacto-social a {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    color: var(--color-gray-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
}

.contacto-social a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
    border-color: transparent;
}

/* Formulario Glass */
.contacto-form {
    grid-area: form;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-gray-800);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.form-submit i {
    transition: transform var(--transition-base);
}

.form-submit:hover i {
    transform: translateX(4px);
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-consent {
    margin-top: 1.25rem;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0;
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.form-consent input {
    width: auto;
    margin-top: 0.35rem;
    accent-color: var(--color-primary);
}

.form-consent a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.form-recaptcha {
    margin-top: 1.25rem;
}

.recaptcha-notice {
    margin: 0;
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

/* ---------- Footer Minimalista ---------- */
.footer {
    background: linear-gradient(135deg, var(--color-gray-900), #1a1a2e);
    color: var(--color-gray-400);
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: var(--color-gray-500);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-gray-500);
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--color-gray-500);
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--color-gray-600);
}

.footer-bottom a {
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* ---------- Footer: distribución compacta ---------- */
.footer {
    padding: 4rem 0 2rem;
}

.footer .container {
    max-width: 1280px;
}

.footer-grid {
    grid-template-columns: minmax(240px, 1.35fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(300px, 1.45fr);
    gap: clamp(2rem, 3.5vw, 4rem);
    margin-bottom: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.25rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.7rem;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0.85rem;
}

.footer-contact li {
    margin-bottom: 0;
}

.footer-contact li:nth-child(n + 6) {
    grid-column: 1 / -1;
}

.footer-bottom {
    padding-top: 1.75rem;
}

.footer-grid.footer-legacy,
.footer-bottom.footer-legacy {
    display: none;
}

.footer-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
    padding: 0.5rem 0 3.25rem;
}

.footer-showcase-brand {
    max-width: 520px;
}

.footer-showcase-brand .footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-showcase h3 {
    color: var(--color-white);
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    margin-bottom: 0.9rem;
}

.footer-showcase-brand > p:last-of-type {
    max-width: 470px;
    color: var(--color-gray-400);
    line-height: 1.7;
}

.footer-kicker {
    margin-bottom: 0.65rem;
    color: var(--color-primary) !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--color-white);
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-showcase-contact {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: clamp(2rem, 4vw, 4rem);
}

.footer-primary-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0 0.4rem;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
}

.footer-primary-phone i {
    color: var(--color-primary);
    font-size: 0.9em;
}

.footer-primary-phone:hover {
    color: var(--color-primary);
}

.footer-hours {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-contact-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-gray-300);
    font-size: 0.875rem;
}

.footer-contact-actions a:hover {
    border-color: var(--color-primary);
    color: var(--color-white);
}

.footer-details {
    margin-top: 1.4rem;
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer-details summary {
    cursor: pointer;
    color: var(--color-gray-300);
}

.footer-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
}

.footer-detail-links a {
    color: var(--color-gray-500);
}

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

.footer-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-nav,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.footer-nav a,
.footer-legal a,
.footer-legal span {
    color: var(--color-gray-500);
    font-size: 0.8125rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--color-white);
}

/* Footer discreto: información útil sin competir con el contenido principal */
.footer {
    padding: 2.5rem 0 1.5rem;
}

.footer-showcase {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    padding: 0 0 1.5rem;
}

.footer-showcase-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: none;
}

.footer-showcase-brand .footer-logo {
    flex: 0 0 auto;
    margin: 0;
}

.footer-showcase-brand .footer-logo-img {
    height: 56px;
}

.footer-showcase h3,
.footer-kicker,
.footer-social,
.footer-hours,
.footer-details {
    display: none;
}

.footer-showcase-brand > p:last-of-type {
    max-width: 600px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-showcase-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 0;
    padding: 0;
    white-space: nowrap;
}

.footer-primary-phone {
    margin: 0;
    color: var(--color-gray-300);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-contact-actions {
    gap: 1rem;
    margin: 0;
}

.footer-contact-actions a {
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--color-gray-400);
}

.footer-lower {
    padding-top: 1rem;
}

/* Ajuste de escala: un cierre presente, pero sereno */
.footer {
    padding: 3.25rem 0 1.75rem;
}

.footer-showcase {
    padding-bottom: 2.25rem;
}

.footer-showcase-brand .footer-logo-img {
    height: 66px;
}

.footer-showcase-brand > p:last-of-type {
    font-size: 0.9375rem;
}

.footer-showcase-contact {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.65rem 1.25rem;
}

.footer-showcase-contact h3 {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 0.25rem;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 500;
}

.footer-primary-phone {
    font-size: 1.0625rem;
    color: var(--color-white);
}

.footer-lower {
    padding-top: 1.25rem;
}

/* Footer de navegación: estructura de cuatro columnas */
.footer {
    padding: 3.75rem 0 1.6rem;
}

.footer-grid.footer-legacy {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) minmax(145px, 0.8fr) minmax(180px, 1fr) minmax(140px, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 3.25rem;
}

.footer-bottom.footer-legacy {
    display: flex;
    padding-top: 1.5rem;
}

.footer-showcase,
.footer-lower {
    display: none;
}

.footer-grid.footer-legacy .footer-brand {
    padding-right: clamp(1.75rem, 3vw, 3.5rem);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid.footer-legacy .footer-logo-img {
    height: 68px;
}

.footer-grid.footer-legacy .footer-brand p {
    max-width: 320px;
    font-size: 0.875rem;
    line-height: 1.65;
}

.footer-grid.footer-legacy .footer-column h4 {
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.footer-grid.footer-legacy .footer-links,
.footer-grid.footer-legacy .footer-help-links {
    display: block;
}

.footer-grid.footer-legacy .footer-links li {
    margin-bottom: 0.6rem;
}

.footer-grid.footer-legacy .footer-links a {
    font-size: 0.875rem;
}

.footer-grid.footer-legacy .footer-contact {
    display: none;
}

.footer-brand-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-contact a {
    color: var(--color-gray-300);
    font-size: 0.8125rem;
    font-weight: 600;
}

.footer-brand-contact i {
    color: #60a5fa;
    margin-right: 0.35rem;
}

.footer-brand-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer-brand-social a {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-gray-300);
}

.footer-brand-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1a0a00);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: auto;
    height: 56px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    animation: preloaderBounce 1.2s ease-in-out infinite;
}

.preloader-subtitle {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: preloaderFadeIn 0.6s ease 0.2s forwards;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.preloader-progress {
    width: 0%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    animation: preloaderProgress 2s ease-in-out forwards;
}

@keyframes preloaderBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

@keyframes preloaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ---------- PARALLAX HERO ---------- */
.hero {
    background-color: #0f172a;
    background-attachment: fixed;
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--color-success);
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon i {
    color: var(--color-success);
    font-size: 1rem;
}

.toast-error {
    border-left-color: var(--color-error);
}

.toast-error .toast-icon {
    background: #fee2e2;
}

.toast-error .toast-icon i {
    color: var(--color-error);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.toast-close {
    color: var(--color-gray-400);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem;
}

.toast-close:hover {
    color: var(--color-gray-700);
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ---------- Animaciones ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate {
    opacity: 0;
}

.animate.visible {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---------- BOTÓN WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--color-white);
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsappPulse 2.6s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    animation: none;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: none !important;
}

.whatsapp-float:focus,
.whatsapp-float:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18), 0 0 0 0 rgba(37, 211, 102, 0); }
    50% { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

.whatsapp-float-mobile {
    display: none;
}

/* En móvil el control de escritorio nunca llega a formar parte de la interfaz. */
.whatsapp-float-desktop {
    display: none !important;
}

@media (min-width: 769px) {
    .whatsapp-float-desktop {
        display: flex !important;
        overflow: visible;
        contain: none;
        -webkit-clip-path: none;
        clip-path: none;
    }

    .whatsapp-tooltip {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (max-width: 768px) {
    .whatsapp-float-mobile {
        position: fixed;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 1000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-height: 48px;
        padding: 0 0.9rem;
        background: #16A66A;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 999px;
        color: var(--color-white);
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .whatsapp-float-mobile i {
        font-size: 1.35rem;
    }

    .whatsapp-float-mobile:active {
        transform: scale(0.96);
        background: #128C5C;
    }

    .whatsapp-float-mobile:focus-visible {
        outline: 3px solid rgba(22, 166, 106, 0.3);
        outline-offset: 3px;
    }
}

.whatsapp-tooltip {
    position: absolute;
    top: 50%;
    right: 70px;
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translate(10px, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--color-gray-900);
    transform: translateY(-50%) rotate(45deg);
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip,
.whatsapp-float.is-message-visible .whatsapp-tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}

/* ---------- NAVBAR MICROINTERACCIONES ---------- */
.nav-logo {
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.nav-logo-dark {
    display: none;
}

.navbar.scrolled .nav-logo-light {
    display: none;
}

.navbar.scrolled .nav-logo-dark {
    display: block;
}
@media (max-width: 1024px) {
    .caracteristicas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .negocios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .planes-grid,
    .planes-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .plan-card.featured {
        transform: none;
        order: -1;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-6px);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .testimonio-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--glass-bg-strong);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-open .whatsapp-float,
    .mobile-menu-open .whatsapp-float-mobile {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
        animation: none;
    }
    
    .nav-link {
        color: var(--color-gray-700);
        font-size: 1.125rem;
    }
    
    .nav-link:hover {
        color: var(--color-primary);
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .navbar-container {
        gap: 0.65rem;
        padding: 0 1rem;
    }

    .nav-logo {
        padding-left: 0;
    }

    .nav-logo-img {
        height: 34px;
    }
    
    .nav-cta {
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
        color: var(--color-white);
        text-align: center;
        width: auto;
        flex: 0 0 auto;
        margin-left: 0;
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .navbar-container > .nav-cta {
        display: none;
    }

    .nav-mobile-cta {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-mobile-cta .nav-cta {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu.active ~ .nav-toggle {
        color: var(--color-primary-dark);
        background: var(--color-white);
        border-color: rgba(249, 115, 22, 0.32);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    }
    
    .distribuidor-grid,
    .beneficios-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "form"
            "details";
        gap: 3rem;
    }
    
    .distribuidor-image,
    .beneficios-image {
        order: -1;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonio-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .testimonios-carousel {
        padding: 0 2.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        z-index: 20;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
    
    .testimonio-card {
        max-width: 100%;
    }
    
    .negocios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat {
        padding: 1rem 1.25rem;
        min-width: 120px;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        min-height: auto;
        padding-bottom: 3.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }

    .features-toggle {
        max-width: 100%;
        padding: 0.8rem 1.25rem;
        white-space: normal;
        line-height: 1.35;
    }

    .features-toggle i {
        flex: 0 0 auto;
    }
    
    .negocios-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 420px;
        margin: 3rem auto 0;
        gap: 0.85rem;
    }
    
    .hero-stat {
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 1.1rem 0.75rem;
    }

    .hero-stat-number {
        font-size: 1.7rem;
    }

    .hero-stat-label {
        margin-top: 0.35rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }
    
    .contacto-form {
        padding: 1.75rem;
    }
    
    .whatsapp-float-desktop {
        display: none;
    }

    .whatsapp-float-mobile {
        position: fixed;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 1000;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-height: 48px;
        padding: 0 0.9rem;
        background: #16A66A;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 999px;
        color: var(--color-white);
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .whatsapp-float-mobile i {
        font-size: 1.35rem;
    }

    .whatsapp-float-mobile:active {
        transform: scale(0.96);
        background: #128C5C;
    }

    .whatsapp-float-mobile:focus-visible {
        outline: 3px solid rgba(22, 166, 106, 0.3);
        outline-offset: 3px;
    }
    
    .whatsapp-tooltip {
        display: block;
        top: auto;
        right: 0;
        bottom: calc(100% + 0.8rem);
        max-width: min(230px, calc(100vw - 2rem));
        padding: 0.45rem 0.7rem;
        font-size: 0.75rem;
        text-align: center;
        white-space: normal;
        transform: translateY(10px);
    }

    .whatsapp-tooltip::after {
        top: auto;
        right: 1.1rem;
        bottom: -5px;
        transform: rotate(45deg);
    }

    .whatsapp-float:hover .whatsapp-tooltip,
    .whatsapp-float:focus-visible .whatsapp-tooltip,
    .whatsapp-float.is-message-visible .whatsapp-tooltip {
        transform: translateY(0);
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    .footer-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .footer-showcase-brand {
        align-items: flex-start;
    }

    .footer-showcase-contact {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        border-left: 0;
        padding: 2.5rem 0 0;
        flex-wrap: wrap;
        white-space: normal;
    }

    .footer-lower {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-contact li:nth-child(n + 6) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .footer-grid.footer-legacy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 2rem;
    }

    .footer-grid.footer-legacy .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 480px) {
    .footer-grid.footer-legacy {
        grid-template-columns: 1fr;
    }

    .footer-grid.footer-legacy .footer-brand {
        grid-column: auto;
    }

    .footer-bottom.footer-legacy {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .operacion-flow {
        padding: 4.5rem 0;
    }

    .operacion-flow-header {
        margin-bottom: 2.5rem;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-left: 0.25rem;
    }

    .flow-rail {
        top: 2.25rem;
        bottom: 2.25rem;
        left: 2.45rem;
        width: 2px;
        height: auto;
    }

    .flow-progress {
        width: 100%;
        height: 0;
        transition: height 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
    }

    .operacion-flow.visible .flow-progress {
        width: 100%;
        height: 100%;
    }

    .flow-signal {
        top: 0;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .flow-signal {
        animation-name: flowSignalVertical;
    }

    .flow-step {
        grid-template-columns: 4.5rem 1fr;
        justify-items: start;
        gap: 1rem;
        text-align: left;
    }

    .flow-step p {
        max-width: none;
    }

    .product-showcase {
        padding: 4.5rem 0;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-showcase-content h2 {
        font-size: 2rem;
    }

    .product-stage {
        min-height: 380px;
        padding: 1rem;
    }

    .product-showcase-cta-desktop {
        display: none;
    }

    .product-showcase-cta-mobile {
        display: inline-flex;
        margin-top: 1.5rem;
    }

    .product-panel p {
        width: fit-content;
        max-width: calc(100% - 1rem);
        margin-right: auto;
        margin-left: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .product-panel p i {
        margin-top: 0.16em;
    }

    .product-panel p span {
        min-width: 0;
        text-align: left;
    }
}

@keyframes flowSignalVertical {
    0% { top: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.65); }
    8% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

@media (max-width: 480px) {
    .product-tab {
        grid-template-columns: 2.4rem 1fr;
        padding: 0.9rem;
    }

    .product-stage {
        min-height: 310px;
    }

    .product-panel img {
        max-height: 290px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
