:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 10, 10, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    /* Neons & Accents */
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-violet: #8b5cf6;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Animation Curves */
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-bouncy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modo Claro / Light Theme Variables */
body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --text-primary: #0f172a;
    --text-secondary: #475569;

    --accent-green-glow: rgba(16, 185, 129, 0.15);
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
}

/* Mejoras de contraste de tarjetas en modo claro */
body.light-theme .service-card,
body.light-theme .bento-card,
body.light-theme .intro-card,
body.light-theme .feature-card,
body.light-theme .wd-pricing-card,
body.light-theme .why-card {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* No bloquear clicks */
    opacity: 0.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Progressive Enhancement para animaciones */
html.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-bouncy), transform 0.8s var(--ease-bouncy);
}

html.js-enabled .reveal.reveal-left {
    transform: translateX(-50px);
}

html.js-enabled .reveal.reveal-right {
    transform: translateX(50px);
}

html.js-enabled .reveal.reveal-scale {
    transform: scale(0.9);
}

html.js-enabled .reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger & Animations */
html.js-enabled .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-bouncy), transform 0.8s var(--ease-bouncy);
}

html.js-enabled .stagger-item.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}



/* Navegación simple */
/* Header y Navbar */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 100px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

/* Logo */
.logo {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enlaces de navegación */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s var(--ease-smooth);
    padding: 0.5rem 0;
}

/* Efecto subrayado animado y hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-green);
    transition: width 0.3s var(--ease-smooth);
}

.nav-links li a:hover {
    color: var(--text-primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Botón de la derecha */
.btn-nav {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s var(--ease-smooth);
}

/* Hover del botón: brillo sutíl */
.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    /* Above the mobile menu */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s var(--ease-bouncy);
    border-radius: 5px;
}

/* Contact Button in Mobile Menu */
.mobile-contact-btn {
    display: none;
}

/* Ajuste responsive para el menú */
@media (max-width: 992px) {
    .nav-button {
        display: none;
        /* Hide top right button */
    }

    .mobile-contact-btn {
        display: block;
        margin-top: 1rem;
    }

    .mobile-contact-btn a::after {
        display: none;
        /* Remove underline effect */
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.5s var(--ease-bouncy), visibility 0.5s, opacity 0.5s;
        z-index: 1000;
        backdrop-filter: blur(20px);
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.nav-active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-links li a {
        font-size: 1.5rem;
        /* Larger text on mobile menu */
    }

    /* Hamburger Animation to X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Sección Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 10% 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

h1,
.why-headline,
.cta-left h2 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-primary) 20%, var(--text-secondary) 50%, var(--accent-green) 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtext,
.about-text {
    font-weight: 300;
    letter-spacing: -0.01em;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Forma de "Vidrio" flotante */
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-green-glow) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: 0;
    opacity: 0.7;
    animation: heroGlow 10s alternate infinite ease-in-out;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 60%);
    top: 20%;
    right: 10%;
    filter: blur(80px);
    z-index: 0;
    animation: heroGlow2 12s alternate infinite ease-in-out;
}

@keyframes heroGlow {
    0% {
        transform: translate(-50%, -40%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -60%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes heroGlow2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(-30px, 30px) scale(1.2);
        opacity: 0.7;
    }
}

/* Botón solicitado */
.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: #ffffff;
    /* Keep white for the primary button on both themes */
    padding: 1rem 2.8rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 2.5rem;
    transition: all 0.4s var(--ease-bouncy);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1));
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Responsividad básica */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        min-height: 60vh;
    }
}

/* Marquee / Franja de Texto Infinita */
.marquee {
    width: 100%;
    overflow: hidden;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 5;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-track span {
    padding: 0 2rem;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sección de Servicios */
.services {
    padding: 8rem 5%;
    position: relative;
    z-index: 2;
    background: transparent;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta Base Elevada con Glassmorphism */
.service-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Important for flashlight */
}

/* Flashlight Glow Effect */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.05),
            transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-smooth);
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card ul,
.service-card p {
    position: relative;
    z-index: 1;
}

.service-card ul {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-size: 1.1em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Efectos Hover Específicos */
.service-card:hover {
    transform: translateY(-10px);
}

/* Servicios 1 y 3: Verde */
.service-card.border-green:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

/* Servicios 2 y 4: Azul */
.service-card.border-blue:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.08), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

