:root {
    /* Tema Oscuro (Definido por defecto) */
    --bg-base: #000000;
    --bg-surface: rgba(15, 18, 30, 0.75);
    --border-light: rgba(255, 255, 255, 0.08);
    --primary: #3fb9de;
    --primary-glow: rgba(63, 185, 222, 0.35);
    --secondary: #1d4ed8;
    --accent: #84c225;
    --brand-green: #84c225;
    --logo-text: #ffffff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --hero-bg: url('imagenes/bg-dark.jpg');
}

[data-theme="light"] {
    /* Tema Claro */
    --bg-base: #ffffff;
    --bg-surface: rgba(241, 245, 249, 0.8);
    --border-light: rgba(0, 0, 0, 0.08);
    --primary: #1d4ed8;
    --primary-glow: rgba(29, 78, 216, 0.15);
    --secondary: #0284c7;
    --accent: #84c225;
    --brand-green: #84c225;
    --logo-text: #111111;
    --text-main: #0f172a;
    --text-muted: #475569;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hero-bg: url('imagenes/bg-light.jpg');
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Ambient glow */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Ambient Lights Animadas (NUEVO) */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
    animation: moveAmbient 20s ease-in-out infinite alternate;
}

.light-1 {
    width: 45vw;
    height: 45vw;
    background: rgba(59, 130, 246, 0.12);
    top: 5%;
    left: -5%;
}

.light-2 {
    width: 35vw;
    height: 35vw;
    background: rgba(139, 92, 246, 0.12);
    bottom: 10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.light-3 {
    width: 30vw;
    height: 30vw;
    background: rgba(6, 182, 212, 0.12);
    top: 50%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes moveAmbient {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5vw, -5vh) scale(1.1);
    }

    66% {
        transform: translate(-5vw, 5vh) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Botones con animaciones (NUEVO efecto Shine) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 4s ease-in-out infinite alternate;
}

@keyframes shine {

    0%,
    60% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--secondary), var(--primary));
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glow-effect:hover::after {
    opacity: 0.6;
}

.glow-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--border-light);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
}

.logo span {
    color: var(--brand-green);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--brand-green);
    transition: width 0.3s;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-nav {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.btn-nav:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Logo de Imagen (Dark/Light) */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

[data-theme="light"] .logo-dark {
    display: none !important;
}
[data-theme="light"] .logo-light {
    display: block !important;
}
html:not([data-theme="light"]) .logo-light {
    display: none !important;
}
html:not([data-theme="light"]) .logo-dark {
    display: block !important;
}

/* Logo Tipográfico Sci-Fi (HAOMAI) */
.haomai-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    margin: 0;
}

.logo-top {
    font-family: 'Orbitron', 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--logo-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-a {
    color: var(--brand-green);
}

.logo-i {
    color: var(--accent);
}

.logo-bottom {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-right: -8px;
    /* Compensación visual para centrado perfecto por el letter-spacing */
    margin-top: 0.2rem;
}

/* Tamaños de Logo Específicos */
.nav-logo .logo-top {
    font-size: 1.8rem;
}

.nav-logo .logo-bottom {
    font-size: 0.6rem;
    letter-spacing: 6px;
    margin-right: -6px;
}

.nav-logo::after {
    display: none;
}

/* Remueve subrayado original */
.nav-logo:hover {
    transform: scale(1.05);
}

.section-logo {
    margin-bottom: 0.5rem !important;
}

.section-logo .logo-top {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.section-logo .logo-bottom {
    font-size: clamp(0.75rem, 1.5vw, 1.2rem);
    letter-spacing: 12px;
    margin-right: -12px;
    margin-top: 0.4rem;
}

/* Secciones, Paneles, Hero */
.section {
    padding: 6rem 0;
}

.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s;
}

.hover-glow:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin: 1rem;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
    z-index: 5;
}

/* Stand Design Hero Styles */
.hero-logo-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 5;
}

.hero-logo .logo-top {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.hero-logo .logo-bottom {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    letter-spacing: 14px;
    margin-right: -14px;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.flag-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 17, 30, 0.65);
    border: 1.5px solid rgba(6, 182, 212, 0.25);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1), inset 0 0 10px rgba(6, 182, 212, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 5;
}

.flag-badge-pill:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25), inset 0 0 10px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.flag-badge-text,
.flag-badge-part,
.flag-badge-dash {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5c158; /* Gold color */
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(229, 193, 88, 0.2);
}

.flag-icon-ar {
    order: 1;
}

.flag-badge-part.part-1 {
    order: 2;
}

.flag-badge-dash {
    order: 3;
}

.flag-badge-part.part-2 {
    order: 4;
}

.flag-icon-cn {
    order: 5;
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.flag-badge-pill:hover .flag-icon {
    transform: scale(1.15) rotate(5deg);
}

.flag-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title-stand {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 2rem;
    max-width: 1000px;
    text-align: center;
    z-index: 5;
}

.hero-title-stand .highlight {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
    display: inline-block;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Waves and digital mesh background */
.hero-wave-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.15s ease-out;
}

.wave-svg {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: waveDrift 12s ease-in-out infinite alternate;
}

.wave-back {
    animation-duration: 16s;
    animation-delay: -2s;
}

.wave-mid {
    animation-duration: 20s;
    animation-delay: -5s;
}

.wave-line {
    animation: waveDrift 14s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes waveDrift {
    0% {
        transform: translateY(0) scaleY(1);
    }
    100% {
        transform: translateY(12px) scaleY(1.05);
    }
}

.hero-dot-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background-image: radial-gradient(rgba(6, 182, 212, 0.15) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    opacity: 0.85;
}

/* Abstract Warehouse Enhancements (NUEVO) */
.hero-visual {
    position: relative;
    height: 400px;
}

.abstract-warehouse {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.layer {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    top: 20%;
    left: 20%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-1 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
    transform: translateZ(0px) rotateX(20deg) rotateY(-20deg);
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.2);
}

.layer-2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    transform: translateZ(50px) rotateX(20deg) rotateY(-20deg);
    border-color: rgba(139, 92, 246, 0.4);
}

.layer-3 {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), transparent);
    transform: translateZ(100px) rotateX(20deg) rotateY(-20deg);
    border-color: rgba(6, 182, 212, 0.4);
}

