/* =====================================================
   TEF - Telecomunicaciones e Instalaciones Eléctricas
   styles.css - Sistema de diseño completo
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Fondos - Set exactly to match the background color of the SOCIAL PROOF (brands) SECTION */
    --bg-primary: rgba(var(--primary-rgb), 0.02);
    --bg-secondary: rgba(var(--primary-rgb), 0.02);
    --bg-tertiary: rgba(var(--primary-rgb), 0.05);

    /* Azul Eléctrico - Escala completa */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3B82F6;
    /* COLOR BASE */
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* RGB para transparencias */
    --primary-rgb: 59, 130, 246;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Acentos secundarios */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* Espaciado */
    --container-max: 1280px;
    --section-padding: 120px;
    --border-radius: 6px;

    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET Y BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

strong, b {
    font-weight: 800;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, label, input, textarea, select,
button, .btn-primary, .btn-outline,
.nav-logo, .mobile-nav-link, .submenu-link,
.section-title, .section-subtitle, .section-badge,
.hero-title, .hero-subtitle, .hero-badge,
.service-title, .service-description, .service-link,
.project-title, .project-desc, .project-tag,
.stat-number, .stat-suffix, .stat-label,
.footer-col-title, .footer-link, .footer-tagline, .footer-copyright,
.contact-item, .form-label, .form-input,
.testimonial-text, .author-name, .author-role,
.about-text, .cta-title, .cta-subtitle, .cta-badge,
.highlight-item, .tag-title, .feature-tag,
.social-proof-label, .client-logo {
    font-weight: 300;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARTICLES ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
    will-change: transform, opacity;
}

.particle:nth-child(odd) {
    background: rgba(var(--primary-rgb), 0.6);
    width: 2px;
    height: 2px;
}

@keyframes float-particle {

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

    25% {
        transform: translate(80px, -120px);
        opacity: 0.7;
    }

    50% {
        transform: translate(-40px, -240px);
        opacity: 0.5;
    }

    75% {
        transform: translate(-80px, -100px);
        opacity: 0.8;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* Hide standard nav links on all devices */
.nav-links {
    display: none;
}

/* Mobile hamburger - Now visible on Desktop too */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1100;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Inline Menu inside Navbar */
.nav-menu-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-width 0.5s ease, opacity 0.4s ease, visibility 0.4s;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.nav-menu-inline.open {
    overflow: visible;
    max-width: 1000px;
    opacity: 1;
    visibility: visible;
    padding: 0 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Small gap between links */
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-quaternary);
    padding: 8px 16px;
    border-radius: 4px;
    transition: var(--transition-fast);
    display: block;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Submenu Styles */
.has-submenu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submenu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1060;
}

/* Arrow pseudo-element for submenu */
.submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(var(--primary-rgb), 0.2);
    border-left: 1px solid rgba(var(--primary-rgb), 0.2);
}

.submenu.open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.submenu-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-quaternary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: block;
    text-align: center;
    white-space: nowrap;
}

.submenu-link:hover {
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.1);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-600);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 4px;
    border: none;
    transition: background 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--primary-500);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-quaternary);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.btn-large {
    font-size: 1.1rem;
    padding: 20px 40px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.pulse-glow {
    /* Removed glow animation — minimal style */
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-500);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    color: var(--primary-400);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    z-index: 1;
    overflow: hidden;
    /* High-contrast, premium dark background system with built-in parallax */
    background: 
        radial-gradient(circle at 50% 50%, rgba(10, 10, 12, 0.3) 0%, rgba(10, 10, 12, 0.92) 100%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.5) 50%, rgba(10, 10, 12, 0.95) 100%),
        url('images/empresa-instalaciones-electricas-telecomunicaciones-fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero::before,
.hero::after {
    display: none;
}

.hero-grid-lines {
    display: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary-500);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0);
    }
}

.hero-title {
    font-family: inherit;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title strong {
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-500);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.5)) drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.3));
    z-index: 2;
    position: relative;
}

.hero-glow-ring {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    animation: ring-pulse 3s ease-in-out infinite;
}

.hero-glow-ring.ring-2 {
    inset: -60px;
    border-color: rgba(var(--primary-rgb), 0.1);
    animation-delay: 1.5s;
}

