/* ========================================
   TrackingdataX Premium Website Styles
   Professional Dark Theme Design
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    /* Brand Colors from Logo */
    --brand-blue-dark: #0066B3;
    --brand-blue-light: #00A3E0;
    --brand-blue-lighter: #4DC3F0;
    
    /* Background Colors */
    --primary-dark: #0a0e1f;
    --secondary-dark: #0f1421;
    --tertiary-dark: #151927;
    
    /* Accent Colors */
    --accent-blue: #00A3E0;
    --accent-blue-light: #4DC3F0;
    --accent-dark-blue: #0066B3;
    --accent-white: #ffffff;
    
    /* Gradients with Logo Colors */
    --gradient-primary: linear-gradient(135deg, #0066B3 0%, #00A3E0 100%);
    --gradient-blue: linear-gradient(135deg, #00A3E0 0%, #4DC3F0 100%);
    --gradient-dark: linear-gradient(135deg, #0066B3 0%, #004C8A 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    /* Text Colors - High Contrast */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-tertiary: #8fa3bf;
    
    /* Text for Light Backgrounds */
    --text-dark-primary: #0a0e1f;
    --text-dark-secondary: #1a2c4a;
    --text-dark-tertiary: #2d3748;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Space Grotesk', monospace;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Effects */
    --glass-bg: rgba(15, 20, 33, 0.6);
    --blur-amount: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(0, 163, 224, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ANIMATED BACKGROUND === */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 179, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 224, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(77, 195, 240, 0.05) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-display);
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-display);
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-body);
    font-weight: 600;
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-family: var(--font-body);
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CONTAINERS === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 163, 224, 0.3));
    transition: var(--transition-smooth);
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(0, 163, 224, 0.5));
    transform: scale(1.05);
}

.logo-text-wrapper {
    display: flex;
    gap: 0.25rem;
}

.logo-text {
    color: var(--text-primary);
    font-family: var(--font-accent);
    letter-spacing: -0.02em;
}

.logo-accent {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-accent);
    letter-spacing: -0.00em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-blue-light);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* === BUTTONS === */
.btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 40px rgba(0, 102, 179, 0.35);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 163, 224, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--brand-blue-light);
    background: rgba(0, 163, 224, 0.15);
    color: white;
    transform: translateY(-3px);
}

.cta-nav {
    padding: 0.75rem 1.75rem;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 163, 224, 0.5);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
}

