/* RA Software - Estilos principales */

/* ========================================
   CRITICAL: Prevenir overflow horizontal
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    position: relative;
}

.container, .container-fluid {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.row {
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

[class*="col-"] {
    overflow-x: hidden !important;
}

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --primary: #1565C0;
    --secondary: #42A5F5;
    --light: #64B5F6;
    --dark: #0D47A1;
    --accent-blue: #2196F3;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-dark: #1a1a1a;
    --section-grad-start: rgba(21,101,192,0.12);
    --section-grad-end: rgba(66,165,245,0.12);
    --section-grad-alt-start: rgba(139,92,246,0.08);
    --section-grad-alt-end: rgba(66,165,245,0.08);
    --navbar-height: 72px;
    --anim-short: 0.6s;
    --anim-medium: 1s;
    --anim-long: 1.6s;
    --accent-glow: rgba(99,102,241,0.18);
}

/* ========================================
   LAYOUT GENERAL
   ======================================== */
section, .container, .container-fluid, .row, div[class*="col-"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

.container {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

section {
    scroll-margin-top: calc(var(--navbar-height) + 12px);
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    transition: all 0.3s;
}

.navbar-brand:hover .navbar-logo {
    transform: rotate(360deg) scale(1.1);
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link:active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    bottom: -8px;
    height: 3px;
    width: 48%;
    background: var(--primary);
    border-radius: 6px;
    transition: transform var(--anim-short) ease, opacity var(--anim-short) ease;
    opacity: 0.9;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.hover-active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.nav-link.active,
.nav-link.hover-active {
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231565C0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

.navbar-collapse.show .nav-link {
    transform: translateX(0);
    opacity: 1;
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7),
                    0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    background: #20ba5a;
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(1.05);
    background: #1ea952;
    color: white;
}

/* Texto del WhatsApp flotante */
.whatsapp-text {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #25d366;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    right: 75px;
}

/* En móvil, mostrar el texto siempre */
@media (max-width: 768px) {
    .whatsapp-text {
        opacity: 1;
        right: 58px;
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 78px; /* elevamos para evitar solapamiento con la mobile-cta-bar */
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--navbar-height) + 1.25rem) 0 2.5rem 0;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .hero-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-subcopy {
    font-size: 1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* Hero Services List */
.hero-services-list {
    background: rgba(13, 71, 161, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-services-list .services-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-services-list .service-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 1.05rem;
    padding: 0.6rem 0;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    font-weight: 600;
}
.hero-services-list .service-option .left { display:flex; align-items:center; gap:10px; }
.hero-services-list .service-option .price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    color: #FFD700;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
    text-decoration: none;
    cursor: pointer;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, background 200ms ease;
}
.hero-services-list .service-option .price-pill:hover,
.hero-services-list .service-option .price-pill:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(21,101,192,0.12);
    background: rgba(255,255,255,0.16);
}
/* Pulse effect for mobile to draw attention (respects reduced motion) */
@keyframes pulse-small { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (max-width: 768px) {
    .hero-services-list .service-option .price-pill { animation: pulse-small 1.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-services-list .service-option .price-pill { animation: none !important; transition: none !important; }
}
@media (max-width: 576px){
    .hero-services-list { padding: 1.25rem; }
    .hero-services-list .services-title { font-size:1.05rem; }
    .hero-services-list .service-option { font-size: 0.98rem; gap:8px; }
}

.hero-services-list .service-option:last-child {
    border-bottom: none;
}

.hero-services-list .service-option .price {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Hero Benefits */
.hero-benefits {
    background: rgba(13, 71, 161, 0.75);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-benefits .benefit-item {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    color: #FFFFFF;
    font-weight: 500;
}

/* Guarantee */
.guarantee {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #FFD700;
    border-radius: 8px;
    border-left: 6px solid #FFA500;
    box-shadow: 0 4px 20px rgba(255,215,0,0.4);
    text-shadow: none;
}

/* ========================================
   SALUDO DINÁMICO
   ======================================== */
.greeting-dynamic {
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin: 20px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: greeting-pulse 3s ease-in-out infinite;
}

@keyframes greeting-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

#greetingEmoji {
    font-size: 1.5rem;
    display: inline-block;
    animation: emoji-bounce 2s ease-in-out infinite;
}

@keyframes emoji-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-10deg);
    }
    75% {
        transform: translateY(-5px) rotate(10deg);
    }
}

#greetingText {
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========================================
   CODE SNIPPET / CONSOLE
   ======================================== */
.code-snippet {
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem 0.75rem;
    margin: 1.25rem 0;
    backdrop-filter: none;
    border: none;
    color: rgba(255,255,255,0.95);
}

.code-snippet pre {
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    overflow-x: auto;
    background: rgba(255,255,255,0.02);
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
}

.console-anim {
    margin-top: 0.75rem;
}

.console-line {
    font-family: 'Courier New', Courier, monospace;
    color: #e6f0ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.console-line .prompt {
    color: #9fb6ff;
    opacity: 0.95;
}

.typed {
    white-space: pre;
    letter-spacing: 0.6px;
}

.cursor {
    display: inline-block;
    width: 10px;
    margin-left: 4px;
    color: #9fb6ff;
    animation: blink 900ms steps(2,end) infinite;
}

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

/* Monitor 8-bit */
.monitor-wrap {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.monitor {
    width: min(360px, 86%);
    height: auto;
    max-height: 140px;
    overflow: visible;
}
@media (max-width: 768px) {
    .monitor { max-height: 120px; }
}

.monitor .frame {
    fill: #0d2748;
    stroke: #113461;
    stroke-width: 3px;
    rx: 8;
}

.monitor .screen {
    fill: #04122a;
    rx: 4;
}

.monitor-text {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 12px;
    fill: #7CFF00;
    letter-spacing: 1px;
}
@media (max-width: 768px){
    .monitor-text{ font-size: 10px; letter-spacing: 0.6px; }
}

.monitor .scan {
    fill: rgba(255,255,255,0.06);
    animation: scan 1.6s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-120%); opacity: 0; }
    40% { opacity: 0.25; }
    60% { opacity: 0.25; }
    100% { transform: translateY(120%); opacity: 0; }
}

.monitor.glitch .screen {
    animation: glitch-scr 0.45s linear;
    filter: drop-shadow(0 0 8px rgba(124,255,0,0.12));
}

@keyframes glitch-scr {
    0% { transform: translateX(0) skewX(0deg); opacity: 1; }
    10% { transform: translateX(-6px) skewX(-6deg); opacity: 0.95; }
    30% { transform: translateX(4px) skewX(4deg); opacity: 1; }
    50% { transform: translateX(-3px) skewX(-3deg); opacity: 0.92; }
    70% { transform: translateX(2px) skewX(2deg); opacity: 1; }
    100% { transform: translateX(0) skewX(0deg); opacity: 1; }
}

.monitor.glitch .monitor-text {
    animation: text-flicker 0.45s steps(2,end) both;
}

@keyframes text-flicker {
    0% { opacity: 0.2; transform: translateX(-1px); }
    10% { opacity: 1; transform: translateX(1px); }
    40% { opacity: 0.6; transform: translateX(-2px); }
    100% { opacity: 1; transform: translateX(0); }
}

.keyboard {
    display: flex;
    width: min(360px,86%);
    height: auto;
    margin-top: 4px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
}
@media (max-width:768px){ .keyboard{ gap:5px; padding:6px; } }

.keyboard .key {
    width: 18px;
    height: 10px;
    background: linear-gradient(180deg,#12324f,#0b2438);
    border-radius: 2px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.02);
}

.keyboard .space {
    width: 140px;
}

/* ========================================
   ILUSTRACIONES HERO
   ======================================== */
.hero-illustration {
    position: relative;
    display: inline-block;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    max-width: 140px;
    border-radius: 6px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 180ms ease, opacity 180ms ease;
    mix-blend-mode: normal;
    opacity: 0.98;
    display: block;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 90%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.03), rgba(255,255,255,0) 30%);
    filter: blur(12px);
    z-index: -1;
    border-radius: 12px;
    opacity: 0.6;
    pointer-events: none;
}