/* --- NUEVA SECCIÓN DE SERVICIOS (SHOWCASE ZIG-ZAG) --- */
.service-showcase-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.showcase-item.inverse {
    flex-direction: row-reverse;
}

/* Visual Container */
.showcase-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.glass-orb {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--ease-bouncy);
}

body.light-theme .glass-orb {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-orb:hover {
    transform: scale(1.05) translateY(-10px);
}

.glass-orb.border-green {
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.glass-orb.border-blue {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

body.light-theme .glass-orb.border-green {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

body.light-theme .glass-orb.border-blue {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.glass-icon {
    font-size: 5rem;
    color: var(--text-primary);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.border-green .glass-icon {
    color: var(--accent-green);
    filter: drop-shadow(0 0 20px var(--accent-green-glow));
}

.border-blue .glass-icon {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 20px var(--accent-blue-glow));
}

.floating-number {
    position: absolute;
    font-size: 20rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    line-height: 1;
    user-select: none;
    font-family: var(--font-heading);
}

body.light-theme .floating-number {
    color: rgba(0, 0, 0, 0.04);
}

/* Content Container */
.showcase-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-content h3 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    position: relative;
    line-height: 1.2;
}

.showcase-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 90%;
}

.showcase-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.showcase-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.showcase-benefits li i {
    color: var(--accent-green);
    font-size: 1.2rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.showcase-item.inverse .showcase-benefits li i {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.showcase-btn {
    align-self: flex-start;
    padding: 0.8rem 2.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .service-showcase-container {
        gap: 5rem;
        padding: 0 1rem;
    }

    .showcase-item,
    .showcase-item.inverse {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .showcase-item .showcase-visual,
    .showcase-item.inverse .showcase-visual {
        order: -1;
    }

    .showcase-content {
        align-items: center;
    }

    .showcase-desc {
        max-width: 100%;
    }

    .showcase-content h3 {
        font-size: 2rem;
    }

    .showcase-benefits li {
        justify-content: center;
        text-align: left;
    }

    .showcase-btn {
        align-self: center;
    }

    .glass-orb {
        width: 220px;
        height: 220px;
    }

    .glass-icon {
        font-size: 4rem;
    }

    .floating-number {
        font-size: 14rem;
    }
}

/* Sección About Us */
.about {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    z-index: 2;
    background: transparent;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 5rem 4rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-smooth);
}

/* Efecto de resplandor moderno al pasar el ratón */
.about-container:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 40px 80px rgba(16, 185, 129, 0.08), inset 0 0 30px rgba(16, 185, 129, 0.05);
}

/* Borde gradiente animado constante para la tarjeta */
.about-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue), var(--accent-green));
    background-size: 200% auto;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    animation: gradientFlow 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

/* Reutilizando el estilo del botón */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 3rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.4s var(--ease-bouncy);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .about h2 {
        font-size: 2.2rem;
    }

    .about-text {
        font-size: 1.1rem;
    }
}

.why-connected {
    position: relative;
    padding: 10rem 5%;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.why-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.why-connected h2 {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.why-headline {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.why-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .why-headline {
        font-size: 2.5rem;
    }

    .why-description {
        font-size: 1.1rem;
    }
}

/* Sección de Valores */
.values {
    padding: 8rem 5%;
    background: transparent;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.values-header h2 {
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 5rem;
    color: var(--text-primary);
}

.values-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s var(--ease-bouncy);
    padding: 2rem;
    border-radius: 20px;
}

.value-item:hover {
    transform: translateY(-10px);
    background-color: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-green-glow));
    transition: all 0.4s;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6));
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .values-container {
        flex-direction: column;
        gap: 4rem;
    }
}

/* Sección Call to Action */
.cta {
    background-color: #020617;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.4) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0;
    padding: 5rem 8%;
    color: #ffffff;
    /* Requires a fixed bright color for the fixed dark background */
    position: relative;
    overflow: hidden;
    animation: gridMove 8s linear infinite;
    will-change: background-position;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 80px 80px;
    }
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.cta-left h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 500px;
    color: #ffffff;
    /* Remains white because the CTA background is #020617 in all themes */
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    background-size: 200% auto;
    background-position: left;
    -webkit-background-clip: text;
    background-clip: text;
    transition: color 0.5s var(--ease-smooth), background-position 0.6s var(--ease-smooth);
}