/* Fix para pantallas pequeñas independientemente del viewport */
@media (max-height: 800px) {
    .hero {
        min-height: auto !important;
        padding-top: 120px !important;
        padding-bottom: 40px !important;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 30px;
    color: var(--brand-blue-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 2rem;
    animation: slideUp 1s ease 0.2s both;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: block;
}

.hero-title-sub {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.02em;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: slideUp 1s ease 0.4s both;
    max-width: 650px;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: slideUp 1s ease 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: slideUp 1s ease 0.8s both;
}

.stat-card {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* === HERO VISUAL === */
/* Por defecto, ocultar la versión móvil (se mostrará solo en pantallas pequeñas) */
.mobile-hero-visual {
    display: none;
}

/* Por defecto, mostrar la versión desktop */
.desktop-hero-visual {
    display: block;
}

.hero-visual {
    position: relative;
    animation: slideLeft 1s ease 0.4s both;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 102, 179, 0.4);
    animation: float 6s ease-in-out infinite;
    max-width: 500px;
}

.ai-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.ai-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.3) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashboard-mock {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.dashboard-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-dots {
    display: flex;
    gap: 0.5rem;
}

.dash-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
}

.dash-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dashboard-content {
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.metric-chart {
    height: 60px;
}

.metric-bars {
    display: flex;
    gap: 0.5rem;
    height: 60px;
    align-items: flex-end;
}

.bar {
    flex: 1;
    background: var(--gradient-blue);
    border-radius: 4px 4px 0 0;
    animation: growBar 1s ease-out;
}

@keyframes growBar {
    from { height: 0; }
}

/* === SECTION STYLES === */
section {
    padding: 60px 0;
    position: relative;
}

/* Alternating Background Colors for Contrast */
.services-section,
.cases-section,
.contact-section {
    background: #ffffff;
    color: #1a1f3a;
}

.services-section *,
.cases-section *,
.contact-section * {
    color: inherit;
}

.services-section .section-title,
.cases-section .section-title,
.contact-section .section-title {
    color: #0a0e1f;
}

.services-section .gradient-text,
.cases-section .gradient-text,
.contact-section .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section .section-description,
.cases-section .section-description,
.contact-section .section-description {
    color: #1a2c4a;
}

.services-section .service-card,
.cases-section .case-card {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 179, 0.2);
    box-shadow: 0 4px 20px rgba(0, 102, 179, 0.1);
}

.services-section .service-card:hover,
.cases-section .case-card:hover {
    box-shadow: 0 10px 40px rgba(0, 102, 179, 0.25);
    border-color: var(--brand-blue-light);
}

.services-section .service-card h3,
.services-section .service-card p,
.services-section .service-features li,
.cases-section .case-card h3,
.cases-section .case-card p,
.cases-section .case-description {
    color: #0a0e1f;
}

.services-section .service-card > p {
    color: #1a2c4a;
}

.services-section .service-features li {
    color: #2d3748;
}

.services-section .btn-service {
    background: rgba(0, 102, 179, 0.08);
    border-color: rgba(0, 102, 179, 0.3);
    color: var(--brand-blue-dark);
}

.services-section .btn-service:hover {
    background: var(--gradient-primary);
    color: white;
}

.about-section,
.products-section,
.process-section,
.pricing-section {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

.footer {
    background: #0a0e1f;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 30px;
    color: var(--brand-blue-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-accent);
}

.section-title {
    margin-bottom: var(--space-lg);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* === ABOUT SECTION === */
.about-section {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

.about-content {
    margin-top: 4rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.mv-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
}

.mv-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.mv-icon {
    margin-bottom: 2rem;
}

.mv-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.founders-section {
    margin-top: 4rem;
}

.founders-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.founder-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.founder-image {
    margin-bottom: 1.5rem;
}

.founder-placeholder {
    margin: 0 auto;
    width: 120px;
    height: 120px;
}

.founder-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.founder-role {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.founder-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.founder-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.founder-social a:hover {
    transform: translateY(-3px);
}

/* LinkedIn */
.founder-social a:first-child {
    background: rgba(10, 102, 194, 0.1);
    border-color: rgba(10, 102, 194, 0.3);
    color: #0A66C2;
}

.founder-social a:first-child:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}

/* Twitter/X */
.founder-social a:last-child {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.founder-social a:last-child:hover {
    background: #000000;
    color: white;
    border-color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--brand-blue-light);
    box-shadow: 0 20px 60px rgba(0, 163, 224, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.btn-service {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-blue);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-service:hover {
    background: var(--gradient-blue);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* === PRODUCTS SECTION === */
.products-section {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.products-grid {
    display: grid;
    gap: 3rem;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-mock {
    width: 100%;
    height: 100%;
}

.product-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-tags span {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.btn-product {
    padding: 1rem 2rem;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.btn-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* === CASES SECTION === */
.cases-section {
    overflow: hidden;
}

.cases-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    transition: var(--transition-smooth);
}

.case-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue-light);
    box-shadow: 0 20px 60px rgba(0, 163, 224, 0.35);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.case-logo {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
}

.case-industry {
    font-size: 0.875rem;
    color: #2d3748;
}

.cases-section .case-industry {
    color: #2d3748;
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cases-section .case-metrics {
    border-top: 1px solid rgba(0, 102, 179, 0.2);
    border-bottom: 1px solid rgba(0, 102, 179, 0.2);
}

.cases-section .metric-label-case {
    color: #2d3748;
}

.cases-section .case-quote {
    color: #1a2c4a;
    border-left-color: var(--brand-blue-light);
}

.cases-section .case-author {
    color: #2d3748;
}

.cases-section .case-description {
    color: #1a2c4a;
}

.case-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
    text-align: center;
}

.metric-value-case {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label-case {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.case-quote {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-blue);
}

.case-author {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--gradient-blue);
    border-color: transparent;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background: var(--gradient-blue);
    width: 30px;
    border-radius: 5px;
}

/* === PROCESS SECTION === */
.process-section {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% + 2rem);
    background: linear-gradient(180deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0.3;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.step-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.step-content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 212, 255, 0.3);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-content > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.step-deliverables {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.step-deliverables li {
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === PRICING SECTION === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: var(--brand-blue-light);
    box-shadow: 0 20px 60px rgba(0, 163, 224, 0.4);
}

.pricing-card.featured {
    border: 2px solid var(--brand-blue-light);
    box-shadow: 0 20px 60px rgba(0, 163, 224, 0.35);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: var(--gradient-blue);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-tag {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-price {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    vertical-align: super;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount.custom {
    font-size: 2.5rem;
}

.period {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-pricing {
    width: 100%;
    padding: 1.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-blue);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-pricing:hover {
    transform: translateY(-3px);
}

.btn-pricing.primary {
    background: var(--gradient-blue);
    color: white;
    border-color: transparent;
}

.btn-pricing.primary:hover {
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* === CONTACT SECTION === */
.contact-section {
    background: #ffffff;
    color: #1a1f3a;
}

.contact-info-section h2,
.contact-info-section h4 {
    color: #0a0e1f;
}

.contact-subtitle,
.contact-item p {
    color: #2d3748;
}

.contact-form-section {
    background: #ffffff;
    border: 1px solid rgba(0, 102, 179, 0.2);
    box-shadow: 0 10px 40px rgba(0, 102, 179, 0.15);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #ffffff;
    border: 2px solid rgba(0, 163, 224, 0.25);
    color: #0a0e1f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-blue-light);
    background: rgba(0, 163, 224, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 102, 179, 0.4);
}

.form-group label {
    color: #0a0e1f;
}

.form-privacy {
    color: #2d3748;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-3px);
}

/* LinkedIn Brand Color */
.social-link[aria-label="LinkedIn"] {
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.3);
    color: #0A66C2;
}

.social-link[aria-label="LinkedIn"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: white;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}

/* Twitter/X Brand Color */
.social-link[aria-label="Twitter"] {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.social-link[aria-label="Twitter"]:hover {
    background: #000000;
    border-color: #000000;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Email Brand Color */
.social-link[aria-label="Email"] {
    background: rgba(0, 163, 224, 0.15);
    border-color: rgba(0, 163, 224, 0.3);
    color: #00A3E0;
}

.social-link[aria-label="Email"]:hover {
    background: var(--gradient-blue);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.4);
}

.contact-form-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

.premium-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-form {
    width: 100%;
    margin-top: 1rem;
}

.form-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 1rem;
}

/* === FOOTER === */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0 2rem;
    line-height: 1.7;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-blue-light);
    margin: 1rem 0;
    font-family: var(--font-accent);
    letter-spacing: 0.5px;
}

.footer-badge svg {
    width: 12px;
    height: 12px;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
}

.footer-stat strong {
    font-size: 1.5rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.footer-stat span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-blue);
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition-smooth);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }
    
    .pricing-grid,
    .cases-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content,
    .contact-wrapper,
    .product-card,
    .mission-vision,
    .founders-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-stats,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ========================================
   AJUSTES V4.1 - Navegación y Logo
   ======================================== */

/* Logo más grande */
.logo-image {
    height: 50px !important;
    width: auto;
}

/* Links de navegación multi-línea centrados */
.nav-link-multiline {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 2px;
}

.nav-link-multiline .nav-small {
    font-size: 0.85em;
    font-weight: 600;
}

/* Ajuste del botón CTA */
.cta-nav {
    margin-left: auto;
}

/* ========================================
   DESPLEGABLES DE CARACTERÍSTICAS
   ======================================== */

.service-features-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 15px 0 0 0;
    background: rgba(0, 163, 224, 0.1);
    border: 1px solid rgba(0, 163, 224, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-features-toggle:hover {
    background: rgba(0, 163, 224, 0.15);
    border-color: rgba(0, 163, 224, 0.5);
}

.service-features-toggle .toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue-light);
}

.service-features-toggle .toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: var(--brand-blue-light);
}

.service-features-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.service-features-toggle.active .toggle-text::after {
    content: " menos";
}

.service-features-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.service-features-content.active {
    max-height: 500px;
}

.service-features-content ul {
    margin: 15px 0 0 0;
    padding: 0 0 0 20px;
}

.service-features-content ul li {
    margin-bottom: 10px;
}


/* ========================================
   MEJORAS: Bullets y Navegación
   ======================================== */

/* Mejores bullets en características */
.service-features-content ul.service-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.service-features-content ul.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #1a1f3a;
}

.service-features-content ul.service-features li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #00A3E0;
    font-weight: bold;
    font-size: 1.2em;
}

/* Navegación más a la derecha */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    margin-left: auto;
    margin-right: 30px;
}

.logo {
    margin-right: auto;
}

/* Logo con Data y X en accent */
.logo-accent {
    background: linear-gradient(135deg, #00A3E0, #4DC3F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


/* ========================================
   AJUSTES: Navegación y Bullets
   ======================================== */

/* Mover navegación más a la derecha */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* Aumentado de 30px a 60px para más espacio */
}



/* Mejorar formato de bullets en desplegables */
.service-features-content ul.service-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.service-features-content ul.service-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #1a1f3a;
    font-size: 14px;
}

.service-features-content ul.service-features li:before {
    content: "▸";
    position: absolute;
    left: 8px;
    color: #00A3E0;
    font-weight: bold;
    font-size: 16px;
}

.service-features-content ul.service-features li:hover {
    color: #ffffff;
}

.service-features-content ul.service-features li:hover:before {
    color: #4DC3F0;
}

.case-card{position:relative;margin-bottom:60px;}
.case-media img{width:100%;display:block;border-radius:20px;}

.case-content-overlay{
    position:relative;
    background:#fff;
    margin-top:-20px;
    padding:28px 32px 32px;
    border-radius:24px;
    box-shadow:0 10px 30px rgba(0,123,255,0.15);
}

.case-content-overlay h3{margin:0;font-size:24px;font-weight:700;color:#0A2D5A;}
.case-content-overlay h4{margin:4px 0 14px;font-size:18px;font-weight:600;color:#1268B3;}
.case-action{font-size:16px;line-height:1.55;margin-bottom:24px;color:#062A50;}

.case-kpis{
    display:flex;
    gap:16px;
}
.kpi{
    background:rgba(35,166,240,0.12);
    border-radius:14px;
    padding:14px 18px;
    flex:1;
    text-align:center;
}
.kpi-val{
    display:block;
    font-size:28px;
    font-weight:800;
    color:#23A6F0;
    line-height:1;
}
.kpi-lbl{
    display:block;
    font-size:12px;
    margin-top:5px;
    color:#062A50;
}
/* REDUCIR ancho del bloque blanco */
.case-content-overlay{
    max-width: 88%;
    margin-left: auto;
    margin-right: auto;
}
/* ocultar flechas del slider */
.cases-prev, .cases-next{
    display:none !important;
}
.cases-dots{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:12px !important;
    margin-top:30px !important;
    height:20px !important;
    position:relative !important;
    z-index:99999 !important;
}
.case-dot{
    width:14px !important;
    height:14px !important;
    background:#23A6F0 !important;
    border-radius:50% !important;
    opacity:.4 !important;
    cursor:pointer !important;
    border:none !important;
}
.case-dot.active{
    opacity:1 !important;
    transform:scale(1.25) !important;
    background:#23A6F0 !important;
}
#casos .section-header{
    margin-bottom: 24px !important;
}

/* mover menú a la derecha */
.nav-menu{
    margin-left:auto !important;
}
.cta-nav{
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
}
/* FORZAR que el menú se vaya a la derecha */
.nav-container{
    justify-content: space-between !important;
}

.nav-menu{
    margin-left:auto !important;
}
.nav-menu{
    margin-left:auto !important;
}

.about-section {
    padding-top: 50px !important;
}
.services-section {
    padding-top: 50px !important;
}
/* --- FIX TAG DE SECCIÓN - sin gris – blanco + celeste --- */
.section-tag{
    background: linear-gradient(135deg,#ffffff 0%, #E6F7FF 100%) !important;
    border: 1px solid rgba(0,163,224,0.35) !important;
    color: var(--brand-blue-dark) !important;
}
.products-section{
    padding-top: 50px !important;
}
.cases-section{
    padding-top:80px !important;
}
/* matar grises en CONTACT y FORMS */
.contact-section * {
    color: #0a0e1f !important;
}

.contact-form-section * {
    color: #0a0e1f !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    color: #0a0e1f !important;
    border-color: rgba(0, 163, 224, 0.3) !important;
    background: #ffffff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 163, 224, 0.5) !important;
}
/* === RESET FORM COLORS TRACKINGDATAX === */

.contact-form-section label{
    color:#0A0E27 !important; /* texto negro azul oscuro */
}

.premium-form{
    background:white !important;
    border:1px solid #23A6F0 !important;
}

.premium-form input,
.premium-form textarea,
.premium-form select{
    background:white !important;
    border:1px solid #23A6F0 !important;
    color:#0A0E27 !important;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder{
    color:#0A0E2799 !important; /* oscuro con transparencia */
}

/* el recuadro de INFO de la izquierda también puede traer gris */
.contact-info-section p,
.contact-info-section h4{
    color:#0A0E27 !important;
}

.contact-item p{
    color:#0A0E27 !important;
}
/* ELIMINAR FONDOS OSCUROS DETRÁS DEL FORM */
.contact-section,
.contact-wrapper,
.contact-form-section{
    background:white !important;
}

/* también aseguramos que no haya sombras grises */
.contact-wrapper,
.contact-form-section{
    box-shadow:none !important;
}

/* Espacios limpios */
.contact-section{
    padding-top:60px;
    padding-bottom:60px;
}
/* input fields fondo celeste premium */
.premium-form input,
.premium-form textarea{
    background:#E8F7FF !important;
    border:1px solid #23A6F0 !important;
}

/* cuando el usuario hace click */
.premium-form input:focus,
.premium-form textarea:focus{
    background:#DFF3FF !important; /* un toque más fuerte al focus */
    border:2px solid #23A6F0 !important;
}
/* botón enviar solicitud centrado y bold */
.premium-form .btn-form{
    font-weight:700 !important;
    text-align:center !important;
    display:block !important;
    margin:0 auto !important;
}

/* === FOOTER MISSION & VISION === */
.footer-mission-vision {
    margin: 20px 0 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mv-item {
    margin-bottom: 15px;
}

.footer-mv-item:last-child {
    margin-bottom: 0;
}

.footer-mv-item strong {
    display: block;
    color: var(--brand-blue-light);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.footer-mv-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* === RESPONSIVE IFRAMES IA === */
@media (max-width: 768px) {
    #herramientas-ia [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    #herramientas-ia iframe {
        height: 500px !important;
    }
}

/* === TrackingDataX: Estilos legales (append) === */
.tdx-legal-footer{padding:1rem 0;border-top:1px solid rgba(255,255,255,0.08);text-align:center;margin-top:1rem}
.tdx-legal-nav a{color:rgba(255,255,255,0.78);text-decoration:none;margin:0 .35rem}
.tdx-legal-nav a:hover{color:#00A3E0}
.legal-container{max-width:900px;margin:4rem auto;padding:2rem;border-radius:12px;border:1px solid rgba(255,255,255,0.08);
background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));}
.legal-container h1{font-family: 'Playfair Display', serif;letter-spacing:.2px;margin-bottom:1rem;
background: linear-gradient(90deg,#00A3E0,#4DC3F0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.legal-container h2{margin-top:1.25rem;margin-bottom:.55rem;color:rgba(255,255,255,0.92)}
.legal-container p,.legal-container li{color:rgba(255,255,255,0.84);line-height:1.75}
.legal-container ul{margin:0 0 0 1.25rem}
.legal-meta{color:rgba(255,255,255,0.6);margin:.25rem 0 1rem 0}
.legal-actions{margin-top:1.25rem}
.legal-actions a{display:inline-block;margin-right:.5rem;padding:.45rem .8rem;border-radius:10px;border:1px solid rgba(255,255,255,0.08);
text-decoration:none;color:#fff}
.legal-actions a:hover{border-color:#00A3E0}

.back-to-top {
  bottom: 110px !important;  /* o 120px, probá */
  right: 30px !important;
}

/* ============================
   OVERRIDES PARA PÁGINAS LEGALES
   - Fuerza texto oscuro sobre fondos claros
   - Mantiene estilo de marca en links
   - Diseñado para terminos.html, privacidad.html, cookies.html
   ============================ */

.legal-container,
.legal-container * {
  color: #0A0E27 !important;          /* texto principal oscuro-azulado */
  background: transparent !important; /* evita sobre-fondos inesperados */
}

/* Si la propia page establece background blanco al container, preservarlo */
.legal-container {
  background: #ffffff !important;
}

/* Asegurar legibilidad en párrafos, encabezados y tablas */
.legal-container p,
.legal-container li,
.legal-container td,
.legal-container th,
.legal-container h1,
.legal-container h2,
.legal-container h3,
.legal-container strong {
  color: #0A0E27 !important;
}

/* Links en documentos legales -> color de marca (azul) */
.legal-container a,
.legal-container a:visited {
  color: #0066B3 !important;
  text-decoration: none !important;
}
.legal-container a:hover,
.legal-container a:focus {
  color: #00A3E0 !important;
  text-decoration: underline !important;
}

/* Botones / acciones legales — fondo claro y texto oscuro */
.legal-container .legal-actions a,
.legal-container .legal-actions button {
  background: #ffffff !important;
  color: #0A0E27 !important;
  border-color: #E2E8F0 !important;
}

/* Tablas (cookies) — fondo blanco y texto oscuro */
.legal-container .cookies-table {
  background: #ffffff !important;
  color: #0A0E27 !important;
  border-color: #e2e8f0 !important;
}
.legal-container .cookies-table thead {
  color: #ffffff !important;
}
.legal-container .cookies-table thead th {
  background: linear-gradient(135deg, #085CA6, #1EA4D9) !important;
}

/* Formularios dentro de legal pages - inputs legibles */
.legal-container input,
.legal-container textarea,
.legal-container select {
  color: #0A0E27 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.legal-container input::placeholder,
.legal-container textarea::placeholder {
  color: rgba(10, 14, 39, 0.45) !important;
}

/* Pie de página legal */
.legal-container .legal-footer,
.legal-container .legal-meta {
  color: #4a5568 !important;
}

/* Responsive tweaks (mantener legibilidad) */
@media (max-width: 768px) {
  .legal-container {
    padding: 30px !important;
  }
}

#inicio.hero {
  background: #002C52 !important;
}




/* ========================================
   RESPONSIVE STYLES - MOBILE FIRST
   ======================================== */

/* === MEDIA QUERIES RESPONSIVE === */

/* Tablets y pantallas medianas (max 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 140px 0 80px 0;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Pricing Cards */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets pequeñas y móviles grandes (max 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* === NAVIGATION === */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .cta-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* === HERO SECTION === */
    .hero {
        padding: 120px 0 60px 0;
        min-height: auto;
    }
    
    /* Hero content: columna en móvil */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        align-items: center !important;
    }
    
    /* 1. Texto primero */
    .hero-text {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .hero-title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-bottom: 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 2. Imagen segundo (pequeña) */
    .hero-visual {
        order: 2;
        max-width: 220px !important;
        width: 100% !important;
        margin: 0 auto;
    }
    
    .ai-hero-image {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .ai-image-container {
        max-width: 100% !important;
    }
    
    .ai-glow {
        display: none;
    }
    
    /* 3. Stats tercero (2x2) */
    .hero-stats {
        order: 3;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    
    .stat-card {
        padding: 1.25rem 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* === SERVICES SECTION === */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    /* === PRODUCTS SECTION === */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    /* === CASES SECTION === */
    .case-card {
        margin: 0 1rem;
    }
    
    .case-image {
        height: 200px;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* === AI TOOLS SECTION === */
    #herramientas-ia [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    #herramientas-ia iframe {
        height: 500px !important;
    }
    
    /* === PRICING SECTION === */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    /* === ABOUT SECTION === */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image-wrapper {
        max-width: 100%;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* === CONTACT SECTION === */
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info-section,
    .contact-form-section {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .premium-form {
        padding: 1.5rem;
    }
    
    /* === FOOTER === */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* === BUTTONS === */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* === BACK TO TOP === */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px !important;
        right: 20px !important;
    }
    
    /* === PROCESS SECTION === */
    .process-timeline {
        padding: 0;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        position: relative;
        left: auto;
        margin: 0 auto 1rem;
    }
}

/* Móviles pequeños (max 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --section-padding: 40px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 40px 0;
    }
    
    .hero-title-main {
        font-size: 1.75rem;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
    }
    
      /* Hero en móviles pequeños */
    .hero {
        padding: 100px 0 40px 0;
    }
    
    .hero-visual,
    .ai-hero-image,
    .ai-image-container {
        max-width: 180px !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    /* Products */
    .product-card {
        padding: 1.25rem;
    }
    
    /* Cases */
    .case-kpis {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .pricing-features {
        gap: 0.75rem;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .footer-stat strong {
        font-size: 1.25rem;
    }
    
    .footer-stat span {
        font-size: 0.7rem;
    }
    
    /* Contact Form */
    .premium-form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 15px;
    }
    
    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px !important;
        right: 15px !important;
    }
}

/* === MEJORAS DE TOUCH PARA MÓVIL === */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar área táctil de botones */
    .btn,
    .nav-link,
    .mobile-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Eliminar efectos hover en touch devices */
    .btn:hover,
    .service-card:hover,
    .product-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    /* Mejorar feedback táctil */
    .btn:active {
        transform: scale(0.98);
    }
}

/* === ORIENTACIÓN HORIZONTAL EN MÓVILES === */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px 0;
        min-height: auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === FIX PARA iOS === */
@supports (-webkit-touch-callout: none) {
    /* Fix para el bug del viewport height en iOS */
    .hero {
        min-height: -webkit-fill-available;
    }
    
    /* Fix para inputs en iOS */
    input,
    textarea,
    select {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
    
    .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
}




/* ==========================================
   FIXES ESPECÍFICOS RESPONSIVE - TrackingDataX
   Corrige problemas identificados en móvil
   ========================================== */

/* === FIX 1: HERO STATS (Métricas 15+, 200+, etc.) === */
@media (max-width: 768px) {
    /* Forzar grid de 2 columnas en móvil */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .stat-card {
        padding: 1.25rem 1rem !important;
        min-height: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    /* En móviles MUY pequeños, mantener 2 columnas pero más compacto */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .stat-card {
        padding: 1rem 0.75rem !important;
        min-height: 90px !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* === FIX 2: IMAGEN FLOTANTE (AI Hero Image) === */
@media (max-width: 768px) {
    /* Desactivar animaciones en móvil */
    .ai-image-container,
    .hero-visual,
    .ai-hero-image {
        animation: none !important;
        transform: none !important;
    }
    
    /* Reducir tamaño de la imagen en móvil */
    .hero-visual {
        max-width: 280px !important;
        margin: 2rem auto 0 !important;
    }
    
    .ai-hero-image {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .ai-image-container {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .ai-glow {
        display: none !important; /* Ocultar efecto glow en móvil */
    }
    
    /* Desactivar parallax y efectos de movimiento */
    .hero-visual * {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        max-width: 220px !important;
    }
    
    .ai-hero-image {
        max-width: 220px !important;
    }
}

/* === FIX 3: SERVICIOS - Ancho del texto === */
@media (max-width: 768px) {
    .service-card {
        padding: 1.75rem 1.5rem !important;
    }
    
    .service-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        text-align: left !important;
    }
    
    .service-features {
        padding-left: 0 !important;
        list-style: none !important;
    }
    
    .service-features li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
        padding-left: 1.5rem !important;
        position: relative !important;
    }
    
    .service-features li::before {
        left: 0 !important;
    }
}

/* === FIX 4: CASOS DE ÉXITO - KPIs === */
@media (max-width: 768px) {
    .case-kpis,
    #casos .case-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas en móvil */
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
    
    .kpi,
    #casos .kpi {
        padding: 0.875rem 0.5rem !important;
        text-align: center !important;
        min-height: 70px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .kpi-val,
    #casos .kpi-val {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .kpi-lbl,
    #casos .kpi-lbl {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    /* En móviles pequeños, mantener 3 columnas pero más compacto */
    .case-kpis,
    #casos .case-kpis {
        gap: 0.5rem !important;
    }
    
    .kpi,
    #casos .kpi {
        padding: 0.75rem 0.25rem !important;
        min-height: 65px !important;
    }
    
    .kpi-val,
    #casos .kpi-val {
        font-size: 1.1rem !important;
    }
    
    .kpi-lbl,
    #casos .kpi-lbl {
        font-size: 0.65rem !important;
    }
}

/* === FIX 5: FORMULARIOS EMBEBIDOS (iframes) === */
@media (max-width: 768px) {
    /* Forzar que los iframes se apilen en móvil */
    #herramientas-ia > .container > div[style*="display: grid"],
    #herramientas-ia > .container > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    #herramientas-ia iframe {
        width: 100% !important;
        height: 600px !important;
        min-height: 600px !important;
        max-height: 700px !important;
    }
    
    /* Ajustar títulos y descripciones */
    #herramientas-ia h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #herramientas-ia p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    #herramientas-ia iframe {
        height: 550px !important;
    }
}

/* === FIX 6: PRODUCTOS - Cards === */
@media (max-width: 768px) {
    .product-card {
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .product-image {
        height: 200px !important;
    }
    
    .product-mock {
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .product-content {
        padding: 1.5rem !important;
    }
    
    .product-content h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .product-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .product-tags {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .product-tags span {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* === FIX 7: PRICING CARDS === */
@media (max-width: 768px) {
    .pricing-card {
        padding: 2rem 1.5rem !important;
    }
    
    .pricing-header h3 {
        font-size: 1.35rem !important;
    }
    
    .pricing-features {
        gap: 1rem !important;
    }
    
    .pricing-features li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

/* === FIX 8: ABOUT SECTION - Founders === */
@media (max-width: 768px) {
    .founders-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .founder-card {
        padding: 2rem 1.5rem !important;
        text-align: center !important;
    }
    
    .founder-image img {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 1rem !important;
    }
    
    .founder-bio {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

/* === FIX 9: CONTACT FORM === */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .contact-info-section,
    .contact-form-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .premium-form {
        padding: 1.5rem !important;
    }
    
    .form-group {
        margin-bottom: 1.25rem !important;
    }
    
    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Evita zoom en iOS */
        padding: 0.875rem !important;
    }
}

/* === FIX 10: FOOTER === */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }
    
    .footer-brand {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .footer-brand .logo {
        justify-content: center !important;
    }
    
    .footer-brand .footer-badge {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .footer-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
        justify-items: center !important;
    }
    
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .footer-column {
        text-align: left !important;
    }
    
    .footer-column h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-column ul li {
        margin-bottom: 0.75rem !important;
    }
    
    .footer-column ul li a {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .footer-column h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer-column ul li {
        margin-bottom: 0.5rem !important;
    }
    
    .footer-column ul li a {
        font-size: 0.8rem !important;
    }
}

/* === FIX 11: PROCESS SECTION === */
@media (max-width: 768px) {
    .process-timeline {
        padding: 0 !important;
    }
    
    .process-step {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .step-number {
        position: relative !important;
        left: auto !important;
        margin: 0 auto 1.5rem !important;
    }
    
    .step-content h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .step-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .step-deliverables {
        text-align: left !important;
        padding-left: 1.5rem !important;
    }
    
    .step-deliverables li {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* === FIX 12: Desactivar animaciones problemáticas en móvil === */
@media (max-width: 768px) {
    /* Desactivar parallax */
    .hero-visual,
    .hero-visual * {
        transform: none !important;
    }
    
    /* Desactivar cursor gradient en móvil */
    body > div[style*="position: fixed"][style*="pointer-events: none"] {
        display: none !important;
    }
    
    /* Reducir partículas de fondo */
    .bg-particles > div {
        opacity: 0.3 !important;
        animation-duration: 20s !important;
    }
}

/* === FIX 13: Botones más grandes en móvil === */
@media (max-width: 768px) {
    .btn {
        min-height: 48px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .btn-service,
    .btn-product,
    .btn-pricing {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }
}

/* === FIX 14: Espaciado de secciones en móvil === */
@media (max-width: 768px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .section-header {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }
}

/* === FIX 15: Ocultar elementos innecesarios en móvil === */
@media (max-width: 768px) {
    /* Ocultar badge de "Featured" en pricing si ocupa mucho espacio */
    .featured-badge {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}


/* Fix específico para grid de herramientas IA */
@media (max-width: 768px) {
    .ai-tools-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
}
/* === HERO MOBILE REORDER === */
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
  }

  /* Reordenar elementos */
  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    order: 3;
  }

  .hero-visual .ai-image-container {
    max-width: 90%;
    margin: 0 auto;
  }
}
/* === HERO MOBILE IMAGE POSITION === */
@media (max-width: 768px) {
  /* Ocultar versión desktop en móviles */
  .desktop-hero-visual {
    display: none !important;
  }

  /* Mostrar versión móvil */
  .mobile-hero-visual {
    display: block !important;
    margin: 1.5rem auto;
    text-align: center;
  }

  .mobile-hero-visual .ai-image-container {
    max-width: 80%;
    margin: 0 auto;
  }

  /* Centrar texto y botones en mobile */
  .hero-text, .hero-cta {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
}

/* === Desktop === */
@media (min-width: 769px) {
  /* Ocultar versión móvil de la imagen en desktop */
  .mobile-hero-visual {
    display: none !important;
  }
  
  /* Mostrar versión desktop */
  .desktop-hero-visual {
    display: block;
  }
}
/* === Ajuste de posición de la imagen móvil === */
@media (max-width: 768px) {
  .mobile-hero-visual {
    margin-top: 0.5rem;   /* antes era 1.5rem */
    margin-bottom: 2rem;  /* deja un poco más de aire debajo */
  }

  .mobile-hero-visual .ai-image-container {
    max-width: 75%;
    margin: 0 auto;
    transform: translateY(-10px); /* 🔹 sube ligeramente la imagen */
  }
}

/* === HERO MOBILE FIX: padding superior y posición de imagen === */
@media (max-width: 768px) {

  /* deja espacio para la navbar fija */
  #inicio {
    padding-top: 120px; /* 🔹 aumenta este valor si sigue tapado */
  }

  .mobile-hero-visual {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .mobile-hero-visual .ai-image-container {
    max-width: 75%;
    margin: 0 auto;
    transform: translateY(-25px); /* 🔹 sube la imagen */
  }

  .hero-text, .hero-cta {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
}

/* === Desktop === */
@media (min-width: 769px) {
  .mobile-hero-visual {
    display: none;
  }

  #inicio {
    padding-top: 100px; /* igual que antes para mantener diseño desktop */
  }
}
/* === FIX HERO MOBILE OVERLAP & IMAGE POSITION === */
@media (max-width: 768px) {
  /* Aumenta el padding superior para evitar que el título quede tapado */
  .hero {
    padding-top: 140px !important;
  }

  /* Centra texto y mejora la jerarquía */
  .hero-text {
    text-align: center;
  }

  /* Ajusta la imagen móvil */
  .mobile-hero-visual {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .mobile-hero-visual .ai-image-container {
    max-width: 80%;
    margin: 0 auto;
    transform: translateY(-25px); /* sube la imagen un poco */
  }

  /* Evita que la imagen toque los botones */
  .hero-cta {
    margin-top: 1rem;
  }

  /* Ajuste visual del título */
  .hero-title-main {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }
}

/* === FIX RESPONSIVE: Casos de Éxito === */
@media (max-width: 768px) {

  /* Aumenta el ancho del contenedor de la card */
  #casos .case-card {
    margin: 0 auto;
    width: 92%;
    border-radius: 16px;
    padding: 0; /* se hereda del overlay */
  }

  /* Reduce márgenes laterales internos del texto */
  #casos .case-content-overlay {
    padding: 20px 22px 28px;
    text-align: left;
  }

  /* Mejora lectura del texto descriptivo */
  #casos .case-action {
    font-size: 15px;
    line-height: 1.55;
    text-align: justify;
  }

  /* Reduce tamaño del título y subtítulo */
  #casos .case-content-overlay h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  #casos .case-content-overlay h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* Ajusta métricas para ocupar más ancho */
  #casos .case-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    font-size: 14px;
  }

  /* Mejora proporciones de imagen */
  #casos .case-media {
    height: 200px;
  }

  /* Añade sombra más sutil para mantener contraste */
  #casos .case-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
}
/* === FIX RESPONSIVE: Metodología Probada === */
@media (max-width: 768px) {
  /* Contenedor general */
  .process-timeline {
    max-width: 95%;
    margin: 0 auto;
  }

  /* Cada paso se apila verticalmente */
  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  /* Número centrado y más pequeño */
  .step-number {
    margin: 0 auto;
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 163, 224, 0.3);
  }

  /* Quitar la línea vertical entre pasos */
  .process-step:not(:last-child)::after {
    display: none;
  }

  /* Card del contenido */
  .step-content {
    padding: 1.8rem;
    text-align: left;
    border-radius: 16px;
  }

  /* Título y texto más compactos */
  .step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: justify;
  }

  /* Lista de entregables */
  .step-deliverables li {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.4rem;
  }
}
/* === FIX: Sección Hablemos de tu Proyecto cortada en móvil === */
@media (max-width: 768px) {
  #contacto,
  .contact-section {
    padding-bottom: 140px !important; /* agrega espacio inferior real */
    margin-bottom: 0 !important;
    overflow: visible !important; /* evita recorte del texto */
  }

  /* Asegura que el contenedor no tenga altura fija */
  .contact-wrapper {
    height: auto !important;
    min-height: unset !important;
  }

  /* Evita que el footer empuje hacia arriba el contenido */
  body {
    padding-bottom: 100px !important;
  }

  /* Ajuste para el botón flotante (no cubra texto) */
  .back-to-top {
    bottom: 70px !important;
  }
}
/* === FIX RESPONSIVE: Centrado de íconos sociales en móvil === */
@media (max-width: 768px) {

  /* Contenedor de los íconos */
  #contacto .social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    margin: 1.5rem auto 0 !important;
    width: 100%;
    max-width: 200px; /* mantiene proporción visual */
  }

  /* Cada ícono */
  #contacto .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 224, 0.08);
    border: 1px solid rgba(0, 163, 224, 0.15);
    color: #0A0E27;
    transition: all 0.3s ease;
  }

  #contacto .social-links a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-3px);
  }
}
/* === FIX RESPONSIVE: Centrado completo "Hablemos de tu Proyecto" === */
@media (max-width: 768px) {

  /* Contenedor general */
  #contacto,
  .contact-section {
    text-align: center !important;
    padding: 80px 1.5rem 120px !important;
  }

  #contacto .section-title {
    text-align: center !important;
    font-size: 1.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
  }

  #contacto .section-description {
    text-align: center !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 95%;
    margin: 0 auto 2rem !important;
  }

  /* Cada bloque de información (Horario / Oficinas) */
  #contacto .contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  #contacto .contact-icon {
    margin-bottom: 0.8rem !important;
  }

  #contacto .contact-item h4 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  #contacto .contact-item p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #0A0E27 !important;
  }

  /* Íconos sociales centrados */
  #contacto .social-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.2rem !important;
    margin-top: 1.8rem !important;
  }

  #contacto .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 224, 0.08);
    border: 1px solid rgba(0, 163, 224, 0.15);
    color: #0A0E27;
    transition: all 0.3s ease;
  }

  #contacto .social-links a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-3px);
  }
}
/* === FIX RESPONSIVE FINAL: Contacto (cards iguales + sin desborde) === */
@media (max-width: 768px) {

  /* Forzamos una columna pero con cards centrados y del mismo ancho */
  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center !important;         /* centra los hijos */
  }

  /* Card INFO (izquierda) ahora también es un card blanco como el form */
  .contact-info-section {
    width: 100% !important;
    max-width: 640px !important;            /* igual al form */
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid #d6eaff !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden;                        /* evita que algo sobresalga visualmente */
  }

  /* Form con el mismo ancho y centrado */
  .contact-form-section {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    background: transparent !important;      /* el card ya lo pone .premium-form */
    border: none !important;
    box-shadow: none !important;
  }

  /* El propio form (card) ocupa 100% del contenedor */
  .premium-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px !important;                /* ya tenés padding inline; lo unificamos */
  }

  /* Título y descripción: sin desbordes y centrados */
  #contacto .section-title {
    text-align: center !important;
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }
  #contacto .section-description {
    text-align: center !important;
    max-width: 95% !important;
    margin: 0 auto 20px !important;
  }

  /* Ítems (Horario / Oficinas) centrados en columna */
  #contacto .contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 22px !important;
  }
  #contacto .contact-icon { margin-bottom: 10px !important; }

  /* Íconos sociales centrados (ya aplicado antes, lo dejamos firme) */
  #contacto .social-links {
    display: flex !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 14px auto 0 !important;
    width: 100%;
    max-width: 200px;
  }

  /* Evita cortes por el botón flotante y por el pie */
  #contacto, .contact-section {
    padding-bottom: 120px !important;
    overflow: visible !important;
  }
  .back-to-top { bottom: 70px !important; }

  /* Seguridad extra: nada dentro de contacto puede exceder el ancho */
  #contacto *, .contact-info-section *, .contact-form-section * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* === FIX FINAL: Igualar ancho del formulario en "Hablemos de tu Proyecto" === */
@media (max-width: 768px) {

  /* Contenedor del formulario */
  #contacto .premium-form,
  #contacto form {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #d6eaff !important;
    border-radius: 14px !important;
  }

  /* Asegura que los campos ocupen todo el ancho disponible */
  #contacto form input,
  #contacto form textarea,
  #contacto form select {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto 16px !important;
    box-sizing: border-box !important;
  }

  /* Ajuste del botón de envío */
  #contacto form button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
    font-weight: 600 !important;
    text-align: center !important;
  }

  /* Centra todo dentro del bloque */
  #contacto .contact-form-section {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
  }

  /* Seguridad: evita que el form sobresalga o quede más chico */
  #contacto .contact-form-section *,
  #contacto .premium-form * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* === FINAL FIX: CONTACTO + FOOTER === */