.hero-illustration img:hover {
    transform: translateY(-2px) scale(1.01);
}

.hero-illustration-desktop {
    position: absolute;
    right: 4.5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-illustration-desktop::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    bottom: 0;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-10deg);
    opacity: 0;
}

.hero-illustration-desktop:hover::after {
    animation: shine 0.7s ease forwards;
    opacity: 1;
}

@keyframes shine {
    from { left: -30%; }
    to { left: 160%; }
}

/* ========================================
   BOTONES
   ======================================== */
.btn-primary {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(102,126,234,0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102,126,234,0.4), 0 0 40px rgba(102,126,234,0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102,126,234,0.6), 0 0 60px rgba(102,126,234,0.3);
        transform: scale(1.02);
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102,126,234,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 40px rgba(102,126,234,0.5), 0 0 60px rgba(102,126,234,0.3);
    animation: none;
}
}

.btn-outline-light {
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

/* ========================================
   SECCIONES
   ======================================== */
section:not(.hero):not(.no-gradient) {
    position: relative;
    padding: 4rem 0;
    background-color: rgba(21,101,192,0.02);
    overflow: visible;
}

section:not(.hero):not(.no-gradient)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, var(--section-grad-start), var(--section-grad-end));
    opacity: 0.18;
    mix-blend-mode: overlay;
}

section:not(.hero):not(.no-gradient):nth-of-type(even)::before {
    background: linear-gradient(225deg, var(--section-grad-alt-start), var(--section-grad-alt-end));
}

section:not(.hero):not(.no-gradient) > .container,
section:not(.hero):not(.no-gradient) .container-fluid,
section:not(.hero):not(.no-gradient) .row {
    position: relative;
    z-index: 1;
}

