/* ===========================================
   CODAXIS - Premium Modern Styles v2
   =========================================== */

:root {
    --color-bg: #060912;
    --color-bg-2: #0b1226;
    --color-surface: #0f1830;
    --color-surface-2: #131e3d;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.15);
    --color-text: #e8edf7;
    --color-text-dim: #9aa6c2;
    --color-muted: #6b7693;

    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent: #60a5fa;
    --color-blue: #60a5fa;
    --color-navy: #1e3a8a;

    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 50%, #1e3a8a 100%);
    --gradient-text: linear-gradient(135deg, #93c5fd 0%, #3b82f6 40%, #60a5fa 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    --gradient-glow-green: radial-gradient(circle, rgba(59,130,246,0.55), transparent 65%);
    --gradient-glow-blue: radial-gradient(circle, rgba(96,165,250,0.4), transparent 65%);

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 10px 40px rgba(59, 130, 246, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1240px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 481px) {
    .container {
        padding-left: max(22px, env(safe-area-inset-left, 0px));
        padding-right: max(22px, env(safe-area-inset-right, 0px));
    }
}

@media (min-width: 1025px) {
    .container {
        padding-left: max(28px, env(safe-area-inset-left, 0px));
        padding-right: max(28px, env(safe-area-inset-right, 0px));
    }
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-light {
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-accent);
    margin-bottom: 18px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
}

/* ===========================================
   PRELOADER (animación cinematográfica)
   =========================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(800px circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%),
        var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-stage {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.trace-circle {
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    animation: traceDraw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

@keyframes traceDraw {
    to { stroke-dashoffset: 0; }
}

/* Cabeza de serpiente que orbita */
.snake-orbit {
    position: absolute;
    inset: 0;
    animation-name: snakeOrbit, snakeFade;
    animation-duration: 2.2s, 0.4s;
    animation-delay: 0.2s, 2.2s;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease-out;
    animation-fill-mode: forwards, forwards;
}

@keyframes snakeOrbit {
    0% { transform: rotate(0deg); opacity: 1; }
    100% { transform: rotate(360deg); opacity: 1; }
}

@keyframes snakeFade {
    to { opacity: 0; }
}

.snake-head {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    background: radial-gradient(circle, #dbeafe 0%, #93c5fd 40%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow:
        0 0 12px rgba(110, 231, 183, 0.95),
        0 0 28px rgba(59, 130, 246, 0.85),
        0 0 60px rgba(59, 130, 246, 0.6);
}

.snake-head::after {
    /* pequeño brillo de la "cabeza" */
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.9;
}

.snake-trail {
    /* Estela que sigue a la cabeza, tangente al círculo */
    position: absolute;
    top: 50%;
    right: 100%;
    width: 70px;
    height: 4px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.4) 30%,
        rgba(110, 231, 183, 0.85) 80%,
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: 4px;
    filter: blur(1.5px);
}

/* Logo que aparece dentro al completarse el círculo */
.reveal-logo {
    position: relative;
    width: 60%;
    z-index: 2;
    opacity: 0;
    transform: scale(0.4);
    border-radius: 18px;
    filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.7));
    animation: revealLogo 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.1s forwards;
}

