/* ============================================
   PRISMA WEB SERVICES — Design System v2.1
   Prisma Neon Palette (Cyan + Magenta)
   ============================================ */

:root {
  /* Colors */
  --bg: #050510;
  --surface: #0A0A1A;
  --surface-hover: #101030;
  --border: #1A1A3E;
  --primary: #00E5FF;
  --primary-hover: #33EBFF;
  --primary-glow: rgba(0, 229, 255, 0.15);
  --cta: #FF00AA;
  --cta-hover: #FF33BB;
  --cta-glow: rgba(255, 0, 170, 0.2);
  --success: #00FF9D;
  --text: #F0F0FF;
  --text-secondary: #8A8AAF;
  --text-muted: #555580;
  
  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --text-3xl: clamp(2.5rem, 2rem + 3vw, 5.5rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Layout */
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --shadow-cta: 0 0 40px var(--cta-glow);
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Skip Link */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #050510; padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius) var(--radius); z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Container */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--space-4);
}

/* ============================================
   HEADER & NAVIGATION — DEFINITIVO v3
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    z-index: 1002;
}

.logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop nav */
.main-nav-desktop {
    display: flex;
    align-items: center;
}

.main-nav-desktop .nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav-desktop .nav-list a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav-desktop .nav-list a:hover {
    color: var(--text);
}

.main-nav-desktop .nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav-desktop .nav-list a:hover::after {
    width: 100%;
}

.btn-cta-nav {
    background: var(--cta) !important;
    color: #050510 !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.btn-cta-nav:hover {
    background: var(--cta-hover) !important;
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.3);
    transform: translateY(-2px);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   MOBILE MENU — FUERA DEL HEADER (100% robusto)
   ============================================ */

.main-nav-mobile {
    display: none; /* Oculto en desktop */
}

@media (max-width: 768px) {
    .main-nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 72px;
        border-top: 1px solid var(--border);
    }
    
    .main-nav-mobile.active {
        transform: translateX(0);
    }
    
    .nav-list-mobile {
        list-style: none;
        margin: 0;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list-mobile li {
        border-bottom: 1px solid var(--border);
    }
    
    .nav-list-mobile li:last-child {
        border-bottom: none;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .nav-list-mobile a {
        display: block;
        color: var(--text);
        font-size: 1.25rem;
        font-weight: 500;
        padding: 1.25rem 0;
        text-decoration: none;
        transition: color 0.2s;
    }
    
    .nav-list-mobile a:hover {
        color: var(--primary);
    }
    
    .nav-list-mobile .btn-cta-nav {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.section-title {
  font-size: var(--text-2xl); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: var(--space-4);
}
.section-title span { color: var(--primary); }
.section-subtitle {
  color: var(--text-secondary); font-size: var(--text-lg);
  max-width: 600px; margin-bottom: var(--space-12);
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-8); border-radius: 50px;
  font-weight: 700; font-size: var(--text-sm); transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #050510;
}
.btn-primary:hover {
  background: var(--primary-hover); box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-cta {
  background: var(--cta); color: #050510;
}
.btn-cta:hover {
  background: var(--cta-hover); box-shadow: var(--shadow-cta);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   HERO V2 — DYNAMIC & MODERN
   ============================================ */

.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Aurora Background */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-move 20s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, transparent 70%);
    top: -10%; left: -10%;
    animation-delay: 0s;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 170, 0.2) 0%, transparent 70%);
    bottom: -10%; right: -5%;
    animation-delay: -7s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.15) 0%, transparent 70%);
    top: 40%; left: 40%;
    animation-delay: -14s;
}
@keyframes aurora-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Grid */
.hero-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Content */
.hero-v2-content {
    max-width: 600px;
}
.hero-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
    font-size: var(--text-xs);
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--success);
}
@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-v2 h1 {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}
.hero-line {
    display: block;
}
.hero-line.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cta) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-v2-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-v2-desc strong {
    color: var(--text);
    font-weight: 700;
}

/* Actions */
.hero-v2-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn-glow {
    position: relative;
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.3);
}
.btn-glow:hover {
    box-shadow: 0 0 50px rgba(255, 0, 170, 0.5);
}
.btn-outline-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}
.btn-outline-v2:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
}

/* Trust badges */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   HERO TRUST — Pills Style
   ============================================ */

.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trust-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--text);
    transform: translateY(-1px);
}

.trust-item i {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(0, 255, 157, 0.4));
}