section:not(.hero):not(.no-gradient) .card,
section:not(.hero):not(.no-gradient) .contact-info,
section:not(.hero):not(.no-gradient) .tech-logo,
section:not(.hero):not(.no-gradient) .mobile-cta-bar {
    background-color: rgba(255,255,255,0.96);
    transition: background-color 0.25s ease;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Sección servicios con gradiente visible */
section#servicios {
    position: relative;
    overflow: visible;
    background-color: transparent;
}

section#servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(21,101,192,0.22) 0%, rgba(66,165,245,0.16) 60%, rgba(139,92,246,0.10) 100%);
    opacity: 0.9;
    mix-blend-mode: normal;
    filter: saturate(1.03) contrast(1.02);
}

section#servicios > .container,
section#servicios .container-fluid,
section#servicios .row {
    position: relative;
    z-index: 1;
}

section#servicios .card,
section#servicios .contact-info {
    background-color: rgba(255,255,255,0.94);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

.card:hover,
.card:active {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 60px rgba(102,126,234,0.3), 0 10px 20px rgba(0,0,0,0.15);
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: #64748b;
    font-size: 0.95rem;
}

.card.services-pop {
    transform: translateY(18px);
    opacity: 0;
    transition: transform var(--anim-medium) cubic-bezier(.2,.9,.2,1), opacity var(--anim-short) ease;
}

.card.services-pop.visible {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 18px 40px rgba(99,102,241,0.06);
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: visible !important;
    width: 100%;
}

.stats .container-fluid,
.stats .row {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: statsRotate 20s linear infinite;
    pointer-events: none;
    overflow: visible !important;
}

@keyframes statsRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible !important;
}

