﻿/* Variables CSS para consistencia */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1.5rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilidades globales */
.bg-gradient {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-darker {
    background: var(--darker-bg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Container personalizado */
.container-fluid.px-0 {
    overflow-x: hidden;
}

/* ===================
   NAVEGACIÓN
=================== */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    z-index: 1000;
}

    .glass-nav.scrolled {
        background: rgba(15, 23, 42, 0.95);
        box-shadow: var(--shadow-medium);
    }

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
    transition: transform var(--transition-normal);
    text-decoration: none;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        text-decoration: none;
    }

.nav-link {
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 0.5rem 1rem !important;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background: var(--primary-color);
        transition: all var(--transition-normal);
        transform: translateX(-50%);
    }

    .nav-link:hover,
    .nav-link.active {
        color: #ffffff !important;
        text-decoration: none;
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
            background: var(--primary-color);
        }

/* Navegación móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--border-radius);
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: var(--border-radius-sm);
        transition: all var(--transition-normal);
        margin-bottom: 0.25rem;
    }

        .navbar-nav .nav-link:hover {
            background: rgba(99, 102, 241, 0.1);
        }

        .navbar-nav .nav-link::after {
            display: none;
        }
}

/* ===================
   HERO SECTION
=================== */
.hero-section {
    min-height: 100vh;
    background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(1deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundMove 25s ease-in-out infinite reverse;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-medium);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Elementos flotantes del hero */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 2;
}

.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
    z-index: 4;
}

.card-2 {
    top: 40%;
    left: 5%;
    animation-delay: 2s;
    z-index: 3;
}

.card-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: 4s;
    z-index: 4;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.floating-card .card {
    transition: all var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-large);
}

.floating-card:hover .card {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ===================
   BOTONES
=================== */
.btn {
    font-weight: 600;
    transition: all var(--transition-normal);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

    .btn:focus {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
        outline: none;
    }

.cta-button {
    background: var(--gradient-primary);
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-medium);
}

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-large);
        color: white;
        text-decoration: none;
    }

        .cta-button:hover::before {
            left: 100%;
        }

.cta-button-ven {
    background: var(--gradient-primary);
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-medium);
}

    .cta-button-ven::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .cta-button-ven:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-large);
        color: white;
        text-decoration: none;
    }

        .cta-button-ven:hover::before {
            left: 100%;
        }

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    backdrop-filter: blur(10px);
}

    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: translateY(-2px);
    }

/* ===================
   FEATURE CARDS
=================== */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transition: transform var(--transition-normal);
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-large);
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.08);
    }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.feature-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-benefits span,
.role-badges span {
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    color: var(--warning-color);
    font-weight: 500;
}

.feature-states {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.state {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

    .state.pending {
        background: #fbbf24;
        color: #92400e;
    }

    .state.approved {
        background: #34d399;
        color: #065f46;
    }

    .state.cancelled {
        background: #f87171;
        color: #991b1b;
    }

.integration-types i,
.channel-icons i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* ===================
   BENEFITS SECTION
=================== */
.benefits-list {
    max-width: 600px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

    .benefit-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(10px);
        box-shadow: var(--shadow-medium);
    }

.benefit-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
    color: white;
    box-shadow: var(--shadow-soft);
}

.benefit-content h5 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.benefit-content p {
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* ===================
   CALCULADORA DE AHORROS
=================== */
.savings-calculator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-large);
    position: relative;
}

    .savings-calculator::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: var(--gradient-primary);
        border-radius: var(--border-radius);
        z-index: -1;
        opacity: 0.3;
    }

.calculator-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

    .calculator-header h4 {
        color: #ffffff;
        font-weight: 600;
    }

.form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-range {
    background: transparent;
    height: 8px;
}

    .form-range::-webkit-slider-track {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        height: 8px;
        border: none;
    }

    .form-range::-webkit-slider-thumb {
        appearance: none;
        background: var(--primary-color);
        border-radius: 50%;
        border: none;
        height: 20px;
        width: 20px;
        cursor: pointer;
        box-shadow: var(--shadow-soft);
        transition: all var(--transition-fast);
    }

        .form-range::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: var(--shadow-glow);
        }

    .form-range:focus {
        outline: none;
    }

        .form-range:focus::-webkit-slider-thumb {
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
        }

.calculator-results {
    margin-top: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

    .result-item:last-child {
        border-bottom: none;
        background: rgba(99, 102, 241, 0.1);
        margin: 0 -1rem;
        padding: 1rem;
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(99, 102, 241, 0.3);
    }

    .result-item span {
        font-weight: 500;
    }

    .result-item strong {
        font-size: 1.1rem;
        font-weight: 700;
    }

/* ===================
   TABLA DE COMPARACIÓN
=================== */
.comparison-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-medium);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: #ffffff;
}

    .table-dark th {
        border-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
    }

    .table-dark td {
        border-color: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        vertical-align: middle;
        color: #ffffff;
    }

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-active {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* ===================
   DEMO SECTION
=================== */
.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.demo-phone {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 2rem;
    padding: 1rem;
    position: relative;
    box-shadow: var(--shadow-large);
    border: 8px solid #374151;
}

    .demo-phone::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background: #6b7280;
        border-radius: 3px;
    }

.demo-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.demo-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

    .demo-step.active {
        opacity: 1;
        transform: translateX(0);
    }

.form-demo h5 {
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-demo .form-control,
.form-demo .form-select {
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    color: #1f2937;
}

.form-demo .btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
}

.result-demo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: #1f2937;
}

