/*
Theme Name: Wimbi
Theme URI: https://wimbi.com
Author: Wimbi Agency
Author URI: https://wimbi.com
Description: Tema premium Oceanic Cyber-Editorial con fondo de particulas Three.js, glassmorphism y chatbot Luna.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wimbi
*/

:root {
    /* Paleta de Colores */
    --clr-bg-deep: #050B14;
    --clr-bg-panel: rgba(13, 22, 39, 0.6);
    --clr-cyan: #00E5FF;
    --clr-cyan-glow: rgba(0, 229, 255, 0.4);
    --clr-white: #FFFFFF;
    --clr-text-main: #E2E8F0;
    --clr-text-muted: #94A3B8;

    /* Colores del Sistema (Ajustados al tema oceÃ¡nico) */
    --clr-warning: #00B4D8;
    /* Azul Brillante */
    --clr-danger: #0077B6;
    /* Azul Profundo */
    --clr-cyan-glow: rgba(0, 229, 255, 0.4);

    /* Tipografía */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Escala Tipográfica Fluida (Responsive) e Interfaz */
    --text-hero: clamp(2.5rem, 10vw, 5.5rem);
    --text-h2-section: clamp(1.8rem, 5vw, 3.5rem);
    --text-h3-card: clamp(1.25rem, 2vw, 1.5rem);
    --text-body-lg: clamp(1rem, 1.5vw, 1.2rem);
    --text-body: clamp(0.95rem, 1.2vw, 1.05rem);
    --text-tag: clamp(0.75rem, 1vw, 0.85rem);

    /* Micro-UI Variables (Fixed) */
    --text-micro-btn: 0.85rem;
    --text-micro-list: 0.8rem;
    --text-micro-desc: 0.75rem;
    --text-micro-label: 0.65rem;

    /* Espaciado y Diseño */
    --container-width: 1440px; 
    --space-section: 8rem;
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-xxl: 4rem;    /* 64px */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    /* Animaciones */
    --anim-fade-up: translateY(30px);
    --anim-duration: 0.8s;

    /* Spacing System */
    --space-section: clamp(2rem, 7vw, 5rem); /* Reduced from 8rem for a more cohesive flow */
    --space-section-mobile: 2.5rem; /* Reduced from 3rem */
    --header-height: 100px;
}

/* =========================================
   RESETEAR Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg-deep);
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    line-height: 1.6;
    background-color: transparent;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
}

body.menu-open {
    overflow: hidden; /* Lock scroll when menu is open */
}

/* Safety rule for all major sections */
section, header, footer {
    width: 100%;
    overflow-x: hidden;
}

/* =========================================
   TEXTURA DE RUIDO (CYBER-EDITORIAL)
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    /* Sobre todo pero sin bloquear clicks */
    opacity: 0.04;
    /* Sutil pero visible */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   VISUALIZADOR 3D (SPLINE)
   ========================================= */
.ocean-3d-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    /* No robar el scroll */
    border: none;
    outline: none;
    opacity: 0.8;
    /* Integrarlo suavemente con el fondo oscuro */
}

/* Accesibilidad global: Focus States Claros */
*:focus-visible {
    outline: 2px solid var(--clr-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--clr-white);
    letter-spacing: -0.02em;
    text-wrap: balance;
    /* Sombras de contraste global para separación del fondo 3D */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle,
.section-refined-title {
    font-family: var(--font-primary);
    font-size: var(--text-tag);
    /* Fluid font */
    color: var(--clr-text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    margin-bottom: 3.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: var(--text-body);
}

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

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem; /* Base padding for mobile/tablet */
    position: relative;
    z-index: 5;
}

@media (min-width: 992px) {
    .container {
        max-width: var(--container-width);
        padding: 0 4rem; /* Balanced desktop margin for editorial rhythm */
    }
}

.section-padding {
    padding: 4rem 0; /* Base pause for mobile */
}

@media (min-width: 992px) {
    .section-padding {
        padding: var(--space-section) 0; /* Balanced desktop pause */
    }
}

.section-padding {
    padding: var(--space-section) 0;
    position: relative;
    overflow-x: hidden; /* Prevent any horizontal overflow from children globally */
    /* Aplicar un sutil desenfoque global en las zonas de contenido */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
    .section-padding {
        padding: var(--space-section-mobile) 0;
    }
}

/* HELPER: CAPA DE LEGIBILIDAD (ZONAS DE CALMA) */
.content-readable-layer {
    position: relative;
    background: radial-gradient(circle at center, rgba(5, 11, 20, 0.4) 0%, transparent 70%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    /* El blur separa artísticamente el texto de las partículas */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.text-cyan {
    color: var(--clr-cyan);
    text-shadow: 0 0 20px var(--clr-cyan-glow), 0 2px 10px rgba(0, 0, 0, 0.5);
}


.page-header-spacer {
    height: var(--header-height);
    width: 100%;
    margin-bottom: 0.5rem; /* Reduced for a more compact hero */
}

/* Reducir espaciado superior específicamente para heroes de sub-páginas */
header.section-padding,
.section-padding:first-of-type {
    padding-top: clamp(2rem, 6vw, 4.5rem); /* Padding superior más ajustado */
}

@media (max-width: 1024px) {
    .page-header-spacer {
        height: 80px; /* Adjusted for mobile header height */
    }
}

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

/* =========================================
   SISTEMA DE REVELADO (SCROLL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: var(--anim-fade-up);
    transition: all var(--anim-duration) cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* =========================================
   DESTELLOS Y ONDAS DE FONDO
   ========================================= */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(0, 229, 255, 0.1);
}



/* =========================================
   NAVEGACIÃ“N (GLASSMORPHISM)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0; /* Slightly taller for more elegance */
    z-index: 1000;
    background: rgba(5, 11, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.35s ease,
        box-shadow 0.35s ease;
}

/* --- Shrink on Scroll --- */
.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(5, 11, 20, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .logo-img {
    height: 36px;
}

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

.logo-img {
    height: 44px;
    object-fit: contain;
    filter: invert(1) brightness(2);
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-white);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 11, 20, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1500;
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Quitar el separador del CTA en móvil y centrarlo */
    .nav-links > li:last-child {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
        margin-top: 2.5rem !important;
    }

    /* Estilos para dropdown en móvil (Acordeón) */
    .nav-links .dropdown {
        width: 100%;
    }

    .nav-links .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        display: none; /* Controlado por clase active en JS */
        background: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        border-radius: var(--radius-md);
        box-shadow: none !important;
        padding: 0;
        width: 100% !important;
        min-width: 100% !important;
        backdrop-filter: none !important;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
        left: 0 !important;
    }

    .nav-links .dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1rem 0 !important;
    }

    .nav-links a {
        font-size: 1.4rem;
        padding: 0.8rem;
    }

    .nav-links .dropdown-menu a {
        font-size: 1.1rem;
        padding: 0.6rem;
        opacity: 0.7;
    }

    .nav-links .dropdown > a {
        justify-content: center;
    }
}



.nav-links a {
    color: var(--clr-text-main);
    font-weight: 600;
    font-size: var(--text-micro-btn);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--clr-cyan);
}

.nav-links a.active {
    color: var(--clr-cyan);
    position: relative;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--clr-cyan);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}