.stat-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }
.stat-item:nth-child(4) { transition-delay: 0.4s; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-block;
    /* ensure numbers and long text center nicely */
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Text variant inside stat for long labels like "Clientes satisfechos" */
.stat-text {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.02;
    white-space: normal;
    word-break: break-word;
    margin: 0 0.25rem;
    transition: transform 300ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease;
}
.stat-text.pop {
    transform: scale(1.035);
}

@media (max-width: 768px){
    .stat-number { font-size: 2rem; min-height: 2.6rem; }
    .stat-text { font-size: 1.4rem; }
}
@media (max-width: 420px){
    .stat-text { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce){
    .stat-text, .stat-text.pop { transition: none !important; transform: none !important; }
}

.stat-num {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-num.pop {
    animation: statPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive para stats en móvil */
@media (max-width: 768px) {
    .stats {
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* ========================================
   POR QUÉ ELEGIRNOS
   ======================================== */
.why-us-section {
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.why-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.why-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    transform: rotateY(360deg) scale(1.1);
}

.why-card:hover .why-icon::after {
    opacity: 0.3;
    transform: scale(1.4);
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.guarantee-box {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(21, 101, 192, 0.25);
    position: relative;
    overflow: hidden;
}

.guarantee-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: statsRotate 30s linear infinite;
}

.guarantee-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.guarantee-box h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.guarantee-text {
    font-size: 1.1rem;
    line-height: 2;
    margin: 0;
    position: relative;
    z-index: 1;
}

.guarantee-text .highlight {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.3rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Pulse effect for small celebratory highlight */
.pulse-effect {
    animation: pulseGlow 1.1s ease-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(99,102,241,0); }
    30% { transform: scale(1.04); box-shadow: 0 18px 40px rgba(99,102,241,0.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(99,102,241,0); }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-effect { animation: none !important; }
}

@media (max-width: 991px) {
    .why-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .guarantee-box {
        padding: 2.5rem 1.5rem;
    }
    
    .guarantee-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .why-card h3 {
        font-size: 1.2rem;
    }
    
    .why-card p {
        font-size: 0.9rem;
    }
    
    .guarantee-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .guarantee-box h3 {
        font-size: 1.5rem;
    }
}

/* Mobile highlight CTA for "¿Por Qué Elegirnos?" */
.mobile-why-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 74px; /* above mobile CTA bar */
    z-index: 2000;
    background: linear-gradient(90deg, rgba(21,101,192,0.98), rgba(66,165,245,0.98));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(13,71,161,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
    cursor: pointer;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(.2,.9,.2,1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-why-cta.visible {
    transform: translateY(0%);
    opacity: 1;
}

.mobile-why-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.mobile-why-sub {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.95;
}

.mobile-why-chevron {
    margin-left: 6px;
    font-size: 1.1rem;
    transform: translateX(0);
    transition: transform 0.25s ease;
}

.mobile-why-cta.visible .mobile-why-chevron {
    transform: translateX(6px);
}

.mobile-why-close {
    background: transparent;
    color: rgba(255,255,255,0.95);
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .mobile-why-cta { display: none !important; }
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonial-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(21,101,192,0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(21,101,192,0.2);
}

.testimonial-avatar {
    color: var(--primary);
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin: 1rem 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-stars i {
    margin: 0 2px;
}

/* ========================================
   TECNOLOGÍAS
   ======================================== */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.tech-item {
    text-align: center;
    transition: all 0.3s;
}

.tech-item:hover,
.tech-item:active {
    transform: translateY(-5px);
}

.tech-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 2rem;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

/* ========================================
   ACORDEONES
   ======================================== */
.accordion-button {
    background: var(--light);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.accordion-button:hover::before {
    left: 100%;
}

.accordion-button:hover {
    transform: translateX(5px);
    box-shadow: -5px 0 15px rgba(99, 102, 241, 0.3);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.accordion-button:not(.collapsed) i {
    animation: icon-spin 0.6s ease;
}

@keyframes icon-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.3);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.5);
}

.accordion-item {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradient-slide 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.accordion-item:hover::before {
    opacity: 1;
}

@keyframes gradient-slide {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.accordion-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.accordion-item.revealed {
    box-shadow: 0 10px 30px rgba(99,102,241,0.06);
    transform: translateY(-4px);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-body li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.accordion-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: all 0.3s ease;
}

.accordion-body li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

.accordion-body li:hover::before {
    transform: translateX(5px);
}

/* ========================================
   FORMULARIO
   ======================================== */
.form-control, .form-select {
    padding: 0.875rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.contact-info h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin: 0;
    color: #64748b;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: white;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ========================================
   SCROLL INDICATORS
   ======================================== */
.scroll-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator.show {
    display: flex;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--primary);
    font-size: 1.5rem;
    border: 2px solid var(--primary);
}

.scroll-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-progress {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.progress-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    opacity: 0;
}

.progress-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: dot-pulse 2s infinite;
}

.progress-dot.active::after {
    width: 30px;
    height: 30px;
    opacity: 0.3;
    animation: dot-ripple 1.5s infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8),
                    0 0 30px rgba(139, 92, 246, 0.4);
    }
}

@keyframes dot-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

.progress-dot:hover {
    transform: scale(1.5);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.3);
}

/* Ocultar indicadores de progreso sobre la sección de estadísticas */
@media (min-width: 768px) {
    .scroll-progress {
        pointer-events: none;
    }
    .progress-dot {
        pointer-events: all;
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    /* Hacer muy sutil o invisible cuando se superpone a stats */
    body:has(.stats:hover) .scroll-progress,
    .scroll-progress.hide-on-stats {
        opacity: 0.1;
    }
}

.progress-dot::before {
    content: attr(data-section);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.progress-dot:hover::before {
    opacity: 1;
}

/* Mouse Scroll Indicator - Solo Desktop */
.mouse-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 13px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scroll-arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    animation: arrow-move 2s infinite;
}

.scroll-arrows span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow-move {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* ========================================
   PARTÍCULAS FLOTANTES - DESKTOP
   ======================================== */
@media (min-width: 769px) {
    .hero::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(99, 102, 241, 0.15) 40%, transparent 70%);
        border-radius: 50%;
        top: 10%;
        left: -100px;
        animation: particle-float-1 12s ease-in-out infinite;
        z-index: 0;
        filter: blur(60px);
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(168, 85, 247, 0.2) 40%, transparent 70%);
        border-radius: 50%;
        bottom: -150px;
        right: -100px;
        animation: particle-float-2 15s ease-in-out infinite;
        z-index: 0;
        filter: blur(80px);
    }
    
    .mouse-scroll-indicator {
        display: flex;
    }
    
    .hero-illustration img {
        max-width: 160px;
    }
}

@keyframes particle-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(100px, -80px) scale(1.2) rotate(120deg);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9) rotate(240deg);
    }
}

@keyframes particle-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-120px, 60px) scale(0.85) rotate(-120deg);
    }
    66% {
        transform: translate(80px, -100px) scale(1.15) rotate(-240deg);
    }
}

/* ========================================
   OVERLAY LOADER
   ======================================== */
.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.overlay-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: logo-bounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.3));
}

@keyframes logo-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: text-pulse 1.5s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   CTA Y EFECTOS
   ======================================== */
.cta-pulse {
    animation: pulse-cta 2.4s ease-in-out infinite;
}

@keyframes pulse-cta {
    0% { box-shadow: 0 6px 18px rgba(33,150,243,0.12); transform: translateY(0); }
    50% { box-shadow: 0 18px 36px rgba(33,150,243,0.16); transform: translateY(-3px); }
    100% { box-shadow: 0 6px 18px rgba(33,150,243,0.12); transform: translateY(0); }
}

.glow-on-hover {
    transition: all 0.3s;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6),
                0 0 40px rgba(139, 92, 246, 0.4);
}

/* ========================================
   MOBILE CTA BAR
   ======================================== */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    gap: 0.6rem;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    transform: translateY(110%);
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), opacity 360ms ease;
}