.loading-animation {
    text-align: center;
}

    .loading-animation .spinner-border {
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.budget-result {
    color: #1f2937;
}

    .budget-result h5 {
        color: var(--success-color);
        text-align: center;
        font-weight: 600;
    }

.result-card {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

    .result-card .d-flex {
        margin-bottom: 0.5rem;
    }

        .result-card .d-flex:last-child {
            margin-bottom: 0;
        }

.ai-preview {
    text-align: center;
}

    .ai-preview small {
        color: #6b7280;
        font-weight: 500;
    }

.ai-image-placeholder {
    width: 100%;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .ai-image-placeholder::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        animation: shimmer 2s infinite;
    }

    .ai-image-placeholder::after {
        content: '🏠 → ✨';
        font-size: 2rem;
        z-index: 2;
        position: relative;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.demo-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.demo-btn {
    transition: all var(--transition-normal);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

    .demo-btn.active {
        background: var(--primary-color);
        color: white;
        box-shadow: var(--shadow-glow);
    }

    .demo-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

/* ===================
   PRELOADER
=================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .preloader.hide {
        opacity: 0;
        pointer-events: none;
    }

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================
   NOTIFICACIONES
=================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-large);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 10000;
    border-left: 4px solid var(--primary-color);
}

    .notification.show {
        transform: translateX(0);
    }

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    color: var(--dark-bg);
    font-weight: 500;
    padding-right: 2rem;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #6b7280;
    transition: color var(--transition-fast);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .notification-close:hover {
        color: var(--danger-color);
    }

/* ===================
   FOOTER
=================== */
footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    color: #6b7280;
    text-decoration: none;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

    .social-links a:hover {
        color: var(--primary-color) !important;
        transform: translateY(-2px);
        background: rgba(99, 102, 241, 0.1);
        text-decoration: none;
    }

/* ===================
   PARTÍCULAS Y EFECTOS
=================== */
.particle {
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    position: absolute;
}

/* Estados de carga */
.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid var(--primary-color);
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 1000;
    }

/* ===================
   ACCESIBILIDAD
=================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states mejorados */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-range:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

    .skip-link:focus {
        top: 6px;
        color: white;
        text-decoration: none;
    }

/* ===================
   SCROLLBAR PERSONALIZADA
=================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--darker-bg);
}

/* ===================
   SEPARADORES
=================== */
.section-divider {
    height: 2px;
    background: var(--gradient-primary);
    border: none;
    margin: 3rem 0;
    border-radius: 1px;
}

/* ===================
   ANIMACIONES ADICIONALES
=================== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.slide-in-bottom {
    animation: slideInBottom 0.8s ease-out forwards;
}

.zoom-in {
    animation: zoomIn 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de ondas para efectos de agua */
@keyframes wave {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.wave-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: wave 2s infinite;
}

/* ===================
   RESPONSIVE DESIGN
=================== */

/* Tablets en horizontal */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Tablets en vertical y móviles grandes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .hero-stats {
        padding: 1rem;
        margin-bottom: 2rem;
    }

        .hero-stats .row {
            text-align: center;
        }

    .stat-number {
        font-size: 1.5rem;
    }

    .floating-card {
        position: relative !important;
        margin-bottom: 1rem;
        animation: none;
    }

    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .benefit-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .benefit-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .savings-calculator {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .demo-phone {
        width: 280px;
        height: 500px;
        padding: 1.5rem;
    }

    .demo-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .demo-btn {
        width: 200px;
        text-align: center;
    }

    .comparison-table {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .table-dark th,
    .table-dark td {
        padding: 0.5rem;
    }

    .benefits-list {
        margin-top: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .benefit-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .savings-calculator {
        padding: 1rem;
    }

    .demo-phone {
        width: 260px;
        height: 450px;
        padding: 1rem;
    }

    .demo-step {
        padding: 1rem;
    }

    .notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* ===================
   MODO ALTO CONTRASTE
=================== */
@media (prefers-contrast: high) {
    .feature-card,
    .benefit-item,
    .savings-calculator {
        border: 2px solid var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-primary {
        background: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

    .text-muted {
        color: #ffffff !important;
    }

    .nav-link {
        color: #ffffff !important;
    }
}

/* ===================
   MODO SIN ANIMACIONES
=================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-card {
        animation: none;
    }

    .hero-section::before,
    .hero-bg {
        animation: none;
    }

    .preloader-spinner {
        animation: none;
    }

    .loading::after {
        animation: none;
    }

    .particle {
        display: none;
    }
}

/* ===================
   PRINT STYLES
=================== */
@media print {
    .navbar,
    .hero-actions,
    .cta-buttons,
    .demo-container,
    .floating-card,
    footer,
    .social-links,
    .preloader,
    .notification {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }

    .feature-card,
    .benefit-item,
    .savings-calculator {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .comparison-table {
        break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }

    .text-primary {
        color: #333 !important;
    }

    .gradient-text {
        -webkit-text-fill-color: #333 !important;
        color: #333 !important;
    }
}

/* ===================
   OPTIMIZACIONES DE RENDIMIENTO
=================== */
.feature-card,
.floating-card,
.benefit-item,
.demo-phone {
    will-change: transform;
}

.hero-bg,
.hero-section::before {
    will-change: transform;
}

.cta-button::before {
    will-change: left;
}

.form-range::-webkit-slider-thumb {
    will-change: transform;
}

/* ===================
   ESTILOS ESPECÍFICOS PARA RAZOR
=================== */
.asp-validation-summary {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.field-validation-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

/* Spinner personalizado para cargas de Razor */
.razor-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* ===================
   UTILITIES ADICIONALES
=================== */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.border-gradient {
    position: relative;
    background: var(--dark-bg);
}

    .border-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        padding: 2px;
        background: var(--gradient-primary);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        z-index: -1;
    }

/* ===================
   COMPONENTES ADICIONALES
=================== */
.badge-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.progress-gradient .progress-bar {
    background: var(--gradient-primary);
}

.alert-gradient {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* ===================
   EFECTOS HOVER ADICIONALES
=================== */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    transition: box-shadow var(--transition-normal);
}

.hover-float:hover {
    transform: translateY(-5px);
    transition: transform var(--transition-normal);
}

/* ===================
   MODO OSCURO FORZADO
=================== */
[data-theme="dark"] {
    color-scheme: dark;
}

/* ===================
   HERO SECTION - CORRECCIÓN
=================== */

/* Hero Section Principal */
.hero-section {
    min-height: 100vh;
    background: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Espacio para navbar fija */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: backgroundMove 20s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: backgroundMove 25s ease-in-out infinite reverse;
}

/* Contenido del Hero */
.hero-content {
    z-index: 10;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Badge del hero */
.hero-section .badge {
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Estadísticas del hero */
.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Elementos visuales flotantes */
.hero-visual {
    position: relative;
    height: 500px;
    z-index: 5;
}

.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    will-change: transform;
}

    .floating-card .card {
        transition: all var(--transition-normal);
        border: none;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .floating-card:hover .card {
        transform: scale(1.05);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(99, 102, 241, 0.3);
    }

/* Posicionamiento específico de las tarjetas */
.card-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
    z-index: 15;
}

.card-2 {
    top: 35%;
    left: 0%;
    animation-delay: 2s;
    z-index: 12;
}

.card-3 {
    bottom: 5%;
    right: 15%;
    animation-delay: 4s;
    z-index: 14;
}

/* Animación de flotación mejorada */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(1deg);
    }

    66% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
}

/* Animación de fondo */
@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(1deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}

/* Botones del hero */
.hero-actions {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

    .hero-actions .btn {
        margin-bottom: 1rem;
    }

/* Efectos especiales para las tarjetas */
.floating-card .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0%, 100% {
        width: 100%;
    }

    50% {
        width: 85%;
    }
}

/* Iconos en las tarjetas flotantes */
.floating-card .bg-success,
.floating-card .bg-warning {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card .bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.floating-card .bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Texto en las tarjetas */
.floating-card h6 {
    font-weight: 600;
    font-size: 0.9rem;
}

.floating-card small {
    font-size: 0.75rem;
}

.floating-card .fw-bold {
    font-size: 0.9rem;
}

/* Responsive para hero section */
@media (max-width: 1200px) {
    .card-1 {
        right: 0%;
        top: 8%;
    }

    .card-2 {
        left: -5%;
        top: 40%;
    }

    .card-3 {
        right: 10%;
        bottom: 8%;
    }
}

@media (max-width: 992px) {
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }

    .floating-card {
        position: relative !important;
        display: inline-block;
        margin: 0.5rem;
        animation: none;
    }

    .card-1, .card-2, .card-3 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .hero-visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-actions {
        text-align: center;
    }

        .hero-actions .btn {
            display: block;
            width: 100%;
            margin-bottom: 0.75rem;
        }

    .floating-card .card {
        margin: 0.5rem auto;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-section {
        padding-top: 100px;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .hero-stats .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .floating-card .card {
        padding: 0.75rem !important;
    }
}

/* Fix para z-index y overlapping */
.container {
    position: relative;
    z-index: 10;
}

/* Mejora del gradiente de texto */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Efectos adicionales para engagement */
.hero-section .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Pulso sutil para llamar atención */
.cta-button {
    animation: subtlePulse 4s infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* ===================
   CORRECCIÓN DEL BADGE EN HERO
=================== */

/* Badge principal del hero con mejor contraste */
.hero-section .badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

    /* Alternativa 1: Badge con fondo degradado */
    .hero-section .badge.badge-gradient {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8)) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Alternativa 2: Badge con fondo oscuro */
    .hero-section .badge.badge-dark {
        background: rgba(15, 23, 42, 0.8) !important;
        color: var(--primary-color) !important;
        border: 1px solid var(--primary-color);
        backdrop-filter: blur(10px);
    }

    /* Alternativa 3: Badge con borde brillante */
    .hero-section .badge.badge-outline {
        background: transparent !important;
        color: #ffffff !important;
        border: 2px solid var(--primary-color);
        box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.3);
        backdrop-filter: blur(10px);
    }

    /* Icono del badge */
    .hero-section .badge i {
        color: inherit;
        margin-right: 0.5rem;
    }

    /* Hover effect para el badge */
    .hero-section .badge:hover {
        transform: scale(1.05);
        transition: all 0.3s ease;
    }

.hero-section .badgeFloat {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
    .hero-section .badgeFloat i {
        color: var(--primary-color);
        margin-right: 0.5rem;
    }


/* ===================
   TARJETA FLOTANTE CON IMÁGENES
=================== */

/* Contenedor de imágenes */
.image-container {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
    background: #f8f9fa;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.3s ease;
        border-radius: 0.75rem;
    }

/* Overlay para las etiquetas */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 0.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}

.image-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Overlay específico para IA */
.ai-overlay {
    background: linear-gradient(to top, rgba(99, 102, 241, 0.8), transparent);
}

    .ai-overlay .image-label {
        color: white;
    }

    .ai-overlay i {
        color: #fbbf24;
        font-size: 0.7rem;
    }

/* Efectos hover */
.floating-card:hover .before-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.floating-card:hover .after-image {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.1);
}

/* Efectos especiales para la imagen IA */
.after-image {
    position: relative;
}

    .after-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 40%, rgba(99, 102, 241, 0.1) 50%, transparent 60%);
        border-radius: 0.75rem;
        animation: shimmerAI 3s infinite;
        pointer-events: none;
    }

@keyframes shimmerAI {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Badge de transformación */
.floating-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Responsive para imágenes */
@media (max-width: 768px) {
    .image-container {
        aspect-ratio: 4/3;
        margin-bottom: 0.5rem;
    }

    .floating-card .row {
        flex-direction: column;
    }

    .floating-card .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .image-label {
        font-size: 0.8rem;
    }
}

/* Mejora para carga de imágenes */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.75rem;
    z-index: 1;
}

.image-container img {
    position: relative;
    z-index: 2;
}

    .image-container img:load {
        animation: fadeIn 0.5s ease;
    }

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Efecto de comparación */
.floating-card:hover .image-container:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    animation: compareFlash 2s infinite;
}

@keyframes compareFlash {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Mejora del texto temporal */
.floating-card small {
    font-size: 0.7rem;
    font-weight: 500;
}

    .floating-card small i {
        color: var(--primary-color);
    }


/* ===================
   POSICIONAMIENTO CORREGIDO DE TARJETAS FLOTANTES
=================== */

/* Contenedor principal del visual hero */
.hero-visual {
    position: relative;
    height: 550px;
    z-index: 5;
    margin: 2rem 0;
}

/* Configuración base para todas las tarjetas */
.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    max-width: 280px;
}

/* TARJETA 1: Presupuesto Generado (Top Right) */
.card-1 {
    top: 0%;
    right: 0%;
    animation-delay: 0s;
    z-index: 15;
    width: 260px;
}

/* TARJETA 2: Comparación IA (Center Left) - La nueva con imágenes */
.card-2 {
    top: 45%;
    left: -10%;
    animation-delay: 2s;
    z-index: 12;
    width: 280px;
    transform: translateY(-50%);
}

/* TARJETA 3: Velocidad (Bottom Right) */
.card-3 {
    bottom: 0%;
    right: 15%;
    animation-delay: 4s;
    z-index: 14;
    width: 240px;
}

/* Animación de flotación mejorada y diferenciada */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(0.5deg);
    }

    66% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

/* Animación específica para card-2 (con imágenes) */
.card-2 {
    animation: floatCenter 7s ease-in-out infinite;
}

@keyframes floatCenter {
    0%, 100% {
        transform: translateY(-50%) translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-50%) translateX(-8px) rotate(0.8deg);
    }
}

/* Animación específica para card-3 */
.card-3 {
    animation: floatBottom 5s ease-in-out infinite;
}

@keyframes floatBottom {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-0.5deg);
    }
}

/* Efectos hover mejorados */
.floating-card .card {
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.floating-card:hover .card {
    transform: scale(1.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Responsive Design Mejorado */

/* Large screens (1400px+) */
@media (min-width: 1400px) {
    .hero-visual {
        height: 600px;
    }

    .card-1 {
        right: 5%;
        width: 280px;
    }

    .card-2 {
        left: 10%;
        width: 300px;
    }

    .card-3 {
        right: 20%;
        width: 260px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .card-1 {
        right: 2%;
        top: 5%;
    }

    .card-2 {
        left: 8%;
        top: 50%;
    }

    .card-3 {
        right: 12%;
        bottom: 5%;
    }
}

/* Large tablets (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-visual {
        height: 480px;
    }

    .card-1 {
        top: 5%;
        right: -5%;
        width: 240px;
    }

    .card-2 {
        top: 50%;
        left: -15%;
        width: 260px;
    }

    .card-3 {
        bottom: 5%;
        right: 8%;
        width: 220px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .hero-visual {
        height: auto;
        margin-top: 3rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        justify-items: center;
        align-items: start;
    }

    .floating-card {
        position: relative !important;
        animation: none;
        max-width: none;
        width: 100%;
    }

    .card-1 {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 300px;
    }

    .card-2 {
        grid-column: 1 / -1;
        max-width: 320px;
        transform: none !important;
    }

    .card-3 {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 280px;
    }

    /* Reactivar animación sutil en tablet */
    .floating-card {
        animation: subtleFloat 4s ease-in-out infinite;
    }

    @keyframes subtleFloat {
        0%, 100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .hero-visual {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 2rem;
    }

    .floating-card {
        animation: none;
        margin-bottom: 1rem;
    }

        .floating-card .card {
            margin: 0 auto;
            max-width: 300px;
        }

    /* Orden específico en móvil */
    .card-1 {
        order: 1;
    }

    .card-2 {
        order: 2;
    }

    .card-3 {
        order: 3;
    }
}

/* Small mobile (max 575px) */
@media (max-width: 575px) {
    .floating-card .card {
        max-width: 280px;
        margin: 0 auto 1rem auto;
    }

    .hero-visual {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
}

/* Ajustes específicos para evitar solapamiento */
.floating-card .card {
    position: relative;
    z-index: inherit;
}

/* Mejora visual adicional */
.card-1 .card {
    border-left: 3px solid var(--success-color);
}

.card-2 .card {
    border-left: 3px solid var(--primary-color);
}

.card-3 .card {
    border-left: 3px solid var(--warning-color);
}

/* Efectos de entrada escalonados */
.floating-card {
    opacity: 0;
    animation: floatIn 1s ease-out forwards, float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0.5s, 1s;
}

.card-2 {
    animation-delay: 1s, 3s;
}

.card-3 {
    animation-delay: 1.5s, 5s;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

/* ===================
   CORRECCIÓN FEATURES SECTION
=================== */

/* Título principal con mejor contraste */
#features h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    #features h2 .text-primary {
        color: #ffffff !important;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
    }

/* Descripción con mejor visibilidad */
#features .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* ===================
   CORRECCIÓN DE BADGES EN FEATURE CARDS
=================== */

/* Badges de beneficios (Baño, Cocina, Pintura) */
.feature-benefits .badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
}

    .feature-benefits .badge:hover {
        background: var(--gradient-primary) !important;
        color: #ffffff !important;
        border-color: var(--primary-color);
        transform: translateY(-1px);
        transition: all 0.3s ease;
    }

/* Badges de roles (Admin, Trabajador) con colores específicos */
.role-badges .badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.role-badges .bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.3);
}

.role-badges .bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Estados de proyecto con mejor contraste */
.feature-states .state {
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.state.pending {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.3);
}

.state.approved {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.3);
}

.state.cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Feature highlight mejorado */
.feature-highlight {
    background: rgba(251, 191, 36, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: inline-flex;
    align-items: center;
}

    .feature-highlight small {
        color: #fbbf24 !important;
        font-weight: 600;
        margin-left: 0.25rem;
    }

/* Iconos de integración con mejor visibilidad */
.integration-types i {
    font-size: 1.75rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

    .integration-types i:hover {
        transform: scale(1.2);
    }

.integration-types .fa-html5 {
    color: #e34c26 !important;
}

.integration-types .fa-css3-alt {
    color: #1572b6 !important;
}

.integration-types .fa-js-square {
    color: #f7df1e !important;
}

/* Iconos de canales con mejor contraste */
.channel-icons i {
    font-size: 1.75rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

    .channel-icons i:hover {
        transform: scale(1.2);
    }

.channel-icons .fa-whatsapp {
    color: #25d366 !important;
}

.channel-icons .fa-envelope {
    color: #3b82f6 !important;
}

.channel-icons .fa-link {
    color: #f59e0b !important;
}

/* Mejora general de las feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

    .feature-card h4 {
        color: #ffffff !important;
        margin-bottom: 1rem;
    }

    .feature-card p {
        color: rgba(255, 255, 255, 0.85) !important;
        line-height: 1.6;
    }

/* Responsive fixes */
@media (max-width: 768px) {
    #features h2 {
        font-size: 2rem;
    }

    .feature-benefits .badge,
    .role-badges .badge {
        margin-bottom: 0.5rem;
        display: inline-block;
    }

    .integration-types i,
    .channel-icons i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
}

/* ===================
   CORRECCIÓN BENEFITS SECTION V2
=================== */

/* Asegurar que el fondo sea el degradado correcto */
#benefits.bg-gradient {
    background: var(--gradient-primary) !important;
    position: relative;
}

/* Título principal con contraste sobre degradado */
#benefits h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    #benefits h2 .text-primary {
        color: #ffffff !important;
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* ===================
   BENEFIT ITEMS CON CONTRASTE CORRECTO
=================== */

.benefit-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid rgba(255, 255, 255, 0.8) !important;
}

    .benefit-item:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateX(10px);
    }

.benefit-number {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-content h5 {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================
   CALCULADORA CON FONDO CORRECTO
=================== */

.savings-calculator {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

    /* Quitar el pseudo-elemento que causaba problemas */
    .savings-calculator::before {
        display: none !important;
    }

.calculator-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .calculator-header h4 {
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

/* Labels y textos */
.form-label {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.savings-calculator .small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.savings-calculator #budgetValue {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
}

/* Slider mejorado */
.form-range::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.3) !important;
    height: 8px;
    border-radius: 4px;
}

.form-range::-webkit-slider-thumb {
    background: #ffffff !important;
    border: 2px solid var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===================
   RESULTADOS CALCULADORA
=================== */

.result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

    .result-item span {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
    }

    .result-item strong {
        color: #ffffff !important;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .result-item .text-success {
        color: #10b981 !important;
        font-weight: 700;
    }

    .result-item:last-child {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        margin: 0 -2rem;
        padding: 1rem 2rem;
        border-radius: var(--border-radius-sm);
    }

        .result-item:last-child strong {
            color: #ffffff !important;
            font-size: 1.2rem;
            font-weight: 800;
        }

/* ===================
   BOTÓN CTA
=================== */

#benefits .cta-button-ven {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

    #benefits .cta-button-ven:hover {
        background: #ffffff !important;
        color: var(--primary-color) !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }

/* ===================
   RESPONSIVE
=================== */

@media (max-width: 768px) {
    .result-item:last-child {
        margin: 0 -1.5rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .result-item:last-child {
        margin: 0 -1rem;
        padding: 1rem;
    }
}

/* ===================
   CORRECCIÓN COMPARISON SECTION
=================== */

/* Título de la sección */
.comparison-section h2,
section[class*="bg-dark"] h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    .comparison-section h2 .text-primary,
    section[class*="bg-dark"] h2 .text-primary {
        color: #ffffff !important;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
    }

/* ===================
   TABLA DE COMPARACIÓN MEJORADA
=================== */

.comparison-table {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Tabla oscura con mejor contraste */
.table-dark {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
    --bs-table-color: #ffffff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-active-bg: rgba(99, 102, 241, 0.15);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

    /* Headers de la tabla */
    .table-dark th {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        font-weight: 700;
        font-size: 1rem;
        padding: 1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    }

        /* Columna de método tradicional */
        .table-dark th.text-danger {
            color: #ff6b6b !important;
            background: rgba(239, 68, 68, 0.1) !important;
            border-left: 3px solid #ef4444;
        }

        /* Columna de Presupuesta Reformas */
        .table-dark th.text-success {
            color: #51cf66 !important;
            background: rgba(16, 185, 129, 0.1) !important;
            border-left: 3px solid #10b981;
        }

    /* Celdas de la tabla */
    .table-dark td {
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        padding: 1rem;
        vertical-align: middle;
        font-weight: 500;
    }

        /* Primera columna (Fase del presupuesto) */
        .table-dark td:first-child {
            font-weight: 600;
            background: rgba(255, 255, 255, 0.05);
            border-right: 1px solid rgba(255, 255, 255, 0.15);
        }

        /* Columna método tradicional */
        .table-dark td:nth-child(2) {
            background: rgba(239, 68, 68, 0.05);
            color: #ffcccb !important;
        }

        /* Columna Presupuesta Reformas */
        .table-dark td:nth-child(3) {
            background: rgba(16, 185, 129, 0.05);
            color: #c6f6d5 !important;
        }

    /* Iconos en las celdas */
    .table-dark .text-danger {
        color: #ff6b6b !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .table-dark .text-success {
        color: #51cf66 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .table-dark .text-warning {
        color: #ffd43b !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* Fila destacada (table-active) */
    .table-dark .table-active {
        background: rgba(99, 102, 241, 0.2) !important;
        border: 2px solid rgba(99, 102, 241, 0.4) !important;
    }

        .table-dark .table-active td {
            color: #ffffff !important;
            font-weight: 700;
            font-size: 1.05rem;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        }

        .table-dark .table-active strong {
            font-weight: 800;
        }

/* Efectos hover */
.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* ===================
   ICONOS MEJORADOS
=================== */

.table-dark i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.fas.fa-clock {
    animation: tick 2s infinite;
}

@keyframes tick {
    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.fas.fa-check-circle,
.fas.fa-bolt,
.fas.fa-rocket {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===================
   RESPONSIVE DESIGN
=================== */

@media (max-width: 768px) {
    .comparison-table {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .table-dark th,
    .table-dark td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .table-dark th {
        font-size: 0.85rem;
    }

    .table-dark .table-active td {
        font-size: 0.9rem;
    }

    .table-dark i {
        font-size: 1rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 576px) {
    .comparison-table {
        padding: 0.5rem;
    }

    .table-dark th,
    .table-dark td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .table-dark th {
        font-size: 0.8rem;
    }

        /* En móvil muy pequeño, ajustar headers */
        .table-dark th:nth-child(2),
        .table-dark th:nth-child(3) {
            font-size: 0.7rem;
            padding: 0.5rem 0.15rem;
        }
}

/* ===================
   EFECTOS ADICIONALES
=================== */

/* Brillo sutil en la tabla */
.comparison-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Separadores mejorados entre columnas */
.table-dark td:nth-child(2) {
    border-right: 2px solid rgba(239, 68, 68, 0.3);
}

.table-dark td:nth-child(3) {
    border-left: 2px solid rgba(16, 185, 129, 0.3);
}

/* ===================
   LOGO PERSONALIZADO
=================== */

/* Logo en la navegación */
.brand-logo {
    height: 40px;
    width: auto;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Efecto hover para el logo en navegación */
.navbar-brand:hover .brand-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

/* Logo en el footer */
.footer-logo {
    height: 28px;
    width: auto;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

    /* Efecto hover para el logo en footer */
    .footer-logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.4));
    }

    /* Ajustes para diferentes tipos de logo */

    /* Si tu logo es oscuro y necesita invertirse en temas oscuros */
    .brand-logo.dark-logo,
    .footer-logo.dark-logo {
        filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    /* Si tu logo ya es claro/blanco */
    .brand-logo.light-logo,
    .footer-logo.light-logo {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

/* Si tu logo tiene transparencia y quieres un fondo sutil */
.brand-logo.with-bg {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 0.375rem;
    backdrop-filter: blur(5px);
}

/* Si tu logo es SVG y quieres colorear con CSS */
.brand-logo.svg-logo,
.footer-logo.svg-logo {
    fill: var(--primary-color);
    transition: fill var(--transition-normal);
}

.navbar-brand:hover .brand-logo.svg-logo {
    fill: #ffffff;
}

/* ===================
   RESPONSIVE PARA LOGOS
=================== */

/* En tablets */
@media (max-width: 992px) {
    .brand-logo {
        height: 35px;
    }

    .footer-logo {
        height: 24px;
    }
}

/* En móviles */
@media (max-width: 768px) {
    .brand-logo {
        height: 32px;
    }

    .footer-logo {
        height: 22px;
    }

    /* Ajustar el brand en móvil si es necesario */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
}

/* En móviles muy pequeños */
@media (max-width: 576px) {
    .brand-logo {
        height: 28px;
    }

    .footer-logo {
        height: 20px;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }
}

/* ===================
   VARIACIONES ADICIONALES
=================== */

/* Logo con animación de entrada */
.brand-logo.animate-in {
    animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Logo con efecto de brillo ocasional */
.brand-logo.shine {
    position: relative;
    overflow: hidden;
}

    .brand-logo.shine::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Para logos con formato específico */

/* Logo cuadrado */
.brand-logo.square {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Logo rectangular horizontal */
.brand-logo.rectangle {
    height: 35px;
    max-width: 120px;
    object-fit: contain;
}

/* Logo circular */
.brand-logo.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===================
   FALLBACK SI LA IMAGEN NO CARGA
=================== */

.brand-logo:not([src]),
.brand-logo[src=""],
.footer-logo:not([src]),
.footer-logo[src=""] {
    display: none;
}

    /* Mostrar icono de fallback si la imagen falla */
    .brand-logo:not([src]) + .fallback-icon,
    .brand-logo[src=""] + .fallback-icon {
        display: inline-block;
    }

.fallback-icon {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===================
   CORRECCIÓN MODAL DEMO EN VIVO
=================== */

/* Modal principal */
#demoModal .modal-content {
    background: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Header del modal */
#demoModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 1.5rem;
}

#demoModal .modal-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.25rem;
}

#demoModal .btn-close-white {
    filter: brightness(1.2);
}

/* Body del modal */
#demoModal .modal-body {
    background: #1f2937;
    padding: 2rem !important;
}

/* ===================
   FORMULARIO DEL CLIENTE
=================== */

#demoModal h6 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

    #demoModal h6.text-primary {
        color: var(--primary-color) !important;
        background: rgba(99, 102, 241, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(99, 102, 241, 0.3);
    }

    #demoModal h6.text-success {
        color: #10b981 !important;
        background: rgba(16, 185, 129, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

/* Inputs del formulario */
#demoModal .form-control,
#demoModal .form-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #1f2937 !important;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    #demoModal .form-control:focus,
    #demoModal .form-select:focus {
        background: #ffffff !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
        color: #1f2937 !important;
    }

    #demoModal .form-control::placeholder {
        color: #6b7280 !important;
        font-weight: 400;
    }

/* Botón generar presupuesto */
#demoModal #generateBudget {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

    #demoModal #generateBudget:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

/* ===================
   RESULTADO INSTANTÁNEO
=================== */

/* Tarjeta de resultado */
#demoModal #budgetResult .card {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

#demoModal #budgetResult .card-body {
    padding: 1.5rem;
}

/* Título del resultado */
#demoModal #budgetResult .card-title {
    color: #10b981 !important;
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Precios y datos */
#demoModal #budgetResult .display-6 {
    font-size: 2rem;
    font-weight: 800;
}

#demoModal #budgetResult .text-primary {
    color: var(--primary-color) !important;
}

#demoModal #budgetResult .text-info {
    color: #3b82f6 !important;
}

#demoModal #budgetResult small {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Línea separadora */
#demoModal #budgetResult hr {
    border-color: rgba(255, 255, 255, 0.3) !important;
    margin: 1.5rem 0;
}

/* Lista de características */
#demoModal #budgetResult .d-flex {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

    #demoModal #budgetResult .d-flex:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    #demoModal #budgetResult .d-flex span {
        color: rgba(255, 255, 255, 0.9) !important;
    }

/* Iconos de las características */
#demoModal #budgetResult .fas.fa-magic {
    color: #fbbf24 !important;
    font-size: 1.25rem;
}

#demoModal #budgetResult .fas.fa-envelope {
    color: #3b82f6 !important;
    font-size: 1.25rem;
}

#demoModal #budgetResult .fab.fa-whatsapp {
    color: #10b981 !important;
    font-size: 1.25rem;
}

/* ===================
   ESTADO DE CARGA
=================== */

#demoModal #loadingResult {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

    #demoModal #loadingResult .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3em;
        color: var(--primary-color) !important;
    }

    #demoModal #loadingResult p {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 600;
        margin-top: 1rem;
        font-size: 1rem;
    }

