/* ========================================
   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;
}

/* Aumentar altura del navbar en desktop */
@media (min-width: 1024px) {
    .nav-container {
        padding: 2rem 2rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Aumentar tamaño del texto del logo en desktop */
@media (min-width: 1024px) {
    .logo {
        font-size: 1.875rem;
    }
}

.logo-image {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 163, 224, 0.3));
    transition: var(--transition-smooth);
}

/* Aumentar tamaño del logo en desktop */
@media (min-width: 1024px) {
    .logo-image {
        height: 60px;
    }
}

.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: 80px;
    padding-bottom: 60px;
    position: relative;
}
/* Ajuste altura y posición de texto en versión desktop */
@media (min-width: 1024px) {
  .hero {
    padding-top: 140px !important;   /* Aumentado de 120px a 140px para evitar que navbar tape texto */
    padding-bottom: 40px !important;
  }
  .hero-content {
    align-items: flex-start !important;  /* sube el texto visualmente */
    margin-top: -25px; /* opcional: levanta todo el bloque */
  }
}

/* Fix para pantallas pequeñas independientemente del viewport */
@media (max-height: 800px) {
    .hero {
        min-height: auto !important;
        padding-top: 100px !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(3rem, 6.5vw, 5.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(2.25rem, 5vw, 4rem);
    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-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);
}

/* ========================================
   ICONOS SOCIALES - ESTILO UNIFICADO AZUL CLARO
   Todos los iconos usan el mismo color (#00A3E0)
   ======================================== */

/* Estilo base para TODOS los iconos sociales */
.social-link {
    background: rgba(0, 163, 224, 0.15) !important;
    border-color: rgba(0, 163, 224, 0.3) !important;
    color: #00A3E0 !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #00A3E0 0%, #4DC3F0 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 8px 24px rgba(0, 163, 224, 0.4) !important;
}

.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;
    }
    
    .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;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
        
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ========================================
   AJUSTES V4.1 - Navegación y Logo
   ======================================== */

/* Logo más grande */
.logo-image {
    height: 50px !important;
    width: auto;
    margin-top: 5px;
}

/* 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
   ======================================== */
.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: 2rem; /* Reducido de 60px a 2rem (32px) - El gap de 60px hacía la navbar muy alta */
}