/* --- Dropdown Styles (Glassmorphism) --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(5, 11, 20, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.05);
    list-style: none;
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    text-transform: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(0, 229, 255, 0.06);
    color: var(--clr-cyan);
    border-left-color: var(--clr-cyan);
    padding-left: 1.75rem;
}

.nav-links .dropdown>a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links .dropdown>a::after {
    content: '▾';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.dropdown:hover>a::after {
    transform: rotate(180deg);
    color: var(--clr-cyan);
    opacity: 1;
}

/* --- Separador visual antes del CTA --- */
.nav-links>li:last-child {
    margin-left: 0.5rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    color: var(--clr-bg-deep);
    background-color: var(--clr-cyan);
    padding: 0.65rem 1.75rem;
    /* Slightly increased horizontal padding */
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    transition: var(--transition-fast);
}

/* Base Hamburger (Oculto en Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000; /* Por encima del menu */
    padding: 0;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
}


.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--clr-white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--clr-cyan);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--clr-cyan);
}

.nav-links a.btn-primary:hover {
    box-shadow: 0 0 20px var(--clr-cyan-glow);
    transform: translateY(-2px);
}

/* =========================================
   BOTONES
   ========================================= */
.btn-cyan-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    background-color: var(--clr-cyan);
    color: var(--clr-bg-deep);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-micro-btn);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px var(--clr-cyan-glow);
    border: none;
}

.btn-cyan-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.6);
    background-color: #33EBFF;
}

.micro-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    width: 220px; /* Fixed width for consistency */
    margin: 0;
}



.btn-secondary-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    background-color: var(--clr-white);
    color: var(--clr-bg-deep);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-micro-btn);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 2px solid var(--clr-white);
}

.btn-secondary-white:hover {
    transform: translateY(-3px);
    background-color: transparent;
    color: var(--clr-cyan);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.tide-burst-btn:active,
.btn-cyan-glow:active {
    transform: scale(0.98);
}

/* TamaÃ±os de BotÃ³n (Utility) */
.btn-large {
    padding: 1rem 2.2rem !important;
    font-size: 1.05rem !important;
}

.btn-xl {
    padding: clamp(1.2rem, 3vw, 1.5rem) clamp(2.5rem, 5vw, 3.5rem) !important;
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
}

/* =========================================
   EFECTO PIXEL HOVER EN BOTÃ“N
   ========================================= */
.btn-pixel-hover {
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 800px;
}

.btn-pixel-hover .btn-text {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-pixel-hover:hover .btn-text {
    transform: translateZ(20px);
}

.pixel-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transform-style: preserve-3d;
}

.p-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--clr-white);
    box-shadow: 0 0 8px var(--clr-cyan-glow);
    border-radius: 1px;
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0);
}

/* Expande las partÃ­culas en 3D al hacer hover */
.btn-pixel-hover:hover .p-dot {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(var(--tx), var(--ty), var(--tz)) scale(var(--s));
}

/* Trayectorias aleatorias para 16 partÃ­culas */
.p-dot:nth-child(1) {
    --tx: -120px;
    --ty: -60px;
    --tz: 50px;
    --s: 1.2;
    transition-delay: 0.02s;
}

.p-dot:nth-child(2) {
    --tx: 100px;
    --ty: -80px;
    --tz: -20px;
    --s: 0.8;
    transition-delay: 0.05s;
}

.p-dot:nth-child(3) {
    --tx: -150px;
    --ty: 10px;
    --tz: 30px;
    --s: 1.5;
    transition-delay: 0.01s;
}

.p-dot:nth-child(4) {
    --tx: 140px;
    --ty: 20px;
    --tz: 80px;
    --s: 1.1;
    transition-delay: 0.08s;
}

.p-dot:nth-child(5) {
    --tx: -60px;
    --ty: 90px;
    --tz: -50px;
    --s: 0.9;
    transition-delay: 0.04s;
}

.p-dot:nth-child(6) {
    --tx: 160px;
    --ty: -30px;
    --tz: 60px;
    --s: 1.3;
    transition-delay: 0.06s;
}

.p-dot:nth-child(7) {
    --tx: -30px;
    --ty: -110px;
    --tz: 20px;
    --s: 0.7;
    transition-delay: 0.03s;
}

.p-dot:nth-child(8) {
    --tx: 60px;
    --ty: 100px;
    --tz: -40px;
    --s: 1.4;
    transition-delay: 0.07s;
}

.p-dot:nth-child(9) {
    --tx: -180px;
    --ty: -40px;
    --tz: 40px;
    --s: 1.0;
    transition-delay: 0.02s;
}

.p-dot:nth-child(10) {
    --tx: 110px;
    --ty: 120px;
    --tz: 70px;
    --s: 0.8;
    transition-delay: 0.09s;
}

.p-dot:nth-child(11) {
    --tx: -100px;
    --ty: 60px;
    --tz: -30px;
    --s: 1.6;
    transition-delay: 0.05s;
}

.p-dot:nth-child(12) {
    --tx: 190px;
    --ty: 50px;
    --tz: 10px;
    --s: 0.9;
    transition-delay: 0.01s;
}

.p-dot:nth-child(13) {
    --tx: -140px;
    --ty: -100px;
    --tz: -60px;
    --s: 1.2;
    transition-delay: 0.04s;
}

.p-dot:nth-child(14) {
    --tx: 40px;
    --ty: -130px;
    --tz: 50px;
    --s: 1.1;
    transition-delay: 0.06s;
}

.p-dot:nth-child(15) {
    --tx: 150px;
    --ty: -70px;
    --tz: -10px;
    --s: 0.7;
    transition-delay: 0.08s;
}

.p-dot:nth-child(16) {
    --tx: -80px;
    --ty: 130px;
    --tz: 30px;
    --s: 1.3;
    transition-delay: 0.03s;
}

/* =========================================
/* =========================================
   ESTRUCTURA HERO (CENTRED PROTAGONIST)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--header-height) + 4rem) 1rem 3rem; /* Increased top padding */
    background: radial-gradient(circle at center, rgba(5, 11, 20, 0.4) 0%, rgba(5, 11, 20, 0.95) 100%);
    text-align: center;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .hero {
        background: radial-gradient(circle at center, rgba(5, 11, 20, 0.2) 0%, rgba(5, 11, 20, 0.9) 100%);
    }
}

.hero-content {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    position: relative;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    color: var(--clr-cyan);
    text-shadow: 0 0 15px var(--clr-cyan-glow);
    text-align: center;
}