/* ===================
   FOOTER DEL MODAL
=================== */

#demoModal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
}

    #demoModal .modal-footer small {
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: 500;
    }

    #demoModal .modal-footer .fas.fa-clock {
        color: var(--primary-color) !important;
    }

    #demoModal .modal-footer .btn-primary {
        background: var(--gradient-primary) !important;
        border: none !important;
        font-weight: 700;
        padding: 0.75rem 2rem;
        border-radius: 2rem;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        transition: all 0.3s ease;
    }

        #demoModal .modal-footer .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
        }

/* ===================
   ANIMACIONES PARA EL MODAL
=================== */

/* Animación de entrada para el resultado */
#demoModal #budgetResult {
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de pulso para el spinner */
#demoModal #loadingResult .spinner-border {
    animation: loadingPulse 2s infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===================
   RESPONSIVE PARA MODAL
=================== */

@media (max-width: 768px) {
    #demoModal .modal-dialog {
        margin: 1rem;
        max-width: none;
    }

    #demoModal .modal-body {
        padding: 1.5rem !important;
    }

    #demoModal .row {
        flex-direction: column;
    }

    #demoModal .col-md-6:first-child {
        margin-bottom: 2rem;
    }

    #demoModal #budgetResult .display-6 {
        font-size: 1.5rem;
    }

    #demoModal h6 {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    #demoModal .modal-body {
        padding: 1rem !important;
    }

    #demoModal .modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

        #demoModal .modal-footer .btn-primary {
            width: 100%;
        }
}