@media (max-width: 768px) {

  /* --- CONTACTO --- */
  #contacto,
  .contact-section {
    text-align: center !important;
    padding: 80px 1.5rem 120px !important;
  }

  /* Contenedor general de la sección (alineado y ancho coherente) */
  .contact-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    align-items: center !important;
  }

  /* Bloque de info (Hablemos + Oficinas) */
  .contact-info-section {
    width: 100% !important;
    max-width: 720px !important; /* Aumentado para igualar ancho del form */
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid #d6eaff !important;
    border-radius: 14px !important;
    padding: 28px !important;
    box-sizing: border-box !important;
  }

  #contacto .section-title {
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
  }

  #contacto .section-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 95% !important;
    margin: 0 auto 22px !important;
  }

  /* Ítems (Horario / Oficinas) centrados */
  #contacto .contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 22px !important;
  }

  #contacto .contact-icon {
    margin-bottom: 10px !important;
  }

  /* Íconos sociales */
  #contacto .social-links {
    display: flex !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin-top: 1.5rem !important;
  }

  #contacto .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 163, 224, 0.08);
    border: 1px solid rgba(0, 163, 224, 0.15);
    transition: all 0.3s ease;
  }

  #contacto .social-links a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-3px);
  }

  /* Formulario (mismo ancho que el bloque de info) */
  .contact-form-section,
  #contacto .premium-form,
  #contacto form {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 28px 24px !important;
    background: #fff !important;
    border: 1px solid #d6eaff !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  #contacto form input,
  #contacto form textarea,
  #contacto form select {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }

  #contacto form button[type="submit"] {
    width: 100% !important;
    font-weight: 600 !important;
  }

  /* --- FOOTER --- */
  .footer {
    background: #0a0e1f;
    padding: 60px 1rem 40px;
  }

  .footer .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 2rem !important;
    justify-items: center;
    align-items: start;
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #fff;
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-column li {
    margin: 6px 0;
  }

  .footer-column a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-column a:hover {
    color: var(--brand-blue-light);
  }

  /* Alineación final y coherencia visual */
  .footer-bottom {
    grid-column: span 2;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 2rem;
    color: var(--text-tertiary);
  }

  /* Corrige altura final de la página (por botón flotante) */
  #contacto {
    padding-bottom: 140px !important;
    overflow: visible !important;
  }

  .back-to-top {
    bottom: 70px !important;
  }
}
/* === FIX FINAL FOOTER 2025 === */
@media (max-width: 768px) {

  .footer {
    background: #0a0e1f;
    padding: 60px 1rem 40px;
  }

  /* Mantiene dos columnas bien alineadas */
  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 1rem !important;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #fff;
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-column li {
    margin: 6px 0;
  }

  .footer-column a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-column a:hover {
    color: var(--brand-blue-light);
  }

  /* Centra el copyright */
  .footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 2rem;
    color: var(--text-tertiary);
  }
}