.hero-title-v2 {
    font-family: 'Syne', sans-serif;
    font-size: var(--text-hero);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    text-align: center;
    width: 100%;
    color: var(--clr-white);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.hero-line-mask {
    overflow: hidden;
    margin-bottom: 0.2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-line {
    display: block;
    width: 100%;
    white-space: nowrap !important;
    transform: translateY(110%);
    animation: hero-reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-line-mask:nth-child(1) .hero-line {
    animation-delay: 0.1s;
}

.hero-line-mask:nth-child(2) .hero-line {
    animation-delay: 0.3s;
    opacity: 0.7;
    /* Suavizar conectores de la segunda línea */
    color: rgba(255, 255, 255, 0.7);
}

.hero-line .text-cyan {
    color: var(--clr-cyan);
    opacity: 1 !important;
    animation: cyan-pulse 4s infinite ease-in-out;
}

@keyframes hero-reveal {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cyan-pulse {

    0%,
    100% {
        text-shadow: 0 0 10px var(--clr-cyan-glow);
        filter: brightness(1);
    }

    50% {
        text-shadow: 0 0 25px var(--clr-cyan-glow), 0 0 45px rgba(0, 229, 255, 0.2);
        filter: brightness(1.2);
    }
}

.hero-title-v2 .text-cyan {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: var(--text-body);
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem; /* Reduced from 4rem */
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 100px; /* Reduced from 120px */
        padding-bottom: 60px; /* Reduced from 80px */
    }

    .hero-title-v2 {
        font-size: clamp(1.3rem, 6.2vw, 3rem);
        /* Reducido para asegurar que quepa en dos líneas sin overflow excesivo */
    }
}


/* Contenedor de Botones Hero */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    row-gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px; /* Increased to allow buttons side by side */
    margin: 0 auto; /* Removed top margin since description margin handles it */
    position: relative;
    z-index: 25;
}

/* Visual Abstracto Hero (RepresentaciÃ³n CSS de onda 3D) */
.hero-visual {
    flex: 1;
    max-width: 42%;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 5;
}

/* Contenedor de Imagen Hero */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    /* Reduced to fit better in grid column */
    height: clamp(400px, 60vh, 750px);
    /* Adjusted to prevent vertical overflow */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.6s var(--transition-smooth);
}

.glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    /* Bigger glow */
    height: 600px;
    background: var(--clr-cyan);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: pulse-glow 4s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-model-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ajusta la imagen sin deformarla */
    object-position: bottom center;
    /* La modelo se apoya en la parte inferior */
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    /* Efecto de desvanecimiento inferior para integrar con el mar */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

@keyframes pulse-glow {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* =========================================
   SECCIÓN 2: VISIBILIDAD Y AUTOMATIZACIÓN
   ========================================= */
#visibility-block {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.03) 0%, transparent 80%);
}

.relative-z {
    position: relative;
    z-index: 5;
}

.reveal-content-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.small-pill {
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    opacity: 0.8;
}

/* Removido el duplicado para consolidar estilos en la sección de revelado */

.reveal-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: var(--text-body);
    line-height: 1.8;
    color: var(--clr-text-muted);
    font-weight: 300;
    opacity: 0.8;
}

#visibility-block {
    position: relative;
    background: linear-gradient(to bottom, 
        var(--clr-bg-deep) 0%, 
        transparent 15%, 
        transparent 85%, 
        var(--clr-bg-deep) 100%
    );
}

/* Radar SVG Animation */
.animated-svg-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%), radial-gradient(circle at center, black 20%, transparent 80%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%), radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.radar-svg {
    width: 100%;
    height: 100%;
}

.radar-circle {
    fill: none;
    stroke: var(--clr-cyan);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.radar-c1 {
    animation: radar-pulse 3s infinite ease-in-out;
}

.radar-c2 {
    animation: radar-pulse 3s infinite ease-in-out 1s;
}

.radar-c3 {
    animation: radar-pulse 3s infinite ease-in-out 2s;
}

.radar-line {
    stroke: var(--clr-cyan);
    stroke-width: 2;
    transform-origin: center;
    animation: radar-rotate 8s linear infinite;
}

.radar-sweep {
    fill: url(#radar-gradient);
    transform-origin: center;
    animation: radar-rotate 8s linear infinite;
    opacity: 0.5;
}

@keyframes radar-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes radar-pulse {

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

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

/* Radar Blips — Digital Visibility Points */
.radar-blip {
    fill: var(--clr-cyan);
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--clr-cyan)) drop-shadow(0 0 16px rgba(0, 229, 255, 0.6));
    transform-origin: center;
    transform-box: fill-box;
    animation: blip-appear 4s infinite ease-in-out;
}

@keyframes blip-appear {
    0%, 10% { opacity: 0; transform: scale(0); }
    20%, 30% { opacity: 1; transform: scale(1.2); }
    50% { opacity: 0.8; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(0); }
}

/* Staggered delays for organic timing */
.blip-d1  { animation-delay: 0.5s; }
.blip-d2  { animation-delay: 2.8s; }
.blip-d3  { animation-delay: 1.2s; }
.blip-d4  { animation-delay: 3.5s; }
.blip-d5  { animation-delay: 0.8s; }
.blip-d6  { animation-delay: 2.1s; }
.blip-d7  { animation-delay: 1.8s; }
.blip-d8  { animation-delay: 3.0s; }
.blip-d9  { animation-delay: 0.3s; }
.blip-d10 { animation-delay: 2.5s; }
.blip-d11 { animation-delay: 1.5s; }
.blip-d12 { animation-delay: 3.3s; }

/* =========================================
   NUEVA SECCI&Oacute;N PROBLEMA/SOLUCI&Oacute;N (PS-GRID)
   ========================================= */
/* La clase .problem-solution-container hereda el padding uniforme de .section-padding */

.section-subtitle {
    text-transform: none;
    letter-spacing: normal;
    font-size: var(--text-body);
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.7;
}

.section-main-title {
    font-size: var(--text-h2-section);
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.2;
}

.two-line-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.section-main-title.two-line-title,
.contact-title.two-line-title {
    max-width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.two-line-title > span {
    display: block;
    white-space: nowrap !important;
    font-size: clamp(1.1rem, 6.5vw, 3.5rem); 
    line-height: 1.2;
    width: 100%;
    text-align: center;
    overflow: visible;
}

@media (max-width: 768px) {
    .two-line-title > span {
        font-size: clamp(1rem, 6.5vw, 2.2rem);
        white-space: normal !important;
        text-align: center;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .two-line-title > span {
        font-size: clamp(0.8rem, 6vw, 1.5rem);
    }
}



.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.ps-header {
    margin-bottom: calc(var(--space-section) * 0.5);
}

.ps-card {
    background: linear-gradient(145deg, rgba(13, 22, 39, 0.4) 0%, rgba(5, 11, 20, 0.7) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.ps-card:hover {
    transform: translateY(-5px);
    border-top-color: rgba(255, 255, 255, 0.2);
}

.solution-side.highlight-glow {
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.05) 0%, rgba(5, 11, 20, 0.8) 100%);
    border-top-color: rgba(0, 229, 255, 0.3);
}

.solution-side:hover {
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1);
    border-top-color: rgba(0, 229, 255, 0.5);
}

.ps-card-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.ps-card h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ps-card p {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--clr-cyan);
    letter-spacing: -0.02em;
}

/* =========================================
   SCROLL REVEAL SECTION (VISIBILIDAD)
   ========================================= */
.scroll-reveal-section {
    position: relative;
    z-index: 5;
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    background: transparent;
}

.reveal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    max-width: 1200px !important;
    /* Forzar el ancho para evitar quiebres indeseados */
    margin-left: auto;
    margin-right: auto;
    text-wrap: initial;
    /* Respetar los <br> manuales prioritariamente */
    margin-bottom: 2.5rem;
    opacity: 0.2;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(30px);
    filter: blur(4px);
}

.reveal-text {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    max-width: 850px;
    margin: 0 auto;
    color: var(--clr-text-main);
    line-height: 1.6;
    opacity: 0.15;
    transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.2s;
    transform: translateY(30px);
}

