/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg-main: #030014;
    --bg-card: rgba(17, 25, 40, 0.75);
    --primary-glow: #7000df;
    --secondary-glow: #00c6ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

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

/* =========================================
   FONDOS DECORATIVOS (GLOW)
   ========================================= */
.glow-bg-top {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow 8s infinite alternate;
}

.glow-bg-bottom {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% { opacity: 0.15; transform: scale(1); }
    100% { opacity: 0.25; transform: scale(1.2); }
}

/* =========================================
   HEADER ESCRITORIO (FLOTANTE / PÍLDORA)
   ========================================= */
header {
    position: fixed;
    top: 25px;
    width: 100%;
    z-index: 100;
    padding: 0 1rem;
    pointer-events: none; 
}

.floating-nav {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    
    background: rgba(10, 10, 25, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.shk-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Links Centrales */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item-hover {
    position: relative;
    height: 24px;
    overflow: hidden;
}

.nav-item-hover a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-text {
    display: block;
    height: 24px;
    line-height: 24px;
}

.link-text-hover {
    display: block;
    height: 24px;
    line-height: 24px;
    color: var(--text-main);
    transform: translateY(0);
}

.nav-item-hover:hover a {
    transform: translateY(-24px);
}

/* Botones Derechos */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cv-btn {
    text-decoration: none;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-cv-btn:hover {
    color: var(--secondary-glow);
}

/* Botón Cotizar (Blanco Brillante) */
.nav-cta-glow {
    text-decoration: none;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-cta-glow:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 25px 5px rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   MENÚ MÓVIL (PREMIUM / GLASS)
   ========================================= */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 15, 0.98); /* Fondo casi sólido para legibilidad */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6rem 2rem 3rem 2rem;
    transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

body.menu-open .mobile-nav {
    right: 0;
}

.mobile-nav-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.4s ease 0.2s;
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

body.menu-open .mobile-nav-header {
    opacity: 1;
    transform: translateY(0);
}

.mobile-links-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.mobile-link span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-glow);
    opacity: 0.7;
}

.mobile-link.highlight-cv {
    color: var(--secondary-glow);
    border-bottom-color: rgba(0, 198, 255, 0.2);
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}
body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.18s; }
body.menu-open .mobile-link:nth-child(6) { transition-delay: 0.21s; }
body.menu-open .mobile-link:nth-child(7) { transition-delay: 0.24s; }
body.menu-open .mobile-link:nth-child(8) { transition-delay: 0.27s; }

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease 0.5s;
}