.mobile-cta-bar.visible {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-cta-btn {
    flex: 1;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-cta-btn.whatsapp {
    background: #25d366;
    color: white !important;
}

body[data-cta-variant="B"] .mobile-cta-btn:last-child {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 28px rgba(21,101,192,0.16);
}

/* ========================================
   REVEAL EFFECTS
   ======================================== */
.reveal-left {
    transform: translateX(-18px);
    opacity: 0;
    transition: transform var(--anim-medium) cubic-bezier(.2,.9,.2,1), opacity var(--anim-short) ease;
}

.reveal-right {
    transform: translateX(18px);
    opacity: 0;
    transition: transform var(--anim-medium) cubic-bezier(.2,.9,.2,1), opacity var(--anim-short) ease;
}

.reveal-up {
    transform: translateY(12px);
    opacity: 0;
    transition: transform var(--anim-medium) cubic-bezier(.2,.9,.2,1), opacity var(--anim-short) ease;
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
    transform: none;
    opacity: 1;
}

/* ========================================
   CONFETTI
   ======================================== */
.confetti-piece {
    position: fixed;
    width: 8px;
    height: 12px;
    z-index: 1000000;
    pointer-events: none;
    opacity: 0.95;
    transform-origin: center;
    border-radius: 2px;
    animation: confetti-fall var(--anim-long) cubic-bezier(.2,.8,.2,1) forwards;
    box-shadow: 0 6px 14px var(--accent-glow);
}

@keyframes confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(160px) rotate(540deg) scale(0.92); }
}

/* ========================================
   ANIMACIONES GENERALES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   MODO ENERGÉTICO (Opcional)
   ======================================== */
body.energetic {
    --anim-short: 0.28s;
    --anim-medium: 0.6s;
    --anim-long: 0.9s;
    --accent-glow: rgba(99,102,241,0.36);
}

/* ========================================
   REVEAL-ON-SCROLL (sutil y accesible)
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--anim-short) ease, transform var(--anim-short) ease;
    will-change: opacity, transform;
}
.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ========================================
   BARRA DE PROGRESO (top, sutil)
   ======================================== */
.progress-top {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary));
    z-index: 99999;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    pointer-events: none;
    transition: width 0.12s linear;
}
@media (max-width: 767px) { .progress-top { height: 3px; } }

/* ========================================
   STICKY CTA (discreto, desktop-first)
   ======================================== */
.sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 90px; /* above whatsapp/fixed elements */
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms ease, transform 240ms ease;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); }
.sticky-cta .btn { box-shadow: 0 8px 26px rgba(33,150,243,0.10); transition: transform 220ms ease, box-shadow 220ms ease; }
.sticky-cta .btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(33,150,243,0.16); }
@media (max-width: 767px) { .sticky-cta { display: none; } }

/* ========================================
   MICROINTERACCIONES Y HOVER SUTILES
   ======================================== */
.btn { transition: all 220ms cubic-bezier(.2,.9,.2,1); border-radius: 8px; }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(21,101,192,0.14); transform: translateY(-3px); }
.card:hover, .why-card:hover, .testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(16,24,40,0.06); transition: transform 0.28s, box-shadow 0.28s; }

/* ========================================
   ANIMACIÓN DE NÚMEROS (estadísticas)
   ======================================== */
.stat-num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .stat-num { transition: none !important; }
}

/* Pequeños ajustes estéticos */
#about .btn { margin-top: 0.5rem; }

/* ========================================
   STYLES: PLANES / PACKAGES
   ======================================== */
.plans-section .section-subtitle { margin-bottom: 1rem; }
.plan-simple { border-radius: 12px; transition: transform 240ms cubic-bezier(.2,.9,.2,1), box-shadow 240ms ease; position: relative; overflow: visible; }
.plan-simple.popular { border: 2px solid rgba(255,180,0,0.12); box-shadow: 0 12px 40px rgba(21,101,192,0.06); }
.plan-simple .badge-popular { position: absolute; left: 12px; top: 12px; background: #ffb500; color: #07203b; font-weight:700; padding: 6px 10px; border-radius: 999px; font-size:0.75rem; }
.plan-simple:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(16,24,40,0.08); }
@media (max-width: 768px){ .plan-simple { transform: none; box-shadow: 0 8px 26px rgba(0,0,0,0.06); } }