/* Responsive: en mobile se apilan con ancho completo */
@media (max-width: 768px) {
    .hero-trust {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .trust-item {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 140px;
    }
}

/* ============================================
   VISUAL — BROWSER MOCKUP
   ============================================ */
.hero-v2-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* Browser Window */
.browser-mockup {
    width: 100%;
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 229, 255, 0.1),
        0 0 80px rgba(0, 229, 255, 0.08);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
}
.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.browser-dots {
    display: flex;
    gap: 6px;
}
.browser-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1;
    background: rgba(5, 5, 16, 0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-body {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg);
    overflow: hidden;
}
.browser-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.browser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(255, 0, 170, 0.05) 100%);
}

/* Widget inside mockup */
.mockup-widget {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: widget-pop 0.6s ease-out 1s both;
}
@keyframes widget-pop {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.widget-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}
.chart-bar {
    width: 8px;
    background: linear-gradient(to top, var(--primary), var(--success));
    border-radius: 4px;
    animation: chart-grow 1s ease-out 1.5s both;
}
@keyframes chart-grow {
    from { height: 0 !important; }
}
.widget-text {
    line-height: 1.3;
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: rgba(10, 10, 26, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
}
.float-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.float-top {
    top: 0;
    right: -20px;
    animation: float-y 6s ease-in-out infinite;
}
.float-bottom {
    bottom: 40px;
    left: -30px;
    animation: float-y 6s ease-in-out infinite 2s;
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    z-index: 2;
    opacity: 0.7;
}
.mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}
.wheel {
    width: 4px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-v2-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-v2-content {
        max-width: 100%;
        order: 1;
    }
    .hero-v2-visual {
        order: 2;
        min-height: auto;
    }
    .hero-v2-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-v2-actions {
        justify-content: center;
    }
    .hero-trust {
        justify-content: center;
    }
    .float-card {
        display: none; /* En mobile ocultamos las flotantes para no saturar */
    }
    .browser-mockup {
        max-width: 90%;
        transform: none;
    }
    .scroll-indicator {
        display: none;
    }
}
/* ============================================
   SECTIONS GENERIC
   ============================================ */
.section { padding: var(--space-24) 0; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-16); }

/* ============================================
   SHOWROOM (VIDRIERA DIGITAL)
   ============================================ */
.showroom-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.demo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.demo-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.demo-preview {
  aspect-ratio: 16/10; background: var(--bg); position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.demo-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.demo-card:hover .demo-preview img { transform: scale(1.05); }
.demo-badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: rgba(5,5,16,0.9); backdrop-filter: blur(4px);
  padding: var(--space-1) var(--space-3); border-radius: 50px;
  font-size: var(--text-xs); font-weight: 600; border: 1px solid var(--border);
}
.demo-body { padding: var(--space-6); }
.demo-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.demo-desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-4); line-height: 1.5; }
.demo-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-4); border-top: 1px solid var(--border);
}
.demo-price { font-weight: 800; color: var(--cta); font-size: var(--text-sm); }
.demo-link { color: var(--primary); font-weight: 600; font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-1); }
.demo-link:hover { gap: var(--space-2); }

/* ============================================
   PORTFOLIO / CASOS
   ============================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}
.case-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
}
.case-image { aspect-ratio: 16/10; overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.case-card:hover .case-image img { transform: scale(1.08); }
.case-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,16,0.95) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-6); opacity: 0; transition: opacity var(--transition);
}
.case-card:hover .case-overlay { opacity: 1; }
.case-client { color: var(--cta); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.case-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.case-result { color: var(--text-secondary); font-size: var(--text-sm); }

/* ============================================
   PROCESO
   ============================================ */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cta));
  z-index: 0;
}
.step {
  position: relative; z-index: 1; text-align: center;
  background: var(--bg); padding: 0 var(--space-4);
}
.step-number {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 800; color: var(--primary);
  margin: 0 auto var(--space-6);
}
.step-title { font-weight: 700; margin-bottom: var(--space-2); }
.step-desc { color: var(--text-secondary); font-size: var(--text-sm); }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: var(--space-12); }
  .process-steps::before { display: none; }
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: var(--space-4); left: var(--space-6);
  font-size: 4rem; color: var(--primary); opacity: 0.2; line-height: 1;
}
.testimonial-text { color: var(--text-secondary); font-style: italic; margin-bottom: var(--space-6); line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cta));
}
.testimonial-name { font-weight: 700; font-size: var(--text-sm); }
.testimonial-role { color: var(--text-muted); font-size: var(--text-xs); }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--space-6); text-align: left;
  color: var(--text); font-weight: 600; font-size: var(--text-sm);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { transition: transform var(--transition); color: var(--primary); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height var(--transition);
  padding: 0 var(--space-6);
}
.faq-item.active .faq-answer {
  max-height: 500px; padding-bottom: var(--space-6);
}
.faq-answer p { color: var(--text-secondary); line-height: 1.7; font-size: var(--text-sm); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center; padding: var(--space-24) var(--space-6);
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-section h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.cta-section p { color: var(--text-secondary); margin-bottom: var(--space-8); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding-top: var(--space-16);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-12);
  padding-bottom: var(--space-12);
}
.footer-brand { max-width: 320px; }
.logo-footer { display: flex; align-items: center; gap: var(--space-3); font-weight: 800; font-size: var(--text-lg); margin-bottom: var(--space-4); }
.logo-footer img { height: 80px; width: auto; }
.footer-desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-6); line-height: 1.6; }
.social-links { display: flex; gap: var(--space-4); }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--text-secondary);
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: #050510; border-color: var(--primary); }