/* ===================
   FOOTER MEJORADO
=================== */

footer.bg-darker {
    background: var(--darker-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Efecto sutil en la parte superior */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* ===================
   LOGO Y TEXTO PRINCIPAL
=================== */

footer .fw-bold {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

    footer .fw-bold .text-primary {
        color: var(--primary-color) !important;
        font-weight: 700;
    }

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Logo del footer */
.footer-logo {
    height: 32px;
    width: auto;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

    .footer-logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    }

/* ===================
   REDES SOCIALES MEJORADAS
=================== */

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        color: rgba(255, 255, 255, 0.7) !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
        transition: all var(--transition-normal);
        font-size: 1.25rem;
        backdrop-filter: blur(10px);
        position: relative;
        overflow: hidden;
    }

        /* Efecto de brillo en hover */
        .social-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .social-links a:hover::before {
            left: 100%;
        }

        /* Colores específicos para cada red social */
        .social-links a:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            text-decoration: none;
        }

        /* LinkedIn */
        .social-links a[href*="linkedin"]:hover,
        .social-links a .fa-linkedin:hover {
            color: #0077b5 !important;
            background: rgba(0, 119, 181, 0.1);
            border-color: rgba(0, 119, 181, 0.3);
            box-shadow: 0 8px 25px rgba(0, 119, 181, 0.2);
        }

        /* Twitter/X */
        .social-links a[href*="twitter"]:hover,
        .social-links a .fa-twitter:hover {
            color: #1da1f2 !important;
            background: rgba(29, 161, 242, 0.1);
            border-color: rgba(29, 161, 242, 0.3);
            box-shadow: 0 8px 25px rgba(29, 161, 242, 0.2);
        }

        /* Facebook */
        .social-links a[href*="facebook"]:hover,
        .social-links a .fa-facebook:hover {
            color: #1877f2 !important;
            background: rgba(24, 119, 242, 0.1);
            border-color: rgba(24, 119, 242, 0.3);
            box-shadow: 0 8px 25px rgba(24, 119, 242, 0.2);
        }

        /* Instagram (si se añade) */
        .social-links a[href*="instagram"]:hover,
        .social-links a .fa-instagram:hover {
            color: #e4405f !important;
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            border-color: rgba(228, 64, 95, 0.3);
            box-shadow: 0 8px 25px rgba(228, 64, 95, 0.2);
        }

        /* YouTube (si se añade) */
        .social-links a[href*="youtube"]:hover,
        .social-links a .fa-youtube:hover {
            color: #ff0000 !important;
            background: rgba(255, 0, 0, 0.1);
            border-color: rgba(255, 0, 0, 0.3);
            box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
        }

/* ===================
   INFORMACIÓN ADICIONAL (OPCIONAL)
=================== */

/* Si quieres añadir más información al footer */
.footer-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none;
        font-weight: 500;
        transition: color var(--transition-normal);
    }

        .footer-links a:hover {
            color: var(--primary-color) !important;
            text-decoration: none;
        }