@keyframes ring-pulse {

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

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {

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

    25% {
        transform: translateY(-16px) rotate(1.5deg);
    }

    50% {
        transform: translateY(-8px) rotate(-1.5deg);
    }

    75% {
        transform: translateY(-24px) rotate(1deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 20px;
    position: relative;
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-400);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

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

/* ===== SOCIAL PROOF ===== */
.social-proof {
    padding: 48px 0;
    background: rgba(var(--primary-rgb), 0.02);
    position: relative;
    z-index: 1;
}

.social-proof-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.logo-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.client-logo {
    flex-shrink: 0;
    margin-right: 16px;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--text-quaternary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.client-logo:hover {
    color: var(--primary-400);
    border-color: rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 768px) {
    .client-logo {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
}

/* ===== SERVICES ===== */
.services {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

/* New Alternating Services Layout */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.service-text:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.5));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    width: fit-content;
}

.service-text:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.7));
}

.service-title {
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 600px;
}

.service-link {
    color: var(--primary-400);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    width: fit-content;
}

.service-text:hover .service-link {
    color: var(--primary-300);
    transform: translateX(6px);
}

/* Interactive Image Visual */
.service-visual {
    flex: 1.5; /* Increased flex to make it wider */
    height: 360px;
    perspective: 1200px;
    cursor: pointer;
}

.service-visual-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-visual:hover .service-visual-inner {
    transform: rotateY(180deg);
}

.service-visual-front,
.service-visual-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-visual-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(0, 0, 0, 1));
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.tag-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-400);
    font-weight: 700;
    margin-bottom: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.feature-tag {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}

.feature-tag:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: scale(1.05);
}

/* Featured Service (destacado) */
.service-featured {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.service-featured-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.featured-badge {
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
}

.service-featured-visual {
    flex: 1.2;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    width: calc((100% - 48px) / 3);
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
}

.service-card-visual {
    height: 170px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card-visual .service-image {
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-visual .service-image {
    opacity: 1;
    transform: scale(1.06);
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    flex: 1;
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.service-card-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.65;
    flex: 1;
}

.service-card .service-link {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-card:hover .service-link {
    color: var(--primary-300);
}

@media (max-width: 992px) {
    .service-card {
        width: calc((100% - 24px) / 2);
    }

    .service-featured {
        flex-direction: column;
        padding: 28px;
        gap: 28px;
    }

    .service-featured-visual {
        width: 100%;
        height: 260px;
    }
}

@media (max-width: 600px) {
    .service-card {
        width: 100%;
    }
}

/* ===== PROJECTS ===== */
.projects {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.project-card {
    width: calc((100% - 48px) / 3);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: none;
}

.project-img-wrapper {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
    opacity: 1;
    transform: scale(1.06);
}

.project-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.5));
}

.project-title {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tag {
    background: transparent;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-400);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
}

@media (max-width: 992px) {
    .project-card {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 600px) {
    .project-card {
        width: 100%;
    }
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding-top: 16px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.author-name {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-style: normal;
    display: block;
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-quaternary);
}

/* ===== NETFLIX SERVICES GRID ===== */
.netflix-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.netflix-svc-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.netflix-svc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 10px 36px rgba(var(--primary-rgb), 0.12);
}

.netflix-svc-thumb {
    height: 180px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.netflix-svc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.netflix-svc-card:hover .netflix-svc-img {
    opacity: 1;
    transform: scale(1.07);
}

.netflix-svc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.netflix-svc-body {
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.netflix-svc-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.netflix-svc-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.55;
    flex: 1;
}

.netflix-svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.netflix-svc-tags span {
    font-size: 0.62rem;
    color: var(--text-tertiary);
    background: var(--surface-2, rgba(255,255,255,0.05));
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 500;
}

.netflix-svc-card .service-link {
    font-size: 0.75rem;
    margin-top: 4px;
}

.netflix-svc-card:hover .service-link {
    color: var(--primary-300);
}

@media (max-width: 1200px) {
    .netflix-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 400px) {
    .netflix-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT ===== */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    border-radius: 24px;
    filter: drop-shadow(0 20px 60px rgba(var(--primary-rgb), 0.3));
}

.about-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    pointer-events: none;
}

.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
}

.about-badge-float .badge-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
}