.footer-col h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-4); color: var(--text); }
.footer-col ul li { margin-bottom: var(--space-3); }
.footer-col ul li a { color: var(--text-secondary); font-size: var(--text-sm); }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-6) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.cookie-content {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  flex-wrap: wrap;
}
.cookie-content p { color: var(--text-secondary); font-size: var(--text-sm); }
.cookie-actions { display: flex; gap: var(--space-3); }
.btn-cookie-accept { background: var(--primary); color: #050510; padding: var(--space-2) var(--space-6); border-radius: 50px; font-weight: 600; font-size: var(--text-sm); }
.btn-cookie-config { background: transparent; border: 1px solid var(--border); color: var(--text); padding: var(--space-2) var(--space-6); border-radius: 50px; font-size: var(--text-sm); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page { padding: var(--space-24) 0; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: var(--text-2xl); margin-bottom: var(--space-8); }
.legal-page h2 { font-size: var(--text-xl); color: var(--primary); margin: var(--space-12) 0 var(--space-4); }
.legal-page h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); color: var(--text); }
.legal-page p, .legal-page li { color: var(--text-secondary); margin-bottom: var(--space-3); line-height: 1.7; }
.legal-page ul { list-style: disc; padding-left: var(--space-6); margin-bottom: var(--space-4); }
.legal-page ol { list-style: decimal; padding-left: var(--space-6); margin-bottom: var(--space-4); }
.legal-page strong { color: var(--text); }
.legal-date { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-8); display: block; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================
   CAROUSEL / VIDRIERA DIGITAL
   ============================================ */

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0.5rem;
    margin: 0 -0.5rem;
    scrollbar-width: none; /* Firefox */
    cursor: grab;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 85%;
    scroll-snap-align: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.92);
}
.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.carousel-slide.is-active .slide-image {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Slide link */
.slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.slide-image {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.carousel-slide:hover .slide-image img {
    transform: scale(1.08);
}

.slide-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.carousel-slide:hover .slide-overlay,
.carousel-slide.is-active:hover .slide-overlay {
    opacity: 1;
}

/* Body */
.slide-body {
    padding: 1.5rem 0.5rem;
}
.slide-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.slide-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.slide-price {
    font-weight: 800;
    color: var(--cta);
    font-size: 0.95rem;
}
.slide-arrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.carousel-slide:hover .slide-arrow {
    transform: translateX(4px);
}

/* Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-arrow:hover {
    background: var(--primary);
    color: #050510;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.carousel-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* Desktop: 3 visible */
@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 1rem);
        scroll-snap-align: start;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-slide {
        flex: 0 0 60%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .carousel-arrow {
        display: none;
    }
    .carousel-slide {
        flex: 0 0 85%;
    }
}

/* ============================================
   PORTFOLIO V2 — Premium Grid
   ============================================ */
.portfolio-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 229, 255, 0.06);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-view-btn {
    background: var(--primary);
    color: #050510;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-view-btn {
    transform: translateY(0);
}

.project-industry-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    z-index: 2;
}

.project-body {
    padding: 1.5rem;
}