/* 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;
}

.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 1023px) - iPad Pro usa desktop (1024px+) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 160px 0 80px 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-text {
        order: 1;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-visual,
    .desktop-hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-cta {
        order: 3;
    }
    
    .hero-stats {
        order: 4;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* 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;
    }
}

/* ========================================
   TABLET OPTIMIZADO: iPad Air y similares
   Rango: 768px - 1023px
   Comportamiento: Menú hamburguesa + Navbar compacta
   iPad Pro (1024px+) usa comportamiento desktop
   Solución profesional que no afecta mobile ni desktop
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    
    /* === NAVBAR COMPACTA === */
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
    
    /* === LOGO OPTIMIZADO === */
    .logo-image {
        height: 40px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    /* === MENÚ HAMBURGUESA === */
    /* Asegurar que el toggle sea visible */
    .mobile-toggle {
        display: flex;
    }
    
    /* Asegurar que el menú desktop esté oculto */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    /* Estado activo del menú */
    .nav-menu.active {
        left: 0;
    }
    
    /* Links del menú optimizados para tablet */
    .nav-link {
        width: 100%;
        padding: 1.2rem 1rem;
        text-align: center;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    /* Último link sin borde */
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* === HERO SECTION OPTIMIZADO === */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content {
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    /* === BOTONES CTA OPTIMIZADOS === */
    .hero-cta {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    /* === STATS OPTIMIZADOS === */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* === FEATURES GRID === */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* === SERVICES GRID === */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* === TESTIMONIALS === */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* === FAQ === */
    .faq-container {
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* === FOOTER === */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    /* === PRODUCTS GRID === */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* === PRICING CARDS === */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   iPad Pro ESPECÍFICO: 1024px - 1280px
   Soluciona: Nav links cortados, botón Hablemos, y layout
   ======================================== */

@media (min-width: 1024px) and (max-width: 1280px) {
    
    /* === NAVBAR AJUSTADA PARA iPAD PRO === */
    .nav-container {
        max-width: 100%; /* Asegurar ancho completo */
    }
    
    /* === MENÚ COMPACTO PARA iPAD PRO === */
    .nav-menu {
        gap: 0.9rem; /* Reducir gap más (antes: 1.2rem) para dar espacio al botón */
    }
    
    /* === LINKS DE NAVEGACIÓN - TEXTO EN UNA LÍNEA === */
    .nav-link {
        font-size: 0.8rem; /* Reducir tamaño de fuente */
        white-space: nowrap; /* Forzar texto en una sola línea */
        padding: 0.5rem 0.3rem; /* Ajustar padding */
    }
    
    /* === LOGO AJUSTADO === */
    .logo {
        font-size: 1.5rem; /* Tamaño intermedio */
    }
    
    .logo-image {
        height: 50px; /* Tamaño intermedio (entre tablet y desktop) */
    }
    
    /* === HERO SECTION OPTIMIZADO === */
    .hero {
        padding: 130px 0 60px; /* Reducir padding superior */
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr; /* Mantener 2 columnas */
        gap: 2rem; /* Reducir gap */
        max-width: 100%; /* Ancho completo */
        padding: 0 1rem; /* Padding lateral */
    }
    
    .hero-text {
        max-width: 100%; /* Usar todo el espacio disponible */
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 2.5rem); /* Título más compacto */
    }
    
    .hero-description {
        font-size: 0.95rem; /* Descripción más pequeña */
        margin: 1rem 0; /* Reducir margen */
    }
    
    /* === BOTONES CTA - MÁS COMPACTOS === */
    .hero-cta {
        display: flex;
        flex-direction: row; /* Botones en fila */
        gap: 0.8rem; /* Gap más pequeño */
        flex-wrap: wrap; /* Permitir wrap si es necesario */
        justify-content: flex-start; /* Alinear a la izquierda en hero */
    }
    
    .btn {
        padding: 0.75rem 1.3rem; /* Botones más compactos */
        font-size: 0.85rem; /* Texto más pequeño */
        white-space: nowrap; /* Evitar que el texto se rompa */
    }
    
    /* Asegurar que el botón "Hablemos" sea visible */
    .btn-primary,
    .btn-secondary {
        min-width: auto; /* Permitir ancho automático */
        flex-shrink: 0; /* No permitir que se encoja */
    }
    
    /* === VISUAL DEL HERO - AJUSTADO === */
    .desktop-hero-visual,
    .hero-visual {
        max-width: 450px; /* Reducir tamaño máximo */
        margin: 0 auto; /* Centrar */
    }
    
    /* === STATS OPTIMIZADOS === */
    .hero-stats {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas */
        gap: 1rem; /* Gap más pequeño */
        margin-top: 2rem; /* Margen superior */
    }
    
    .stat-item {
        padding: 0.8rem; /* Padding reducido */
    }
    
    .stat-number {
        font-size: 1.8rem; /* Números más pequeños */
    }
    
    .stat-label {
        font-size: 0.75rem; /* Labels más pequeños */
    }
    
    /* === SECTIONS - SPACING OPTIMIZADO === */
    section {
        padding: 60px 0; /* Reducir padding vertical */
    }
    
    .container {
        padding: 0 1.5rem; /* Padding lateral optimizado */
    }
    
    /* === FEATURES GRID === */
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 1.5rem;
    }
    
    /* === SERVICES GRID === */
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 1.5rem;
    }
    
    /* === PRODUCTS GRID - UNA COLUMNA PARA MEJOR VISUALIZACIÓN === */
    .products-grid {
        grid-template-columns: 1fr; /* 1 columna para cards más amplias */
        gap: 2rem;
        max-width: 900px; /* Ancho máximo para mejor legibilidad */
        margin: 0 auto; /* Centrado */
    }
    
    /* === PRODUCT CARDS OPTIMIZADAS === */
    .product-card {
        grid-template-columns: 1fr 1fr; /* Mantener layout interno 2 cols */
    }
    
    .product-content {
        padding: 2rem; /* Reducir padding interno */
    }
    
    .product-content h3 {
        font-size: 1.5rem; /* Título más compacto */
        margin-bottom: 1rem;
    }
    
    .product-content p {
        font-size: 0.9rem; /* Texto más pequeño */
        margin-bottom: 1.5rem;
    }
    
    .product-features li {
        font-size: 0.85rem; /* Features más compactas */
    }
}

/* 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: 140px 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;
    }
    
    
    .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-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: 130px 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: 130px 0 40px 0;
    }
    
    .hero-visual,
    .ai-hero-image,
    .ai-image-container {
        max-width: 180px !important;
    }
     
    .stat-card {
        padding: 1rem;
    }
    
    .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: 130px 0 40px 0;
        min-height: auto;
    }
    
    
    .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 {
        order: 3;
        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: 25px !important;
        text-align: left !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) {

  /* Reordenar elementos */
  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .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;
  }
}