@keyframes revealLogo {
    0%   { opacity: 0; transform: scale(0.4) rotate(-30deg); }
    60%  { opacity: 1; transform: scale(1.1) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Flash al cerrarse el círculo */
.reveal-flash {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 60%);
    opacity: 0;
    animation: flashBurst 0.6s ease-out 2.0s forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes flashBurst {
    0%   { opacity: 0; transform: scale(0.5); }
    40%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

/* Texto CODAXIS con cada letra apareciendo */
.preloader-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    margin-left: 0.45em;
    display: flex;
}

.preloader-text span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: letterIn 0.5s ease forwards;
}

.preloader-text span:nth-child(1) { animation-delay: 2.4s; }
.preloader-text span:nth-child(2) { animation-delay: 2.5s; }
.preloader-text span:nth-child(3) { animation-delay: 2.6s; }
.preloader-text span:nth-child(4) { animation-delay: 2.7s; }
.preloader-text span:nth-child(5) { animation-delay: 2.8s; }
.preloader-text span:nth-child(6) { animation-delay: 2.9s; }
.preloader-text span:nth-child(7) { animation-delay: 3.0s; }

@keyframes letterIn {
    to { opacity: 1; transform: translateY(0); }
}

.preloader-sub {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    opacity: 0;
    animation: subIn 0.6s ease 3.0s forwards;
}

@keyframes subIn {
    to { opacity: 1; }
}

/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: max(16px, env(safe-area-inset-top, 0px)) 0 16px;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: max(10px, env(safe-area-inset-top, 0px)) 0 10px;
    background: rgba(6, 9, 18, 0.85);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

/* Marca en menú: texto CODAXIS | otros bloques pueden usar .logo-icon */
.logo-lockup--wordmark {
    gap: 0;
}

.logo-wordmark {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(90deg, #f8fafc 0%, #e0f2fe 22%, #7dd3fc 55%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition:
        filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar .nav-logo .logo-wordmark {
    font-size: clamp(1.2rem, 3.2vw, 1.55rem);
}

.navbar .nav-logo:hover .logo-wordmark {
    filter: brightness(1.15) saturate(1.08);
    transform: scale(1.02);
}

.navbar.scrolled .nav-logo .logo-wordmark {
    font-size: 1.22rem;
}

/* Marca CODAXIS: emblema circular (Nosotros, pie, toast) */
.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.logo-lockup--icon {
    gap: 0;
}

.logo-icon {
    display: block;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 10px 32px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(59, 130, 246, 0.28);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease,
        box-shadow 0.4s ease;
}

.navbar .nav-logo {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.navbar .nav-logo:hover {
    transform: translateY(-1px);
}

.logo-lockup--footer .logo-wordmark {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
}

.footer-brand .logo-lockup:hover .logo-wordmark {
    filter: brightness(1.12);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--color-text-dim);
    border-radius: 100px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    margin-left: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin-right: -4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================
   HERO
   =========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 130px 0 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-bg);
}

/* Mesh gradients animados */
.mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.55;
    animation: meshFloat 18s ease-in-out infinite;
    will-change: transform;
}

.mesh-1 {
    width: 700px;
    height: 700px;
    background: #3b82f6;
    top: -200px;
    right: -100px;
}
.mesh-2 {
    width: 800px;
    height: 800px;
    background: #1e3a8a;
    bottom: -300px;
    left: -200px;
    animation-delay: -6s;
    animation-duration: 22s;
}
.mesh-3 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    opacity: 0.25;
    animation-delay: -12s;
    animation-duration: 26s;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 231, 183, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 183, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: particleRise linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) scale(1.4); opacity: 0; }
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.hero-title {
    font-size: clamp(1.85rem, 5.5vw + 0.5rem, 5rem);
    font-weight: 700;
    margin-bottom: 26px;
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.hero-title span {
    display: block;
}

.hero-desc {
    font-size: clamp(0.98rem, 2.5vw, 1.15rem);
    color: var(--color-text-dim);
    max-width: 580px;
    margin-bottom: 38px;
}

.hero-desc strong { color: var(--color-text); font-weight: 600; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-sm { font-size: 1.4rem; opacity: 0.85; }

.stat span {
    color: var(--color-text-dim);
    font-size: 0.82rem;
    line-height: 1.3;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--color-border-strong), transparent);
}

/* ===========================================
   HERO SHOWCASE (visual lateral)
   =========================================== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase {
    position: relative;
    width: min(540px, 90vw);
    aspect-ratio: 1;
}

.showcase-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: dashFlow 6s linear infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -40; }
}

/* Núcleo central */
.showcase-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44%;
    aspect-ratio: 1;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-aura {
    position: absolute;
    inset: -30%;
    background: var(--gradient-glow-green);
    filter: blur(20px);
    animation: pulseAura 3.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulseAura {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.18); opacity: 1; }
}

.core-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(59, 130, 246, 0.4);
    animation: spin 25s linear infinite;
}

.core-ring::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--color-primary);
    transform: translateX(-50%);
}

.core-ring-2 {
    inset: 14%;
    border-color: rgba(96, 165, 250, 0.4);
    animation-direction: reverse;
    animation-duration: 18s;
}