body.menu-open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-cta-btn {
    width: 100%;
    text-align: center;
    background: white;
    color: black;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.mobile-cta-btn:active {
    transform: scale(0.95);
}

.mobile-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.mobile-glow-effect {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text-wrapper {
    flex: 1;
    max-width: 700px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(112, 0, 223, 0.15);
    border: 1px solid rgba(112, 0, 223, 0.4);
    color: #d8b4fe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.filling-text {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #ffffff;
    background-image: linear-gradient(90deg, #fff 50%, rgba(255,255,255,0.15) 50%);
    background-size: 200% 100%;
    background-position: 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 2rem 0;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-primary {
    padding: 1rem 2rem;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-glow), #5b21b6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(112, 0, 223, 0.4);
}

.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}

.animated-logo-container {
    flex: 1;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.animated-shk-logo {
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 198, 255, 0.3));
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--secondary-glow);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.animated-section {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   BENTO GRID (SERVICIOS)
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.grid-card.featured {
    grid-column: span 2;
    background: linear-gradient(145deg, rgba(17,25,40,0.9), rgba(10,10,20,0.9));
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.grid-card.highlight-border:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 0 30px -10px rgba(112, 0, 223, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.grid-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.grid-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   NOSOTROS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.about-visual {
    position: relative;
}

.glass-card {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-glow), transparent, var(--secondary-glow));
    z-index: -1;
    border-radius: 14px;
    opacity: 0.3;
}

.code-snippet {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.color-1 { color: #c678dd; }
.color-2 { color: #61afef; }
.color-3 { color: #e06c75; }
.color-4 { color: #d19a66; }

/* --- Home: teaser portafolio (sin duplicar contenido) --- */
.home-showcase-teaser {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.home-teaser-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.home-teaser-card:hover {
    border-color: rgba(112, 0, 223, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(112, 0, 223, 0.15);
}

.home-teaser-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(112, 0, 223, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-glow);
    margin-bottom: 1.25rem;
}

.home-teaser-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.home-teaser-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.home-teaser-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--secondary-glow);
}

.home-teaser-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.home-teaser-cta .portfolio-link-secondary {
    display: inline-block;
    margin-top: 1rem;
}

/* --- Impresión 3D (sección destacada) --- */
.print3d-section {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    overflow: hidden;
}

.print3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(112, 0, 223, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: print3d-pulse 4s ease-in-out infinite;
}

@keyframes print3d-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.print3d-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(145deg, rgba(112, 0, 223, 0.08), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.print3d-tag {
    color: #00d4ff !important;
}

.print3d-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
}

.print3d-accent {
    background: linear-gradient(90deg, #00d4ff, #7000df);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.print3d-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.print3d-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.print3d-features li {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.print3d-features li:last-child {
    border-bottom: none;
}

.print3d-feature-icon {
    color: var(--secondary-glow);
    font-size: 0.6rem;
    margin-top: 0.35rem;
}

.print3d-features strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.print3d-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.print3d-printer {
    position: relative;
    z-index: 1;
}

.print3d-frame {
    width: 200px;
    height: 220px;
    position: relative;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px 8px 4px 4px;
    background: rgba(0, 0, 0, 0.4);
}

.print3d-rail {
    position: absolute;
    top: 20px;
    width: 4px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.print3d-rail-left { left: 24px; }
.print3d-rail-right { right: 24px; }

.print3d-head {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(112, 0, 223, 0.6);
    border-radius: 4px;
    animation: print3d-head-move 3s ease-in-out infinite;
}

@keyframes print3d-head-move {
    0%, 100% { transform: translateX(-50%) translateX(-30px); }
    50% { transform: translateX(-50%) translateX(30px); }
}

.print3d-nozzle {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: #00d4ff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px #00d4ff;
}

.print3d-bed {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 4px;
    gap: 2px;
}

.print3d-layer {
    width: 70%;
    height: 6px;
    background: linear-gradient(90deg, #7000df, #00d4ff);
    border-radius: 2px;
    opacity: 0;
    animation: print3d-layer-build 2.5s ease-in-out infinite;
}

.print3d-layer-1 { animation-delay: 0s; width: 50%; }
.print3d-layer-2 { animation-delay: 0.5s; width: 60%; }
.print3d-layer-3 { animation-delay: 1s; width: 70%; }

@keyframes print3d-layer-build {
    0%, 20% { opacity: 0; transform: scaleX(0.3); }
    40%, 80% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.6; transform: scaleX(1); }
}

.print3d-object {
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 36px;
    background: linear-gradient(180deg, #00d4ff, #7000df);
    border-radius: 4px 4px 2px 2px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    animation: print3d-object-grow 2.5s ease-in-out infinite;
}

@keyframes print3d-object-grow {
    0%, 30% { height: 8px; opacity: 0.5; }
    70%, 100% { height: 36px; opacity: 1; }
}

.print3d-badge {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--secondary-glow);
}

.print3d-float {
    position: absolute;
    padding: 0.35rem 0.65rem;
    background: rgba(112, 0, 223, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #fff;
    animation: print3d-float 3s ease-in-out infinite;
}

.print3d-float-1 { top: 10%; right: 5%; animation-delay: 0s; }
.print3d-float-2 { top: 45%; left: 0; animation-delay: 1s; }
.print3d-float-3 { bottom: 15%; right: 10%; animation-delay: 2s; }

@keyframes print3d-float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.print3d-service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(112, 0, 223, 0.12)) !important;
    border-color: rgba(0, 212, 255, 0.35) !important;
}

.print3d-card-icon {
    background: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
}

.grid-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.55rem;
    background: linear-gradient(90deg, #7000df, #00d4ff);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.grid-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--secondary-glow);
    text-decoration: none;
}

.grid-card-link:hover {
    opacity: 0.85;
}

/* --- Nosotros ampliado --- */
.about-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.about-story-block h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-story-block p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.about-stats-inline {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about-stats-inline .stat-item h4 {
    font-size: 2rem;
}

.about-stats-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.about-value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.about-value-card:hover {
    border-color: rgba(112, 0, 223, 0.35);
}

.about-value-icon {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-glow);
    margin-bottom: 0.75rem;
}

.about-value-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.about-value-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-approach {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.about-approach-text h3 {
    font-size: 1.35rem;
    margin: 0.75rem 0 1.25rem;
}

.about-approach-list {
    list-style: none;
    padding: 0;
}

.about-approach-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.about-approach-list li:last-child {
    border-bottom: none;
}

.about-approach-list strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.about-corporate-card {
    background: linear-gradient(145deg, rgba(112, 0, 223, 0.1), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(112, 0, 223, 0.35);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.about-corporate-logo {
    height: 56px;
    margin-bottom: 1rem;
}

.about-corporate-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.about-corporate-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.about-corporate-card .btn-secondary {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.about-corporate-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* =========================================
   FAQ SECTION (Estilo Premium)
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(17, 25, 40, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.active {
    background: rgba(17, 25, 40, 0.9);
    border-color: var(--primary-glow);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
}

.faq-question .chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
    color: var(--primary-glow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   CONTACTO & FOOTER
   ========================================= */
.contact-section {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
}

.contact-intro h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0.75rem 0 1rem;
}

.contact-intro > p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.contact-alert {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    text-align: left;
}

.contact-alert-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.contact-alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.contact-alert-error ul {
    margin: 0.5rem 0 0 1.1rem;
    padding: 0;
}

.contact-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.18) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(74, 222, 128, 0.45);
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.12);
}

.contact-success-banner strong {
    display: block;
    font-size: 1.05rem;
    color: #bbf7d0;
    margin-bottom: 0.35rem;
}

.contact-success-banner p {
    margin: 0;
    color: #dcfce7;
    line-height: 1.55;
    font-size: 0.95rem;
}

.contact-success-banner-hint {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
    color: rgba(220, 252, 231, 0.75) !important;
}

.contact-success-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.contact-success-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.contact-success-panel-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px dashed rgba(74, 222, 128, 0.35);
    background: rgba(255, 255, 255, 0.02);
    max-width: 420px;
}

.contact-success-panel-inner h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.contact-success-panel-inner p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.contact-success-new {
    display: inline-flex;
}

.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.25rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.45);
    border-radius: 999px;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.contact-whatsapp-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.7);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.25);
    transform: translateY(-1px);
}

.contact-email-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--secondary-glow);
    text-decoration: none;
}

.contact-required-legend {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.req-star {
    color: #f87171;
}

.optional-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-mono);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Select premium */
.select-premium {
    position: relative;
    width: 100%;
}

.select-premium-input {
    width: 100%;
    padding: 0.8rem 2.75rem 0.8rem 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.select-premium-input:invalid,
.select-premium-input.placeholder-active {
    color: var(--text-muted);
}

.select-premium-input option {
    background: #0a0e1a;
    color: var(--text-main);
    padding: 0.5rem;
}

.select-premium-input option[value=""][disabled] {
    color: var(--text-muted);
}

.select-premium-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--secondary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(112, 0, 223, 0.15);
    border-radius: 8px;
    transition: background 0.25s, transform 0.25s;
}

.select-premium:hover .select-premium-input {
    border-color: rgba(112, 0, 223, 0.35);
}

.select-premium:hover .select-premium-icon {
    background: rgba(112, 0, 223, 0.28);
}

.select-premium:focus-within .select-premium-input {
    outline: none;
    border-color: rgba(112, 0, 223, 0.55);
    box-shadow: 0 0 0 3px rgba(112, 0, 223, 0.18), 0 4px 20px rgba(112, 0, 223, 0.12);
    background: rgba(0, 0, 0, 0.45);
}

.select-premium:focus-within .select-premium-icon {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    transform: translateY(-50%) rotate(180deg);
}

.select-premium.is-invalid-wrap .select-premium-input {
    border-color: rgba(248, 113, 113, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(112, 0, 223, 0.5);
    box-shadow: 0 0 0 3px rgba(112, 0, 223, 0.15);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid,
.select-premium-input.is-invalid {
    border-color: rgba(248, 113, 113, 0.6);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    font-size: 0.75rem;
    color: #f87171;
}

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

.form-privacy.is-invalid-wrap .privacy-check {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.06);
}

.privacy-check {
    position: relative;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.privacy-check:hover {
    border-color: rgba(112, 0, 223, 0.35);
    background: linear-gradient(180deg, rgba(112, 0, 223, 0.06) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.privacy-check:has(input:focus-visible) {
    border-color: rgba(112, 0, 223, 0.55);
    box-shadow: 0 0 0 3px rgba(112, 0, 223, 0.18), 0 4px 20px rgba(112, 0, 223, 0.1);
}

.privacy-check input {
    position: absolute;
    left: 1.15rem;
    top: 1.05rem;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.privacy-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.privacy-check-icon {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.privacy-check-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.privacy-check input:checked + .privacy-check-box {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.9), rgba(0, 212, 255, 0.5));
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 16px rgba(112, 0, 223, 0.35);
}

.privacy-check input:checked + .privacy-check-box .privacy-check-icon {
    opacity: 1;
    transform: scale(1);
}

.privacy-check:has(input:checked) {
    border-color: rgba(112, 0, 223, 0.4);
    background: linear-gradient(180deg, rgba(112, 0, 223, 0.08) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.privacy-check a {
    color: var(--secondary-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.privacy-check a:hover {
    color: #fff;
    border-bottom-color: var(--secondary-glow);
}

.contact-submit {
    width: 100%;
    margin-top: 1.25rem;
    cursor: pointer;
    border: none;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.contact-turnstile-wrap {
    margin-top: 1.25rem;
}

.contact-turnstile-wrap.is-invalid-wrap {
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

/* Legal pages */
.legal-page {
    padding: 8rem 1.5rem 4rem;
}

.legal-container {
    max-width: 720px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2rem;
    margin: 0.75rem 0 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--secondary-glow);
}

.legal-body p,
.legal-body li {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.legal-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-body a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.legal-body a:hover {
    color: var(--secondary-glow);
    text-decoration-color: var(--secondary-glow);
}

.footer-privacy-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-privacy-link:hover {
    color: var(--secondary-glow);
}

.cta-container {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.cta-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.btn-primary.large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

footer {
    position: relative;
    background-color: #02020a;
    padding: 5rem 5% 2rem;
    overflow: hidden;
    margin-top: 5rem;
}

.footer-glow-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(112, 0, 223, 0.5), transparent);
    box-shadow: 0 0 20px rgba(112, 0, 223, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.brand-col .footer-desc {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-glow);
    padding-left: 5px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.footer-contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo-bottom {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE DESIGN (CORRECCIONES)
   ========================================= */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-text-wrapper { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .animated-logo-container { height: 300px; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-row { justify-content: center; }
    .grid-card.featured { grid-column: auto; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .floating-nav { width: 90%; padding: 0.8rem 1.2rem; }
    .filling-text { font-size: 3rem; }
    
    /* FIX: Botones en móvil para que no se rompan */
    .btn-primary, .btn-secondary, .btn-primary.large {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem; /* Texto más pequeño */
        display: block; /* Ocupar bloque completo */
        white-space: normal; /* Permitir salto de línea si es necesario */
    }
    
    .hero-buttons { flex-direction: column; width: 100%; }
    
    /* Footer Stack Vertical */
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .brand-col .footer-desc { margin: 1.5rem auto 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-contact-link { justify-content: center; }
    
    /* Reducir padding de la caja CTA para ganar espacio */
    .cta-container {
        padding: 3rem 1.5rem;
    }
    .cta-container h2 {
        font-size: 1.8rem;
    }

    .process-steps { grid-template-columns: 1fr; gap: 2rem; }
    .process-step::after { display: none; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .ai-demo-grid { grid-template-columns: 1fr; }
    .ai-chat-panel { height: 420px; }
    .whatsapp-float { bottom: 20px; right: 20px; }
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

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

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 72px;
    background: rgba(10, 10, 25, 0.95);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   CONTADORES ANIMADOS
   ========================================= */
.stat-item h4 {
    font-variant-numeric: tabular-nums;
}

.counter-suffix,
.counter-prefix {
    display: inline;
}

/* =========================================
   CÓMO TRABAJAMOS (PROCESO)
   ========================================= */
.process-section {
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.45s; }

.process-step.is-visible:hover,
.process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(112, 0, 223, 0.4);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-glow);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: rgba(112, 0, 223, 0.15);
    border: 1px solid rgba(112, 0, 223, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -0.85rem;
        width: 1.5rem;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
        opacity: 0.4;
        z-index: 1;
    }
}

/* =========================================
   GALERÍA DE INSTALACIONES
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: var(--bg-card, rgba(12, 10, 28, 0.95));
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    border-color: rgba(112, 0, 223, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.gallery-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0814;
    flex-shrink: 0;
}

.gallery-item.large .gallery-item-media {
    aspect-ratio: 16 / 10;
    min-height: 240px;
}

.gallery-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover .gallery-item-media img {
    transform: scale(1.05);
}

.gallery-item-caption {
    padding: 1rem 1.15rem 1.15rem;
    background: linear-gradient(180deg, rgba(18, 14, 36, 0.98) 0%, rgba(10, 8, 20, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
    min-height: 0;
}

.gallery-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--secondary-glow, #a78bfa);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(112, 0, 223, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.gallery-item-caption h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-caption-text {
    margin: 0.55rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item.large .gallery-item-caption h3 {
    -webkit-line-clamp: 3;
}

.gallery-item.large .gallery-caption-text {
    -webkit-line-clamp: 4;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(3, 0, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.gallery-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.gallery-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.gallery-lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: min(720px, 92vw);
    padding: 0.85rem 1.25rem;
    background: rgba(10, 8, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.large {
        grid-column: span 1;
    }
}

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

/* =========================================
   DEMO AGENTE IA
   ========================================= */
.ai-demo-section {
    position: relative;
}

.ai-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.ai-demo-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-demo-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.ai-demo-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-demo-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ai-demo-features li svg {
    color: var(--secondary-glow);
    flex-shrink: 0;
}

.ai-chat-panel {
    background: rgba(10, 10, 25, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -20px rgba(0,0,0,0.6);
    height: 480px;
    display: flex;
    flex-direction: column;
}

.ai-chat-header {
    background: linear-gradient(90deg, rgba(112, 0, 223, 0.3), rgba(0, 198, 255, 0.15));
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ai-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.ai-chat-header-info strong {
    display: block;
    font-size: 0.95rem;
}

.ai-chat-header-info span {
    font-size: 0.75rem;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: msg-in 0.3s ease;
}

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

.ai-msg.bot {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    background: linear-gradient(135deg, rgba(112, 0, 223, 0.4), rgba(91, 33, 182, 0.4));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-msg.typing {
    display: flex;
    gap: 4px;
    padding: 1rem;
}

.ai-msg.typing span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}

.ai-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.ai-chat-quick {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-quick-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.ai-quick-btn:hover:not(:disabled) {
    background: rgba(112, 0, 223, 0.2);
    border-color: var(--primary-glow);
    color: var(--text-main);
}

.ai-quick-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* =========================================
   PRELOADER
   ========================================= */
#shk-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030014;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.preloader-logo {
    width: 100px;
    height: auto;
    animation: preloader-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 198, 255, 0.4));
}

.preloader-text-logo {
    height: 28px;
    width: auto;
    opacity: 0;
    animation: preloader-fade-in 0.8s ease 0.3s forwards;
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    border-radius: 10px;
    animation: preloader-load 1.4s ease-in-out forwards;
}

.preloader-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0;
    animation: preloader-fade-in 0.6s ease 0.5s forwards;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes preloader-fade-in {
    to { opacity: 1; }
}

@keyframes preloader-load {
    0% { width: 0; }
    70% { width: 85%; }
    100% { width: 100%; }
}

body.preloader-active {
    overflow: hidden;
}

/* =========================================
   FONDO CYBER GRID + PARTÍCULAS
   ========================================= */
#cyber-particles {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.5;
}

.cyber-grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(112, 0, 223, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 0, 223, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.glow-bg-top,
.glow-bg-bottom {
    z-index: -1;
}

/* =========================================
   TESTIMONIOS / CLIENTES
   ========================================= */
.testimonials-section {
    position: relative;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.client-logo-item {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    border-color: rgba(0, 198, 255, 0.3);
    color: var(--text-main);
    background: rgba(0, 198, 255, 0.05);
}

.testimonials-carousel {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.testimonials-track {
    position: relative;
    min-height: 260px;
}

.testimonial-card {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.testimonial-quote {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.testimonial-nav:hover {
    background: rgba(112, 0, 223, 0.2);
    border-color: var(--primary-glow);
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--secondary-glow);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.75rem;
    }
    .testimonial-quote {
        font-size: 0.95rem;
    }
    .clients-logos {
        gap: 0.6rem;
    }
    .client-logo-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }
}

/* Aviso sesión finalizada / revocada (sitio público) */
.shk-session-notice {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(91, 33, 182, 0.95), rgba(112, 0, 223, 0.95));
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.shk-session-notice-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #fff;
}

.shk-session-notice-inner svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.9;
}

.shk-session-notice-inner p {
    margin: 0;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.45;
}

.shk-session-notice-close {
    flex-shrink: 0;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.shk-session-notice-close:hover {
    background: rgba(255, 255, 255, 0.28);
}