/* Option buttons */
.btn-opcion { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); color: var(--dark); padding: 0.45rem 0.75rem; border-radius: 8px; font-weight:700; cursor:pointer; transition: all 180ms ease; }
.btn-opcion.active { background: linear-gradient(90deg,#fff6e0,#fff1c0); color:#07203b; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); }
.btn-opcion:focus { outline: none; box-shadow: 0 0 0 4px rgba(33,150,243,0.12); }

/* Price visuals */
.precio-label { color: rgba(13,71,161,0.9); }
.precio-total.transferencia { font-size: 1.6rem; font-weight:900; color: var(--dark); }
.precio-total.efectivo { font-size: 1.4rem; font-weight:800; color: var(--primary); }

/* small animation for price update */
.price-update { transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.9,.2,1); }
.price-update.out { opacity:0; transform: translateY(-6px); }

/* Consult button microinteraction and mobile pulse */
.btn-consultar { border-radius: 10px; padding: 0.75rem 1rem; }
@media (max-width: 768px) { .btn-consultar { animation: pulse-small 1.8s ease-in-out infinite; } }
@keyframes pulse-small{ 0%{ transform: scale(1); } 50%{ transform: scale(1.03); } 100%{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){ .btn-consultar, .btn-opcion, .plan-simple { transition: none !important; animation: none !important; } }

/* Accessibility spacing for options */
.opciones-mini .d-flex { gap: 0.6rem; }

/* Price-from badge */
.price-from { font-size: 0.95rem; color: rgba(7,32,59,0.95); font-weight:800; margin-top:6px; display:inline-block; background: rgba(33,150,243,0.06); padding:6px 8px; border-radius:8px; }
.price-from .from-val { color: #1565C0; margin-left:6px; font-weight:900; }
@media (max-width:768px){ .price-from { font-size:0.95rem; display:block; margin-bottom:8px; } }

/* Pricing transparency */
.pricing-note { background: rgba(245,249,255,0.9); border-left: 4px solid #1565C0; padding: 10px 12px; border-radius: 6px; color: #07203b; }

/* Features list */
.features-list { display: grid; gap: 8px; list-style: none; padding-left: 0; }
.features-list::marker{ display: none; }
.features-list li{ list-style: none; }
.features-title { margin-bottom: 0.5rem; }
.feature-item { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.9,.2,1); border-radius:8px; padding-left:4px; overflow-wrap: break-word; }
.feature-item.in-view { opacity: 1; transform: translateY(0); }
.feature-icon { color: #ffb500; font-size: 1.25rem; min-width: 28px; display: inline-flex; align-items:center; justify-content:center; line-height:1; }
.feature-text { flex:1; color: #123245; }

/* Mobile layout: slightly larger and stacked */
@media (max-width: 576px){
  .features-list { gap: 10px; }
  .feature-item { background: rgba(255,255,255,0.02); padding: 12px; align-items: center; }
  .feature-icon { font-size: 1.4rem; }
}

/* Microinteraction on icon touch */
.feature-icon:active, .feature-icon.touched{ transform: scale(0.96); transition: transform 160ms ease; }

@media (prefers-reduced-motion: reduce){
  .feature-item, .feature-item.in-view { transition: none !important; transform: none !important; opacity: 1 !important; }
  .badge-once { animation: none !important; }
}

/* Monitor (móvil): muestra una ilustración de "computadora" compacta con efecto */
.monitor-wrapper{ display:flex; justify-content:center; align-items:center; position: relative; z-index:2; }
.monitor{ width: 180px; max-width: 66%; height: auto; display: block; opacity: 1; transform: translateY(0) rotate(0deg); transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 420ms ease; pointer-events: none; }
.monitor-pc{ width: 220px; transform: translateY(-6px) rotate(-2deg); box-shadow: 0 18px 36px rgba(11,53,85,0.08); border-radius: 8px; }
.monitor-pc .frame{ fill: #ffffff; stroke: rgba(0,0,0,0.06); }
/* Black screen for maximum contrast */
.monitor-pc .screen{ fill: #000000 !important; }
/* hide embedded image so text shows consistently */
.monitor-pc image.monitor-logo-img{ display:none !important; }
/* Label styling: vivid green text, bolder and larger for legibility */
.monitor-pc .monitor-label{ fill: #00d64a; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; font-weight:900; font-size:18px; text-transform:uppercase; letter-spacing:0.6px; stroke: none; paint-order: normal; }
.monitor-pc .monitor-label-sub{ fill: #00b24a; font-weight:700; font-size:13px; stroke: none; paint-order: normal; }
/* hide previous semi-opaque label background to keep pure black */
.monitor-pc .monitor-label-bg{ display:none !important; }
.monitor.in-view{ opacity: 1; transform: translateY(0) rotate(0); }

/* more prominent on small phones, centered and straightened (no tilt) */
@media (max-width: 576px){
  /* limit monitor width to viewport so it never overflows */
  .monitor-pc{ width: min(300px, 86vw) !important; max-width: 86vw !important; transform: translateY(-8px) rotate(0deg) !important; }
  /* stack monitor and keyboard vertically and center them */
  .monitor-wrapper{ flex-direction: column; gap: 12px; align-items: center; width:100%; }
  /* animate wrapper for a more noticeable float (disabled via prefers-reduced-motion) */
  .monitor-wrapper.in-view{ animation: monitorFloatY 5s ease-in-out 0.4s infinite; }
  @keyframes monitorFloatY{ 0%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} 100%{ transform: translateY(0);} }
  /* hide the embedded SVG image so the text is always readable on narrow screens */
  .monitor-pc image.monitor-logo-img{ display: none !important; }
  .monitor-pc .monitor-label{ font-size:18px !important; }
  .monitor-pc .monitor-label-sub{ font-size:13px !important; }
  .hero-illustration{ display:flex; justify-content:center; align-items:center; padding: 6px 0; max-height: 420px; min-height: 260px; overflow: visible; }
  /* ensure the monitor wrapper is centered */
  .hero-illustration .monitor-wrapper{ margin: 0 auto; display:flex; justify-content:center; align-items:center; transform: translateY(-4px); }
  /* keyboard: center and limit width */
  .monitor-keyboard-mobile{ display:block; }
  .monitor-keyboard-mobile .mk-row{ justify-content:center; max-width:86vw; margin:0 auto; }
  /* force-hide any hero images that may overlap */
  .hero-illustration img.blend{ display:none !important; visibility: hidden !important; }
  /* hide picture fallback too to prevent overlap */
  .hero-illustration > picture{ display:none !important; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .monitor, .monitor-pc{ transition: none !important; transform: none !important; }
}

/* Mobile keyboard and spacing fixes */
.monitor-keyboard-mobile{ display:none; margin-top:10px; }
.monitor-keyboard-mobile .mk-row{ display:flex; justify-content:center; gap:8px; align-items:center; }
.monitor-keyboard-mobile .mk-key{ width:18px; height:6px; background: rgba(255,255,255,0.12); border-radius:3px; box-shadow: inset 0 -2px rgba(0,0,0,0.2); }
.monitor-keyboard-mobile .mk-key.space{ width:80px; border-radius:6px; }

@media (max-width: 380px){
  /* reduce hero vertical space so monitor + keyboard fit on shorter screens */
  .hero-illustration{ min-height: 220px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
  .monitor-wrapper{ transform: translateY(-2px) !important; }
  .monitor-pc{ width: 260px !important; }
  .monitor-keyboard-mobile{ display:block; }
  /* increase visibility of monitor and keyboard above bottom CTAs */
  .mobile-cta-bar{ position: fixed; bottom: 8px; }
}

/* end features */
.pricing-note code { background: rgba(0,0,0,0.03); padding: 2px 6px; border-radius: 4px; }
.pricing-help { color: #1565C0; font-weight:700; margin-left:8px; text-decoration: underline; cursor: pointer; }

/* Badge: Pago único */
.badge-once { display:inline-block; background: linear-gradient(90deg,#2196F3,#1565C0); color: #fff; padding: 4px 8px; font-weight:700; font-size:0.78rem; border-radius: 999px; margin-left:8px; box-shadow: 0 6px 18px rgba(33,150,243,0.18); transform-origin:center; opacity:0; transform: translateY(6px) scale(0.98); transition: opacity 320ms ease, transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease; }
@keyframes badgePulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
/* activate when plan becomes visible */
.plan-simple.in-view .badge-once { opacity:1; transform: translateY(0) scale(1); }
.plan-simple.in-view .badge-once { animation: badgePulse 2.6s ease-in-out 1s infinite; }
.badge-once:focus{ outline: none; box-shadow: 0 0 0 6px rgba(33,150,243,0.08); }
@media (max-width:768px){ .badge-once { font-size:0.75rem; padding:3px 7px; } }
@media (prefers-reduced-motion: reduce){ .plan-simple.in-view .badge-once { animation: none !important; transition: opacity 150ms linear, transform 150ms linear; } }

/* Mobile and touch enhancements */
.btn.touched, .btn.touched:active, .btn-opcion.touched {
  transform: translateY(-2px) scale(0.995);
  box-shadow: 0 14px 36px rgba(16,24,40,0.12);
}
/* subtle ripple using pseudo-element on touch */
.btn.touched::after, .btn-opcion.touched::after{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
  transform: scale(1);
  opacity: 1;
  transition: opacity 420ms ease, transform 420ms ease;
}
.btn.touched::after{ opacity: 0.9; transform: scale(1.02); }
.btn.touched.removing::after{ opacity: 0; transform: scale(1.3); }

/* Plan card in-view enhancement */
.plan-simple.in-view { transform-origin: center; transform: translateY(-6px) scale(1.01); box-shadow: 0 22px 60px rgba(16,24,40,0.10); }
@media (max-width: 768px){ .plan-simple.in-view { transform: translateY(0) scale(1.004); box-shadow: 0 14px 34px rgba(16,24,40,0.08); } }

/* Scrollspy active nav link */
.nav-link.active { color: var(--primary) !important; font-weight: 700; }


/* Option explainer (small) */
.option-explainer { font-size:0.95rem; color:#3b4a57; margin-top:8px; }

/* Help button */
.help-btn{ background: transparent; border: none; color: #1565C0; font-weight:700; margin-left:8px; cursor:pointer; font-size:0.85rem; }
.help-btn:focus{ outline: none; text-decoration: underline; }

/* Modal */
.info-modal{ display:none; position:fixed; inset:0; z-index:1000000; }
.info-modal[aria-hidden="false"]{ display:block; }
.info-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,0.45); }
.info-modal-panel{ position:relative; z-index:1000001; max-width:680px; margin:6vh auto; background:white; padding:1.25rem; border-radius:10px; box-shadow:0 20px 60px rgba(10,20,40,0.2); }
.info-modal-close{ position:absolute; right:12px; top:12px; background:transparent; border:none; font-size:1.35rem; cursor:pointer; }

/* Vertical item as button */
.vertical-item{ background:white; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; }
.vertical-item:focus{ outline: none; box-shadow: 0 0 0 4px rgba(33,150,243,0.12); }

/* btn-opcion touch feedback */
.btn-opcion{ -webkit-tap-highlight-color: transparent; }
.btn-opcion:active{ transform: translateY(-2px) scale(0.996); }
.btn-opcion.active{ transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }

/* small info text under options */
.option-explainer{ font-size:0.9rem; color:#3b4a57; margin-top:6px; }

/* Case card */
.case-card { border-radius: 10px; background: linear-gradient(180deg,#ffffff,#fbfcff); box-shadow: 0 8px 28px rgba(16,24,40,0.04); }
.case-metric { background: linear-gradient(90deg,#2196F3,#1565C0); color: white; font-weight:900; padding: 12px 16px; border-radius: 8px; font-size:1.1rem; }
.case-card .case-cta { padding: 0.45rem 0.8rem; }

/* Verticals */
.verticals-grid { border-radius:8px; background: rgba(13,71,161,0.04); padding:12px; }
.vertical-item { display:inline-block; padding:8px 12px; border-radius:8px; background: white; color: var(--dark); text-decoration:none; box-shadow: 0 6px 18px rgba(0,0,0,0.04); font-weight:700; }
.vertical-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,0.06); }

@media (max-width:768px){ .vertical-item { font-size:0.9rem; padding:6px 10px; } }

/* ========================================
   HERO ROTATOR
   ======================================== */
.hero-rotator {
    width: 100%;
    height: 220px;
    max-width: 420px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.hero-rotator .rot-item {
    width: 92%;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity var(--anim-short) ease, transform var(--anim-medium) cubic-bezier(.2,.9,.2,1);
}

.hero-rotator .rot-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-rotator img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* ========================================
   RESPONSIVE MOBILE 320px - 375px
   ======================================== */
@media (max-width: 375px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-logo {
        height: 30px;
        width: 30px;
    }

    .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 0.9rem;
    }

    .greeting-dynamic {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

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

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tech-logo {
        width: 50px;
        height: 50px;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .form-control, .form-select {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 10px;
        right: 10px;
        font-size: 22px;
    }

    .scroll-progress {
        right: 3px;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
    }

    .progress-dot::before {
        display: none !important;
    }

    .mouse-scroll-indicator {
        display: none !important;
    }

    .loader-logo {
        width: 80px;
        height: 80px;
    }

    .monitor {
        width: 300px;
    }

    .keyboard {
        width: 300px;
    }
}

/* ========================================
   RESPONSIVE MOBILE 376px - 768px
   ======================================== */
@media (min-width: 376px) and (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1.05rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
        padding-top: calc(var(--navbar-height) + 0.8rem);
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .greeting-dynamic {
        font-size: 0.95rem;
        display: inline-flex !important;
        margin: 40px;
        padding: 0.35rem 0.8rem !important;
        border-radius: 40px !important;
        background: rgba(255,255,255,0.14) !important;
        backdrop-filter: blur(6px) !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.875rem 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .tech-logo {
        width: 60px;
        height: 60px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-cta-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 74px;
    }
    
    section:not(.hero):not(.no-gradient)::before {
        opacity: 0.22;
    }
    
    section#servicios .card {
        background-color: rgba(255,255,255,0.96);
    }
    
    .scroll-progress {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE TABLETS 769px - 991px
   ======================================== */
@media (min-width: 769px) and (max-width: 991px) {
    .hero {
        padding-top: calc(var(--navbar-height) + 0.5rem);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .stat-number {
        font-size: 2.75rem;
    }
    
    .scroll-indicator {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .custom-cursor,
    .cursor-trail,
    .touch-particle,
    .touch-ripple,
    .particle,
    .confetti-piece,
    .reveal-left,
    .reveal-right,
    .reveal-up {
        display: none !important;
        pointer-events: none !important;
        transition: none !important;
        animation: none !important;
    }

    .cursor {
        animation: none;
    }

    .monitor .scan {
        animation: none;
        opacity: 0;
    }

    .monitor.glitch .screen,
    .monitor.glitch .monitor-text {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        filter: none;
        opacity: 0.6;
    }

    .card {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }
    
    .hero {
        min-height: 65vh !important;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}