.core-ring-2::before {
    background: var(--color-blue);
    box-shadow: 0 0 18px var(--color-blue);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.core-glass {
    position: relative;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%,
        rgba(255,255,255,0.06),
        rgba(11,18,38,0.85) 60%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 0 0 1px rgba(59,130,246,0.18),
        inset 0 0 40px rgba(59,130,246,0.15),
        0 30px 80px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: floatY 5s ease-in-out infinite;
}

.core-logo {
    width: 90%;
    border-radius: 0;
    filter:
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.35))
        drop-shadow(0 8px 28px rgba(30, 58, 138, 0.55))
        drop-shadow(0 0 50px rgba(96, 165, 250, 0.45));
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cards flotantes */
.float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    background: rgba(15, 24, 48, 0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--color-border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: floatCard 6s ease-in-out infinite;
    transition: transform var(--transition), border-color var(--transition);
    min-width: 180px;
}

.float-card:hover {
    transform: scale(1.05) translateY(-3px) !important;
    border-color: rgba(59, 130, 246, 0.5);
}

.fc-1 { top: 6%; left: 0; animation-delay: 0s; }
.fc-2 { top: 6%; right: 0; animation-delay: -1.5s; }
.fc-3 { bottom: 6%; left: 0; animation-delay: -3s; }
.fc-4 { bottom: 6%; right: 0; animation-delay: -4.5s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.fc-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.fc-icon.medical { background: linear-gradient(135deg, #06b6d4, #1e3a8a); }
.fc-icon.clinic  { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.fc-icon.resto   { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.fc-icon.pos     { background: linear-gradient(135deg, #8b5cf6, #1e3a8a); }

.fc-info strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.fc-info span {
    display: block;
    font-size: 0.74rem;
    color: var(--color-text-dim);
    margin-top: 1px;
}

.fc-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    top: -5px;
    right: -5px;
    animation: pulseDot 2s infinite;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 30px;
    z-index: 2;
}

.scroll-down span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: translate(-50%, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(59, 130, 246, 0.55);
}

.btn-ghost {
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--color-primary-dark);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===========================================
   MARQUEE TECNOLOGÍAS
   =========================================== */
.marquee {
    overflow: hidden;
    padding: 32px 0;
    background: linear-gradient(180deg, transparent, rgba(15, 24, 48, 0.6), transparent);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.marquee-group {
    display: flex;
    gap: 50px;
    padding: 0 25px;
    flex-shrink: 0;
}

.marquee-group span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dim);
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    transition: color var(--transition);
    white-space: nowrap;
}

.marquee-group span i {
    font-size: 1.6rem;
    color: var(--color-accent);
    transition: color var(--transition);
}

.marquee-group span:hover { color: white; }
.marquee-group span:hover i { color: var(--color-blue); }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background:
        radial-gradient(800px circle at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
}

.section-desc {
    color: var(--color-text-dim);
    font-size: 1.08rem;
}

/* ===========================================
   SERVICES
   =========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.service-card {
    padding: 38px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.18), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 22px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: var(--gradient-primary);
    border-radius: 18px;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.service-card h3 {
    font-size: 1.32rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--color-text-dim);
    font-size: 0.96rem;
    position: relative;
    z-index: 1;
}

.service-arrow {
    position: absolute;
    top: 38px;
    right: 32px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    transition: all var(--transition);
    opacity: 0;
    transform: translateX(-10px);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===========================================
   PRODUCTS
   =========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.product-card {
    padding: 38px 32px 34px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.product-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    transition: opacity var(--transition);
    pointer-events: none;
}

.product-card[data-color="cyan"] .product-glow   { background: #06b6d4; }
.product-card[data-color="green"] .product-glow  { background: #3b82f6; }
.product-card[data-color="orange"] .product-glow { background: #f59e0b; }
.product-card[data-color="purple"] .product-glow { background: #8b5cf6; }

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.product-card[data-color="cyan"]::before   { background: linear-gradient(90deg, #06b6d4, #1e3a8a); }
.product-card[data-color="green"]::before  { background: linear-gradient(90deg, #3b82f6, #0ea5e9); }
.product-card[data-color="orange"]::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.product-card[data-color="purple"]::before { background: linear-gradient(90deg, #8b5cf6, #6366f1); }

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before { transform: scaleX(1); }
.product-card:hover .product-glow { opacity: 0.6; }

.product-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.product-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    background: inherit;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
}

.product-icon.medical { background: linear-gradient(135deg, #06b6d4, #1e3a8a); }
.product-icon.clinic  { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.product-icon.resto   { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.product-icon.pos     { background: linear-gradient(135deg, #8b5cf6, #1e3a8a); }

/* Logo de marca de producto (SMAI, etc) */
.product-icon.product-brand {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    padding: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-icon.product-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-icon.product-brand::after {
    inset: -10px;
    filter: blur(22px);
    opacity: 0.5;
}

.product-icon.smai::after { background: linear-gradient(135deg, #3b82f6, #ef4444); }

.product-icon.product-brand.orden-lista {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.product-icon.orden-lista::after {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.brand-tagline {
    font-style: italic;
    color: var(--color-accent) !important;
    font-size: 0.92rem !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    opacity: 0.85;
}

.product-head-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.has-brand h3 {
    font-size: 1rem;
    color: var(--color-text-dim);
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.has-brand h3::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--color-accent);
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 3px;
}

.product-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
}

.product-card h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.product-card > p {
    color: var(--color-text-dim);
    font-size: 0.94rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.product-features {
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

.product-features i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

/* ===========================================
   PROCESO
   =========================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.process-step {
    padding: 36px 28px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.85;
}

.step-icon {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--color-text-dim);
    font-size: 0.92rem;
}

/* ===========================================
   ABOUT
   =========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-nosotros {
    align-items: center;
    grid-template-columns: minmax(220px, 0.9fr) 1.15fr;
}

.about-nosotros-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
    cursor: pointer;
}

.about-logo-lockup {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-wordmark--nosotros {
    font-size: clamp(2.5rem, 7.5vw, 3.75rem);
    letter-spacing: 0.2em;
    text-align: center;
}

.about-nosotros-visual:hover .logo-wordmark--nosotros {
    filter: brightness(1.18) saturate(1.08);
    transform: scale(1.03);
}

.about-nosotros-body .section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin-bottom: 1.25rem;
}

.about-nosotros-body p {
    color: var(--color-text-dim);
    margin: 0 0 1.15rem;
    font-size: 1.02rem;
    line-height: 1.7;
}

.about-nosotros-body p:last-of-type {
    margin-bottom: 1.75rem;
}

.about-nosotros-body p strong {
    color: var(--color-text);
    font-weight: 600;
}

.about-text p {
    color: var(--color-text-dim);
    margin: 14px 0 24px;
    font-size: 1.02rem;
}

.about-text p strong { color: var(--color-text); }

.check-list {
    margin-bottom: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--color-text);
}

.check-list i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mini-card {
    padding: 26px 22px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.mini-card:nth-child(odd) { transform: translateY(20px); }

.mini-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
}

.mini-card:nth-child(odd):hover { transform: translateY(16px); }

.mini-card i {
    font-size: 1.7rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.mini-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.mini-card span {
    color: var(--color-text-dim);
    font-size: 0.88rem;
}

/* ===========================================
   TESTIMONIOS
   =========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px 28px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 28px;
    font-size: 5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(59, 130, 246, 0.2);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
}

.stars {
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 0.95rem;
    display: flex;
    gap: 3px;
}

.testimonial-card > p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    display: block;
    color: var(--color-text-dim);
    font-size: 0.82rem;
}

/* ===========================================
   CTA BANNER
   =========================================== */
.cta-banner {
    padding: 30px 0 100px;
}

.cta-inner {
    background: linear-gradient(
        135deg,
        #1d4ed8 0%,
        #2563eb 38%,
        #3b82f6 55%,
        #1e40af 100%
    );
    border-radius: var(--radius-xl);
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 56px);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.08),
        0 24px 48px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
}

.cta-shape.s1 {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
    background: rgba(255, 255, 255, 0.55);
    top: -18%;
    left: -8%;
    opacity: 0.45;
}

.cta-shape.s2 {
    width: min(380px, 70vw);
    height: min(380px, 70vw);
    background: #172554;
    bottom: -25%;
    right: -12%;
    opacity: 0.55;
}

.cta-shape.s3 {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    background: #93c5fd;
    top: 40%;
    right: 15%;
    opacity: 0.25;
    filter: blur(40px);
}

.cta-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.9) 1px,
        transparent 1px
    );
    background-size: 22px 22px;
}

.cta-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .cta-layout {
        grid-template-columns: minmax(160px, 0.95fr) minmax(260px, 1.15fr);
        gap: clamp(32px, 4vw, 56px);
        justify-items: stretch;
    }
}

.cta-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
}

@media (min-width: 768px) {
    .cta-visual {
        max-width: none;
        justify-content: center;
    }
}

.cta-orbit {
    position: absolute;
    width: min(240px, 58vw);
    height: min(240px, 58vw);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    animation: cta-orbit-spin 28s linear infinite;
}

.cta-orbit::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

@keyframes cta-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

.cta-icon-ring {
    position: relative;
    width: min(140px, 36vw);
    height: min(140px, 36vw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-size: clamp(2.5rem, 8vw, 3.25rem);
    color: white;
    animation: cta-float 5s ease-in-out infinite;
}

@keyframes cta-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cta-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 540px;
}

@media (min-width: 768px) {
    .cta-copy {
        text-align: left;
        align-items: flex-start;
        max-width: none;
    }
}

.cta-copy h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
    color: white;
    margin: 0 0 14px;
    line-height: 1.2;
    text-wrap: balance;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 34em;
}

.cta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 26px;
}

@media (min-width: 768px) {
    .cta-chips {
        justify-content: flex-start;
    }
}

.cta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.cta-chip i {
    font-size: 0.78rem;
    opacity: 0.95;
}

.btn-cta-glow {
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.15),
        0 0 0 0 rgba(255, 255, 255, 0.45);
    transition:
        transform var(--transition),
        box-shadow 0.35s ease;
}