.project-client {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cta);
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-pill {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.project-card:hover .project-arrow {
    transform: translateX(4px);
}

/* ============================================
   PROJECT MODAL — Case Study
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .project-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(5, 5, 16, 0.6);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.modal-close:hover {
    background: var(--cta);
    color: #050510;
    border-color: var(--cta);
}

.modal-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}

.modal-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.modal-client {
    display: inline-block;
    background: var(--cta);
    color: #050510;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-body {
    padding: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.modal-gallery img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-gallery img:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.modal-info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-results {
    list-style: none;
    padding: 0;
}

.modal-results li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-results li:last-child {
    border-bottom: none;
}

.modal-results li i {
    color: var(--success);
    margin-top: 0.2rem;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tech-tag {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial-card {
    border-left: 3px solid var(--primary);
}

.modal-testi-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-testi-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.modal-testi-author strong {
    color: var(--text);
    font-size: 0.9rem;
}

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

/* Responsive modal */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-hero {
        height: 200px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .portfolio-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .project-modal {
        max-height: 95vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}

/* ============================================
   PORTFOLIO MARQUEE — Infinite Track
   ============================================ */

.portfolio-marquee-dark {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

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

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

/* Card */
.marquee-card {
    flex: 0 0 auto;
    width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.marquee-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.06);
}

.marquee-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg);
}

.marquee-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.marquee-card:hover .marquee-card-image img {
    transform: scale(1.08);
}

.marquee-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marquee-card:hover .marquee-card-overlay {
    opacity: 1;
}

.marquee-view-btn {
    background: var(--primary);
    color: #050510;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.marquee-card:hover .marquee-view-btn {
    transform: translateY(0);
}

/* Body */
.marquee-card-body {
    padding: 1.5rem;
}

.marquee-client {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cta);
    margin-bottom: 0.5rem;
}

.marquee-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marquee-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.marquee-industry {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.marquee-arrow {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.marquee-card:hover .marquee-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-card {
        width: 320px;
    }
    
    .marquee-track {
        gap: 1.25rem;
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .marquee-card {
        width: 280px;
    }
}

/* ============================================
   TRUST BADGES — CORREGIDO Y PREMIUM
   ============================================ */

.trust-badges-section {
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.9) 0%, rgba(5, 5, 16, 0.95) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

.trust-badges-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.trust-badge-item:hover {
    transform: translateY(-2px);
}

.tb-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0.04) 100%);
    border: 1px solid rgba(0, 229, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
    transition: all 0.3s ease;
}

.trust-badge-item:hover .tb-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.08) 100%);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
    transform: scale(1.05);
}

.tb-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    white-space: nowrap;
}

.tb-text strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tb-text span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.trust-badge-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.15), transparent);
    flex-shrink: 0;
    margin: 0 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .trust-badges-track {
        flex-wrap: wrap;
        gap: 0.5rem 0;
    }
    .trust-badge-item {
        flex: 1 1 30%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .trust-badge-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .trust-badge-item {
        flex: 1 1 45%;
        justify-content: flex-start;
        padding: 0.6rem 0.75rem;
    }
    .tb-text {
        white-space: normal;
    }
}

@media (max-width: 400px) {
    .trust-badge-item {
        flex: 1 1 100%;
    }
}

/* ============================================
   CALCULADORA DE PRESUPUESTO
   ============================================ */

.calc-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3rem;
    align-items: start;
}

/* Steps */
.calc-step {
    margin-bottom: 3rem;
}

.calc-step:last-child {
    margin-bottom: 0;
}

.calc-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calc-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #050510;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Type Grid */
.calc-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.calc-type-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: inherit;
}

.calc-type-btn:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calc-type-btn.active {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.04);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
}

.calc-type-btn.active::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050510' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}

.calc-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.calc-type-btn.active .calc-type-icon {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.calc-type-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
}

.calc-type-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.calc-type-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cta);
    margin-top: 0.25rem;
}

/* Features */
.calc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.calc-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.calc-feature:hover {
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.02);
}

.calc-feature input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    margin-top: 0.1rem;
    transition: all 0.2s ease;
    position: relative;
}

.calc-feature input:checked + .calc-check {
    background: var(--success);
    border-color: var(--success);
}

.calc-feature input:checked + .calc-check::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050510' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
}

.calc-check-checked {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

.calc-check-checked::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050510' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
}

.calc-feature-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.calc-feature-info strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.calc-feature-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calc-feature-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cta);
    margin-top: 0.2rem;
}

.calc-feature-included {
    color: var(--success);
}

/* Summary */
.calc-summary {
    position: sticky;
    top: 100px;
}

.calc-summary-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.calc-summary-header i {
    font-size: 1.25rem;
    color: var(--primary);
}