.footer-copyright {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.875rem;
    text-align: center;
}

/* ===================
   RESPONSIVE FOOTER
=================== */

@media (max-width: 768px) {
    footer .row {
        text-align: center;
    }

    footer .col-md-6:first-child {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

        .social-links a {
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
        }

    footer .fw-bold {
        font-size: 1.5rem;
    }

    .footer-logo {
        height: 36px;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 2rem 0 !important;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

        .social-links a {
            width: 45px;
            height: 45px;
            font-size: 1.25rem;
        }

    footer .fw-bold {
        font-size: 1.25rem;
    }

    .footer-logo {
        height: 30px;
    }
}

/* ===================
   ANIMACIONES ADICIONALES
=================== */

/* Animación sutil para el logo */
@keyframes logoBreath {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.footer-logo {
    animation: logoBreath 4s ease-in-out infinite;
}

/* Efecto de aparición escalonada para redes sociales */
.social-links a {
    animation: socialFadeIn 0.6s ease-out backwards;
}

    .social-links a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .social-links a:nth-child(2) {
        animation-delay: 0.2s;
    }

    .social-links a:nth-child(3) {
        animation-delay: 0.3s;
    }

    .social-links a:nth-child(4) {
        animation-delay: 0.4s;
    }

@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================
   CORRECCIÓN CTA SECTION
=================== */

/* Sección CTA principal */
.cta-section,
section.bg-dark.text-center {
    background: var(--dark-bg) !important;
    position: relative;
    overflow: hidden;
}

    /* Efecto de fondo sutil */
    .cta-section::before,
    section.bg-dark.text-center::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
        z-index: 1;
    }

    .cta-section .container,
    section.bg-dark.text-center .container {
        position: relative;
        z-index: 2;
    }

    /* ===================
   TÍTULO CTA
=================== */

    .cta-section h2,
    section.bg-dark.text-center h2 {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-weight: 800;
        line-height: 1.2;
    }

        .cta-section h2 .text-primary,
        section.bg-dark.text-center h2 .text-primary {
            color: #ffffff !important;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
            position: relative;
        }

            /* Efecto de resplandor para la palabra "Revolucionar" */
            .cta-section h2 .text-primary::after,
            section.bg-dark.text-center h2 .text-primary::after {
                content: 'Revolucionar';
                position: absolute;
                top: 0;
                left: 0;
                background: var(--gradient-primary);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                filter: blur(8px);
                opacity: 0.5;
                z-index: -1;
                animation: textGlow 3s ease-in-out infinite alternate;
            }

@keyframes textGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

/* ===================
   DESCRIPCIÓN CTA
=================== */

.cta-section .lead,
section.bg-dark.text-center .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================
   BOTONES CTA MEJORADOS
=================== */

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Botón principal - Empezar Prueba Gratuita */
.cta-section .cta-button,
section.bg-dark.text-center .cta-button {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .cta-section .cta-button::before,
    section.bg-dark.text-center .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .cta-section .cta-button:hover,
    section.bg-dark.text-center .cta-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
        color: #ffffff !important;
        text-decoration: none;
    }

        .cta-section .cta-button:hover::before,
        section.bg-dark.text-center .cta-button:hover::before {
            left: 100%;
        }

/* Botón secundario - Hablar con Experto */
.cta-section .btn-outline-light,
section.bg-dark.text-center .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .cta-section .btn-outline-light::before,
    section.bg-dark.text-center .btn-outline-light::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .cta-section .btn-outline-light:hover,
    section.bg-dark.text-center .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
        color: #ffffff !important;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

        .cta-section .btn-outline-light:hover::before,
        section.bg-dark.text-center .btn-outline-light:hover::before {
            transform: scaleX(1);
        }

/* ===================
   GARANTÍAS Y BENEFICIOS
=================== */

.cta-section .text-muted,
section.bg-dark.text-center .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: inline-block;
    margin-top: 1.5rem;
}

    .cta-section .text-muted .fa-shield-alt,
    section.bg-dark.text-center .text-muted .fa-shield-alt {
        color: #10b981 !important;
        font-size: 1.1rem;
        margin-right: 0.75rem;
        filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.3));
    }

