/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    /* Brand Colors */
    --bg-navy: #05316c;
    --bg-navy-dark: #062b54;
    --accent-lime: #c1ff72;
    --accent-lime-hover: #b0f055;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Aldrich', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-navy);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.highlight {
    color: var(--accent-lime);
}

/* =========================================
   UI COMPONENTS
========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-lime);
    color: var(--bg-navy);
    font-family: var(--font-heading);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--accent-lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(180, 255, 80, 0.2);
}

.btn-primary-outline {
    display: inline-block;
    border: 1px solid var(--accent-lime);
    color: var(--accent-lime);
    font-family: var(--font-heading);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary-outline:hover {
    background-color: var(--accent-lime);
    color: var(--bg-navy);
}

/* =========================================
   HERO LOGO ANIMATION
========================================= */
.hero-logo-anim {
    font-size: 7rem;
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.hero-logo-anim .logo-code {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    letter-spacing: -1px;
}

.hero-logo-anim .logo-sys {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-lime);
    letter-spacing: -2px;
}

.hero-logo-anim .cursor-blink {
    color: var(--accent-lime);
    animation: blink 1s infinite;
    font-family: monospace;
    margin-left: 5px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-logo-anim {
        font-size: 4.5rem;
    }
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
    background: var(--bg-navy-dark);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.navbar-logo {
    display: flex;
    align-items: baseline;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-code {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    letter-spacing: -1px;
}

.logo-sys {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-lime);
    letter-spacing: -1px;
}

.logo-img-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 140px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not([class*="btn-"]) {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:not([class*="btn-"])::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-lime);
    transition: width 0.3s ease;
}

.nav-links a:not([class*="btn-"]):hover::after {
    width: 100%;
}

.btn-navbar {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 50px; /* pill shape matching the navbar */
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001; /* Above dropdown */
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

.mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* =========================================
   HERO SECTION
========================================= */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 12rem 0 6rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(180, 255, 80, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(6, 43, 84, 0.5), transparent 50%);
    z-index: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    max-width: 650px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-lime);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.highlight {
    color: var(--accent-lime);
    position: relative;
}

.description {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.trust-avatars {
    display: flex;
}

.trust-avatars .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-navy);
    margin-left: -10px;
}
.trust-avatars .avatar:first-child { margin-left: 0; }

.hero-mockups {
    position: relative;
    width: 130%;
    height: 600px;
    transform: translateX(10%);
    pointer-events: none;
}