/* Estado Activo (Activado por el observer general .active) */
.scroll-reveal-section.active .reveal-title {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.scroll-reveal-section.active .reveal-text {
    opacity: 0.9;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #visibility-block {
        min-height: auto !important;
    }
    .scroll-reveal-section {
        padding-top: calc(var(--space-section) * 0.6) !important;
        padding-bottom: calc(var(--space-section) * 0.6) !important;
    }
}

.services-showcase {
    position: relative;
    z-index: 2;
}

.pill-tag {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    color: var(--clr-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1) inset;
}

.elite-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

@media (max-width: 992px) {
    .elite-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .elite-services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Grid de Precios - Asegurar que 4 quepan */
.pricing-grid,
.web-types-grid,
.service-grid-ia {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .pricing-grid,
    .web-types-grid,
    .service-grid-ia {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid,
    .web-types-grid,
    .service-grid-ia {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.25rem;
    }
}

.elite-card,
.service-ia-card,
.pack-card,
.pricing-card,
.solution-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed to left for more premium editorial look */
    text-align: left;        /* Better readability than justified/centered for descriptions */
    background: linear-gradient(165deg, rgba(17, 25, 40, 0.7) 0%, rgba(5, 11, 20, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 1.8rem 2rem; 
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.elite-card::before,
.service-ia-card::before,
.pack-card::before,
.pricing-card::before,
.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.elite-card:hover,
.service-ia-card:hover,
.pack-card:hover,
.pricing-card:hover,
.solution-card:hover {
    transform: translateY(-10px);
    border-top-color: rgba(0, 229, 255, 0.5);
    background: linear-gradient(165deg, rgba(17, 25, 40, 0.85) 0%, rgba(5, 11, 20, 0.95) 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
}

/* Estilos específicos para Solution Card en Web Types */
.solution-card .solution-icon-box {
    margin-bottom: 1rem;
    width: 32px; /* Reducido de 48px */
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-card .solution-icon-box svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--clr-cyan-glow));
}

.solution-label {
    display: block;
    font-size: var(--text-micro-label);
    color: var(--clr-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.service-ia-card .solution-label {
    padding-right: 80px; /* Prevent overlap with absolute price tag only in IA cards */
}


.solution-title {
    color: var(--clr-white);
    margin-bottom: 0.8rem;
    font-size: var(--text-card-title);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.solution-tagline {
    font-weight: 600;
    color: var(--clr-white);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.solution-desc {
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.85rem; 
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.solution-benefit {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-micro-list); 
    font-weight: 500;
    line-height: 1.5;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px var(--clr-cyan-glow));
}

@media (max-width: 480px) {
    .elite-card,
    .service-ia-card,
    .pack-card,
    .pricing-card,
    .solution-card {
        padding: 1.5rem;
    }
}

.elite-card:hover,
.service-ia-card:hover,
.pack-card:hover,
.pricing-card:hover,
.solution-card:hover {
    transform: translateY(-8px);
    border-top-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1), 0 0 30px rgba(0, 229, 255, 0.05);
}

.elite-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    color: var(--clr-cyan);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.elite-card:hover .elite-icon-box {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
}

.elite-title {
    font-size: var(--text-h3-card);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--clr-white);
}

.elite-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
    flex-grow: 1;
}

.elite-price-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--clr-cyan);
    font-size: var(--text-tag);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.elite-card:hover .elite-price-tag {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.35);
}

/* Incluye lo que incluye (lista compacta) */
.elite-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
    padding: 0;
    list-style: none;
}

.elite-includes li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Botón Ver Más en Elite Card */
.elite-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--clr-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.elite-card:hover .elite-btn-more {
    opacity: 1;
    gap: 0.8rem;
    text-shadow: 0 0 15px var(--clr-cyan-glow);
}

.elite-btn-more svg {
    transition: transform 0.3s ease;
}

.elite-card:hover .elite-btn-more svg {
    transform: translateX(5px);
}

/* =========================================
   PORTAFOLIO: FILTROS Y GRID
   ========================================= */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    color: var(--clr-text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--clr-cyan);
    border-color: var(--clr-cyan);
    color: var(--clr-bg-deep);
    box-shadow: 0 0 25px var(--clr-cyan-glow);
    text-shadow: none;
}

@media (max-width: 768px) {
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
    }
}

/* =========================================
   IA CONTENT: REESTRUCTURACIÓN (SOLUCIONES VISUALES)
   ========================================= */

.service-ia-card {
    height: 100%;
    /* Reutiliza base de .solution-card */
}

.service-ia-card:hover {
    background: linear-gradient(165deg, rgba(17, 25, 40, 0.9) 0%, rgba(5, 11, 20, 0.98) 100%);
}


.price-tag,
.elite-price-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 229, 255, 0.03);
    color: var(--clr-cyan);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    transition: all 0.4s var(--transition-smooth);
}

.service-ia-card:hover .price-tag {
    background: var(--clr-cyan);
    color: var(--clr-bg-deep);
    border-color: var(--clr-cyan);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px var(--clr-cyan-glow);
}

.service-ia-card .service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 2rem;
}

/* 2. Sección de Valor (Minimalismo Editorial) */
.ia-minimal-section {
    margin-top: 8rem;
    padding: 0 2rem;
    text-align: center;
}

.ia-intro-centered {
    max-width: 850px;
    margin: 0 auto 5rem auto;
}

.ia-intro-centered h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.ia-intro-centered p {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* 2. Sección de Rendimiento y Estadísticas IA */
.ia-performance-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    margin-top: 6rem;
    align-items: center;
}

.ia-context-block {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.clean-benefit-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.clean-benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.clean-benefit-list .benefit-icon {
    width: 18px;
    height: 18px;
    color: var(--clr-cyan);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px var(--clr-cyan-glow));
}

.ia-stats-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ia-stat-item {
    background: none;
    border: none;
    padding: 0.5rem 0;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ia-stat-item:last-child {
    border-bottom: none;
}

.ia-stat-item:hover {
    transform: translateX(5px);
}

.stat-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-cyan);
    text-shadow: 0 0 15px var(--clr-cyan-glow);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-white);
    opacity: 0.8;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: var(--clr-cyan);
    box-shadow: 0 0 10px var(--clr-cyan);
    transform-origin: left;
}