.about-badge-float strong {
    display: block;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
}

.about-badge-float span {
    font-size: 0.8rem;
    color: var(--text-quaternary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.highlight-icon {
    font-size: 1rem;
}

.about-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.about-cta-group .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-cta-note {
    font-size: 0.85rem;
    color: var(--text-quaternary);
    margin-top: 12px;
}

/* ===== WORKS GRID (Nuestros Trabajos) ===== */
.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.works-grid__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.work-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s ease;
}

.work-card:hover {
    border-color: rgba(59,130,246,0.25);
}

.work-card img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    filter: brightness(0.82) saturate(0.9);
}

.work-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.75) saturate(1);
}

.work-card--hero { height: 100%; }
.work-card--hero img { height: 100%; min-height: 420px; }
.works-grid__secondary .work-card img { height: 210px; }

.work-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.25) 45%,
        transparent 100%
    );
    transition: background 0.3s ease;
}

.work-card:hover .work-card__overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

.work-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px 24px;
}

.work-card__tags {
    display: flex;
    gap: 5px;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

.work-tag {
    font-size: 0.48rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 3px 8px;
    border-radius: 3px;
}

.work-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.work-card--hero .work-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.work-card__desc {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-top: 6px;
    font-weight: 400;
    max-width: 540px;
}

.work-card--hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-500), var(--primary-700), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.work-card--hero:hover::after { opacity: 1; }

/* Cuando la hero card está oculta por el filtro */
.works-grid--no-hero {
    grid-template-columns: 1fr;
}

.works-grid--no-hero .works-grid__secondary {
    grid-template-columns: 1fr 1fr;
}

/* Hero card: descripción oculta por defecto, se revela en hover */
.work-card--hero .work-card__desc {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.work-card--hero:hover .work-card__desc {
    opacity: 1;
    transform: translateY(0);
}

.work-card__arrow {
    position: absolute;
    top: 16px; right: 18px;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.3s ease;
}
.work-card:hover .work-card__arrow {
    color: var(--primary-400);
    border-color: rgba(59,130,246,0.4);
    background: rgba(59,130,246,0.08);
}

.work-card__num { display: none; }

/* Secondary cards: acento inferior en hover (igual que hero) */
.works-grid__secondary .work-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-500), var(--primary-700), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.works-grid__secondary .work-card:hover::after { opacity: 1; }

/* Tags en cards secundarias: ocultas por defecto, visibles en hover */
.works-grid__secondary .work-card .work-card__tags {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.works-grid__secondary .work-card:hover .work-card__tags {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    .work-card--hero img {
        height: 300px;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .works-grid__secondary {
        grid-template-columns: 1fr;
    }
    .works-grid__secondary .work-card img {
        height: 180px;
    }
}

/* ===== TIMELINE (Sobre Nosotros) ===== */
.timeline-wrapper {
    position: relative;
    max-width: 720px;
    margin: 0 auto 72px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.06);
    transform: translateX(-50%);
}

.timeline-line-fill {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-400) 0%, var(--primary-700) 60%, var(--primary-900) 100%);
    transition: height 5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.timeline-item.tl-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-side {
    flex: 1;
    padding: 0 28px;
}

.tl-left  { text-align: right; }
.tl-right { text-align: left; }

.tl-left  .tl-tag { margin-left: auto; display: block; width: fit-content; }
.tl-right .tl-tag { display: block; width: fit-content; }

.tl-node {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 2;
    transition: background 0.6s ease 0.3s, border-color 0.6s ease 0.3s, box-shadow 0.6s ease 0.3s;
}

.timeline-item.tl-visible .tl-node {
    background: var(--primary-500);
    border-color: var(--primary-400);
    box-shadow: 0 0 10px rgba(59,130,246,0.35);
}

.tl-node--present {
    background: var(--primary-400) !important;
    border-color: var(--primary-300) !important;
    box-shadow: 0 0 16px rgba(59,130,246,0.5) !important;
}