.abstract-warehouse:hover .layer-1 {
    transform: translateZ(20px) rotateX(25deg) rotateY(-25deg);
}

.abstract-warehouse:hover .layer-2 {
    transform: translateZ(80px) rotateX(25deg) rotateY(-25deg);
    background: rgba(139, 92, 246, 0.2);
}

.abstract-warehouse:hover .layer-3 {
    transform: translateZ(140px) rotateX(25deg) rotateY(-25deg);
    background: rgba(6, 182, 212, 0.2);
}

.floating-data {
    position: absolute;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.floating-data:nth-child(even) {
    animation-delay: -2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.5s infinite;
}

.pulse-dot.yellow {
    background: #facc15;
    box-shadow: 0 0 10px #facc15;
}

.pulse-dot.green {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.pulse-dot.cyan {
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
}

@keyframes dotPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ecosistema Grid y Cards (NUEVO INTERACTIVE) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card-interactive:hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.1);
}

.card-interactive:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.ambient-bounce {
    animation: iconBounce 3s ease-in-out infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }

    100% {
        transform: translateY(-8px);
        filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
    }
}

.box-animated {
    transition: all 0.3s;
    border-left-color: var(--text-muted);
}

.card-interactive:hover .box-animated {
    border-left-color: var(--accent);
    background: rgba(6, 182, 212, 0.08);
    color: var(--text-main);
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bg-darker {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Listas y Casos de Uso */
.use-cases {
    margin-top: 1.5rem;
}

.use-cases h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.use-cases h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
}

.use-cases ul {
    list-style-type: none;
    margin-left: 0;
}

.use-cases li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s;
}

.use-cases li:hover {
    color: var(--text-main);
}

.use-cases li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
    top: 4px;
    transition: transform 0.3s, color 0.3s;
}

.use-cases li:hover::before {
    transform: translateX(3px);
    color: var(--accent);
}

.use-cases li strong {
    color: var(--text-main);
}

.use-case-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-muted);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.use-case-box strong {
    color: var(--accent);
    display: block;
    font-size: 1.05rem;
}

.highlight-box {
    border-left: 3px solid var(--accent);
    background: rgba(6, 182, 212, 0.08);
}

/* System UI Mock Animado (NUEVO) */
.layered-ui {
    position: relative;
    perspective: 1000px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.ui-hologram-shadow {
    position: absolute;
    width: 60%;
    height: 20px;
    bottom: 0;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    filter: blur(10px);
    animation: shadowPulse 6s infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.ui-window {
    background: #0c1220;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

.float-animated {
    animation: uiFloat 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes uiFloat {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(10deg) translateY(0px);
        box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: rotateY(-15deg) rotateX(10deg) translateY(-20px);
        box-shadow: -20px 40px 50px rgba(6, 182, 212, 0.15);
    }
}

.ui-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: monospace;
    border-bottom: 1px solid #334155;
}

.ui-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: var(--brand-green);
    box-shadow: 0 0 5px var(--brand-green);
}

.ui-body {
    padding: 1.5rem;
    position: relative;
}

.stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    flex: 1;
    background: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

.stat-box span {
    display: block;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    margin-top: 0.5rem;
}

.pulse-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    opacity: 0;
    animation: statPulse 3s infinite alternate;
    pointer-events: none;
}