.hero-mockup {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(5, 49, 108, 0.4);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.hero-mockup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to diffuse the bottom into the navy background */
    background: linear-gradient(to top, var(--bg-navy) 0%, rgba(5, 49, 108, 0.4) 30%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.mockup-browser-bar {
    height: 28px;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-browser-bar span:nth-child(1) { background: #ff5f56; } /* Cerrar */
.mockup-browser-bar span:nth-child(2) { background: #ffbd2e; } /* Minimizar */
.mockup-browser-bar span:nth-child(3) { background: #27c93f; } /* Maximizar */

.mockup-center {
    width: 560px;
    height: 320px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mockup-left {
    width: 440px;
    height: 260px;
    top: 180px;
    left: -40px;
    transform: rotate(-4deg);
    z-index: 2;
}

.mockup-right {
    width: 460px;
    height: 280px;
    top: 280px;
    right: -20px;
    transform: rotate(3deg);
    z-index: 3;
}

/* Animación modo emergente para los mockups */
.hero-image-content .hero-mockup {
    opacity: 0;
    scale: 0.8;
    /* Remover clip-path de persiana si existiera */
    clip-path: none;
}

.hero-image-content.active .mockup-center {
    animation: popupReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.hero-image-content.active .mockup-left {
    animation: popupReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.5s;
}

.hero-image-content.active .mockup-right {
    animation: popupReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes popupReveal {
    0% {
        scale: 0.8;
        opacity: 0;
    }
    100% {
        scale: 1;
        opacity: 1;
    }
}

.floating-badge {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 4;
}
.badge-js {
    top: 25px;
    right: 40px;
    background: #f7df1e;
    color: #000;
}
.badge-wp {
    bottom: 80px;
    left: 0;
    background: #21759b;
    color: #fff;
    border-radius: 50%;
}

/* Tech Marquee */
.tech-marquee-container {
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.tech-marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.tech-marquee span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-lime);
    opacity: 0.25;
    margin: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tech-marquee span i {
    font-size: 1.8rem;
}

.tech-marquee span:hover {
    opacity: 1;
}

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

/* =========================================
   SERVICES SECTION
========================================= */
.services {
    padding: 8rem 0;
    background-color: var(--bg-navy-dark);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-title span {
    color: var(--accent-lime);
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Services Cards Detailed */
.services-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card-detailed {
    background-color: #111a28;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card-detailed.highlighted {
    background-color: #152238;
    border-color: rgba(180, 255, 80, 0.2);
}

.watermark-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.highlighted .card-badge {
    background: rgba(180, 255, 80, 0.2);
    color: var(--accent-lime);
}

.service-card-detailed h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #fff;
}

.service-card-detailed p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    margin-bottom: 0.8rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.service-features .bullet {
    width: 6px;
    height: 6px;
    background-color: var(--accent-lime);
    border-radius: 50%;
    margin-right: 10px;
}

/* Code Background Animation Styles */
.code-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 72px;
    line-height: 1.1;
    color: var(--accent-lime);
    padding: 2rem;
    opacity: 0.15;
    filter: blur(8px);
    pointer-events: none;
    text-align: left;
}

.code-background-container pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-darker) 85%);
    pointer-events: none;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: var(--accent-lime);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

/* Typist cursor effect for headings */
.section-title::after {
    content: '|';
    color: var(--accent-lime);
    animation: blink-cursor 1s step-end infinite;
    margin-left: 5px;
    font-family: monospace;
    font-weight: normal;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   PORTFOLIO SECTION
========================================= */
.portfolio {
    padding: 8rem 0;
    background-color: var(--bg-navy);
}

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

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-lime);
    box-shadow: 0 15px 30px rgba(193, 255, 114, 0.2);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-navy);
    opacity: 0.45; /* Filtro azul para unificar colores */
    mix-blend-mode: multiply; /* Para que tiña los blancos sin oscurecer tanto los negros */
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Quitar el filtro cuando pasas el mouse para que destaque el proyecto */
.portfolio-card:hover .portfolio-img::after {
    opacity: 0.1;
}

.bg-center { background-position: center; }
.bg-top-left { background-position: top left; }
.bg-top-center { background-position: top center; }

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact {
    padding: 8rem 0;
    background-color: var(--bg-navy);
}

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

.contact-info p {
    color: var(--text-gray);
    margin-top: 1rem;
    font-size: 1.1rem;
    max-width: 400px;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.form-row input {
    flex: 1;
}

.demo-form input, .demo-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
}

.demo-form input:focus, .demo-form textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: 3rem 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

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

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.slogan-img-footer {
    height: 70px;
    width: auto;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS (Intersection Observer Targets)
========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* =========================================
   RESPONSIVE DESIGN
========================================= */
/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-text-content { margin: 0 auto; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-3d-img { width: 100%; transform: none; margin-top: 3rem; }
    
    .services-cards-wrapper { grid-template-columns: 1fr; }
    
    .hero-title { font-size: 3rem; }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real project, add a hamburger menu here */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services, .contact {
        padding: 4rem 0;
    }

    .form-row {
        flex-direction: column;
    }
}

/* =========================================
   TRUSTED BY SECTION
========================================= */
.trusted-by {
    padding: 3rem 0;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
}
.trusted-by p {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}
.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.trusted-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}
.trusted-logo:hover {
    opacity: 1;
}

/* =========================================
   PRICING SECTION
========================================= */
.pricing {
    padding: 8rem 0;
    background-color: var(--bg-navy);
    position: relative;
    overflow: hidden;
}

/* Marca de agua de fondo */
.pricing::before {
    content: 'Precios';
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
}

.pricing-header {
    text-align: left;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.pricing-subtitle {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}
.pricing-subtitle .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-lime);
    border-radius: 50%;
}
.pricing-header h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}
.pricing-header h2 span {
    color: var(--accent-lime);
}
.pricing-desc {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

.pricing-card {
    background: #111a28; /* oscuro para contrastar con navy */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden; 
    text-align: center;
}

.pricing-card:hover {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(-15px);
    background-color: rgba(193, 255, 114, 0.05);
    border-color: rgba(193, 255, 114, 0.3);
    box-shadow: 0 15px 30px rgba(193, 255, 114, 0.1);
}

/* Glow Effect */
.glow-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top, rgba(193, 255, 114, 0.15) 0%, rgba(255,255,255,0.05) 30%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.highlight-glow {
    background: radial-gradient(circle at top, rgba(193, 255, 114, 0.25) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    opacity: 1;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card.highlighted {
    background: #152238;
    transform: scale(1.05);
    border-color: rgba(193, 255, 114, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    padding: 4rem 2rem;
    z-index: 2;
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-15px);
    background-color: rgba(193, 255, 114, 0.1);
    border-color: rgba(193, 255, 114, 0.5);
    box-shadow: 0 20px 40px rgba(193, 255, 114, 0.2);
}

.pricing-card .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(193, 255, 114, 0.3);
    color: var(--accent-lime);
}

.pricing-card h3 {
    font-size: clamp(1.3rem, 2.2vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #fff;
}
.pricing-card h3 span {
    color: var(--accent-lime);
}
.tier-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    margin: 0 auto 2.5rem auto;
    display: inline-block;
    text-align: left;
}
.features li {
    color: #ddd;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.features li i {
    color: var(--accent-lime);
    font-size: 0.9rem;
    margin-top: 4px;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--accent-lime);
    border: 1px solid var(--accent-lime);
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    display: block;
    transition: all 0.3s ease;
}
.btn-pricing:hover {
    background: rgba(193, 255, 114, 0.1);
}
.btn-highlight {
    background: var(--accent-lime);
    color: var(--bg-navy-dark);
}
.btn-highlight:hover {
    background: #a8e063;
    color: var(--bg-navy-dark);
}

.pricing-note {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    margin-top: 1.5rem;
}

.footer-socials a:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */
.testimonials {
    padding: 8rem 0;
    background-color: var(--bg-navy-dark);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}
.avatar-lime {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-lime);
    color: var(--bg-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.reviewer-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}
.reviewer-info p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}
.stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}
.review-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-cards-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .pricing-card.highlighted { padding: 3rem 2rem; }
}
@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .hero-mockups { height: 400px; transform: none; width: 100%; }
    .mockup-center { top: 20px; width: 280px; }
    .mockup-left { top: 60px; left: -20px; width: 200px; }
    .mockup-right { top: 50px; right: -20px; width: 200px; }
    .trusted-logos { gap: 2rem; }
    .pricing::before { font-size: 5rem; }
    .pricing-header h2 { font-size: 2.5rem; }
    .pricing-card { padding: 2.5rem 1.5rem; }
    .pricing-card.highlighted { padding: 2.5rem 1.5rem; }
    .about-us-content { padding: 3rem 1.5rem 2rem 1.5rem !important; }
}

@media (max-width: 992px) {
    /* Mobile Navbar */
    .navbar {
        overflow: visible !important;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--bg-navy-dark) !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 2rem 0 !important;
        gap: 2rem !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease !important;
        display: flex !important;
        z-index: 999;
    }
    
    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(15px) !important; /* Detached slightly from the navbar */
    }

    .btn-navbar {
        margin-left: 0 !important;
        margin-top: 1rem !important;
    }
}

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-lime);
    color: var(--bg-navy-dark);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 5px 15px rgba(180, 255, 80, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(180, 255, 80, 0.5);
    color: var(--bg-navy);
}

/* =========================================
   RESPONSIVE OVERRIDES
========================================= */
@media (max-width: 992px) {
    .nav-container {
        justify-content: center !important;
        position: relative;
    }
    .mobile-menu-toggle {
        position: absolute;
        right: 0;
    }
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-title {
        text-align: center;
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .pricing-header {
        text-align: center;
    }
    .pricing-subtitle {
        justify-content: center;
    }
    .section-title span {
        display: inline-block;
        margin-left: 15px;
    }
    .code-background-container {
        font-size: 28px;
        padding: 1rem;
        opacity: 0.25;
        filter: blur(3px);
    }
    .services {
        padding: 4rem 0;
    }
    .pricing {
        padding: 4rem 0;
    }
    .tech-marquee-container {
        overflow: hidden;
        max-width: 100vw;
    }
    .section-title span {
        margin-left: 0;
    }
}

.services-cards-wrapper .mobile-hidden {
    display: none !important;
}
.services-cards-wrapper .mobile-hidden.force-show {
    display: flex !important;
}

/* Typing Cursor Effect */
.type-cursor-bar {
    color: var(--accent-lime);
    font-weight: 400;
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 2px;
}
@keyframes blink {
    50% { opacity: 0; }
}