.tl-year {
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 5px;
    transition: color 0.5s ease 0.2s;
}
.timeline-item.tl-visible .tl-year { color: var(--text-tertiary); }

.tl-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 0.75rem;
    color: #444;
    line-height: 1.6;
    transition: color 0.5s ease 0.2s;
}
.timeline-item.tl-visible .tl-desc { color: var(--text-tertiary); }

.tl-tag {
    font-size: 0.52rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #444;
    border: 1px solid #222;
    padding: 3px 8px;
    border-radius: 3px;
    margin-top: 7px;
    transition: color 0.5s ease 0.3s, border-color 0.5s ease 0.3s;
}
.timeline-item.tl-visible .tl-tag {
    color: var(--text-tertiary);
    border-color: #333;
}
.tl-tag--present {
    border-color: var(--primary-500) !important;
    color: var(--primary-400) !important;
}

/* ===== CTA ROTATOR ===== */
.cta-rotator-section {
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 56px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.cta-rotator-section.cta-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-rotator-stage {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-rotator-item {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-decoration: none;
}

.cta-rotator-item.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.cta-rotator-item.is-leaving {
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    position: absolute;
}

.cta-rotator-item:hover { color: var(--primary-400); }

.cta-rotator-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 20px;
}

.cta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #2a2a2a;
    transition: background 0.3s ease;
}
.cta-dot.active { background: var(--text-tertiary); }

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 13px 30px;
    background: var(--primary-500);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--primary-600); }

.btn-outline {
    padding: 13px 30px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid #333;
    border-radius: 5px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: #666; }

/* ===== CTA FINAL ===== */
.cta-final {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    max-width: 860px;
    width: 100%;
    padding: 100px 48px 80px;
}

.cta-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: transparent;
    font-weight: 600;
    transition: color 0.6s;
}

.cta-eyebrow.cta-lit { color: var(--primary-400); }

.cta-words {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
    line-height: 1;
}

.cta-w {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-w.cta-lit {
    clip-path: inset(0 0% 0 0);
}

.cta-w[data-type="blue"].cta-lit {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-500);
    text-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4);
}

.cta-final-sub {
    font-size: 0.85rem;
    color: transparent;
    letter-spacing: 0.3px;
    font-weight: 400;
    transition: color 0.6s;
}

.cta-final-sub.cta-lit { color: rgba(255,255,255,0.35); }

.cta-final-btn-wrap {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-final-btn-wrap.cta-lit {
    opacity: 1;
    transform: translateY(0);
}

/* Ticker */
.cta-ticker-bar {
    width: 100%;
    background: var(--primary-500);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.cta-ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: ctaTicker 18s linear infinite;
    width: max-content;
}

.cta-ticker-track span {
    margin-right: 40px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

.cta-ticker-track .ticker-dot {
    color: rgba(255,255,255,0.4);
    letter-spacing: 0;
}

@keyframes ctaTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== CONTACT ===== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.contact-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.5));
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--primary-400);
}

/* Form */
.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-input {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 14px 18px;
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.08);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success.visible {
    display: flex;
}

/* ===== CONTACT NEW ===== */
.contact-centered {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form-new {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chips-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-400);
    font-weight: 500;
}

.service-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-chip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.service-chip:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
}

.service-chip.active {
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.1);
}

.chip-icon {
    font-size: 1.2rem;
    display: block;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.2s;
}

.service-chip:hover .chip-icon { filter: grayscale(0.5) opacity(0.7); }
.service-chip.active .chip-icon { filter: none; }

.chip-name {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.2s;
    display: block;
}

.service-chip:hover .chip-name { color: var(--text-secondary); }
.service-chip.active .chip-name { color: var(--primary-400); }

.form-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-submit-row .btn-full { flex: 1; }

.submit-note {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    max-width: 140px;
    opacity: 0.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-quaternary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.88rem;
    color: var(--text-quaternary);
    transition: var(--transition-fast);
}