/* Separadores entre garantías */
.cta-section .text-muted,
section.bg-dark.text-center .text-muted {
    position: relative;
}

.guarantees-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
}

    .guarantee-item:not(:last-child)::after {
        content: '•';
        color: var(--primary-color);
        margin-left: 1.5rem;
        font-weight: 700;
    }

/* ===================
   EFECTOS ADICIONALES
=================== */

/* Pulso sutil para atraer atención */
.cta-section .cta-button,
section.bg-dark.text-center .cta-button {
    animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
    }

    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    }
}

/* Iconos con animación */
.cta-section .btn i,
section.bg-dark.text-center .btn i {
    transition: transform 0.3s ease;
}

.cta-section .btn:hover i,
section.bg-dark.text-center .btn:hover i {
    transform: scale(1.1);
}

.cta-section .fa-rocket,
section.bg-dark.text-center .fa-rocket {
    animation: rocketFloat 2s ease-in-out infinite alternate;
}

@keyframes rocketFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-2px);
    }
}

/* ===================
   RESPONSIVE CTA
=================== */

@media (max-width: 768px) {
    .cta-section h2,
    section.bg-dark.text-center h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-section .btn,
    section.bg-dark.text-center .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
    }

    .cta-section .lead,
    section.bg-dark.text-center .lead {
        font-size: 1.1rem;
    }

    .guarantees-list {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .guarantee-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .cta-section h2,
    section.bg-dark.text-center h2 {
        font-size: 2rem;
    }

    .cta-section .text-muted,
    section.bg-dark.text-center .text-muted {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .cta-section .btn,
    section.bg-dark.text-center .btn {
        font-size: 1rem;
        padding: 0.875rem 1.75rem;
    }
}

/* ===================
   MEJORAS MÓVIL - PRESUPUESTA REFORMAS
=================== */

/* ===================
   NAVEGACIÓN MÓVIL MEJORADA
=================== */

@media (max-width: 991.98px) {
    /* Navbar collapse mejorado */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px);
        border-radius: 1rem;
        margin-top: 1rem;
        padding: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .navbar-nav .nav-link:hover {
            background: rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.4);
            transform: translateX(10px);
        }

    /* Botón CTA en menú móvil */
    .navbar-nav .btn {
        margin-top: 1rem;
        width: 100%;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        font-weight: 700;
    }
}