/* Animaciones específicas por dato */
.anim-speed {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.anim-cost {
    animation: shrinkIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.anim-impact {
    animation: popIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInLeft {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

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

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes stat-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.stat-progress-run {
    animation: stat-reveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 1024px) {
    .ia-performance-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* 3. Proceso de Contenido */
.process-steps-ia {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.process-steps-ia::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05); /* Línea base sutil */
    z-index: 1;
}

/* Animación de Luz Fluyendo (Opción 3: Flujo de Energía Viva) */
.process-steps-ia::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    /* Gradiente que se repite para crear ondas continuas */
    background: repeating-linear-gradient(90deg, 
        rgba(0, 229, 255, 0.1) 0%, 
        var(--clr-cyan) 25%, 
        rgba(0, 229, 255, 0.1) 50%);
    background-size: 200% 100%;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    z-index: 1;
    animation: flowEnergyWave 3s linear infinite;
}

@keyframes flowEnergyWave {
    /* Mueve el gradiente para crear la ilusión de movimiento de menor a mayor */
    0% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

@keyframes flowEnergyWaveVertical {
    0% { background-position: 0 0%; }
    100% { background-position: 0 100%; }
}

@media (max-width: 768px) {
    .process-steps-ia {
        flex-direction: column;
        gap: 5rem;
        align-items: center;
        position: relative !important;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Forzar visibilidad de las líneas en móvil */
    .process-steps-ia::before,
    .process-steps-ia::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        margin-left: -1.5px !important;
        top: 50px !important;
        bottom: 120px !important;
        width: 3px !important;
        height: auto !important;
        z-index: 1 !important;
        transform: none !important;
    }

    .process-steps-ia::after {
        background: rgba(0, 229, 255, 0.15) !important;
        width: 1px !important;
        margin-left: -0.5px !important;
    }

    .process-steps-ia::before {
        background: linear-gradient(to bottom, 
            transparent 0%, 
            var(--clr-cyan) 50%, 
            transparent 100%) !important;
        background-size: 100% 200% !important;
        animation: flowEnergyWaveVertical 2s linear infinite !important;
        box-shadow: 0 0 15px var(--clr-cyan-glow) !important;
    }
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--clr-bg-deep);
    border: 2px solid var(--clr-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--clr-cyan);
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
}

.process-step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 4. Packs de Precios */
.pricing-grid-ia {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.pack-card,
.pricing-card {
    align-items: center;
    text-align: center;
}

.pack-card.popular {
    border-color: rgba(0, 229, 255, 0.5);
    transform: scale(1.05);
    z-index: 2;
    background: rgba(0, 229, 255, 0.02);
}

.featured-badge,
.pack-popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-cyan);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
}

.pack-header,
.p-card-header {
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.p-title,
.pack-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--clr-cyan);
    margin-bottom: 0.3rem; /* Reduced */
    display: block;
}

.pack-price,
.p-price {
    font-family: var(--font-heading);
    color: var(--clr-white) !important;
    margin: 0;
    line-height: 1; /* Reducido */
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 0.1rem; /* Casi sin espacio */
}

.p-price {
    font-size: 0.9rem; /* Tamaño de "Desde" */
    font-weight: 400;
    color: var(--clr-text-muted);
    text-transform: none;
}

.p-price span,
.pack-price {
    font-size: clamp(1.8rem, 2.8vw, 2.2rem); /* Reducido de 3rem */
    font-weight: 800;
    color: var(--clr-white) !important;
}

.pack-price span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-family: var(--font-body);
    margin-left: 0.2rem;
    text-transform: lowercase;
}

.pack-desc,
.p-tagline {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-top: 0.3rem; /* Reduced */
    line-height: 1.4;
    text-align: center;
}

.pack-features,
.p-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto; 
    flex-grow: 1;
    width: 100%;
    max-width: 280px; /* Ancho máximo para mantener legibilidad */
    text-align: left; 
    padding-left: 1rem; /* Margen interno para las viñetas */
}

.pack-features li,
.p-features li {
    padding: 0.3rem 0; /* Aún más reducido */
    font-size: 0.78rem; /* Un pelín más pequeño */
    color: var(--clr-text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pack-features li:last-child,
.p-features li:last-child {
    border-bottom: none;
}

.pack-features li::before,
.p-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--clr-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-cyan);
    flex-shrink: 0;
}

.pack-target {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
}

.pack-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    min-width: 200px;
    margin: 0 auto;
}

/* Ensure buttons inside pricing cards remain full-width for layout balance */
.pack-card .pack-cta {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsividad */
@media (max-width: 1200px) {
    .pricing-grid-ia {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid-ia {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }

    .pack-card.popular {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .ia-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ia-intro-centered h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ia-benefits-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ia-intro-centered h3 {
        font-size: 2rem;
    }
    .ia-intro-centered p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .process-steps-ia {
        flex-direction: column;
        gap: 3rem;
    }

    .process-steps-ia::after,
    .process-steps-ia::before {
        display: none;
    }
}




/* =========================================
   FRASE DE TRANSICIÃ“N (ANTIGRAVITY STYLE)
   ========================================= */
.transition-phrase-section {
    position: relative;
    padding: var(--space-section) 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, 0.8) 50%, rgba(5, 11, 20, 0) 100%);
}

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

/* =========================================
   ESTADOS DE FORMULARIO
   ========================================= */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    right: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--clr-bg-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.form-success-msg {
    display: none;
    background: rgba(0, 229, 255, 0.1);
    color: var(--clr-cyan);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 0 10px var(--clr-cyan-glow);
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}

.mini-contact-card .form-success-msg {
    padding: 1.5rem 1rem;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--clr-cyan);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-300px) translateX(100px);
        opacity: 0;
    }
}

.floating-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.floating-text {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--clr-white);
    letter-spacing: -0.01em;
    animation: soft-float 4s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

@keyframes soft-float {
    0% {
        transform: translateY(0);
    }

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

/* =========================================
   QUIÉNES SOMOS (REFINADO)
   ========================================= */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#quienes-somos {
    padding: 0 !important;
    overflow: visible !important;
}

.about-banner-wave {
    background: rgba(1, 15, 30, 0.45);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    padding: 8rem 0;
    width: 100%;
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

.about-banner-wave::-webkit-scrollbar {
    display: none;
}

.about-banner-wave {
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 3000 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 C500,25 1000,-10 1500,10 C2000,30 2500,-10 3000,10 L3000,90 C2500,70 2000,110 1500,90 C1000,70 500,110 0,90 Z" fill="black"/></svg>');
    mask-size: 300% 100%;
    mask-position: 50% 0%;
    mask-repeat: no-repeat;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 3000 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 C500,25 1000,-10 1500,10 C2000,30 2500,-10 3000,10 L3000,90 C2500,70 2000,110 1500,90 C1000,70 500,110 0,90 Z" fill="black"/></svg>');
    -webkit-mask-size: 300% 100%;
    -webkit-mask-position: 50% 0%;
    -webkit-mask-repeat: no-repeat;
}

@media (max-width: 768px) {
    .about-banner-wave {
        padding: 4rem 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .about-section {
        padding: 0 1rem;
    }

    .about-section h2,
    .about-section .section-main-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .about-main-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-banner-wave {
        padding: 3rem 0;
    }

    .about-section h2,
    .about-section .section-main-title {
        font-size: 1.5rem !important;
    }
}

/* Subtle glow internal to the masked wave */
.about-banner-wave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.about-main-text {
    max-width: 700px;
    margin: 0 auto;
}

.about-main-text p {
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.about-main-text p:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.text-placeholder.large-text {
    padding: 3rem;
    min-height: 200px;
}

.text-placeholder.large-text p {
    font-size: 1.3rem;
}

.about-visual {
    width: 100%;
    min-height: 450px;
    margin-top: 4rem;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0.8) 0%, rgba(13, 22, 39, 0.4) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    backdrop-filter: blur(24px);
}

/* =========================================
   SERVICIOS (BENTO BOX GRID)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    /* un poco mÃ¡s de aire */
}

.bento-card {
    background: linear-gradient(145deg, rgba(13, 22, 39, 0.7) 0%, rgba(5, 11, 20, 0.9) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Light tip */
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-top-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(0, 229, 255, 0.2);
}

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

.bento-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--clr-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.bento-card h3 i {
    font-style: normal;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.bento-card .bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Detalles de servicios */
.service-slogan {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-card h4 {
    font-size: 1.2rem;
    color: var(--clr-text-main);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0 2.5rem 0;
    padding: 0;
    flex-grow: 1;
    text-align: left;
}

.service-features li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--clr-cyan);
}

.service-features li strong {
    color: var(--clr-text-main);
}

.btn-service {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

/* =========================================
   PIE DE PÁGINA (BRANDED FOOTER)
   ========================================= */
.footer {
    padding: 5rem 0 4rem; /* Reduced top padding to eliminate excess space as requested */
    background: rgba(1, 15, 30, 0.4);
    /* Glassmorphism darker */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem; /* Reduced from 3rem */
    }
}

/* Columna Marca */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(1.5);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .footer-logo {
        margin: 0 auto;
    }
}

.footer-tagline {
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--clr-text-muted);
    max-width: 320px;
}