.footer-link:not(span):hover {
    color: var(--primary-400);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copyright,
.footer-made {
    font-size: 0.82rem;
    color: var(--text-quaternary);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Hero animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fade-in-up var(--transition-slow) forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-fade-rotate {
    opacity: 0;
    transform: translateX(40px) rotate(4deg);
    animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.65s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: translateX(40px) rotate(4deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Adjust inline menu for mobile screens (stacking) */
    .nav-menu-inline {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(var(--primary-rgb), 0.3);
        border-radius: 20px;
        padding: 0;
        margin-top: 10px;
        max-height: 0;
        max-width: 95vw;
        visibility: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.4s ease, visibility 0.4s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu-inline.open {
        max-height: 600px;
        max-width: 95vw;
        padding: 15px 20px;
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }

    .mobile-nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: stretch;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 10px 16px;
    }
    
    .submenu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: 5px;
        min-width: 100%;
    }
    .submenu.open {
        transform: none;
    }
    .submenu::before {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual-wrapper {
        width: 360px;
        height: 360px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

        .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual-wrapper {
        width: 260px;
        height: 260px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .stat-divider {
        width: 80px;
        height: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-list {
        gap: 48px;
    }

    .service-item {
        flex-direction: column !important;
        text-align: center;
        gap: 32px;
    }

    .service-description {
        max-width: 100%;
    }

    .service-visual {
        width: 100%;
        height: 300px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-form-new {
        padding: 24px 20px;
    }

    .service-chips {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-note {
        max-width: 100%;
        text-align: center;
    }

    .about-badge-float {
        position: static;
        margin-top: 16px;
    }

    /* Reducir partículas en mobile */
    .particle:nth-child(n+20) {
        display: none;
    }

    .cta-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Desktop XL */
@media (min-width: 1440px) {
    .hero-visual-wrapper {
        width: 560px;
        height: 560px;
    }
}

/* ===== INTRO SPLASH SCREEN STYLES ===== */
/* ===== HERO SLOGANS SLIDER STYLES (INTRO REPLACEMENT) ===== */
.hero-slogans-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 10;
    pointer-events: none;
    /* En mobile el slider ocupa solo la mitad superior del hero
       para no solaparse con CTAs y stats */
    padding: 0 16px;
}

@media (max-width: 767px) {
    .hero-slogans-container {
        top: 30%;
    }
    .hero-slogan {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }
}

.hero-slogan {
    position: absolute;
    font-family: inherit;
    font-size: clamp(2.2rem, 6vw, 4.8rem); /* Larger, more impactful, using body width */
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-250px); /* Entry from further left to feel like a full-width slide */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    pointer-events: none;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    width: 100%;
    text-align: center;
}

.hero-slogan.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-slogan.exit {
    opacity: 0;
    transform: translateX(250px); /* Exit further right */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; /* Slightly faster exit as requested */
}

/* Buttery smooth, reflow-free transition for hero content with a professional blur/focus-in effect */
.hero-fade-element {
    opacity: 0;
    visibility: hidden; /* Avoids keyboard tab / click while hidden */
    filter: blur(12px); /* High-end blurred out-of-focus starting state */
    transform: translateY(15px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fade-element.fade-in {
    opacity: 1;
    visibility: visible;
    filter: blur(0); /* Slowly comes into crisp focus */
    transform: translateY(0);
}

/* Staggered transition delays for a beautiful cinematic narrative sequence */
.hero-fade-element.delay-1 {
    transition-delay: 0.1s;
}
.hero-fade-element.delay-2 {
    transition-delay: 0.3s;
}
.hero-fade-element.delay-3 {
    transition-delay: 0.5s;
}
.hero-fade-element.delay-4 {
    transition-delay: 0.7s;
}

/* ===== NEW INTERACTIVE SWITCH STYLES ===== */
.intro-switch {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
}

/* ===== ELECTRIC FLASH EFFECT ===== */
.electric-flash-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 80%);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: electric-short-circuit 30s infinite;
}

@keyframes electric-short-circuit {
    0%, 95% { opacity: 0; }
    95.2% { opacity: 0.15; }
    95.4% { opacity: 0.05; }
    95.8% { opacity: 0.25; }
    96.2% { opacity: 0; }
    96.6% { opacity: 0.2; }
    97.0% { opacity: 0.05; }

    97.5% { opacity: 0.4; }
    98.0% { opacity: 0; }
    98.5% { opacity: 0.15; }
    99.2% { opacity: 0.05; }
    100% { opacity: 0; }
}

/* Desktop XL */
@media (min-width: 1440px) {
    .hero-visual-wrapper {
        width: 560px;
        height: 560px;
    }
}

/* ===== INTRO SPLASH SCREEN STYLES ===== */
.intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-splash.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.intro-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: ken-burns 15s ease-in-out infinite alternate;
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.intro-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.slogan-wrapper {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-slogan {
    position: absolute;
    font-family: inherit;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    z-index: 10;
    width: 100%;
}

.intro-slogan.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-slogan.exit {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.btn-skip {
    margin-top: 60px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== FLOATING CHAT BUTTON ===== */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-700);
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background 0.2s ease;
    cursor: pointer;
}

.floating-chat:hover {
    background: var(--primary-600);
}

/* ===== CHAT WIDGET INTEGRATION ===== */
:root {
    --chat-bg: #0a0a0c;
    --chat-panel: #141417;
    --chat-text: #e0e0e0;
    --msg-user: #2563eb;
    --msg-ai: #2a2a2e;
    --accent-blue: #3b82f6;
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 140px);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-widget-header {
    padding: 15px 20px;
    background: rgba(20, 20, 23, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-widget-header .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-widget-header img {
    height: 24px;
}

.chat-widget-header span {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-chat:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

/* Messages */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: msgFadeIn 0.3s ease-out forwards;
}

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

.message-ai {
    align-self: flex-start;
    background: var(--msg-ai);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--chat-text);
    border-bottom-left-radius: 2px;
}

.message-user {
    align-self: flex-end;
    background: var(--msg-user);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Quick Options Card */
.quick-options-card {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 5px;
    width: 90%;
    animation: msgFadeIn 0.5s ease-out forwards;
}

.quick-options-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #93c5fd;
    margin-bottom: 12px;
    font-weight: 700;
}

.quick-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Typing Indicator */
.typing-indicator {
    align-self: flex-start;
    background: var(--msg-ai);
    padding: 10px 15px;
    border-radius: 15px;
    display: none;
    gap: 4px;
}

.typing-indicator .dot {
    height: 5px;
    width: 5px;
    background: #888;
    border-radius: 50%;
    animation: jump 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

/* Input Area */
.chat-widget-input {
    padding: 15px;
    background: var(--chat-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-input-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
}

.widget-send-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .chat-widget {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 80px;
        height: 500px;
    }
}

/* ===== SUBPAGE SERVICES TEMPLATE ===== */
.sp-hero {
    position: relative;
    height: 460px;
    overflow: hidden;
}
.sp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 8s ease;
}
.sp-hero:hover .sp-hero-img { transform: scale(1.04); }
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.1) 100%);
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding, 48px);
}
.sp-hero-text { max-width: 580px; }
.sp-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 10px 0 12px;
}
.sp-hero-title span { color: var(--primary-400); }
.sp-hero-sub {
    font-size: 1rem;
    color: #9ca3af;
    max-width: 460px;
    line-height: 1.6;
}
.sp-hero-float-btn {
    position: absolute;
    top: 50%;
    right: 48px;
    transform: translateY(-50%);
    background: var(--primary-500);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(var(--primary-rgb), .4);
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
.sp-hero-float-btn:hover {
    background: var(--primary-600);
    transform: translateY(calc(-50% - 2px));
}
.sp-ticker {
    background: var(--primary-500);
    padding: 10px 0;
    overflow: hidden;
}
.sp-ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: spTicker 16s linear infinite;
    white-space: nowrap;
}
.sp-ticker-track span {
    margin-right: 28px;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    flex-shrink: 0;
}
.sp-ticker-dot { color: rgba(255,255,255,.4); }
@keyframes spTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.sp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle, #1f2937);
    border-top: 1px solid var(--border-subtle, #1f2937);
    border-bottom: 1px solid var(--border-subtle, #1f2937);
}
.sp-stat {
    background: var(--bg-primary);
    padding: 24px 16px;
    text-align: center;
}
.sp-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-400);
    line-height: 1;
}
.sp-stat-label {
    font-size: .68rem;
    color: var(--text-tertiary);
    margin-top: 6px;
    font-weight: 500;
}
.sp-body {
    max-width: 1040px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.sp-section-label {
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-400);
    font-weight: 700;
    margin-bottom: 18px;
}
.sp-subcards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sp-subcard {
    background: var(--surface-1, #111827);
    border: 1px solid var(--border-subtle, #1f2937);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.sp-subcard:hover {
    border-color: rgba(var(--primary-rgb), .4);
    transform: translateY(-2px);
}
.sp-subcard-thumb {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
}
.sp-subcard-body { padding: 12px 14px 16px; }
.sp-subcard-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sp-subcard-text {
    font-size: .7rem;
    color: var(--text-tertiary);
    margin-top: 3px;
    line-height: 1.45;
}
.sp-faq-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle, #1f2937);
}
.sp-faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.sp-faq-q {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.sp-faq-q::before {
    content: '?';
    background: rgba(var(--primary-rgb), .15);
    color: var(--primary-400);
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}
.sp-faq-a {
    font-size: .78rem;
    color: var(--text-tertiary);
    line-height: 1.65;
    padding-left: 32px;
}
.sp-brands {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    border-top: 1px solid var(--border-subtle, #1f2937);
}
.sp-brand-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.sp-brand-pill {
    background: var(--surface-1, #111827);
    border: 1px solid var(--border-subtle, #1f2937);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: .06em;
}
.sp-cta {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a5f 100%);
    padding: 72px 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle, #1f2937);
}
.sp-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.sp-cta-sub {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 28px;
}
.sp-cta-btn {
    display: inline-block;
    background: var(--primary-500);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 28px rgba(var(--primary-rgb), .38);
    transition: background .2s, transform .2s;
}
.sp-cta-btn:hover {
    background: var(--primary-600, #2563eb);
    transform: translateY(-2px);
}
.sp-cta-note {
    font-size: .72rem;
    color: #4b5563;
    margin-top: 14px;
}
@media (max-width: 900px) {
    .sp-hero { height: 360px; }
    .sp-hero-float-btn { display: none; }
    .sp-body { grid-template-columns: 1fr; padding: 48px 20px; gap: 40px; }
    .sp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .sp-hero { height: 280px; }
    .sp-hero-title { font-size: 1.6rem; }
    .sp-hero-sub { display: none; }
    .sp-subcards { grid-template-columns: 1fr; }
}

/* ===== FILTRO DE PROYECTOS ===== */
.project-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 28px;
}
.filter-chip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    padding: 8px 18px;
    color: var(--text-tertiary, #9ca3af);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}
.filter-chip:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.filter-chip.active {
    border-color: var(--primary-500);
    background: rgba(var(--primary-rgb), 0.12);
    color: #fff;
    box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.25);
}
.work-card.is-hidden { display: none !important; }
@keyframes cardIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.work-card.card-in { animation: cardIn 0.3s ease both; }

/* La tarjeta-enlace no debe parecer texto enlazado */
a.work-card { text-decoration: none; color: inherit; display: block; }

@media (max-width: 600px) {
    .project-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

/* ===== PÁGINA DE CASO DE ESTUDIO ===== */
.cs-blocks {
    display: grid;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}
.cs-block {
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 16px;
    padding: 28px 28px 28px 100px;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    position: relative;
}
.cs-num {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    flex-shrink: 0;
}
.cs-block.reveal {
    transition: opacity 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-block-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-500);
    font-weight: 700;
    margin-bottom: 10px;
}
.cs-block p { color: var(--text-secondary, #d1d5db); line-height: 1.7; }
.cs-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}
.cs-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    filter: brightness(0.85);
    transition: filter 0.3s, transform 0.3s;
}
.cs-gallery img:hover { filter: brightness(1); transform: scale(1.02); }
.cs-placeholder {
    color: #f59e0b;
    font-weight: 600;
    background: rgba(245,158,11,0.08);
    padding: 2px 6px;
    border-radius: 4px;
}
@media (max-width: 640px) {
    .cs-gallery { grid-template-columns: 1fr 1fr; }
    .cs-block { padding: 24px 20px 24px 80px; }
    .cs-num { width: 44px; height: 44px; font-size: 1.1rem; left: 16px; top: 22px; }
}