/* === 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;
  }
}

/* === 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;
  }


  .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: 100px 0 40px 0 !important;
    }
    
    .hero-title-main {
        font-size: clamp(3rem, 6.5vw, 5.5rem) !important;
    }
    
    .hero-title-sub {
        font-size: clamp(2.25rem, 5vw, 4rem) !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-text {
        order: 1;
    }
    
    .desktop-hero-visual {
        order: 2;
        max-width: 400px;
        margin: 0 auto !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: 130px 0 30px 0 !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;
    }
    
    /* ELIMINADO: No ajustar logo aquí para no afectar desktop */
}

/* ========================================
   LOGO MOBILE PEQUEÑO: Solo iPhone SE y similares
   Aumenta tamaño del logo ÚNICAMENTE en pantallas <480px
   ======================================== */
@media (max-width: 480px) {
    .logo-text, .logo-accent {
        font-size: 1.4rem !important; /* Logo más grande solo en mobile pequeño */
    }
}

/* ========================================
   DESKTOP GRANDE: Asegurar tamaño correcto del logo
   Aplica en pantallas >1280px (notebooks y desktop)
   ======================================== */
@media (min-width: 1281px) {
    .logo {
        font-size: 1.875rem !important; /* Tamaño desktop estándar */
    }
    
    .logo-text, .logo-accent {
        font-size: inherit !important; /* Heredar del padre .logo */
    }
}

/* ========================================
   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;
    }
    
    .stat-card {
        text-align: center !important;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem !important;
        justify-content: center !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;
}



/* ========================================
   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;
    }
}
/* Ajuste de altura del navbar en móviles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem !important; /* reduce altura */
  }
  .logo-image {
    height: 38px !important; /* ajusta tamaño logo para compensar */
  }
}
/* === Ajuste Hero Desktop para mostrar CTAs === */
@media (min-width: 1024px) {
  .hero {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

 

  .hero-title {
    margin-bottom: 1rem !important; /* antes 2rem */
  }

  .hero-description {
    margin-bottom: 1.5rem !important; /* antes 3rem */
  }

  .hero-cta {
    margin-bottom: 1.5rem !important; /* antes 4rem */
  }

  .ai-image-container {
    max-width: 420px !important; /* reduce el ancho para ganar alto útil */
  }
}
/* === Ajuste tamaño del título principal en desktop === */
@media (min-width: 1024px) {
  .hero-title-main {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem) !important;
    line-height: 1.1 !important;
  }

  .hero-title-sub {
    font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
  }
}
/* === FIX HERO DESKTOP: Ajuste vertical equilibrado === */
@media (min-width: 1024px) {
  .hero {
    padding-top: 100px !important; /* 🔹 espacio suficiente para no ser tapado por la navbar */
    padding-bottom: 40px !important;
  }

  .hero-content {
    align-items: flex-start !important;
    gap: 2.5rem !important;
  }

  .hero-title-main {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem) !important;
    line-height: 1.1 !important;
  }

  .hero-title-sub {
    font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
    line-height: 1.25 !important;
  }
}