/* ===================
   HERO SECTION MÓVIL
=================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.15;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Badge del hero en móvil */
    .hero-section .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        display: block;
        text-align: center;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* Estadísticas del hero apiladas */
    .hero-stats {
        padding: 1.25rem;
        margin: 2rem 0;
    }

        .hero-stats .col-4 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 1rem;
            padding: 0.75rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

            .hero-stats .col-4:last-child {
                margin-bottom: 0;
            }

    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Botones del hero en móvil */
    .hero-actions {
        text-align: center;
        margin-top: 2rem;
    }

        .hero-actions .btn {
            display: block;
            width: 100%;
            max-width: 300px;
            margin: 0 auto 1rem auto;
            padding: 1rem 1.5rem;
            font-size: 1rem;
        }

    /* Tarjetas flotantes en móvil - Rediseño completo */
    .hero-visual {
        margin-top: 3rem;
        height: auto;
        display: block;
    }

    .floating-card {
        position: relative !important;
        animation: none;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

        .floating-card .card {
            margin: 0 auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

    /* Orden específico en móvil */
    .card-1 {
        order: 1;
    }

    .card-2 {
        order: 2;
        margin-bottom: 2rem;
    }

    .card-3 {
        order: 3;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.2;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-stats .col-4 {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===================
   FEATURES SECTION MÓVIL
=================== */

@media (max-width: 768px) {
    #features {
        padding: 3rem 0;
    }

        #features h2 {
            font-size: 2rem;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        #features .lead {
            font-size: 1rem;
            text-align: center;
            margin-bottom: 2.5rem;
        }

    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1.5rem auto;
    }

    .feature-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Badges y elementos en móvil */
    .feature-benefits .badge,
    .role-badges .badge {
        margin-bottom: 0.5rem;
        display: inline-block;
        margin-right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .feature-states {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .integration-types,
    .channel-icons {
        text-align: center;
        margin-top: 1rem;
    }

        .integration-types i,
        .channel-icons i {
            font-size: 1.5rem;
            margin: 0 0.5rem;
        }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-card h4 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* ===================
   BENEFITS SECTION MÓVIL
=================== */

@media (max-width: 768px) {
    #benefits {
        padding: 3rem 0;
    }

        #benefits h2 {
            font-size: 2rem;
            line-height: 1.2;
            margin-bottom: 2rem;
            text-align: center;
        }

    /* Benefits list reordenada */
    .benefits-list {
        margin-top: 2rem;
        order: 2;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        background: rgba(255, 255, 255, 0.15) !important;
    }

    .benefit-number {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .benefit-content h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .benefit-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Calculadora en móvil */
    .savings-calculator {
        padding: 1.5rem;
        margin-top: 2rem;
        order: 1;
    }

    .calculator-header h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .result-item {
        padding: 0.75rem 0;
        font-size: 0.9rem;
    }

        .result-item strong {
            font-size: 1rem;
        }

        .result-item:last-child {
            margin: 0 -1.5rem;
            padding: 1rem 1.5rem;
        }

            .result-item:last-child strong {
                font-size: 1.1rem;
            }

    /* Botón CTA en benefits */
    #benefits .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .savings-calculator {
        padding: 1.25rem;
    }

    .result-item:last-child {
        margin: 0 -1.25rem;
        padding: 1rem 1.25rem;
    }

    .benefit-item {
        padding: 1.25rem;
    }
}

/* ===================
   COMPARISON TABLE MÓVIL
=================== */

@media (max-width: 768px) {
    .comparison-table {
        padding: 1rem;
        overflow-x: auto;
    }

    .table-responsive {
        font-size: 0.8rem;
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .table-dark th,
    .table-dark td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .table-dark th {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .table-dark .table-active td {
        font-size: 0.8rem;
        font-weight: 700;
    }

    /* Primera columna más ancha en móvil */
    .table-dark td:first-child,
    .table-dark th:first-child {
        min-width: 120px;
        white-space: normal;
        line-height: 1.3;
    }

    .table-dark i {
        font-size: 0.9rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 576px) {
    .comparison-table {
        padding: 0.75rem;
        margin: 0 -0.5rem;
    }

    .table-dark th,
    .table-dark td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

        .table-dark th:nth-child(2),
        .table-dark th:nth-child(3) {
            font-size: 0.65rem;
            padding: 0.5rem 0.15rem;
        }

        .table-dark td:first-child,
        .table-dark th:first-child {
            min-width: 100px;
            font-size: 0.7rem;
        }
}

/* ===================
   DEMO SECTION MÓVIL
=================== */

@media (max-width: 768px) {
    #demo {
        padding: 3rem 0;
    }

        #demo h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

        #demo .lead {
            font-size: 1rem;
            margin-bottom: 2rem;
        }

    .demo-container {
        gap: 2rem;
    }

    .demo-phone {
        width: 280px;
        height: 500px;
        padding: 1rem;
        margin: 0 auto;
    }

    .demo-step {
        padding: 1.25rem;
    }

    .form-demo h5 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .form-demo .form-control,
    .form-demo .form-select {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .demo-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .demo-btn {
        width: 200px;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .ai-image-placeholder {
        height: 100px;
    }

        .ai-image-placeholder::after {
            font-size: 1.5rem;
        }
}

@media (max-width: 576px) {
    .demo-phone {
        width: 260px;
        height: 450px;
        padding: 0.75rem;
    }

    .demo-step {
        padding: 1rem;
    }

    .demo-btn {
        width: 180px;
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    .form-demo .form-control,
    .form-demo .form-select {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* ===================
   CTA SECTION MÓVIL
=================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }

        .cta-section h2 {
            font-size: 2.25rem;
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }

        .cta-section .lead {
            font-size: 1rem;
            margin-bottom: 2rem;
        }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin: 0 auto;
    }

    .cta-section .text-muted {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    .guarantees-list {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .guarantee-item:not(:last-child)::after {
        display: none;
    }

    .guarantee-item {
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .cta-section h2 {
        font-size: 1.875rem;
    }

    .cta-section .text-muted {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .cta-section .btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.75rem;
        max-width: 280px;
    }
}

/* ===================
   MODAL DEMO MÓVIL
=================== */

@media (max-width: 768px) {
    #demoModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #demoModal .modal-body {
        padding: 1.5rem !important;
    }

    #demoModal .row {
        flex-direction: column;
    }

    #demoModal .col-md-6:first-child {
        margin-bottom: 2rem;
    }

    #demoModal h6 {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }

    #demoModal .form-control,
    #demoModal .form-select {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    #demoModal #budgetResult .display-6 {
        font-size: 1.5rem;
    }

    #demoModal #budgetResult .card-body {
        padding: 1.25rem;
    }

    #demoModal .modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }

        #demoModal .modal-footer .btn-primary {
            width: 100%;
            max-width: 250px;
        }

        #demoModal .modal-footer small {
            order: 2;
            margin-top: 0.5rem;
        }
}

@media (max-width: 576px) {
    #demoModal .modal-dialog {
        margin: 0.25rem;
    }

    #demoModal .modal-body {
        padding: 1.25rem !important;
    }

    #demoModal h6 {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    #demoModal .form-control,
    #demoModal .form-select {
        font-size: 0.85rem;
        padding: 0.65rem;
    }

    #demoModal #budgetResult .display-6 {
        font-size: 1.25rem;
    }

    #demoModal .modal-footer {
        padding: 1rem;
    }
}

/* ===================
   FOOTER MÓVIL
=================== */