.btn-cta-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.2),
        0 0 32px rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .cta-orbit,
    .cta-icon-ring {
        animation: none;
    }

    .btn-cta-glow:hover {
        transform: none;
    }
}

/* ===========================================
   CONTACTO
   =========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-info p {
    color: var(--color-text-dim);
    margin: 14px 0 32px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
}

.contact-list i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-list a, .contact-list span {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

.contact-list a:hover { color: var(--color-accent); }

.contact-form {
    padding: 40px 34px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(6, 9, 18, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(6, 9, 18, 0.85);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-accent);
    min-height: 22px;
}

/* ----- Confirmación de contacto (toast con logo) ----- */
.contact-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 9, 18, 0.76);
    background: color-mix(in srgb, var(--color-bg) 55%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.42s step-end;
}

.contact-success-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s step-start;
}

.contact-success-card {
    text-align: center;
    max-width: 400px;
    width: 100%;
    padding: 2.25rem 1.75rem 2.5rem;
    background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(96, 165, 250, 0.08);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    filter: blur(10px);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.48s ease,
        filter 0.55s ease;
}

.contact-success-overlay.is-visible .contact-success-card {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
}

.contact-success-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.1rem;
}

.contact-success-brand .logo-icon--toast {
    width: 76px;
    height: 76px;
    margin: 0 auto;
}