.cta:hover .cta-left h2 {
    color: transparent;
    /* Revela el gradiente */
    background-position: right;
}

.cta-right {
    text-align: right;
}

/* Botón de CTA (Líquido Magnético) */
.btn-cta {
    display: inline-block;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    color: var(--bg-dark);
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    border-radius: 100px;
    text-transform: uppercase;
    /* transition is managed via JS mostly for transform to avoid lag, but color is ok */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Light Sweep effect */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s var(--ease-smooth);
    z-index: -1;
}

.btn-cta:hover::after {
    left: 150%;
}

.btn-cta:hover {
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

/* Responsividad para móviles */
@media (max-width: 900px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-left h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .cta-right {
        text-align: center;
    }
}

footer {
    background-color: var(--bg-dark);
    padding: 6rem 5% 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Separador elegante */
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0.3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    flex: 2;
}

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0.5;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Iconos Sociales */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-secondary);
    width: 24px;
    transition: all 0.3s var(--ease-bouncy);
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    color: var(--accent-blue);
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 10px var(--accent-blue-glow));
}

/* Branding (C grande) */
.footer-branding {
    display: none;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .footer-branding {
        align-items: center;
        margin-bottom: 3rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* --- MICROINTERACCIONES PARA TODOS LOS BOTONES --- */

/* 1. Estado base: suavizamos cualquier cambio */
.btn-main,
.btn-secondary,
.btn-cta,
.btn-nav {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto elástico profesional */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 2. Hover: El botón sube ligeramente y proyecta una sombra (Efecto Elevación) */
.btn-main:hover,
.btn-secondary:hover,
.btn-cta:hover,
.btn-nav:hover {
    transform: translateY(-5px) scale(1.03);
    /* Sube 5px y crece un 3% */
}

/* 3. Click (Active): El botón se hunde al presionarlo (Efecto Físico) */
.btn-main:active,
.btn-secondary:active,
.btn-cta:active,
.btn-nav:active {
    transform: translateY(-2px) scale(0.97);
    /* Se encoge un poco al hacer click */
    transition: all 0.1s ease;
    /* Respuesta inmediata al click */
}

/* --- THEME TOGGLE BUTTON --- */
.theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-bouncy);
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.theme-btn svg {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.4s var(--ease-bouncy);
}

.sun-icon {
    transform: translateY(30px);
    opacity: 0;
}

.moon-icon {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .theme-btn,
body.light-theme .btn-nav {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

body.light-theme .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .moon-icon {
    transform: translateY(-30px);
    opacity: 0;
}

/* --- CUSTOM MAGNETIC CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    /* Ignora clicks físicos */
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    /* Deshabilitar transition en transform en el dot para que no tenga lag */
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-green);
    transform-origin: center center;
}

/* Hover estados del cursor */
.cursor-outline.expand {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(16, 185, 129, 0.3);
}

.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    border: 1px solid transparent;
    background-color: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(2px);
}

/* Ocultar cursor nativo */
body {
    cursor: none;
}

a,
button,
input {
    cursor: none;
    /* para componentes clickeables */
}

@media (max-width: 992px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body,
    a,
    button,
    input {
        cursor: auto !important;
    }
}

/* 4. Brillo extra para el botón principal (Opcional) */
.btn-main::after {
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-main:hover::after {
    left: 100%;
}

/* --- ESTILOS PÁGINA ABOUT --- */

.about-page {
    background-color: #050505;
    overflow-x: hidden;
}

.about-main {
    position: relative;
    padding: 11rem 0 8rem;
    overflow-x: hidden;
}

/* Formas Geométricas 3D de fondo */
.glass-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2ecc71, #3498db);
    top: -100px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3498db, #050505);
    bottom: 10%;
    right: -100px;
}

/* Contenedores */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-intro {
    font-size: 1.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.about-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.8;
}

/* Tarjeta de Vidrio (Glassmorphism) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 40px;
    margin-top: 6rem;
}

.what-is-connected h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.columns {
    display: flex;
    gap: 4rem;
}

.col p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--text-primary) !important;
    border-left: 3px solid #2ecc71;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .columns {
        flex-direction: column;
        gap: 1rem;
    }

    .about-hero h1 {
        font-size: 3rem;
    }

    .glass-card {
        padding: 2rem;
    }
}

/* --- DYNAMIC INTRO CARDS (HERO ABOUT) --- */
.intro-cards-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.intro-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    flex: 1;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s var(--ease-bouncy), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
}