/* ========================================
   ======================================== */

@media (max-width: 900px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem 1rem !important;
    }
    
    .footer-stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 850px) and (min-width: 769px) {
    .footer-links {
        gap: 1rem !important;
    }
    
    .footer-column h4 {
        font-size: 0.95rem !important;
    }
    
    .footer-column a {
        font-size: 0.85rem !important;
    }
}
/* ========================================
   FIX CRÍTICO: FORZAR LAYOUT CORRECTO EN MODO DESKTOP MÓVIL
   Usa múltiples estrategias para detectar pantallas pequeñas
   ======================================== */

/* Estrategia 1: Por altura de viewport (más confiable) */
@media (max-height: 900px) {
    .hero {
        min-height: auto !important;
        padding: 120px 0 40px 0 !important;
    }
    
    .hero-content {
        gap: 2rem !important;
    }
    
    .hero-title-main {
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    }
    
    .hero-title-sub {
        font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    }
}

/* Estrategia 2: Por ancho de viewport menor a 1000px */
@media (max-width: 1000px) {
    .hero {
        min-height: auto !important;
        padding: 100px 0 40px 0 !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .hero-text {
        order: 1;
    }
    
    .desktop-hero-visual {
        order: 2;
        max-width: 400px;
        margin: 0 auto !important;
    }
    
    .hero-cta {
        order: 3;
        justify-content: center !important;
    }
    
    .hero-stats {
        order: 4;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* PRODUCTOS - FIX CRÍTICO */
    .product-card {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .product-image {
        order: 1 !important;
        min-height: 250px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem !important;
    }
    
    .product-mock {
        max-width: 70% !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    .product-content {
        order: 2 !important;
        padding: 2rem !important;
    }
    
    .product-content h3 {
        font-size: 1.5rem !important;
    }
    
    .product-content p {
        font-size: 0.95rem !important;
    }
}

/* Estrategia 3: Para pantallas MUY pequeñas con desktop mode */
@media (max-width: 900px) {
    .hero {
        min-height: auto !important;
        padding: 90px 0 30px 0 !important;
    }
    
    .hero-title-main {
        font-size: 1.8rem !important;
    }
    
    .hero-title-sub {
        font-size: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    /* PRODUCTOS - Más compacto */
    .product-image {
        min-height: 200px !important;
        padding: 1.5rem !important;
    }
    
    .product-mock {
        max-width: 60% !important;
    }
    
    .product-content {
        padding: 1.5rem !important;
    }
    
    .product-content h3 {
        font-size: 1.3rem !important;
    }
    
    .product-content p {
        font-size: 0.9rem !important;
    }
}

/* Estrategia 4: Container y otros elementos globales */
@media (max-width: 1000px) {
    .container {
        padding: 0 1rem !important;
    }
    
    section {
        padding: 50px 0 !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .products-grid {
        gap: 2rem !important;
    }
}

/* Navegación compacta */
@media (max-width: 1000px) {
    .navbar {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-menu {
        gap: 0.75rem !important;
    }
    
    .nav-link {
        font-size: 0.85rem !important;
    }
    
    .logo-text, .logo-accent {
        font-size: 1.2rem !important;
    }
}

/* ========================================
   FIX: CENTRAR NAVEGACIÓN Y ESTADÍSTICAS EN MODO DESKTOP MÓVIL
   ======================================== */

/* Centrar navegación en pantallas pequeñas */
@media (max-width: 1000px) {
    .nav-container {
        justify-content: center !important;
    }
    
    .nav-menu {
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }
    
    .nav-link {
        text-align: center !important;
    }
    
    /* Centrar estadísticas del hero */
    .hero-stats {
        justify-items: center !important;
        text-align: center !important;
    }
    
    .stat-card {
        text-align: center !important;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem !important;
        justify-content: center !important;
    }
    
    .hero-stats {
        gap: 1rem !important;
    }
}

/* También aplicar con la clase JavaScript si está implementada */
.mobile-desktop-mode .nav-container {
    justify-content: center !important;
}

.mobile-desktop-mode .nav-menu {
    justify-content: center !important;
    text-align: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.mobile-desktop-mode .nav-link {
    text-align: center !important;
}

.mobile-desktop-mode .hero-stats {
    justify-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
}

.mobile-desktop-mode .stat-card {
    text-align: center !important;
}

/* ========================================
   FIX: ALINEAR LOGO CON BADGE EN FOOTER MÓVIL
   ======================================== */

/* Para móviles reales (no desktop en móvil) */
@media (max-width: 768px) {
    .footer-brand .logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .footer-brand .footer-badge {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 1rem auto !important;
        width: fit-content !important;
    }
    
    /* Asegurar que el texto del logo esté junto y centrado */
    .footer-brand .logo-text,
    .footer-brand .logo-accent {
        display: inline !important;
        text-align: center !important;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
    .footer-brand .logo {
        font-size: 1.3rem !important;
    }
    
    .footer-brand .footer-badge {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}