.calc-summary-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.calc-price-block {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.calc-price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.calc-price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.calc-price-range {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calc-price-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calc-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.calc-timeline-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.85rem;
}

.calc-timeline-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.calc-timeline-item strong {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.calc-timeline-item span {
    color: var(--text-muted);
}

.calc-includes {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.calc-includes li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calc-includes li i {
    color: var(--success);
    font-size: 0.9rem;
}

.calc-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    text-align: center;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.calc-disclaimer i {
    color: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-summary {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
    .calc-summary-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .calc-type-grid {
        grid-template-columns: 1fr;
    }
    .calc-features {
        grid-template-columns: 1fr;
    }
    .calc-price-value {
        font-size: 2rem;
    }
}

/* ============================================
   CALCULADORA — Nota de política corregida
   ============================================ */

.calc-policy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calc-policy-note i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.calc-policy-note strong {
    color: var(--text);
    font-weight: 700;
}

/* Ajustar el included */
.calc-feature-included {
    color: var(--success);
    font-weight: 700;
}

/* ============================================
   COMPARADOR PRISMA vs EL RESTO — CORREGIDO
   ============================================ */

.compare-table-wrapper {
    overflow-x: auto;
    padding: 0.5rem;
    margin: 0 -0.5rem;
}

.compare-table {
    display: table;
    width: 100%;
    min-width: 900px; /* Aumentado para que no se comprima */
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.compare-row {
    display: table-row;
    transition: background 0.3s ease;
}

.compare-row:not(.compare-header):not(.compare-footer):hover {
    background: rgba(0, 229, 255, 0.02);
}

.compare-cell {
    display: table-cell;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Header */
.compare-header .compare-cell {
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.compare-header .compare-feature {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 30%; /* Ligeramente más ancho */
}

/* Brand boxes */
.compare-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.compare-brand i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.compare-brand span {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
}

.compare-brand small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.compare-brand-winner {
    position: relative;
}

.compare-brand-winner::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -0.6rem;
    right: -0.5rem;
    background: var(--cta);
    color: #050510;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.compare-brand-winner i {
    color: var(--primary);
}

/* Feature column — CORREGIDO */
.compare-feature {
    width: 32%; /* Más ancho */
    min-width: 260px; /* Nunca menos de esto */
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: normal; /* Que fluya natural */
}

.compare-feature > i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0; /* El icono NUNCA se encoge */
}

.compare-feature strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    white-space: nowrap; /* El título no se rompe */
}

.compare-feature span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Columns */
.compare-col {
    width: 22.6%; /* Reducido para compensar */
    text-align: center;
}

/* Badges */
.compare-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.compare-yes {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.2);
    color: var(--success);
}

.compare-no {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.compare-maybe {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.compare-col small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Winner column */
.compare-winner {
    background: rgba(0, 229, 255, 0.02);
    position: relative;
}

.compare-winner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--cta));
    opacity: 0.6;
}

/* Footer */
.compare-footer .compare-cell {
    border-bottom: none;
    padding: 1.5rem;
}

.compare-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Disclaimer */
.compare-disclaimer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.compare-disclaimer i {
    color: var(--primary);
}

/* Responsive: Mobile cards */
@media (max-width: 768px) {
    .compare-table-wrapper {
        overflow-x: visible;
        padding: 0;
    }
    
    .compare-table {
        display: flex;
        flex-direction: column;
        min-width: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 1rem;
    }
    
    .compare-row {
        display: flex;
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .compare-row.compare-header {
        display: none;
    }
    
    .compare-cell {
        display: block;
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }
    
    .compare-cell:last-child {
        border-bottom: none;
    }
    
    .compare-feature {
        width: 100%;
        min-width: auto;
        background: var(--bg);
        font-size: 1rem;
        display: flex;
        gap: 0.75rem;
    }
    
    .compare-feature > i {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .compare-feature strong {
        white-space: normal;
    }
    
    .compare-col {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
        width: 100%;
    }
    
    .compare-col::before {
        content: attr(data-label);
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 600;
        min-width: 100px;
    }
    
    .compare-saas::before { content: 'SaaS:'; }
    .compare-agency::before { content: 'Agencia:'; }
    .compare-prisma::before { content: 'Prisma:'; }
    
    .compare-badge {
        margin-bottom: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .compare-col small {
        display: none;
    }
    
    .compare-winner::before {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
        bottom: auto;
    }
    
    .compare-footer .compare-cell {
        padding: 1rem 1.25rem;
    }
    
    .compare-footer .compare-feature {
        display: none;
    }
    
    .compare-footer .compare-col::before {
        display: none;
    }
    
    .compare-footer .compare-col {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    
    .compare-disclaimer {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}

/* ============================================
   BLOG — Grid & Modal
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.05);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-cat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-meta i {
    margin-right: 0.3rem;
    color: var(--primary);
    font-size: 0.75rem;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-readmore {
    gap: 0.75rem;
}

/* Blog Modal */
.blog-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .blog-modal {
    transform: scale(1) translateY(0);
}

.blog-modal-header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.blog-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 50%, rgba(5, 5, 16, 0.6) 100%);
}

.blog-modal-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2;
}

.blog-modal-cat {
    background: var(--primary);
    color: #050510;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-modal-date,
.blog-modal-readtime {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-modal-date i,
.blog-modal-readtime i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-modal-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 2rem 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    z-index: 2;
    margin-top: 0.5rem;
}

.blog-modal-body {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.blog-modal-body h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.blog-modal-body h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.blog-modal-body p {
    margin-bottom: 1rem;
}

.blog-modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-modal-body li {
    margin-bottom: 0.5rem;
}

.blog-modal-body strong {
    color: var(--text);
}

.blog-modal-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-modal-header {
        height: 200px;
    }
    
    .blog-modal-title {
        font-size: 1.35rem;
        padding: 0 1.5rem 1.25rem;
    }
    
    .blog-modal-body {
        padding: 1.5rem;
    }
    
    .blog-modal-meta {
        padding: 1.5rem;
    }
}

/* ============================================
   CTA FINAL — Diagnóstico Gratuito
   ============================================ */

.final-cta-section {
    text-align: center;
    padding: var(--space-24) 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 0, 170, 0.04) 0%, transparent 50%);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-badge-final {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.cta-title-final {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.cta-subtitle-final {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Options Grid */
.cta-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.cta-option-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.cta-option-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 229, 255, 0.04);
}

.cta-option-card:first-child {
    border-color: rgba(0, 229, 255, 0.15);
}

.cta-option-card:first-child:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(0, 229, 255, 0.08);
}

.cta-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.cta-option-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.cta-option-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.cta-option-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.cta-option-card .btn {
    width: 100%;
    justify-content: center;
}

/* Trust final */
.cta-trust-final {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-trust-item i {
    color: var(--success);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-options-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .cta-trust-final {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

/* ============================================
   CONTACTO — Responsive
   ============================================ */

.contacto-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.contacto-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contacto-header .badge-pill {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.contacto-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contacto-subtitle strong {
    color: var(--text);
}

/* Grid */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 0.45fr;
    gap: 3rem;
    align-items: start;
}

/* Form card */
.contacto-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

/* Success / Error */
.contacto-success {
    text-align: center;
    padding: 2rem 0;
}

.contacto-success i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    display: block;
}

.contacto-success h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.contacto-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contacto-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contacto-error i {
    font-size: 1.1rem;
}

/* Form */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.required {
    color: var(--cta);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8AAF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Info lateral */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contacto-info-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.contacto-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.contacto-info-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.contacto-info-link:last-child {
    margin-bottom: 0;
}

.contacto-wa {
    background: rgba(37, 211, 102, 0.06);
    border: 1px solid rgba(37, 211, 102, 0.15);
}

.contacto-wa:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateX(4px);
}

.contacto-email {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.contacto-email:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.contacto-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contacto-wa .contacto-info-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.contacto-email .contacto-info-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.contacto-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contacto-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contacto-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.contacto-includes {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contacto-includes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contacto-includes li i {
    color: var(--success);
    font-size: 0.85rem;
}

.contacto-horario {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto-horario i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contacto-horario strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contacto-horario span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE CONTACTO
   ============================================ */

@media (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contacto-info-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .contacto-section {
        padding: 100px 0 60px;
    }
    
    .contacto-form-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contacto-info {
        flex-direction: column;
    }
    
    .contacto-info-card {
        flex: 1 1 100%;
    }
    
    .contacto-info-value {
        font-size: 0.9rem;
    }
    
    .btn-submit {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .contacto-form-card {
        padding: 1.25rem;
        border-radius: var(--radius);
    }
    
    .contacto-info-card {
        padding: 1.25rem;
        border-radius: var(--radius);
    }
    
    .contacto-header h1 {
        font-size: 2rem;
    }
    
    .contacto-info-link {
        padding: 0.875rem;
    }
    
    .contacto-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}