@media (max-width: 768px) {
    footer {
        padding: 2rem 0 !important;
        text-align: center;
    }

        footer .row {
            flex-direction: column;
            gap: 1.5rem;
        }

        footer .col-md-6:first-child {
            margin-bottom: 0;
        }

        footer .fw-bold {
            font-size: 1.375rem;
            margin-bottom: 0.5rem;
        }

    .footer-logo {
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.25rem;
        margin-top: 1rem;
    }

        .social-links a {
            width: 48px;
            height: 48px;
            font-size: 1.375rem;
        }

    /* Footer info en móvil */
    .footer-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

        .footer-info .row {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

        .footer-links a {
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: inline-block;
        }
}

@media (max-width: 576px) {
    footer {
        padding: 1.5rem 0 !important;
    }

        footer .fw-bold {
            font-size: 1.25rem;
        }

    .footer-logo {
        height: 28px;
    }

    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

        .social-links a {
            width: 44px;
            height: 44px;
            font-size: 1.25rem;
        }

    .footer-links {
        gap: 0.5rem;
    }

        .footer-links a {
            font-size: 0.85rem;
            padding: 0.4rem 0.8rem;
        }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ===================
   UTILIDADES MÓVIL GENERALES
=================== */

/* Espaciado vertical mejorado en móvil */
@media (max-width: 768px) {

    section {
        padding: 3rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Headers generales */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .display-3 {
        font-size: 2.25rem;
        line-height: 1.15;
    }

    /* Lead text */
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Botones generales */
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    /* Cards generales */
    .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2.5rem 0;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===================
   NOTIFICACIONES MÓVIL
=================== */

@media (max-width: 768px) {
    .notification {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        max-width: none;
        font-size: 0.9rem;
    }

    .notification-content {
        padding-right: 2.5rem;
    }
}

@media (max-width: 576px) {
    .notification {
        left: 0.5rem;
        right: 0.5rem;
        font-size: 0.85rem;
        padding: 0.875rem 1.25rem;
    }
}

/* ===================
   MEJORAS DE INTERACCIÓN TÁCTIL
=================== */

/* Áreas de toque más grandes en móvil */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Evita zoom en iOS */
    }

    /* Enlaces de redes sociales */
    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }

    /* Demo buttons */
    .demo-btn {
        min-height: 48px;
    }
}

/* ===================
   OPTIMIZACIONES DE RENDIMIENTO MÓVIL
=================== */

@media (max-width: 768px) {
    /* Reducir animaciones complejas en móvil */
    .floating-card,
    .hero-bg,
    .hero-section::before {
        animation: none;
    }

    /* Simplificar efectos hover en móvil */
    .feature-card:hover,
    .benefit-item:hover {
        transform: none;
    }

    /* Reducir blur effects en móvil para mejor rendimiento */
    .glass-nav,
    .glass-effect {
        backdrop-filter: blur(10px);
    }
}

/* ===================
   STICKY ELEMENTS MÓVIL
=================== */

@media (max-width: 768px) {
    /* Navegación sticky optimizada */
    .navbar.fixed-top {
        backdrop-filter: blur(15px);
    }

    /* Mejora del z-index en móvil */
    .navbar {
        z-index: 1030;
    }

    .modal {
        z-index: 1050;
    }

    .notification {
        z-index: 1040;
    }
}
/* ===================
   CORRECCIÓN HERO SECTION MÓVIL - REDUCIR ESPACIADO
=================== */

/* Ajustar altura mínima en tablets y móviles */
@media (max-width: 992px) {
    .hero-section {
        min-height: 85vh; /* Reducir de 100vh */
        padding-top: 80px;
        padding-bottom: 1rem; /* Reducir padding inferior */
    }
}

@media (max-width: 768px) {

    #tarjetas {
        display: none !important;
    }
    .hero-section {
        min-height: auto; /* Permitir altura natural */
        padding-top: 100px;
        padding-bottom: 1rem;
    }

        /* Reducir espaciado interno de la row */
        .hero-section .row {
            --bs-gutter-y: 2rem; /* Reducir gap vertical entre columnas */
        }

    /* Optimizar espaciado del hero-content */
    .hero-content {
        margin-bottom: 2rem; /* Reducir margen inferior */
    }

    /* Reducir margen del hero-actions */
    .hero-actions {
        margin-top: 1.5rem; /* Reducir de 2rem */
        margin-bottom: 1rem; /* Añadir margen inferior controlado */
    }

    /* Reducir espaciado del hero-visual */
    .hero-visual {
        margin-top: 1.5rem; /* Reducir de 3rem */
        margin-bottom: 1rem; /* Controlar margen inferior */
    }

    /* Optimizar padding de las tarjetas flotantes */
    .floating-card .card {
        margin-bottom: 1rem; /* Reducir de 1.5rem */
    }

    /* Reducir espaciado de las estadísticas */
    .hero-stats {
        margin-bottom: 1.5rem; /* Reducir de 2rem */
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 0.5rem;
    }

        .hero-section .row {
            --bs-gutter-y: 1.5rem;
        }

    .hero-content {
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-visual {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .floating-card .card {
        margin-bottom: 0.75rem;
    }

    /* Reducir espaciado del badge */
    .hero-section .badge {
        margin-bottom: 1rem; /* Reducir de 1.5rem */
    }

    /* Optimizar título */
    .hero-title {
        margin-bottom: 1rem; /* Reducir de 1.5rem */
    }

    /* Optimizar lead text */
    .hero-content .lead {
        margin-bottom: 1.5rem; /* Reducir de 2rem */
    }
}

/* ===================
   AJUSTE ESPECÍFICO PARA ELIMINAR ESPACIO EXCESIVO
=================== */

/* Anular específicamente la clase min-vh-100 en móvil - FORZADO */
@media (max-width: 768px) {
    .hero-section .container .row.align-items-center.min-vh-100.py-5 {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Si el selector anterior no funciona, usar estos más genéricos */
    .hero-section .row[class*="min-vh"] {
        min-height: auto !important;
    }

    .hero-section .container > .row {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Forzar altura automática en todo el hero */
    .hero-section * {
        min-height: auto !important;
    }

    .hero-section {
        height: auto !important;
        min-height: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-section .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ===================
   AJUSTE PARA LA TRANSICIÓN A LA SIGUIENTE SECCIÓN
=================== */

/* Reducir espaciado entre hero y features section */
@media (max-width: 768px) {

    #features {
        padding-top: 2rem !important; /* Reducir de 3rem */
    }

    /* Si quieres añadir una transición visual sutil */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
        z-index: 10;
    }
}

@media (max-width: 576px) {
    #features {
        padding-top: 1.5rem !important;
    }
}

/* Sobrescribir estilos del botón en navbar para que sea igual al index */
.navbar .btn.btn-primary.rounded-pill {
    /* Resetear valores específicos que están interfiriendo */
    font-weight: 400 !important; /* Bootstrap default, no 600 */
    padding: 0.375rem 1.5rem !important; /* px-4 = 1.5rem, usar padding Bootstrap estándar */
    border-radius: 50rem !important; /* rounded-pill de Bootstrap */
    font-size: 1rem !important; /* Tamaño Bootstrap estándar */
    line-height: 1.5 !important; /* Line-height Bootstrap estándar */
    /* Asegurar colores Bootstrap exactos */
    background-color: #0d6efd !important; /* Bootstrap primary exact */
    border-color: #0d6efd !important;
    color: #fff !important;
    /* Eliminar estilos personalizados que puedan interferir */
    position: static !important; /* No relative */
    overflow: visible !important; /* No hidden */
    transform: none !important; /* No transformaciones */
    box-shadow: none !important; /* Sin sombras personalizadas */
    /* Transición Bootstrap estándar */
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

    /* Hover states Bootstrap estándar */
    .navbar .btn.btn-primary.rounded-pill:hover {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
        color: #fff !important;
        transform: none !important; /* Sin transformaciones hover */
        box-shadow: none !important; /* Sin sombras hover personalizadas */
    }

    /* Focus state Bootstrap estándar */
    .navbar .btn.btn-primary.rounded-pill:focus {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
        color: #fff !important;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    }

    /* Eliminar pseudo-elementos que puedan interferir */
    .navbar .btn.btn-primary.rounded-pill::before,
    .navbar .btn.btn-primary.rounded-pill::after {
        display: none !important;
    }