/* Títulos de Secciones */
.footer-title {
    color: var(--clr-text-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--clr-cyan);
    box-shadow: 0 0 10px var(--clr-cyan-glow);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Enlaces y Navegación */
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: var(--text-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--clr-cyan);
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-links a {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: scale(1.05);
    }
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
}

.social-link {
    color: var(--clr-text-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--clr-cyan);
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 8px var(--clr-cyan-glow));
}

/* Footer Bottom Area */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-cta-text {
    font-size: var(--text-body);
    color: var(--clr-text-main);
}

.footer-cta-link {
    color: var(--clr-cyan);
    font-weight: 700;
    margin-left: 0.5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-cta-link:hover {
    text-shadow: 0 0 12px var(--clr-cyan-glow);
}

.copyright {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    opacity: 0.8;
}

/* =========================================
   LUNA CHATBOT (PIXEL ANIMATION)
   ========================================= */
.luna-bot-container {
    position: fixed;
    bottom: 110px;
    /* Above whatsapp button */
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
}

.luna-message {
    background: rgba(13, 22, 39, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
    color: var(--clr-white);
    padding: 12px 18px;
    border-radius: 18px 18px 0 18px;
    font-size: 0.95rem;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.luna-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.luna-message span.luna-text span {
    color: var(--clr-cyan);
    font-weight: 700;
}

.luna-tail {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 229, 255, 0.4);
}

.luna-tail::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(13, 22, 39, 0.85);
}

.luna-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

#luna-pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
}

.luna-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--clr-cyan);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
    opacity: 0;
    /* Hidden initially, shown after animation */
    transition: opacity 0.5s ease;
    z-index: 1;
}

.luna-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 768px) {
    .luna-bot-container {
        right: 20px;
        bottom: 90px;
    }

    .luna-avatar-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* =========================================
   BOTON FLOTANTE WHATSAPP (PREMIUM)
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    /* Verde original suavizado en hover */
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--clr-cyan);
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.4);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Luna Notification Bubble */
.luna-notif-container {
    position: absolute;
    top: -65px;
    right: -5px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    z-index: 1001;
}

.luna-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--clr-cyan);
    background: var(--clr-bg-dark);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.3);
    opacity: 0;
    transform: scale(0) translateY(20px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.luna-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luna-bubble.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.luna-msg-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: rgba(13, 22, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.5s ease 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.luna-bubble.active .luna-msg-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .luna-notif-container {
        top: -55px;
        right: -2px;
    }
    .luna-bubble {
        width: 50px;
        height: 50px;
    }
    .luna-msg-tooltip {
        display: none; /* Hide message on mobile for cleaner look */
    }
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--clr-cyan);
    color: var(--clr-bg-deep);
    box-shadow: 0 0 20px var(--clr-cyan-glow);
    border-color: var(--clr-cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item-link {
    text-decoration: none;
    display: block;
    color: inherit;
    height: 100%;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(13, 22, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-img-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item img[alt*="Rumilcar Shop"] {
    object-position: top center !important;
}

/* Dual View for multiple images in one card */
.portfolio-img-container.dual-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 229, 255, 0.1);
}

.portfolio-img-container.dual-view img {
    height: 100%;
    width: 100%;
}

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

.portfolio-item:hover .portfolio-img-container.dual-view img {
    transform: scale(1.1);
}

.face-focus {
    object-position: 50% 45% !important;
    /* Perfect balance to show full face (eyes to chin) and uniform detail */
}

.portfolio-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    z-index: 5;
}

.portfolio-info {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-white);
}

.portfolio-info .micro-cta {
    margin-top: auto !important;
    padding-top: 1.5rem;
    align-self: center;
    color: var(--clr-cyan);
}

.portfolio-extra-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.portfolio-extra-line span {
    max-width: 250px;
    line-height: 1.3;
}

.portfolio-extra-line svg {
    flex-shrink: 0;
}

/* --- Video Showcase (Reels/TikTok Style) --- */
.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: rgba(13, 22, 39, 0.4);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.video-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    aspect-ratio: 9/16;
    background: #050b14;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-card:hover video {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--clr-cyan);
    color: var(--clr-bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--clr-cyan-glow);
    transition: all 0.3s ease;
}

.play-btn-circle svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.15);
}

.video-card.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-card.playing video {
    opacity: 1;
}

.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(5, 11, 20, 0.95));
    text-align: left;
    z-index: 3;
}