.mt-offset {
    margin-top: 4rem;
    /* creates an asymmetrical dynamic layout */
}

.intro-card:hover.mt-offset {
    border-color: rgba(59, 130, 246, 0.3);
    /* blue for the second one */
}

.intro-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.intro-card .about-intro,
.intro-card .about-sub {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.intro-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .intro-cards-container {
        flex-direction: column;
    }

    .mt-offset {
        margin-top: 0;
    }
}

/* --- ABOUT PAGE NEW DYNAMIC SECTIONS --- */

/* 1. Animated Stats Section */
.stats-section {
    padding: 3rem 5%;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* 2. Bento Grid System for "What is Connected?" */
.bento-container {
    padding: 2rem 5% 5rem 5%;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bento-header h2 {
    font-size: 3rem;
    color: var(--text-primary);
    font-weight: 800;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Base Bento Card */
.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-bouncy), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    z-index: 1;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    z-index: 1;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    z-index: 1;
}

/* Bento Sizes and Placements */
.bento-large {
    grid-column: span 2;
    background: var(--bg-card);
    /* Fallback to standard for both themes */
}

.bento-tall {
    grid-row: span 2;
    justify-content: center;
}

.bento-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    justify-content: center;
    text-align: center;
}

.bento-highlight h3 {
    font-size: 2rem;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-highlight p {
    color: var(--text-primary);
    font-weight: 500;
}

/* Ambient glow for bento cards (reusing style logic) */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-smooth);
    opacity: 0;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-large {
        grid-column: span 2;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall,
    .bento-highlight {
        grid-column: span 1;
    }
}

/* --- CUSTOMER SERVICE PAGE STYLES --- */

/* Contenedor principal para tarjetas horizontales */
.cs-services-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Modificador horizontal de servicio */
.service-card.service-card-horizontal {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 3.5rem;
}

/* Envoltura del icono */
.service-card-horizontal .icon-wrapper {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    /* sobreponer el resplandor */
}

/* Eliminar márgenes del icono y estirar su tamaño */
.service-card-horizontal .icon-wrapper i {
    font-size: 3rem;
    margin: 0;
}

/* Envoltura del contenido de texto */
.service-card-horizontal .content-wrapper {
    flex-grow: 1;
    z-index: 1;
    /* sobreponer el resplandor */
}

/* Títulos y Contenido de texto en tarjetas horizontales */
.service-card-horizontal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card-horizontal p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Adaptabilidad a dispositivos moviles */
@media (max-width: 768px) {
    .service-card.service-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 2rem;
    }
}

/* --- WEB DEVELOPMENT PAGE SPECIFIC --- */

/* Hero */
.wd-hero {
    padding: 22vh 0 5vh 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.wd-tag {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.wd-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.wd-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Grid y Tarjetas */
.wd-main-content {
    margin-top: -20px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

.wd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    /* Make both cards same height */
    max-width: 1000px;
    margin: 0 auto;
}

.wd-pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s var(--ease-bouncy), border-color 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wd-pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
}

.wd-pricing-card.featured:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

/* Estilo destacado para Maintenance */
.wd-pricing-card.featured {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(255, 255, 255, 0.01));
    transform: scale(1.02);
}

.wd-pricing-card.featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
}

.wd-pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--accent-blue), var(--accent-green));
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.wd-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.wd-icon {
    font-size: 3.5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.wd-pricing-card.featured .wd-icon {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.wd-card-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Listas de beneficios */
.wd-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    /* Pushes the button to the bottom */
}

.wd-list li {
    padding: 12px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.wd-list li.emoji-title {
    padding-left: 0;
    border-bottom: none;
}

.wd-list li:last-child {
    border-bottom: none;
}

.wd-list li:not(.emoji-title)::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    margin-right: 15px;
    margin-top: 8px;
    /* Alineación perfecta con el texto */
}

.wd-pricing-card.featured .wd-list li:not(.emoji-title)::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.wd-list li.emoji-title::before {
    display: none;
}

.wd-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Botones */
.wd-card-footer {
    text-align: center;
    margin-top: auto;
}

.wd-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    /* Uses theme text */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease-bouncy);
    width: 100%;
    background: transparent;
}