/* === FIX FINAL: Vista "Sitio para computadora" en móviles (viewport ≤ 900px) === */
@media (max-width: 900px) and (orientation: portrait) {
  /* Aumentar espacio superior para evitar solapamiento con la barra */
  .hero {
    padding-top: 200px !important; /* subí a 220px si sigue tapado */
    padding-bottom: 50px !important;
    text-align: center !important;
  }

  /* Centrar correctamente todo el bloque de texto */
  .hero-text {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .hero-title,
  .hero-description,
  .hero-cta {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Ajustar tamaños de tipografía */
  .hero-title-main {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-title-sub {
    font-size: 1.4rem !important;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 90% !important;
  }

  /* Centrar CTAs debajo del texto */
  .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }

  /* Imagen reducida y alineada */
  .desktop-hero-visual {
    max-width: 80% !important;
    margin: 1rem auto !important;
  }
}
/* === AJUSTE PERFECTO: BAJAR TODO EL BLOQUE DEL HERO EN MÓVIL === */
@media (max-width: 768px) {
  .hero {
    padding-top: 75px !important;   /* Espacio seguro debajo de la navbar */
    padding-bottom: 50px !important;
    min-height: auto !important;
  }

}
/* 1. AJUSTE GENERAL PARA MÓVIL EN MODO ESCRITORIO */
@media (max-width: 768px) and (orientation: landscape),
       (max-width: 768px) and (max-aspect-ratio: 13/9) {
  
  .hero {
    padding-top: 75px !important;
    padding-bottom: 50px !important;
    min-height: auto !important;
  }

  .hero-content {
    margin-top: 25px !important;
    gap: 2.5rem !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .desktop-hero-visual {
    max-width: 80% !important;
    margin: 2rem auto 0 !important;
  }
}

/* ========================================
   FIX 100% FUNCIONAL: MÓVIL EN "MODO ESCRITORIO"
   (Versión para computadora en celular)
   ======================================== */
@media screen and (max-width: 768px) and (min-width: 600px),
       screen and (max-width: 768px) and (orientation: landscape) {

  /* 1. FORZAR ESPACIO SUPERIOR SEGURO (navbar no tape) */
  .hero {
    padding-top: 100px !important;   /* MÁS ESPACIO → evita solapamiento */
    min-height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* 2. BAJAR TODO EL BLOQUE DEL HERO (texto, imagen, botones, stats) */
  .hero-content {
    margin-top: 40px !important;     /* BAJA TODO 40px */
    gap: 2rem !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 0 1rem !important;
    max-width: 100% !important;
  }

  /* 3. REORDENAR COMO EN MÓVIL */
  .hero-text { order: 1 !important; }
  .desktop-hero-visual { 
    order: 2 !important; 
    margin: 2.5rem auto 0 !important;
    max-width: 85% !important;
  }
  .hero-cta { 
    order: 3 !important; 
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: center !important;
  }
  .hero-stats { 
    order: 4 !important; 
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
    justify-items: center !important;
  }

  /* 4. REDUCIR TAMAÑOS PARA QUE ENTRE EN PANTALLA PEQUEÑA */
  .hero-title-main {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }
  .hero-title-sub {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    max-width: 90% !important;
    margin: 0 auto 1.5rem !important;
  }

  /* 5. BOTONES MÁS PEQUEÑOS Y CENTRADOS */
  .btn {
    padding: 0.85rem 1.6rem !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  /* 6. IMAGEN: NO DESBORDE */
  .ai-image-container {
    max-width: 100% !important;
    border-radius: 18px !important;
  }

  /* 7. FORZAR QUE LA NAVBAR NO SE MUEVA */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    height: auto !important;
  }

  /* 8. EVITAR SCROLL HORIZONTAL */
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
  }
}
/* ========================================
   FIX DEFINITIVO: CLASE PARA "MODO ESCRITORIO EN MÓVIL"
   (Usa la clase agregada por JS)
   ======================================== */

.mobile-desktop-mode {
  /* Evitar overflow y scroll horizontal */
  overflow-x: hidden !important;
  width: 100% !important;
}

.mobile-desktop-mode .navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  height: auto !important;  /* Asegura que la navbar no se expanda */
}

.mobile-desktop-mode .hero {
  padding-top: 120px !important;   /* ESPACIO GRANDE para que navbar no tape */
  padding-bottom: 60px !important;
  min-height: auto !important;
  text-align: center !important;
}


/* Reordenar elementos como en móvil */
.mobile-desktop-mode .hero-text {
  order: 1 !important;
  width: 100% !important;
  text-align: center !important;
}

.mobile-desktop-mode .desktop-hero-visual {
  order: 2 !important;
  max-width: 85% !important;
  margin: 2.5rem auto 0 !important;
}

/* Reducir tamaños para pantalla pequeña */
.mobile-desktop-mode .hero-title-main {
  font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
  line-height: 1.2 !important;
}

.mobile-desktop-mode .hero-title-sub {
  font-size: clamp(1.4rem, 5.5vw, 2.1rem) !important;
}

.mobile-desktop-mode .hero-description {
  font-size: 0.95rem !important;
  max-width: 90% !important;
  margin: 0 auto 1.5rem !important;
}

.mobile-desktop-mode .btn {
  padding: 0.9rem 1.7rem !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
}

.mobile-desktop-mode .ai-image-container {
  max-width: 100% !important;
  border-radius: 20px !important;
}

/* Ocultar o ajustar menú desktop (para que no desborde) */
.mobile-desktop-mode .nav-menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
  font-size: 0.9rem !important;
}
/* ========================================
   FIX: MENÚ EN UNA SOLA LÍNEA EN "MODO ESCRITORIO EN MÓVIL"
   ======================================== */

.mobile-desktop-mode .nav-menu {
  display: flex !important;
  flex-wrap: nowrap !important;     /* ← CLAVE: no permite salto de línea */
  gap: 1.2rem !important;           /* Reduce el espacio para que quepa */
  overflow-x: auto !important;      /* Si aún no cabe, permite scroll horizontal (mejor que romper) */
  padding: 0.5rem 0 !important;     /* Espacio vertical para el scroll */
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
  white-space: nowrap !important;   /* Asegura que no salte */
  align-items: center !important;
}

.mobile-desktop-mode .nav-link {
  font-size: 0.85rem !important;    /* Reduce tamaño de fuente */
  padding: 0.5rem 0 !important;     /* Reduce altura */
  flex-shrink: 0 !important;        /* Evita que se comprima demasiado */
}

.mobile-desktop-mode .cta-nav {
  font-size: 0.85rem !important;
  padding: 0.6rem 1.2rem !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Ocultar el botón hamburguesa en este modo (no tiene sentido) */
.mobile-desktop-mode .mobile-toggle {
  display: none !important;
}
/* ========================================
   FIX: MENÚ COMPLETO Y COMPACTO EN "MODO ESCRITORIO EN MÓVIL"
   ======================================== */

.mobile-desktop-mode .nav-container {
  padding: 1rem 1.2rem !important;           /* Reduce padding lateral */
  gap: 1rem !important;                      /* Menos espacio entre logo, menú y botón */
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.mobile-desktop-mode .logo {
  gap: 0.5rem !important;
  font-size: 1.1rem !important;
}

.mobile-desktop-mode .logo-image {
  height: 38px !important;
  width: auto !important;
}

.mobile-desktop-mode .logo-text-wrapper {
  gap: 0.1rem !important;
}

.mobile-desktop-mode .nav-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;                      /* Reduce gap entre links */
  overflow-x: auto !important;
  padding: 0.4rem 0 !important;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap !important;
  align-items: center !important;
  flex: 1 !important;                        /* Ocupa el espacio disponible */
  min-width: 0 !important;                   /* Permite que se ajuste */
  scrollbar-width: none !important;          /* Oculta scrollbar en Firefox */
}

.mobile-desktop-mode .nav-menu::-webkit-scrollbar {
  display: none !important;                  /* Oculta scrollbar en Chrome/Safari */
}

.mobile-desktop-mode .nav-link {
  font-size: 0.82rem !important;             /* Más pequeño pero legible */
  padding: 0.4rem 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

.mobile-desktop-mode .cta-nav {
  font-size: 0.82rem !important;
  padding: 0.55rem 1rem !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: fit-content !important;
}

.mobile-desktop-mode .mobile-toggle {
  display: none !important;
}

/* Asegurar que el navbar no se expanda */
.mobile-desktop-mode .navbar {
  padding: 0 !important;
}
/* ========================================
   HERO: BOTONES DEBAJO DE LA IMAGEN SIN EDITAR HTML
   (modo escritorio en móvil)
   ======================================== */

/* 1. Texto arriba */
.mobile-desktop-mode .hero-text {
  order: 1 !important;
  width: 100% !important;
  max-width: 90% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* 3. IMAGEN EN MEDIO (encima de los botones visualmente) */
.mobile-desktop-mode .desktop-hero-visual {
  order: 2 !important;
  position: relative !important;
  max-width: 78% !important;
  margin: -1.5rem auto 1.5rem !important;  /* Superpone un poco con botones */
  z-index: 1 !important;
  animation: none !important;
  transform: none !important;
}

.mobile-desktop-mode .desktop-hero-visual .ai-image-container {
  animation: none !important;
}

/* Ajustes de espaciado dentro del texto */
.mobile-desktop-mode .hero-title,
.mobile-desktop-mode .hero-description {
  margin-bottom: 1rem !important;
}
/* ========================================
   HERO: ORDEN CORRECTO (JS mueve los botones)
   ======================================== */

.mobile-desktop-mode .hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 2.2rem !important;
  padding: 0 1rem !important;
  margin-top: 30px !important;
}

/* Texto arriba */
.mobile-desktop-mode .hero-text {
  order: 1 !important;
  width: 100% !important;
  max-width: 90% !important;
}

/* Imagen en el medio - FIJA */
.mobile-desktop-mode .desktop-hero-visual {
  order: 2 !important;
  max-width: 78% !important;
  margin: 1.8rem auto !important;
  animation: none !important;
  transform: none !important;
}

/* Botones debajo de la imagen (movidos por JS) */
.mobile-desktop-mode .hero-cta {
  order: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto 2.2rem !important;
}

/* Métricas al final */
.mobile-desktop-mode .hero-stats {
  order: 4 !important;
  width: 100% !important;
  max-width: 90% !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.3rem !important;
}
/* ========================================
   BOTONES: TEXTO CENTRADO (modo escritorio en móvil)
   ======================================== */

.mobile-desktop-mode .btn {
  display: flex !important;
  justify-content: center !important;   /* ← Centra horizontalmente */
  align-items: center !important;       /* ← Centra verticalmente */
  text-align: center !important;
  padding: 0.9rem 1.6rem !important;
  font-size: 0.92rem !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
}

/* Asegurar que el SVG también esté centrado */
.mobile-desktop-mode .btn svg {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}
/* === Chatbot Floating Button === */
.chatbot-launcher {
    position: fixed;
    bottom: 1px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* Etiqueta lateral */
.chatbot-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-blue-dark);
    padding: 9px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 24px rgba(0, 163, 224, 0.25);
    opacity: 0;
    transform: translateX(10px);
    animation: chatbotBubbleIn 0.8s ease forwards 0.7s;
}

@keyframes chatbotBubbleIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botón redondo */
.chatbot-icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 3px solid #23A6F0;
    border-radius: 50%;
    box-shadow: 0px 0px 25px rgba(35, 166, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    animation: pulseGlow 2.6s infinite ease-in-out;
}

/* Efecto hover */
.chatbot-icon:hover {
    transform: scale(1.08);
    box-shadow: 0px 0px 35px rgba(35, 166, 240, 0.55);
}

/* Animación glow */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 18px rgba(35, 166, 240, 0.25); }
    50% { box-shadow: 0 0 30px rgba(35, 166, 240, 0.45); }
    100% { box-shadow: 0 0 18px rgba(35, 166, 240, 0.25); }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .chatbot-launcher {
        bottom: 16px; /* Movido más abajo para no tapar el botón Send */
        right: 20px;
        z-index: 999; /* Más bajo que el widget del chat */
    }
    .chatbot-icon {
        width: 58px;
        height: 58px;
    }
}