.video-info-overlay h4 {
    color: var(--clr-white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.video-info-overlay p {
    color: var(--clr-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    justify-content: center;
}

.feature-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.portfolio-item:hover .feature-badge {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    color: var(--clr-cyan);
}

/* PORTFOLIO SLIDER */
.portfolio-slider img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out !important;
}

.portfolio-slider img.active {
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--clr-cyan);
    box-shadow: 0 0 10px var(--clr-cyan-glow);
    width: 15px;
    border-radius: 4px;
}

/* PORTFOLIO MODAL */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: none;
    /* Hidden by JS */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portfolio-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    background: rgba(13, 22, 39, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    z-index: 5001;
    animation: modal-entry 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-entry {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--clr-cyan);
    color: var(--clr-bg-deep);
    transform: rotate(90deg);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

@media (max-width: 992px) {
    .modal-content-grid {
        grid-template-columns: 1fr;
    }
}

.modal-visual {
    position: relative;
    background: #000;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.modal-features {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    background: rgba(13, 22, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--clr-cyan);
    border-radius: 0 10px 10px 0;
}

.feature-title {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--clr-cyan);
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-size: 1rem;
    font-weight: 600;
}

.modal-text {
    padding: 2.5rem 3rem;
}

.modal-tag {
    font-size: 0.85rem;
    color: var(--clr-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.modal-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--clr-white);
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.modal-body p {
    color: var(--clr-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.highlight {
    text-align: center;
}

.h-value {
    display: block;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--clr-cyan);
    font-weight: 800;
}

.h-label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.portfolio-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.portfolio-tag {
    font-size: 0.8rem;
    color: var(--clr-cyan);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   MAREA DEL PROCESO (TIMELINE)
   ========================================= */
/* =========================================
   PROCESO (GRID TIMELINE COMPACTO)
   ========================================= */
.timeline-section {
    position: relative;
    padding: 2rem 0 4rem 0;
    /* Menos scroll vertical */
    overflow: hidden;
    z-index: 5;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1rem;
    position: relative;
}

.timeline-item {
    position: relative;
    z-index: 5;
    text-align: left;
}

/* Nodos iluminados (Ahora arriba flotando) */
.timeline-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: rgba(5, 11, 20, 1);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--clr-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-number {
    border-color: var(--clr-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    color: var(--clr-white);
}

/* Cajas de Contenido Glassmorphism */
.timeline-content {
    background: linear-gradient(145deg, rgba(13, 22, 39, 0.5) 0%, rgba(5, 11, 20, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    height: 100%;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-top-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.05);
}

.horizontal-timeline-container .timeline-content {
    padding: 2.2rem 1.5rem 1.8rem 1.5rem;
    /* Padding mÃ¡s compacto */
}

.horizontal-timeline-container .timeline-content h3 {
    font-size: 1.25rem;
    /* TÃ­tulo un poco mÃ¡s pequeÃ±o */
}

.horizontal-timeline-container .timeline-content p {
    font-size: 0.88rem;
    /* DescripciÃ³n un poco mÃ¡s pequeÃ±a */
    line-height: 1.5;
}

/* TÃ­tulo de la secciÃ³n Timeline */
.timeline-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

/* Removemos los modificadores viejos para evitar conflictos */
.timeline-container::before,
.timeline-line-glow {
    display: none;
}

/* =========================================
   TIMELINE VERTICAL RUMBO A LA REALIDAD
   ========================================= */
.vertical-timeline-container {
    max-width: 750px;
    margin: 5rem auto;
    position: relative;
    padding: 2rem 0;
}

/* El haz de luz vertical central */
.vertical-timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    /* Alineado con el eje del nÃºmero */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--clr-cyan), var(--clr-cyan-glow), transparent);
    background-size: 100% 200%;
    animation: flow-line-vertical 5s linear infinite;
    opacity: 0.3;
}

@keyframes flow-line-vertical {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 -200%;
    }
}

.vertical-timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 120px;
    /* Espacio para el nodo numÃ©rico */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.vertical-timeline-item:last-child {
    margin-bottom: 0;
}

/* Nodo NumÃ©rico Estilo Gaming/Pro (Basado en imagen) */
.v-timeline-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--clr-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transition: var(--transition-smooth);
    z-index: 10;
}

.vertical-timeline-item:hover .v-timeline-node {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 30px var(--clr-cyan-glow), inset 0 0 15px rgba(0, 229, 255, 0.2);
    transform: scale(1.05) translateX(5px);
    color: var(--clr-white);
}

/* Contenido del paso */
.v-timeline-content {
    transition: var(--transition-smooth);
}

.v-timeline-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.v-timeline-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-cyan);
    opacity: 0.9;
}

.v-timeline-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--clr-white);
    letter-spacing: -0.02em;
}

.v-timeline-content p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 550px;
}

/* AnimaciÃ³n de entrada para items */
.vertical-timeline-item.reveal {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vertical-timeline-item.reveal.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes flow-line {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Ajustes Responsive para Timeline Horizontal */
@media screen and (max-width: 1400px) {
    .horizontal-timeline-container .timeline-item {
        flex: 0 0 calc(25% - 1rem);
        /* 4 tarjetas en tablets grandes */
    }
}

@media screen and (max-width: 1024px) {
    .horizontal-timeline-container .timeline-item {
        flex: 0 0 calc(33.333% - 1rem);
        /* 3 tarjetas */
    }
}

@media screen and (max-width: 768px) {
    .horizontal-timeline-container .timeline-item {
        flex: 0 0 calc(85% - 1rem);
        /* 1 tarjeta */
    }
}

/* Responsividad Grid Timeline */
@media screen and (max-width: 768px) {
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =========================================
   SOLUTIONS GRID (Servicio Web)
   ========================================= */
.solutions-grid-section {
    position: relative;
    padding: 3rem 0;
    z-index: 5;
}

.solutions-grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-card {
    background: linear-gradient(145deg, rgba(13, 22, 39, 0.4) 0%, rgba(5, 11, 20, 0.7) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-top-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.05);
}

.solution-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--clr-cyan);
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.solution-card:hover .solution-icon-box {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
}

.solution-title {
    font-size: 1.25rem;
    color: var(--clr-white);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.solution-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* =========================================
   SOLUTIONS CAROUSEL (IA Content)
   ========================================= */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 50px;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-smooth);
    gap: 1.5rem;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    color: var(--clr-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--clr-cyan);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--clr-cyan);
    box-shadow: 0 0 10px var(--clr-cyan-glow);
    transform: scale(1.2);
}

@media screen and (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media screen and (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 15px;
    }

    .carousel-item {
        flex: 0 0 85%;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-track-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .carousel-track-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-item {
        scroll-snap-align: center;
    }
}

/* =========================================
   FORMULARIO DE CONTACTO - WIMBI
   ========================================= */
.contact-header {
    margin-bottom: 3rem;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: var(--text-h2-section);
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: var(--text-body);
    color: var(--clr-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-copy {
    font-size: var(--text-body);
    color: var(--clr-text-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 1.5rem auto;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-card {
    background: linear-gradient(180deg, rgba(13, 22, 39, 0.85) 0%, rgba(5, 11, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--clr-bg-panel);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wimbi-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--clr-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:valid+label {
    transform: translateY(-0.5rem) scale(0.85);
    color: var(--clr-cyan);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--clr-bg-deep);
    color: var(--clr-white);
}

.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--clr-cyan) 0%, #00B4D8 100%);
    color: var(--clr-bg-deep);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: var(--text-micro-btn);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    position: relative;
}

.btn-submit.btn-large {
    padding: 1.125rem 2.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

.btn-submit.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.btn-loading svg {
    display: none;
}

.btn-submit.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(5, 11, 20, 0.3);
    border-top-color: var(--clr-bg-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-card {
        padding: 2.5rem 1.75rem;
    }

    .btn-submit {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }

    .btn-submit.btn-large {
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }
}

/* =========================================
   MINI FORMULARIO - PORTAFOLIO
   ========================================= */
.cta-form-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.cta-content {
    margin-bottom: 2.5rem;
}

.cta-description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--clr-text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 1rem auto 0;
}

.mini-contact-card {
    background: rgba(13, 22, 39, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.mini-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mini-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mini-form-group {
    position: relative;
}

.mini-form-group input,
.mini-form-group select {
    width: 100%;
    padding: 1rem 0.875rem 0.625rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.mini-form-group input:focus,
.mini-form-group select:focus {
    border-color: var(--clr-cyan);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.mini-form-group input::placeholder {
    color: transparent;
}

.mini-form-label {
    position: absolute;
    left: 0.875rem;
    top: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.8125rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.mini-form-group input:focus+.mini-form-label,
.mini-form-group input:not(:placeholder-shown)+.mini-form-label,
.mini-form-group select:focus+.mini-form-label,
.mini-form-group select:valid+.mini-form-label {
    transform: translateY(-0.45rem) scale(0.82);
    color: var(--clr-cyan);
}

.mini-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.875rem;
    padding-right: 2.5rem;
}

.mini-form-group select option {
    background: var(--clr-bg-deep);
    color: var(--clr-white);
}

.mini-form-actions {
    margin-top: 0.5rem;
}

.mini-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--clr-cyan) 0%, #00B4D8 100%);
    color: var(--clr-bg-deep);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
    position: relative;
}

.mini-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.4);
}

.mini-btn-submit:active {
    transform: translateY(0);
}

.mini-btn-submit svg {
    transition: transform 0.3s ease;
}

.mini-btn-submit:hover svg {
    transform: translateX(3px);
}

.mini-btn-submit.mini-btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.mini-btn-submit.mini-btn-loading svg {
    display: none;
}

.mini-btn-submit.mini-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(5, 11, 20, 0.3);
    border-top-color: var(--clr-bg-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Mini Form */
@media (max-width: 640px) {
    .mini-form-row {
        grid-template-columns: 1fr;
    }

    .mini-contact-card {
        padding: 1.5rem 1.25rem;
    }

    .mini-btn-submit {
        font-size: 0.8125rem;
        padding: 0.8125rem 1.25rem;
    }

    .cta-form-wrapper {
        padding: 0 0.5rem;
    }
}

/* ==========================================================================
   EXTRACTED STYLES FROM SERVICIO-WEB
   ========================================================================== */

.pricing-card.featured {
    border-color: var(--clr-cyan);
    background: rgba(0, 229, 255, 0.05);
    transform: scale(1.05);
    z-index: 2;
}

@media (max-width: 1200px) {
    .pricing-card.featured {
        transform: scale(1.02); /* Less aggressive scale to avoid overlapping */
    }
}

@media (max-width: 650px) {
    .pricing-card.featured {
        transform: none;
    }
}

.pricing-grid .micro-cta {
    width: 100%; /* Dentro de los planes ocupa todo el ancho */
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-item h4 {
    margin: 1rem 0 0.5rem;
    color: var(--clr-white);
}

.tech-item p {
    font-size: var(--text-micro-desc);
    color: var(--clr-text-muted);
}

.tech-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px var(--clr-cyan-glow));
}

.differential-section {
    background: rgba(0, 229, 255, 0.02);
}

.timeline-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--clr-cyan);
}

.timeline-icon-box svg {
    width: 24px;
    height: 24px;
}

/* =========================================
   NEON PULSE TIMELINE (OPCIÓN 3)
   ========================================= */
.neon-timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}

.neon-timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--clr-cyan) 10%, 
        var(--clr-cyan) 90%, 
        transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
    z-index: 1;
}