.contact-success-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.contact-success-text {
    color: var(--color-text-dim);
    font-size: 1rem;
    line-height: 1.55;
}

/* Salida tipo “puff”: se desvanece y se difumina */
.contact-success-overlay.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.55s cubic-bezier(0.45, 0, 0.85, 0.25),
        filter 0.55s ease,
        visibility 0.55s step-end;
    filter: blur(3px);
}

.contact-success-overlay.is-leaving .contact-success-card {
    transform: scale(0.82) translateY(36px);
    opacity: 0;
    filter: blur(16px);
    transition:
        transform 0.52s cubic-bezier(0.45, 0, 0.95, 0.1),
        opacity 0.45s cubic-bezier(0.45, 0, 1, 0.1),
        filter 0.5s ease;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: #03060f;
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: var(--color-text-dim);
    margin-top: 16px;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer ul li { padding: 6px 0; }

.footer ul a {
    color: var(--color-text-dim);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer ul a:hover { color: var(--color-accent); }

.social { display: flex; gap: 10px; }

.social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-dim);
    transition: all var(--transition);
}

.social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    padding: 26px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-muted);
    font-size: 0.88rem;
}

/* ===========================================
   WHATSAPP FLOATING
   =========================================== */
.whatsapp-float {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    right: max(24px, env(safe-area-inset-right, 0px));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    z-index: 999;
    animation: pulseRing 2.2s infinite;
    transition: transform var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1); }

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===========================================
   CURSOR GLOW
   =========================================== */
.cursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-glow.active { opacity: 1; }
}

/* ===========================================
   ANIMACIONES (reveal & AOS-like)
   =========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.preloader.hidden ~ * .reveal,
body.loaded .reveal {
    /* nothing - controlled by JS */
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-aos="fade-up"]    { transform: translateY(40px); }
[data-aos="fade-down"]  { transform: translateY(-30px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }

[data-aos].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes pulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.04); }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1100px) {
    .hero-container { grid-template-columns: 1fr; gap: clamp(40px, 6vw, 60px); text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .showcase { width: min(460px, min(80vw, 100% - 32px)); }
    .badge { margin-left: auto; margin-right: auto; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 50px); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 40px); }

    .services-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

/* Tablet + móvil: navegación tipo hamburguesa (evita enlaces apiñados) */
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: calc(72px + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        max-height: calc(100vh - 72px - env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        background: rgba(6, 9, 18, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--color-border);
        gap: 4px;
        transform: translateY(-130%);
        transition: transform var(--transition);
        z-index: 999;
    }

    .nav-menu.active { transform: translateY(0); }

    .nav-link {
        padding: 14px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .nav-cta {
        text-align: center;
        margin: 10px 0 0;
        justify-content: center;
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .navbar .nav-logo .logo-wordmark {
        font-size: 1.05rem;
        letter-spacing: 0.1em;
    }

    .section { padding: clamp(64px, 12vw, 80px) 0; }
    .section-head { margin-bottom: clamp(40px, 8vw, 56px); }

    .section-title {
        font-size: clamp(1.65rem, 6vw, 2.75rem);
    }

    .hero { padding: clamp(96px, 22vw, 120px) 0 clamp(48px, 10vw, 70px); min-height: auto; }
    .hero-stats { gap: 18px; justify-content: center; }
    .stat-divider { display: none; }
    .stat strong { font-size: clamp(1.65rem, 6vw, 2rem); }

    .showcase { width: min(380px, min(92vw, 100% - 24px)); }
    .float-card { padding: 8px 12px 8px 8px; min-width: 0; }
    .float-card .fc-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .fc-info strong { font-size: 0.78rem; }
    .fc-info span { display: none; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 28px clamp(18px, 5vw, 22px); }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
    .footer-brand p { max-width: none; }

    .about-cards { grid-template-columns: 1fr; }
    .mini-card:nth-child(odd) { transform: none; }
    .mini-card:nth-child(odd):hover { transform: translateY(-4px); }

    .marquee-group { gap: clamp(20px, 5vw, 32px); padding: 0 clamp(12px, 3vw, 16px); }
    .marquee-group span { font-size: 0.95rem; }
    .marquee-group span i { font-size: 1.25rem; }

    .logo-wordmark--nosotros {
        font-size: clamp(1.85rem, 10vw, 3rem);
        letter-spacing: 0.14em;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        bottom: max(20px, env(safe-area-inset-bottom, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
    }

    .product-card,
    .service-card { padding: 28px clamp(20px, 5vw, 32px) 26px; }

    .contact-success-overlay {
        padding:
            max(20px, env(safe-area-inset-top, 0px))
            max(16px, env(safe-area-inset-right, 0px))
            max(20px, env(safe-area-inset-bottom, 0px))
            max(16px, env(safe-area-inset-left, 0px));
    }

    .contact-success-card {
        max-width: min(400px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    }
}

@media (max-width: 480px) {
    .btn { padding: 13px 22px; font-size: 0.9rem; min-height: 44px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; width: 100%; }
    .preloader-logo { width: 64px; }
    .preloader-inner { width: 100px; height: 100px; }
    .preloader-text { font-size: 1.2rem; }

    .services-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .navbar .nav-logo .logo-wordmark {
        font-size: 0.92rem;
        letter-spacing: 0.06em;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(72px + env(safe-area-inset-top, 0px));
        padding-bottom: 36px;
    }

    .section-head { margin-bottom: 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