/* Ocultar visualmente el botón original del widget
   pero dejarlo activo para que lo usemos desde JS */
#n8n-chat .chat-toggle,
.chat-toggle {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
}
/* Botón Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 95px; /* evita superposición con el chatbot */
    right: 20px;
    width: 48px;
    height: 48px;
    background: #23A6F0;
    border-radius: 50%;
    color: white;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
    z-index: 9999; /* siempre arriba */
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animación ligera cuando aparece */
.scroll-to-top.visible:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 110px !important;
        right: 140px !important;
    }
}
/* ========================================
   BANNER DE COOKIES
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.98) 0%, rgba(0, 163, 224, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
    border-top: 2px solid rgba(77, 195, 240, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cookie-btn {
    background: #ffffff;
    color: #0066B3;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cookie-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-content p {
        font-size: 14px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Animación para ocultar el banner */
@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Ajustar el chat para que no se salga del margen en móvil */
@media (max-width: 600px) {
    #n8n-chat {
        left: 0 !important;
        right: 0 !important;
        margin: 0 10px !important;
    }
}

/* Ocultar "powered by n8n" del widget */
#n8n-chat [class*="powered"],
#n8n-chat [class*="footer"],
#n8n-chat a[href*="n8n"],
[class*="chat"] [class*="powered"],
[class*="chat"] [class*="branding"],
div[style*="text-align: center"] a[href*="n8n"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ========================================
   FAQ SECTION - Preguntas Frecuentes
   ======================================== */

.faq-section {
    padding: var(--section-padding) 0;
    background: var(--secondary-dark);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-category {
    margin-bottom: 4rem;
    opacity: 1;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 163, 224, 0.2);
}

.faq-category-title svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

.faq-item {
    background: rgba(15, 20, 33, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: rgba(0, 163, 224, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 163, 224, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 3000px;
    padding: 0 2rem 2rem 2rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-answer ul li strong {
    color: var(--accent-blue);
}

/* CTA al final de FAQ */
.faq-cta {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 102, 179, 0.1) 0%, rgba(0, 163, 224, 0.05) 100%);
    border: 2px solid rgba(0, 163, 224, 0.2);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.faq-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.faq-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.faq-cta .btn {
    position: relative;
    z-index: 1;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-category {
        margin-bottom: 3rem;
    }

    .faq-category-title {
        font-size: 1.375rem;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .faq-category-title svg {
        width: 20px;
        height: 20px;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
        gap: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-answer ul li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    .faq-cta {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .faq-cta h3 {
        font-size: 1.5rem;
    }

    .faq-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-category-title {
        font-size: 1.25rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}
/* Ocultar botón scroll cuando el chatbot está abierto - Solución simple */
.scroll-to-top.hide-for-chat {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