.neon-timeline-item {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Default for odd */
}

.neon-timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.neon-timeline-content {
    width: 44%;
    padding: 2.5rem;
    background: rgba(13, 22, 39, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
}

.neon-timeline-item:nth-child(odd) .neon-timeline-content {
    text-align: left;
}

.neon-timeline-item:nth-child(even) .neon-timeline-content {
    text-align: right;
}

.neon-timeline-dot {
    position: absolute;
    left: 50%;
    top: 2.5rem;
    width: 14px;
    height: 14px;
    background: var(--clr-bg-deep);
    border: 3px solid var(--clr-cyan);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 10px var(--clr-cyan-glow);
}

.neon-timeline-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--clr-cyan);
    animation: neon-pulse 2.5s infinite;
}

@keyframes neon-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.neon-timeline-item:hover .neon-timeline-content {
    background: rgba(13, 22, 39, 0.6);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.05);
}

.neon-timeline-content h3 {
    font-size: 1.5rem;
    color: var(--clr-white);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.neon-timeline-content p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.neon-step-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--clr-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.neon-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.neon-timeline-item:nth-child(even) .neon-icon-box {
    margin-left: auto;
}

.neon-timeline-item:hover .neon-icon-box {
    background: var(--clr-cyan);
    color: var(--clr-bg-deep);
    box-shadow: 0 0 15px var(--clr-cyan-glow);
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    /* Ajustes de Hero para mayor impacto visual */
    .hero-title-v2 {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem) !important; 
        font-weight: 700 !important;
        margin-top: 0.8rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-tagline {
        font-size: 0.7rem !important;
        letter-spacing: 0.15em !important;
        margin-bottom: 0.8rem !important;
        opacity: 0.8;
    }

    .hero-description {
        font-size: 0.95rem !important;
        max-width: 90% !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.6 !important;
        opacity: 0.7;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .neon-timeline-container::before {
        left: 20px;
        transform: none;
    }
    
    .neon-timeline-dot {
        left: 20px;
        transform: none;
    }
    
    .neon-timeline-item {
        justify-content: flex-start !important;
    }
    
    .neon-timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
        padding: 1.75rem;
    }
    
    .neon-timeline-item:nth-child(even) .neon-icon-box {
        margin-left: 0;
    }

    /* Refinamiento de Botones CTA en Móvil */
    .hero-cta .btn-cyan-glow, 
    .hero-cta .btn-secondary-white,
    .micro-cta,
    .pack-cta,
    .btn-submit {
        width: 100% !important;
        max-width: 280px !important; 
        padding: 0.8rem 1.5rem !important; 
        font-size: 0.85rem !important; 
        letter-spacing: 0.1em !important;
        border-radius: 50px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-cta .btn-secondary-white {
        background-color: transparent !important;
        color: var(--clr-white) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: none !important;
    }

    .hero-cta .btn-cyan-glow {
        box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3) !important;
    }

    .hero-cta {
        gap: 1rem !important;
        flex-direction: column !important; 
    }

    /* Corrección de Título Fluido en Móvil */
    .fluid-about-title {
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        word-wrap: break-word !important;
        font-size: clamp(1.3rem, 7vw, 1.9rem) !important;
        line-height: 1.25 !important;
        display: block !important;
    }

    .desktop-only-br {
        display: none !important;
    }
}

/* Estilos de escritorio para el título fluido */
.fluid-about-title {
    text-align: center;
    margin: 1.5rem auto;
    width: 100%;
    max-width: 1000px;
    display: block;
}

.desktop-only-br {
    display: block;
}

/* =========================================
   PRICING INFO INTEGRATED (MINIMALIST)
   ========================================= */
.pricing-info-integrated {
    margin-top: 4rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
    opacity: 0.9;
}

.info-item p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--clr-text-muted);
    margin: 0;
}

.info-item p strong {
    color: var(--clr-white);
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing-info-integrated {
        margin-top: 3rem;
        gap: 1.15rem;
        padding: 0 1rem;
    }
    .info-item p {
        font-size: 0.85rem;
    }
    .info-item svg {
        width: 16px;
        height: 16px;
    }
}

/* =========================================
   PORTFOLIO SHOWCASE (HOMEPAGE PREVIEW)
   ========================================= */
.portfolio-showcase-section {
    position: relative;
    background: rgba(5, 11, 20, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-preview-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(13, 22, 39, 0.5) 0%, rgba(5, 11, 20, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
}

.portfolio-preview-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.08);
}

.preview-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.portfolio-preview-card:hover .preview-img-wrapper img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    pointer-events: none;
}

.preview-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    color: var(--clr-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.preview-info {
    padding: 1.25rem 1.5rem;
}

.preview-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.portfolio-preview-card:hover .preview-info h3 {
    color: var(--clr-cyan);
}

.preview-info p {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .portfolio-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-preview-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .portfolio-preview-card:nth-child(3) {
        max-width: 100%;
    }
    .preview-img-wrapper {
        aspect-ratio: 16/10;
    }
}

/* =========================================
   SISTEMA DE MODALES DE PORTAFOLIO
   ========================================= */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portfolio-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: var(--clr-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    animation: modalFadeUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--clr-cyan);
    transform: rotate(90deg);
}

.portfolio-modal .video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
}

.portfolio-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--clr-cyan);
}

.modal-info p {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .portfolio-modal {
        padding: 1rem;
    }
    .modal-info h3 {
        font-size: 1.4rem;
    }
}