.wd-btn.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border: none;
    color: #ffffff;
    /* Keep white for gradient buttons */
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.wd-btn:hover {
    transform: translateY(-3px);
    background: var(--text-primary);
    color: var(--bg-dark);
}

.wd-btn.btn-primary:hover {
    box-shadow: 0 15px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(90deg, #2563eb, #059669);
    /* darkens primary btn on hover */
    color: #ffffff;
    /* keeps white */
}

/* Mobile */
@media (max-width: 768px) {
    .wd-pricing-card.featured {
        transform: scale(1);
        margin-top: 2rem;
    }

    .wd-pricing-card.featured:hover {
        transform: translateY(-10px) scale(1);
    }

    .wd-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- TERMS & CONDITIONS STYLES --- */

.tc-page {
    background-color: var(--bg-dark);
    /* Un blanco roto más formal -> now dynamic */
}

.tc-hero {
    padding: 150px 0 60px;
    /* Increased top padding to clear navbar */
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-hero h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tc-line {
    width: 60px;
    height: 4px;
    background: #0062ff;
    margin: 20px auto;
}

.tc-content {
    max-width: 900px;
    /* Contenedor más estrecho para mejor lectura */
    padding: 60px 20px;
    background: var(--bg-card);
    margin-top: 40px;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.tc-main-title {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tc-block {
    margin-bottom: 35px;
}

.tc-block h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 15px;
}

.tc-block p,
.tc-block li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.tc-block ul {
    padding-left: 20px;
}

.tc-block li {
    margin-bottom: 10px;
}

.tc-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--bg-card);
    /* originally #f8f9fa */
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.tc-grid-mini span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.tc-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    /* originally #eee */
    margin: 60px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .tc-grid-mini {
        grid-template-columns: 1fr;
    }

    .tc-hero h1 {
        font-size: 2.2rem;
    }
}

/* --- PRIVACY POLICY STYLES --- */

.pp-page {
    background-color: var(--bg-dark);
}

.pp-hero {
    padding: 150px 0 80px;
    /* Increased top padding to clear navbar */
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* originally #e1e8ed */
}

.pp-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pp-hero h1 {
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.pp-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.pp-main {
    padding: 60px 0;
    max-width: 1000px;
}

.pp-card {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pp-section {
    margin-bottom: 45px;
}

.pp-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.pp-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Grid Técnico */
.pp-grid-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.tech-item {
    background: var(--bg-dark);
    /* or card */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.tech-item i {
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tech-item h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Alerta de notificación */
.pp-alert {
    background: rgba(239, 68, 68, 0.1);
    /* light red transparent */
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ef4444;
    /* red */
    margin-top: 30px;
}

/* Listas */
.pp-features {
    list-style: none;
    padding: 0;
}

.pp-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* originally #f0f0f0 */
}

.pp-features li::before {
    content: "•";
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .pp-card {
        padding: 30px;
    }

    .pp-grid-tech {
        grid-template-columns: 1fr;
    }
}

/* --- CONTACT PAGE STYLES --- */

.ct-page {
    background-color: var(--bg-dark);
}

.ct-container {
    padding: 140px 20px 100px;
    /* Increased top padding to clear navbar */
    min-height: 80vh;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
    /* Ensures it sits above particle canvas */
}

/* Info Column */
.ct-info span {
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.ct-info h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin: 20px 0;
    line-height: 1.1;
}

.ct-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.ct-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ct-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ct-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ct-item h4 {
    margin: 0;
    color: var(--text-primary);
}

.ct-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Form Column */
.ct-form-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-primary);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

.ct-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ct-btn:hover {
    background: #2563eb;
    /* slightly darker blue matching original intent */
}

.ct-privacy-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 20px;
    text-align: center;
}

.ct-privacy-note a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 992px) {
    .ct-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ct-info h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================= */
/* --- OPTIMIZATIONS & UTILITIES --- */
/* ========================================================================= */

body.no-scroll {
    overflow: hidden;
}

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ========================================================================= */
/* --- NEW HOME PAGE BENTO LAYOUT UTILITIES --- */
/* ========================================================================= */

.hero.bento-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-left h1 {
    font-size: 4rem;
    /* ensuring it fits */
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- HERO 3D CLUSTER --- */
.hero-3d-cluster {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.parallax-layer {
    position: absolute;
    transition: transform 0.1s linear;
    will-change: transform;
}

.p-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    font-family: var(--font-heading);
}

.p-card i {
    font-size: 2rem;
}

.p-green {
    top: 20%;
    left: 0;
    color: var(--accent-green);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    z-index: 3;
}

.p-blue {
    bottom: 25%;
    right: -10%;
    color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.p-ring {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    z-index: 2;
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

body.light-theme .p-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .p-ring {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .p-green i {
    color: var(--accent-green);
}

body.light-theme .p-blue i {
    color: var(--accent-blue);
}

/* --- DUAL MARQUEE --- */
.dual-marquee {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background-color: transparent;
    padding: 4rem 0;
    margin-top: 15vh;
    margin-bottom: 10vh;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.marquee-track {
    display: flex;
    width: max-content;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.marquee-track span {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-left {
    animation: marqueeScrollLeft 60s linear infinite;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.track-right {
    animation: marqueeScrollRight 70s linear infinite;
    color: var(--text-primary);
    margin-left: -50%;
}

.track-left i {
    color: var(--accent-green);
    margin-right: 15px;
}

.track-right i {
    color: var(--accent-blue);
    margin-right: 15px;
}

@keyframes marqueeScrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeScrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- STATS SECTION --- */
.stats-section {
    padding: 4rem 10%;
    position: relative;
    z-index: 5;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05), transparent 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff, #a8b2d1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .stat-number {
    background: linear-gradient(135deg, #0f172a, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-section-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 4rem;
    max-width: 1000px;
    margin: 4rem auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body.light-theme .bento-section-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-bento {
    background-color: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .value-bento {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.value-bento:hover {
    transform: translateY(-10px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

@media (max-width: 900px) {
    .hero.bento-layout {
        flex-direction: column;
        text-align: center;
        padding-top: 25vh;
        gap: 2rem;
    }

    .hero-left h1 {
        font-size: 3rem;
    }

    .hero-glass-orb {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .bento-section-card {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }

    .values-grid {
        padding: 0 1rem;
    }

    .wd-grid {
        grid-template-columns: 1fr;
    }

    .wd-pricing-card.featured {
        transform: scale(1);
        /* Prevent horizontal overflow from scale on mobile */
    }
}

/* --- EDITORIAL MINIMALIST LAYOUT (DESKTOP) --- */
.editorial-section {
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.editorial-container {
    position: relative;
    z-index: 2;
}

.editorial-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.editorial-headline {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.editorial-body {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Fallback Móvil: Tarjetas Bento */
@media (max-width: 900px) {
    .editorial-section {
        padding: 4rem 2rem;
        background-color: var(--bg-card);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin: 2rem 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .editorial-title {
        font-size: 2.5rem;
    }

    .editorial-headline {
        font-size: 1.3rem;
    }

    .editorial-body {
        font-size: 1.1rem;
    }

    body.light-theme .editorial-section {
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    }
}

/* --- BENTO FLASHLIGHT EFFECTS & POSITIONING --- */
.value-bento {
    position: relative;
    overflow: hidden;
}

.value-bento::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.value-bento:hover::before {
    opacity: 1;
}

.value-bento>* {
    position: relative;
    z-index: 1;
}

/* ========================================================================= */
/* --- MOBILE QA FIXES --- */
/* ========================================================================= */

@media (hover: none) {

    .service-card:hover,
    .bento-card:hover,
    .intro-card:hover,
    .wd-pricing-card:hover,
    .value-bento:hover,
    .glass-orb:hover,
    .value-item:hover {
        transform: none !important;
    }

    .wd-pricing-card.featured:hover {
        transform: scale(1) !important;
    }
}