@keyframes statPulse {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.ui-graph {
    width: 100%;
    height: 40px;
    border-bottom: 1px dashed #334155;
    border-left: 1px dashed #334155;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-left: 5px;
}

.graph-line {
    width: 0%;
    height: 2px;
    background: var(--accent);
    position: relative;
    box-shadow: 0 -5px 10px rgba(6, 182, 212, 0.5);
    animation: graphGrow 4s infinite;
}

.graph-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes graphGrow {
    0% {
        width: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

.ui-bar {
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
}

.ui-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: left;
    animation: barFill 3s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-bar:nth-child(4)::before {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    animation-duration: 4s;
}

@keyframes barFill {
    0% {
        transform: scaleX(0.2);
    }

    100% {
        transform: scaleX(1);
    }
}

.ui-floating-card {
    position: absolute;
    bottom: 10%;
    right: 5%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(5px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.float-animated-reverse {
    animation: uiFloatReverse 5s ease-in-out infinite;
}

@keyframes uiFloatReverse {

    0%,
    100% {
        transform: translateY(0px) translateZ(50px);
    }

    50% {
        transform: translateY(15px) translateZ(50px);
    }
}

/* Academy Visual Orb Animado (NUEVO) */
.orb-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: haloExpand 3s infinite linear;
}

@keyframes haloExpand {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.orb {
    position: absolute;
    inset: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    filter: blur(15px);
    animation: pulseOrb 4s ease-in-out infinite alternate;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6);
}

.orb-ring {
    position: absolute;
    inset: 1rem;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    animation: spinRing 20s linear infinite;
}

.orb-tracer {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(6, 182, 212, 0.8);
    transform: translateX(-50%);
}

.float-code {
    animation: floatCode 6s ease-in-out infinite;
}

.code-snippet {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(13, 17, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    z-index: 5;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.code-snippet code {
    display: block;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

@keyframes pulseOrb {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes spinRing {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatCode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Formularios y CTA Animados */
.cta-section {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-container {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

.lead-form {
    max-width: 600px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: var(--bg-base);
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 2.2;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Reveals / Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

.fade-up {
    transform: translateY(50px);
}

@media (max-width: 992px) {

    .hero-container,
    .split-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .academy-visual,
    .system-visual {
        order: -1;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .ui-window {
        transform: none;
        animation: none;
    }

    .use-cases ul {
        text-align: left;
    }

    .ui-floating-card {
        bottom: -20px;
        right: 50%;
        transform: translateX(50%);
        animation: none;
    }
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-mobile-contact-item {
    display: none;
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13, 17, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 1.5rem 1.75rem;
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        display: flex !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links a.nav-link-tab {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-main);
        display: block;
        padding: 0.4rem 0;
    }

    .nav-submenu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0.25rem 0 0.5rem 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .nav-submenu a {
        padding: 0.3rem 0;
        font-size: 0.85rem;
        color: var(--text-muted);
        white-space: normal;
    }

    .nav-mobile-contact-item {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--border-light);
    }

    .nav-mobile-contact-item .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(63, 185, 222, 0.25);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

/* Medium Mobile / Tablet (<= 768px) */
@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding-top: 160px !important;
        padding-bottom: 1.5rem !important;
        margin: 0 0 1rem 0 !important;
    }

    .hero-container {
        gap: 1rem !important;
    }

    .hero-title-stand {
        font-size: clamp(1.65rem, 5vw, 2.2rem) !important;
        line-height: 1.3 !important;
    }

    .flag-badge-pill {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.3rem 0.5rem;
        padding: 0.75rem 1.25rem;
        border-radius: 20px;
        max-width: 100%;
        margin-bottom: 0.85rem !important;
    }

    .flag-badge-part.part-1 {
        grid-row: 1;
        grid-column: 1 / -1;
        order: initial;
    }

    .flag-icon-ar {
        grid-row: 2;
        grid-column: 1;
        justify-self: end;
        order: initial;
    }

    .flag-badge-dash {
        grid-row: 2;
        grid-column: 2;
        justify-self: center;
        order: initial;
    }

    .flag-icon-cn {
        grid-row: 2;
        grid-column: 3;
        justify-self: start;
        order: initial;
    }

    .flag-badge-part.part-2 {
        grid-row: 3;
        grid-column: 1 / -1;
        order: initial;
    }

    .flag-badge-part,
    .flag-badge-dash {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    .hero-buttons {
        margin-top: 0.75rem !important;
        gap: 1rem !important;
    }

    #foco.section {
        padding: 2.5rem 0 !important;
    }

    .desktop-only {
        display: inline;
    }

    .gallery-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 240px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .lead-form>div {
        grid-template-columns: 1fr !important;
    }

    .stat-row {
        gap: 1rem;
    }

    .stat-box {
        min-width: 140px !important;
        padding: 0.85rem;
    }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .hero {
        padding-top: 160px !important;
        padding-bottom: 1rem !important;
    }

    .flag-badge-pill {
        margin-bottom: 0.75rem !important;
        padding: 0.65rem 1rem !important;
    }

    #foco.section {
        padding: 2rem 0 !important;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-container {
        gap: 1.75rem;
    }

    .footer-bottom {
        gap: 0.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title-stand {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .lightbox-content {
        padding: 1rem;
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-img-wrapper {
        max-height: 52vh;
    }

    .lightbox-img-wrapper img {
        max-height: 52vh;
    }

    .lightbox-caption h4 {
        font-size: 1.05rem;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
    }
}

/* SVG Triangle Graphic Animations & Interactions */
.hologram-3d {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 400px;
    perspective: 1200px;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-5deg);
    /* Default isometric tilt */
}

.triangle-graphic.hologram-3d {
    transition: transform 0.15s ease-out;
}

.tri-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
    /* Dejar pasar los clicks a svg-interactions */
}

/* Configuraciones de profundidad Z para cada capa */
.tri-base {
    transform: translateZ(-80px) scale(0.9);
}

.tri-mid {
    transform: translateZ(0px);
}

.tri-front {
    transform: translateZ(80px);
}

.svg-interactions {
    pointer-events: auto;
}

.animated-triangle {
    width: 100%;
    height: auto;
    max-width: 500px;
    overflow: visible;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

.polygon-pulse {
    animation: polygonGlow 4s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes polygonGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
        transform: scale(0.98);
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6));
        transform: scale(1.02);
    }
}

.node-tecnologia .node-dot {
    animation: dotPulseTec 3s ease-in-out infinite alternate;
}

.node-capacitacion .node-dot {
    animation: dotPulseCap 3s ease-in-out infinite alternate;
    animation-delay: 1s;
}

.node-consultoria .node-dot {
    animation: dotPulseSop 3s ease-in-out infinite alternate;
    animation-delay: 2s;
}

@keyframes dotPulseTec {
    0% {
        r: 12;
        filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
    }

    100% {
        r: 16;
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 1));
    }
}

@keyframes dotPulseCap {
    0% {
        r: 12;
        filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
    }

    100% {
        r: 16;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 1));
    }
}

@keyframes dotPulseSop {
    0% {
        r: 12;
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
    }

    100% {
        r: 16;
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 1));
    }
}

/* Interactions en SVG Nodos */
.node {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node:hover {
    transform: scale(1.2);
}

.node:hover .node-dot {
    animation: none;
    /* Pausa el pulse para destacar */
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
}

.node text {
    transition: all 0.3s;
}

.node:hover text {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

/* Clients Section Static Grid */
.clients-container {
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8) 0%, rgba(10, 25, 47, 0.85) 50%, rgba(20, 18, 38, 0.8) 100%);
    border-radius: 24px;
    border: 1px solid rgba(63, 185, 222, 0.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(63, 185, 222, 0.05);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.client-logo {
    width: 100%;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.client-logo:nth-child(5n+1):hover {
    border-color: rgba(63, 185, 222, 0.5);
    box-shadow: 0 10px 25px rgba(63, 185, 222, 0.25);
    background: rgba(63, 185, 222, 0.08);
}
.client-logo:nth-child(5n+2):hover {
    border-color: rgba(132, 194, 37, 0.5);
    box-shadow: 0 10px 25px rgba(132, 194, 37, 0.25);
    background: rgba(132, 194, 37, 0.08);
}
.client-logo:nth-child(5n+3):hover {
    border-color: rgba(246, 180, 14, 0.5);
    box-shadow: 0 10px 25px rgba(246, 180, 14, 0.25);
    background: rgba(246, 180, 14, 0.08);
}
.client-logo:nth-child(5n+4):hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.08);
}
.client-logo:nth-child(5n+0):hover {
    border-color: rgba(0, 164, 239, 0.5);
    box-shadow: 0 10px 25px rgba(0, 164, 239, 0.25);
    background: rgba(0, 164, 239, 0.08);
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.04);
}

.client-img-wrapper {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0.25rem;
    filter: opacity(0.85);
    transition: all 0.3s ease;
}

.client-logo:hover .client-img-wrapper {
    filter: opacity(1);
    transform: scale(1.05);
}

.client-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: filter 0.3s ease;
}

.client-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.client-logo:hover .client-name {
    color: #ffffff;
}

/* ==========================================================================
   Sección de Equipo (/team)
   ========================================================================== */

.team-section {
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    background: rgba(13, 17, 30, 0.65);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.1);
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Avatar Holográfico SVG */
.team-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-avatar-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Animaciones para el avatar */
.avatar-ring-outer {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin-clockwise 25s linear infinite;
}

.avatar-ring-inner {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin-counter 15s linear infinite;
}

.avatar-tech-lines {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin-clockwise 40s linear infinite;
}

.avatar-center-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.avatar-text {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.35s ease, fill 0.35s ease, letter-spacing 0.35s ease, filter 0.35s ease;
}

@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-counter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes glow-pulse {
    0% { opacity: 0.3; filter: drop-shadow(0 0 5px currentColor); }
    100% { opacity: 0.85; filter: drop-shadow(0 0 15px currentColor); }
}

/* Comité Ejecutivo - Avatares Interactivos y Animados */
.executive-avatar-wrapper {
    position: relative;
    width: 85px;
    height: 85px;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    perspective: 800px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.executive-avatar-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.executive-avatar-wrapper:hover,
.glass-panel:hover .executive-avatar-wrapper {
    transform: scale(1.18) translateY(-4px) rotate(3deg);
    filter: drop-shadow(0 0 18px currentColor);
}

.executive-avatar-wrapper:active {
    transform: scale(0.96) translateY(0);
}

/* Efecto hover acelerado en anillos y brillo */
.executive-avatar-wrapper:hover .avatar-ring-outer,
.glass-panel:hover .executive-avatar-wrapper .avatar-ring-outer {
    animation-duration: 7s;
    opacity: 0.95;
    stroke-width: 2.2px;
}

.executive-avatar-wrapper:hover .avatar-ring-inner,
.glass-panel:hover .executive-avatar-wrapper .avatar-ring-inner {
    animation-duration: 4s;
    opacity: 1;
    stroke-width: 1.6px;
}

.executive-avatar-wrapper:hover .avatar-center-glow,
.glass-panel:hover .executive-avatar-wrapper .avatar-center-glow {
    transform: scale(1.08);
    fill: rgba(15, 23, 42, 0.85);
    stroke-width: 2.5px;
}

.executive-avatar-wrapper:hover .avatar-text,
.glass-panel:hover .executive-avatar-wrapper .avatar-text {
    transform: scale(1.15);
    fill: #ffffff;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 8px #ffffff);
}


.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.team-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-name a:hover {
    color: var(--accent);
}


.team-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Tags de Habilidades/Áreas */
.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.team-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
}

.team-tag.highlight {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

/* Biografía / Listas */
.team-body {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.team-body p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-list {
    list-style: none;
    padding-left: 0;
}

.team-list-item {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.team-list-item::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary);
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.team-card:hover .team-list-item::before {
    color: var(--accent);
    transform: translateX(2px);
}

/* Botón de retorno al inicio */
.back-home-container {
    margin-top: 4rem;
    text-align: center;
}

/* ==========================================================================
   Páginas de Perfiles de Equipo Individuales (Mobile-First / Tarjeta Digital)
   ========================================================================== */

.profile-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.profile-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2rem 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px var(--shadow-color), 0 0 40px rgba(6, 182, 212, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] .profile-card {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 40px rgba(29, 78, 216, 0.08);
}

.profile-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 25px 60px var(--shadow-color), 0 0 50px rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .profile-card:hover {
    border-color: rgba(29, 78, 216, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 50px rgba(29, 78, 216, 0.15);
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.profile-logo {
    display: inline-flex;
    margin-bottom: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.profile-logo:hover {
    transform: scale(0.95);
}

.profile-logo .logo-top {
    font-size: 1.5rem;
}

.profile-avatar-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.profile-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

/* Tags de Habilidades/Áreas */
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.profile-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-tag.highlight {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

.profile-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

/* Biografía / Info */
.profile-bio {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2.2rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.25rem;
}

.profile-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.profile-list-item {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.profile-list-item:last-child {
    margin-bottom: 0;
}

.profile-list-item::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary);
    font-size: 0.7rem;
    transition: transform 0.2s, color 0.2s;
}

.profile-card:hover .profile-list-item::before {
    color: var(--accent);
}

/* Botones de Acción Inmediata */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.btn-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem;
    font-size: 0.95rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    color: white;
    font-family: var(--font-body);
}

.btn-action .icon {
    font-size: 1.15rem;
}

.btn-action:active {
    transform: scale(0.98);
}

/* WhatsApp Estilo Premium */
.btn-whatsapp {
    background: linear-gradient(135deg, #18B854 0%, #0E7F3B 100%);
    box-shadow: 0 4px 15px rgba(24, 184, 84, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 184, 84, 0.45);
}

/* Email Estilo Premium */
.btn-email {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

/* Copiar Teléfono Estilo Premium */
.btn-copy-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-copy-action:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-copy-action.copied {
    background: rgba(171, 204, 11, 0.12);
    border-color: var(--brand-green);
    color: var(--brand-green);
    box-shadow: 0 0 15px rgba(171, 204, 11, 0.2);
}

/* Enlaces de retorno */
.profile-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.profile-back-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-back-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Business Card Details Block */
.profile-logo-brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.profile-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.detail-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 185, 222, 0.1);
    border-radius: 8px;
    color: var(--primary);
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-link {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}

.detail-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Overrides para tema claro en tarjeta de perfil */
[data-theme="light"] .profile-card-details,
[data-theme="light"] .profile-bio {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .profile-avatar-svg polygon {
    fill: rgba(240, 244, 250, 0.9);
}

[data-theme="light"] .profile-avatar-svg text {
    fill: var(--text-main);
}

/* Media Query para pantallas ultra pequeñas */
@media (max-width: 360px) {
    .profile-card {
        padding: 2rem 1.25rem 1.75rem;
    }
    .profile-name {
        font-size: 1.6rem;
    }
    .btn-action {
        font-size: 0.9rem;
        padding: 0.85rem;
    }
}

/* SPA Page Views */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Active tab style */
.nav-links a.active {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Submenu Dropdown Styles */
.nav-links li {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 17, 30, 0.95);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 0;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.nav-links li:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-shadow: none !important;
}

.nav-submenu a:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem;
}

[data-theme="light"] .nav-submenu {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-submenu a:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Lightbox Modal & Gallery Card Enhancement
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(18, 24, 38, 0.96);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.1);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: #ffffff;
}

.lightbox-img-wrapper {
    max-width: 100%;
    max-height: 72vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1.2rem;
    text-align: center;
    max-width: 750px;
}

.lightbox-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(132, 194, 37, 0.25);
    border: 1px solid var(--accent);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.lightbox-caption h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-card {
    cursor: pointer !important;
}

.gallery-card .gallery-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-card:hover .gallery-bg {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-card::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-card:hover::after {
    opacity: 1;
    transform: scale(1);
    background: rgba(6, 182, 212, 0.8);
    border-color: var(--accent);
}

/* ==========================================================================
   HAOMAI SITES (WEB) — STYLES & INTERACTIVE WIDGETS
   ========================================================================== */

.sites-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: var(--bg-surface);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(63, 185, 222, 0.15);
}

.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(63, 185, 222, 0.1);
    border: 1px solid rgba(63, 185, 222, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.benefit-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.4;
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Benefit Interactive Boxes */
.benefit-interactive-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: auto;
}

[data-theme="light"] .benefit-interactive-box {
    background: rgba(255, 255, 255, 0.6);
}

.interactive-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Demo Theme Switcher */
.theme-switch-demo {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.theme-demo-btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-demo-btn.active, .theme-demo-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.mockup-preview-screen {
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-theme-preview {
    background: #0f172a;
    color: #ffffff;
}

.light-theme-preview {
    background: #f8fafc;
    color: #0f172a;
}

.gradient-theme-preview {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    color: #ffffff;
}

.mockup-header-bar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.mockup-header-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-header-bar .dot.red { background: #ef4444; }
.mockup-header-bar .dot.yellow { background: #eab308; }
.mockup-header-bar .dot.green { background: #22c55e; }

.mockup-url {
    margin-left: 0.4rem;
    font-family: monospace;
    opacity: 0.7;
}

.mockup-hero-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-line {
    height: 8px;
    border-radius: 4px;
    background: currentColor;
    opacity: 0.3;
}

.mockup-line.title-line { width: 70%; height: 10px; opacity: 0.8; }
.mockup-line.sub-line { width: 45%; }

.mockup-btn-pill {
    margin-top: 0.25rem;
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50px;
}

/* Device Toggle Demo */
.device-toggle-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.device-btn {
    flex: 1;
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-btn.active {
    background: var(--accent);
    color: #000000;
    font-weight: 600;
    border-color: var(--accent);
}

.device-preview-wrapper {
    margin: 0 auto;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 0.5rem;
    transition: width 0.4s ease;
}

.device-preview-wrapper.desktop-mode {
    width: 100%;
}

.device-preview-wrapper.mobile-mode {
    width: 140px;
}

.screen-navbar {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-light);
}

.screen-cards-grid {
    display: flex;
    gap: 0.3rem;
}

.mobile-mode .screen-cards-grid {
    flex-direction: column;
}

.screen-card {
    flex: 1;
    height: 35px;
    background: rgba(63, 185, 222, 0.2);
    border-radius: 4px;
}

/* Domain & DNS Demo */
.domain-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.domain-prefix {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.domain-demo-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.8rem;
    padding: 0.4rem;
}

.domain-check-btn {
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.domain-status-result {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.status-badge.success {
    color: var(--accent);
    font-weight: 600;
}

.ping-tag {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Server Specs Demo */
.server-tier-selector {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.tier-btn {
    flex: 1;
    padding: 0.35rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.tier-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.server-specs-card {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
}

.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; color: var(--text-main); }
.highlight-green { color: var(--accent) !important; }

/* Webmail Demo */
.webmail-demo-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mail-header-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mail-snippet {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.mail-subject {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.mail-sender {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.test-mail-btn {
    padding: 0.35rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-mail-btn:hover {
    background: rgba(63, 185, 222, 0.1);
}

/* Mini Form Demo */
.sites-mini-form {
    display: flex;
    gap: 0.4rem;
}

.mini-form-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-size: 0.8rem;
    outline: none;
}

.mini-form-submit {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.mini-form-feedback {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    min-height: 1rem;
}

/* WhatsApp Widget Demo */
.whatsapp-widget-preview {
    border-radius: 10px;
    background: #0b141a;
    color: #ffffff;
    overflow: hidden;
}

.wa-header {
    background: #1f2c34;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wa-chat-body {
    padding: 0.6rem;
}

.wa-bubble {
    background: #005c4b;
    color: #e9edef;
    padding: 0.4rem 0.6rem;
    border-radius: 8px 8px 8px 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

.wa-action-btn {
    width: 100%;
    padding: 0.4rem;
    background: #25d366;
    color: #000000;
    border: none;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Social Hub Demo */
.social-hub-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.social-demo-pill {
    padding: 0.35rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.2s ease;
}

.social-demo-pill:hover {
    transform: scale(1.05);
}

.social-demo-pill.linkedin { background: #0077b5; }
.social-demo-pill.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-demo-pill.facebook { background: #1877f2; }
.social-demo-pill.youtube { background: #ff0000; }

/* Speedometer Demo */
.speedometer-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.speed-score-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(132, 194, 37, 0.1);
}

.speed-details {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.speed-test-btn {
    width: 100%;
    padding: 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-main);
    font-size: 0.75rem;
    cursor: pointer;
}

/* Google Snippet Demo */
.google-snippet-card {
    background: #ffffff;
    color: #202124;
    padding: 0.6rem;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.serp-url {
    font-size: 0.65rem;
    color: #202124;
    margin-bottom: 0.2rem;
}

.serp-title {
    font-size: 0.8rem;
    color: #1a0dab;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.serp-desc {
    font-size: 0.7rem;
    color: #4d5156;
    line-height: 1.3;
}

/* SSL Shield Widget */
.ssl-shield-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(132, 194, 37, 0.08);
    border: 1px solid rgba(132, 194, 37, 0.3);
    padding: 0.6rem;
    border-radius: 8px;
}

.ssl-shield-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ssl-info {
    display: flex;
    flex-direction: column;
}

.ssl-status-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.ssl-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Health Monitor Box */
.health-monitor-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.health-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.health-check-btn {
    padding: 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
}

/* ==========================================================================
   HAOMAI SITES PLAN COMPARISON TABLE
   ========================================================================== */

.sites-table-wrapper {
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.sites-plan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
    text-align: left;
}

.sites-plan-table th,
.sites-plan-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.sites-plan-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    vertical-align: bottom;
}

.feature-col {
    width: 36%;
    font-size: 0.95rem !important;
}

.plan-col {
    width: 16%;
    text-align: center;
}

.recommended-col {
    background: rgba(63, 185, 222, 0.08);
    border-top: 2px solid var(--primary);
    position: relative;
}

.table-badge-popular {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary);
    color: #ffffff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin: 0 auto 0.3rem auto;
    width: fit-content;
}

.feature-title {
    font-weight: 600;
    color: var(--text-main);
}

.cell-check {
    text-align: center;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 800;
}

.cell-val {
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.recommended-cell {
    background: rgba(63, 185, 222, 0.04);
}

.custom-highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   HAOMAI BUSINESS (ERP) — INTERACTIVE STYLES
   ========================================================================== */

/* Price list & catalog demo */
.price-list-selector, .entity-toggle-bar, .report-period-selector, .lang-selector-demo {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.price-list-btn, .entity-btn, .report-period-btn, .lang-btn {
    flex: 1;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-list-btn.active, .entity-btn.active, .report-period-btn.active, .lang-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.product-preview-card, .entity-info-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.prod-name, .entity-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.prod-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.badge-status-green {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(132, 194, 37, 0.2);
    color: var(--accent);
    font-weight: 700;
}

.entity-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* POS Demo */
.pos-demo-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pos-action-btn, .stock-update-btn, .scan-qr-btn {
    width: 100%;
    padding: 0.4rem;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pos-action-btn:hover, .stock-update-btn:hover, .scan-qr-btn:hover {
    opacity: 0.9;
}

.pos-feedback, .lang-preview-msg {
    font-size: 0.75rem;
    color: var(--accent);
    min-height: 1rem;
}

/* Stock Demo */
.stock-demo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stock-header-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stock-progress-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.stock-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Pipeline Demo */
.order-pipeline-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pipeline-steps {
    display: flex;
    gap: 0.3rem;
}

.pipe-step {
    flex: 1;
    padding: 0.3rem;
    font-size: 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.pipe-step.active {
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    border-color: var(--accent);
}

.pipe-status-tag {
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Cart Demo */
.cart-demo-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-main);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    padding: 0 0.3rem;
}

.cart-total-row {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* QR Scanner Demo */
.qr-demo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-code-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Report Demo */
.report-val-display {
    font-size: 0.8rem;
    color: var(--text-main);
}

/* ==========================================================================
   HAOMAI WAREHOUSE (WMS) — INTERACTIVE STYLES
   ========================================================================== */

.depot-toggle-bar, .slot-picker-bar {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.depot-btn, .slot-btn, .inout-btn, .picking-btn, .dispatch-btn, .transfer-btn {
    flex: 1;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.depot-btn.active, .slot-btn.active {
    background: var(--accent);
    color: #000000;
    font-weight: 700;
    border-color: var(--accent);
}

.depot-info-box, .slot-preview-card, .wms-picking-demo, .wms-dispatch-demo, .wms-transfer-demo, .wms-billing-demo, .wms-audit-demo {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.depot-title, .slot-code {
    font-weight: 600;
    color: var(--text-main);
}

.depot-detail, .slot-status, .dispatch-status-tag, .transfer-route-label, .billing-line, .audit-log-item {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inout-btn, .picking-btn, .dispatch-btn, .transfer-btn {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    margin-top: 0.4rem;
}

.inout-feedback {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.3rem;
    min-height: 1rem;
}

.cell-dash {
    color: var(--text-muted) !important;
    opacity: 0.4;
    font-weight: 400 !important;
}

/* ==========================================================================
   HAOMAI ACADEMY (LMS) — INTERACTIVE STYLES
   ========================================================================== */

.lms-ai-course-demo, .lms-ai-quiz-demo, .lms-grade-demo, .lms-module-tracker, .lms-user-role-demo, .lms-progress-analytics, .lms-cert-demo, .lms-ia-credits-demo, .lms-device-access-demo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-gen-btn, .quiz-opt-btn, .grade-submit-btn, .cert-download-btn, .recharge-btn, .role-btn {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--secondary, #8b5cf6);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-gen-btn:hover, .quiz-opt-btn:hover, .grade-submit-btn:hover, .cert-download-btn:hover, .recharge-btn:hover {
    opacity: 0.9;
}

.role-picker-bar {
    display: flex;
    gap: 0.3rem;
}

.role-btn {
    background: transparent;
    color: var(--text-muted);
}

.role-btn.active {
    background: var(--secondary, #8b5cf6);
    color: #ffffff;
    border-color: var(--secondary, #8b5cf6);
}

.course-outline-preview, .quiz-feedback, .grade-result-box, .mod-status-row, .user-role-info, .stat-line-lms, .cert-preview-card, .credits-val-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.course-outline-preview {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.cert-preview-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px dashed var(--secondary, #8b5cf6);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.mod-status-row {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   SUITE PRODUCT NAVIGATION SUBNAV
   ========================================================================== */

.suite-product-subnav {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    position: sticky;
    top: 70px;
    z-index: 90;
}

[data-theme="light"] .suite-product-subnav {
    background: rgba(255, 255, 255, 0.9);
}

.suite-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suite-tab-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suite-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(63, 185, 222, 0.08);
}

.suite-tab-btn.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(63, 185, 222, 0.3);
}

/* Suite Hub Grid Layout (2 por fila) */
.suite-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

/* ================= Floating & Animated Stat Cards ================= */
@keyframes floatStatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.4deg);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

.floating-stat-card:hover {
    transform: translateY(-16px) scale(1.04) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(63, 185, 222, 0.25) !important;
    z-index: 10;
}

/* ================= Foco Cards (Animados e Interactivos) ================= */
.foco-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.foco-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.foco-card:hover .foco-icon-wrapper {
    transform: scale(1.15) rotate(6deg);
}

/* Dark Mode Focos */
.foco-tech {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(63, 185, 222, 0.12) 100%);
    border: 1px solid rgba(63, 185, 222, 0.35);
    box-shadow: 0 10px 30px rgba(63, 185, 222, 0.1);
    animation: floatStatCard 4.2s ease-in-out infinite 0s;
}
.foco-tech h3 { color: var(--primary); }
.foco-tech .foco-icon-wrapper {
    background: rgba(63, 185, 222, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(63, 185, 222, 0.2);
}

.foco-capacitacion {
    background: linear-gradient(135deg, rgba(13, 30, 20, 0.85) 0%, rgba(132, 194, 37, 0.12) 100%);
    border: 1px solid rgba(132, 194, 37, 0.35);
    box-shadow: 0 10px 30px rgba(132, 194, 37, 0.1);
    animation: floatStatCard 4.5s ease-in-out infinite 0.7s;
}
.foco-capacitacion h3 { color: var(--accent); }
.foco-capacitacion .foco-icon-wrapper {
    background: rgba(132, 194, 37, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(132, 194, 37, 0.2);
}

.foco-consultoria {
    background: linear-gradient(135deg, rgba(28, 16, 46, 0.85) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
    animation: floatStatCard 4.8s ease-in-out infinite 1.4s;
}
.foco-consultoria h3 { color: #a855f7; }
.foco-consultoria .foco-icon-wrapper {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.foco-card:hover {
    transform: translateY(-14px) scale(1.03) !important;
    z-index: 10;
}

/* ================= Light Mode Theme Overrides ================= */
[data-theme="light"] .foco-card p {
    color: #475569 !important;
}

[data-theme="light"] .foco-tech {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    border: 1px solid #7dd3fc !important;
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.12) !important;
}
[data-theme="light"] .foco-tech h3 {
    color: #0284c7 !important;
}
[data-theme="light"] .foco-tech .foco-icon-wrapper {
    background: #e0f2fe !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .foco-capacitacion {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1px solid #86efac !important;
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.12) !important;
}
[data-theme="light"] .foco-capacitacion h3 {
    color: #16a34a !important;
}
[data-theme="light"] .foco-capacitacion .foco-icon-wrapper {
    background: #dcfce7 !important;
    border-color: #4ade80 !important;
    color: #16a34a !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
}

[data-theme="light"] .foco-consultoria {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
    border: 1px solid #d8b4fe !important;
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.12) !important;
}
[data-theme="light"] .foco-consultoria h3 {
    color: #7e22ce !important;
}
[data-theme="light"] .foco-consultoria .foco-icon-wrapper {
    background: #f3e8ff !important;
    border-color: #c084fc !important;
    color: #7e22ce !important;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.15) !important;
}

/* Light Mode Clients Section (Pure White Clean Background) */
[data-theme="light"] .clients-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .client-logo {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .client-logo:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .client-name {
    color: #475569 !important;
}

[data-theme="light"] .client-logo:hover .client-name {
    color: #0f172a !important;
}

/* ================= Soluciones Section Enhancements ================= */
.solution-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.solution-feature-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
}

.solution-feature-item i {
    font-size: 0.8rem;
    opacity: 0.9;
}

.solution-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

[data-theme="light"] .solution-feature-item {
    color: #334155 !important;
}

/* ================= Floating Stat Cards (Dark & Light Mode) ================= */
.floating-stat-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card-1 {
    animation: floatStatCard 4s ease-in-out infinite 0s;
    border: 1px solid rgba(132, 194, 37, 0.35);
    background: linear-gradient(135deg, rgba(13, 17, 30, 0.85) 0%, rgba(30, 41, 59, 0.5) 100%);
}
.stat-card-2 {
    animation: floatStatCard 4.4s ease-in-out infinite 0.7s;
    border: 1px solid rgba(63, 185, 222, 0.35);
    background: linear-gradient(135deg, rgba(13, 17, 30, 0.85) 0%, rgba(30, 41, 59, 0.5) 100%);
}
.stat-card-3 {
    animation: floatStatCard 4.2s ease-in-out infinite 1.4s;
    border: 1px solid rgba(246, 180, 14, 0.35);
    background: linear-gradient(135deg, rgba(13, 17, 30, 0.85) 0%, rgba(30, 41, 59, 0.5) 100%);
}
.stat-card-4 {
    animation: floatStatCard 4.6s ease-in-out infinite 2.1s;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, rgba(13, 17, 30, 0.85) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.stat-number-counter {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    text-align: left;
}

.stat-card-1 .stat-number-counter { text-shadow: 0 0 20px rgba(132, 194, 37, 0.4); }
.stat-card-2 .stat-number-counter { text-shadow: 0 0 20px rgba(63, 185, 222, 0.4); }
.stat-card-3 .stat-number-counter { text-shadow: 0 0 20px rgba(246, 180, 14, 0.4); }
.stat-card-4 .stat-number-counter { text-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }

/* Light Mode Overrides for Stat Cards */
[data-theme="light"] .floating-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .stat-card-1 { border-top: 3px solid var(--accent) !important; }
[data-theme="light"] .stat-card-2 { border-top: 3px solid var(--primary) !important; }
[data-theme="light"] .stat-card-3 { border-top: 3px solid #f6b40e !important; }
[data-theme="light"] .stat-card-4 { border-top: 3px solid #a855f7 !important; }

[data-theme="light"] .floating-stat-card:hover {
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .stat-number-counter {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="light"] .floating-stat-card .stat-label {
    color: #475569 !important;
}

/* Light Mode for Hero Badge (Bridging Markets — Powering Efficiency) */
[data-theme="light"] .flag-badge-pill {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .flag-badge-text {
    color: #b45309 !important;
    text-shadow: none !important;
}

[data-theme="light"] .flag-badge-pill:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

/* ================= Form Checkbox Labels ================= */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.form-checkbox-label:hover {
    border-color: var(--primary);
    background: rgba(63, 185, 222, 0.08);
}

.form-checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

[data-theme="light"] .form-checkbox-label {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .form-checkbox-label:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
}

/* ================= Form Input Light Mode Overrides ================= */
select.form-input option {
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="light"] .form-input,
[data-theme="light"] select.form-input,
[data-theme="light"] textarea.form-input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] textarea.form-input::placeholder {
    color: #64748b !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] select.form-input:focus,
[data-theme="light"] textarea.form-input:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    outline: none !important;
}

[data-theme="light"] select.form-input option {
    background: #ffffff !important;
    color: #0f172a !important;
}