/* ============================================
   MANAKIN LABS - PREMIUM STYLES 2025
   ============================================ */

/* ============================================
   1. VARIABLES & ROOT
   ============================================ */
:root {
    /* Colors */
    --primary-green: #00C853;
    --secondary-green: #69F0AE;
    --dark-green: #00A843;
    --accent-blue: #00B8D4;
    --accent-purple: #7C4DFF;
    
    --dark-bg: #0A0E27;
    --darker-bg: #060816;
    --card-bg: rgba(20, 25, 50, 0.8);
    --card-hover-bg: rgba(30, 35, 60, 0.9);
    
    --white: #FFFFFF;
    --light-text: #E0E0E0;
    --muted-text: #9E9E9E;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00C853 0%, #00B8D4 100%);
    --gradient-secondary: linear-gradient(135deg, #7C4DFF 0%, #00C853 100%);
    --gradient-dark: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 200, 83, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;

    /* n8n Chat widget theme */
    --chat--color--primary: var(--primary-green);
    --chat--color--primary-shade-50: #00b74a;
    --chat--color--primary--shade-100: #009f3d;
    --chat--color--secondary: var(--accent-blue);
    --chat--color-secondary-shade-50: #0095b3;
    --chat--color-white: var(--white);
    --chat--color-light: rgba(255, 255, 255, 0.9);
    --chat--color-light-shade-50: rgba(255, 255, 255, 0.75);
    --chat--color-light-shade-100: rgba(255, 255, 255, 0.45);
    --chat--color-medium: rgba(255, 255, 255, 0.35);
    --chat--color-dark: var(--darker-bg);
    --chat--color-disabled: rgba(255, 255, 255, 0.4);
    --chat--color-typing: rgba(255, 255, 255, 0.7);

    --chat--spacing: 1rem;
    --chat--border-radius: 18px;
    --chat--transition-duration: 0.25s;

    --chat--window--width: 420px;
    --chat--window--height: 560px;

    --chat--header-height: auto;
    --chat--header--padding: 1.25rem;
    --chat--header--background: rgba(6, 8, 22, 0.96);
    --chat--header--color: var(--white);

    --chat--heading--font-size: 1.4rem;
    --chat--subtitle--font-size: 0.95rem;
    --chat--subtitle--line-height: 1.6;

    --chat--textarea--height: 52px;

    --chat--message--font-size: 0.95rem;
    --chat--message--padding: 0.85rem 1rem;
    --chat--message--border-radius: 16px;
    --chat--message-line-height: 1.7;
    --chat--message--bot--background: rgba(255, 255, 255, 0.08);
    --chat--message--bot--color: var(--white);
    --chat--message--user--background: rgba(0, 200, 83, 0.18);
    --chat--message--user--color: var(--white);
    --chat--message--user--border: 1px solid rgba(0, 200, 83, 0.35);
    --chat--message--pre--background: rgba(0, 200, 83, 0.08);

    --chat--toggle--background: var(--primary-green);
    --chat--toggle--hover--background: #00b74a;
    --chat--toggle--active--background: #009f3d;
    --chat--toggle--color: var(--white);
    --chat--toggle--size: 60px;
    --chat--shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --chat--body--background: rgba(6, 8, 22, 0.92);
    --chat--footer--background: rgba(6, 8, 22, 0.96);
    --chat--footer--color: var(--white);
    --chat--window--border: 1px solid rgba(255, 255, 255, 0.12);
    --chat--window--border-radius: 22px;
    --chat--input--background: rgba(6, 8, 22, 0.85);
    --chat--input--text-color: var(--white);
    --chat--input--border: 1px solid rgba(255, 255, 255, 0.18);
    --chat--input--border-active: 1px solid rgba(0, 200, 83, 0.6);
    --chat--input--send--button--background: rgba(0, 200, 83, 0.18);
    --chat--input--send--button--color: var(--white);
    --chat--input--send--button--background-hover: rgba(0, 200, 83, 0.3);
    --chat--input--send--button--color-hover: var(--white);
    --chat--input--file--button--background: rgba(0, 200, 83, 0.12);
    --chat--input--file--button--color: var(--white);
    --chat--input--file--button--background-hover: rgba(0, 200, 83, 0.24);
    --chat--input--file--button--color-hover: var(--white);
    --chat--window--bottom: 30px;
    --chat--window--left: 30px;
    --chat--window--right: auto;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Selection */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* ============================================
   3. NAVBAR PREMIUM
   ============================================ */
.navbar {
    padding: 1.5rem 0;
    background: var(--darker-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--darker-bg) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.brand-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.brand-logo {
    height: 45px;
    width: auto;
    margin-right: 0.8rem;
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-logo:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 200, 83, 0.4));
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-green) !important;
    background: rgba(0, 200, 83, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

/* Dropdown Premium */
.dropdown-menu {
    background: rgba(20, 25, 50, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem !important;
    display: none;
    z-index: 1050;
}

.dropdown-menu.show {
    display: block;
}

/* Asegurar que el dropdown-toggle funcione */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-item {
    color: var(--light-text) !important;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(0, 200, 83, 0.15) !important;
    color: var(--primary-green) !important;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Navbar Button */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--white) !important;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 200, 83, 0.5);
    filter: brightness(1.1);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-green);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 83, 0.25);
}

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

/* ============================================
   4. HERO SECTION PREMIUM
   ============================================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.9) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-secondary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#typing-text {
    border-right: 3px solid var(--primary-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-green); }
    51%, 100% { border-color: transparent; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
}

.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.6);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-green);
}

.btn-hero-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

/* Hero Stats */
.hero-stats {
    margin-top: 4rem;
    --bs-gutter-y: 1.5rem;
}

.hero-stats > [class*="col-"] {
    display: flex;
}

.hero-stats > [class*="col-"] .stat-item {
    flex: 1;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
        position: absolute;
    bottom: 30px;
        left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* ============================================
   5. SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   6. SERVICES SECTION PREMIUM
   ============================================ */
.services-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    position: relative;
}

/* Ajuste para 4 tarjetas en una fila */
@media (min-width: 992px) {
    .services-section .row {
        justify-content: center;
    }
}

.service-card-premium {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.service-card-premium:hover {
    background: var(--card-hover-bg);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(0, 200, 83, 0.3);
}

.service-card-premium.featured {
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-glow);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.3);
}

.service-card-premium:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 200, 83, 0.5);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--font-secondary);
}

.service-description {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-features li i {
    color: var(--primary-green);
    font-size: 1rem;
}

.btn-service {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-service:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

.service-bg-icon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.service-card-premium * {
        position: relative;
    z-index: 1;
}

/* ============================================
   7. PROCESS SECTION
   ============================================ */
.process-section {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.process-section .row {
    display: flex;
    flex-wrap: wrap;
}

.process-section .row > [class*="col-"] {
    display: flex;
}

.process-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.2), transparent);
    transition: var(--transition-slow);
}

.process-card:hover::before {
    left: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 200, 83, 0.3);
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 200, 83, 0.1);
    font-family: var(--font-secondary);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

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

.process-icon i {
    font-size: 2rem;
    color: var(--white);
}

.process-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-card p {
    color: var(--light-text);
    margin: 0;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    flex: 1;
}

/* ============================================
   8. CLIENTS SECTION
   ============================================ */
.clients-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.clients-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.client-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    justify-content: space-between;
}

.client-logo-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition-normal);
}

.client-card:hover .client-logo-container {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition-normal);
}

.client-card:hover .client-logo {
    filter: brightness(1.2);
}

.client-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    font-family: var(--font-secondary);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-description {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-tags {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.client-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 20px;
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
        opacity: 1;
    transition: var(--transition-normal);
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ============================================
   9. TECHNOLOGIES SECTION
   ============================================ */
.tech-section {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: var(--card-hover-bg);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 200, 83, 0.2);
    border-color: rgba(0, 200, 83, 0.3);
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition-normal);
}

.tech-item:hover img {
    transform: rotateY(360deg);
}

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

.tech-item span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   10. CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.contact-info-card,
.contact-form-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-details a,
.contact-details p {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition-fast);
    margin: 0;
}

.contact-details a:hover {
    color: var(--primary-green);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

/* Form */
.form-label {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-custom i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    z-index: 2;
    pointer-events: none;
}

.form-control-custom {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition-normal);
    min-height: 52px;
}

.form-control-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

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

textarea.form-control-custom {
    resize: vertical;
    min-height: 150px;
    padding: 0.875rem 1rem;
    line-height: 1.6;
}

/* ============================================
   11. FOOTER PREMIUM
   ============================================ */
.footer-premium {
    background: var(--darker-bg);
    padding: 4rem 0 0;
}

.footer-content {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-secondary);
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-normal);
}

.footer-logo:hover {
    transform: scale(1.05) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 200, 83, 0.4));
}

.footer-description {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

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

.footer-links ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

.footer-copyright {
    color: var(--muted-text);
    margin: 0;
}

.footer-link {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-green);
}

.footer-divider {
    color: var(--muted-text);
    margin: 0 1rem;
}

/* ============================================
   12. FLOATING BUTTONS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-normal);
    animation: float-whatsapp 3s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .carousel-control-prev {
        left: -50px;
    }
    
    .carousel-control-next {
        right: -50px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .client-card {
        min-height: 480px;
        padding: 2.5rem 2rem;
    }
    
    .client-logo-container {
        width: 200px;
        height: 200px;
        padding: 1.5rem;
    }
}

/* Ajuste específico para móviles medianos */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-section {
        padding-top: 90px;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* Ajuste del Hero Section para móviles */
    .hero-section {
        padding-top: 100px;
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 3rem;
    }
    
    .brand-logo {
        height: 35px;
        margin-right: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        min-height: 40px;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
        gap: 0.8rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .service-card-premium {
        margin-bottom: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .client-card {
        padding: 2rem 1.5rem;
        min-height: 450px;
    }
    
    .client-logo-container {
        width: 150px;
        height: 150px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .client-name {
        font-size: 1.4rem;
        min-height: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .client-description {
        font-size: 0.95rem;
        min-height: 3rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }
    
    .client-tags {
        gap: 0.5rem;
    }
    
    .client-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
    }
    
    .tech-item img {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .navbar-collapse {
        background: var(--darker-bg);
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    /* Dropdown en móviles */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0.5rem !important;
        margin-left: 0;
        background: rgba(30, 35, 60, 0.95) !important;
        border: 1px solid rgba(0, 200, 83, 0.2);
    }
    
    .navbar-nav .nav-item.dropdown {
        position: relative;
    }
    
    /* Alineación en móviles */
    .navbar-nav.align-items-center {
        align-items: flex-start !important;
    }
    
    /* Ocultar scroll indicator en tablets para evitar overlap */
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    /* Ajuste del Hero Section para móviles pequeños */
    .hero-section {
        padding-top: 90px;
    }
    
    .hero-content {
        padding-top: 2.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        margin-bottom: 1.5rem !important;
    }
    
    /* Dropdown en móviles pequeños */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem !important;
        margin-left: 0;
        background: rgba(30, 35, 60, 0.95) !important;
        border: 1px solid rgba(0, 200, 83, 0.2);
        box-shadow: none;
    }
    
    .navbar-nav .nav-item.dropdown {
        position: relative;
        width: 100%;
    }
    
    .navbar-nav .dropdown-item {
        padding: 1rem 1.2rem;
    }
    
    .brand-logo {
        height: 30px;
        margin-right: 0.4rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        padding: 0 0.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .hero-stats > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Ocultar scroll indicator en móviles pequeños */
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .process-number {
        font-size: 3rem;
    }
    
    .client-name {
        font-size: 1.5rem;
    }
    
    .client-logo-container {
        width: 150px;
        height: 150px;
        padding: 1.2rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-social,
    .social-links {
        justify-content: center;
    }
}

/* ============================================
   14. UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* ============================================
   15. ANIMATIONS
   ============================================ */
@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);
    }
}

/* AOS Custom Animations */
[data-aos] {
    pointer-events: auto;
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .navbar {
        display: none !important;
    }
}

/* ============================================
   16. FORM PAGES STYLES
   ============================================ */

/* Form Hero Section */
.form-hero-section {
    min-height: 50vh;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.form-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.1) 0%, transparent 70%);
    z-index: 1;
}

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

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 50px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-secondary);
    margin: 1.5rem 0 1rem;
    color: var(--white);
}

.form-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Form Section Container */
.form-section-container {
    background: var(--dark-bg);
    padding: 60px 0;
}

/* Modern Form */
.modern-form {
    max-width: 100%;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.form-card:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.2);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-card-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.form-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: var(--font-secondary);
}

.form-card-subtitle {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0;
}

.form-card-body {
    padding: 0;
}

/* Form Labels and Inputs */
.form-label-modern {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    z-index: 2;
    pointer-events: none;
    font-size: 1rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition-normal);
    vertical-align: middle;
}

/* Inputs con icono */
.input-with-icon .form-control-modern {
    padding-left: 3rem;
}

.form-control-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

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

.form-control-modern:not(textarea):not(select) {
    height: 52px;
}

/* Asegurar que el texto no se corte en inputs */
input.form-control-modern {
    overflow: visible;
    text-overflow: clip;
}

textarea.form-control-modern {
    resize: vertical;
    min-height: 120px;
    padding: 0.875rem 1rem;
    line-height: 1.6;
}

select.form-control-modern {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300C853' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 1rem;
    line-height: 1.5;
    height: 52px;
    overflow: visible;
}

/* Select con icono dentro del input-with-icon */
.input-with-icon select.form-control-modern {
    padding-left: 3rem;
    padding-right: 2.5rem;
}

/* Prevenir overflow en selects */
select.form-control-modern::-ms-expand {
    display: none;
}

/* Asegurar que el texto no se corte */
select.form-control-modern {
    text-overflow: clip;
    white-space: nowrap;
    overflow: visible;
}

/* Opciones de los menús desplegables */
select.form-control-modern option {
    background: var(--card-bg);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 2rem;
}

select.form-control-modern option:hover,
select.form-control-modern option:focus,
select.form-control-modern option:checked {
    background: var(--primary-green);
    color: var(--white);
}

/* Para navegadores WebKit (Chrome, Safari, Edge) */
select.form-control-modern::-webkit-scrollbar {
    width: 8px;
}

select.form-control-modern::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

select.form-control-modern::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

select.form-control-modern::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* ============================================
   26. n8n CHAT CUSTOMIZAtion
   ============================================ */
.n8n-chat-root .n8n-chat-window {
    background: rgba(6, 8, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--chat--shadow);
    backdrop-filter: blur(18px);
    color: var(--white);
}

.n8n-chat-root .n8n-chat-header,
.n8n-chat-root .n8n-chat-footer {
    background: transparent;
    color: var(--white);
}

.n8n-chat-root .n8n-chat-toggle-button {
    box-shadow: var(--chat--shadow);
}

.n8n-chat-root .n8n-chat-message-list {
    background: transparent;
    color: var(--white);
}

.n8n-chat-root .chat-window-wrapper {
    bottom: var(--chat--window--bottom) !important;
    left: var(--chat--window--left) !important;
    right: auto !important;
}

.n8n-chat-root .chat-window-wrapper .chat-window-toggle {
    position: relative;
    font-size: 0;
}

.n8n-chat-root .chat-window-wrapper .chat-window-toggle,
.n8n-chat-root .n8n-chat-toggle-button {
    position: relative;
    overflow: visible !important;
}

.n8n-chat-root .chat-window-wrapper .chat-window-toggle::after,
.n8n-chat-root .n8n-chat-toggle-button::after {
    content: "¿Te ayudo?";
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(6, 8, 22, 0.95);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
    animation: chat-label-bounce 3.5s ease-in-out infinite;
    z-index: 3;
}

.n8n-chat-root .chat-window-wrapper .chat-window-toggle::before,
.n8n-chat-root .n8n-chat-toggle-button::before {
    content: "\f544";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 26px;
    color: var(--white);
}

@keyframes chat-label-bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -6px);
    }
}

.n8n-chat-root .chat-window-wrapper .chat-window-toggle svg {
    display: none !important;
}

.n8n-chat-root .chat-layout .chat-body {
    background: rgba(6, 8, 22, 0.92) !important;
}

.n8n-chat-root .chat-layout .chat-footer {
    background: rgba(6, 8, 22, 0.96) !important;
    color: var(--white) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.n8n-chat-root .n8n-chat-message {
    color: var(--white);
}

.n8n-chat-root .n8n-chat-message-bot,
.n8n-chat-root .n8n-chat-message--bot {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.n8n-chat-root .n8n-chat-message-user,
.n8n-chat-root .n8n-chat-message--user {
    background: rgba(0, 200, 83, 0.22);
    color: var(--white);
    border: 1px solid rgba(0, 200, 83, 0.35);
}

.n8n-chat-root .n8n-chat-input,
.n8n-chat-root textarea,
.n8n-chat-root input {
    background: rgba(6, 8, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: var(--white) !important;
}

.n8n-chat-root .n8n-chat-input::placeholder,
.n8n-chat-root textarea::placeholder,
.n8n-chat-root input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.n8n-chat-root .n8n-chat-welcome-screen,
.n8n-chat-root .n8n-chat-card {
    background: rgba(6, 8, 22, 0.96);
    color: var(--white);
}

.n8n-chat-root .chat-input-send-button,
.n8n-chat-root .chat-input-file-button {
    background: rgba(0, 200, 83, 0.18) !important;
    color: var(--white) !important;
}

.n8n-chat-root .chat-input-send-button:hover,
.n8n-chat-root .chat-input-send-button:focus,
.n8n-chat-root .chat-input-file-button:hover,
.n8n-chat-root .chat-input-file-button:focus {
    background: rgba(0, 200, 83, 0.3) !important;
    color: var(--white) !important;
}

@media (max-width: 767px) {
    :root {
        --chat--window--left: 24px;
        --chat--window--bottom: 90px;
        --chat--window--width: calc(100vw - 32px);
        --chat--window--height: calc(100vh - 160px);
    }

    .n8n-chat-root .chat-window-wrapper {
        left: var(--chat--window--left) !important;
        right: auto !important;
        bottom: var(--chat--window--bottom) !important;
    }

    .n8n-chat-root .n8n-chat-window {
        width: var(--chat--window--width) !important;
        max-width: 100vw;
        height: var(--chat--window--height) !important;
        max-height: calc(100vh - 110px);
        border-radius: 18px;
    }

    .n8n-chat-root .chat-layout {
        height: 100% !important;
    }

    .n8n-chat-root .chat-layout .chat-body,
    .n8n-chat-root .chat-layout .chat-footer {
        width: 100% !important;
    }
}

/* Estilos generales para todos los select */
select {
    color-scheme: dark;
}

select option {
    background-color: rgba(20, 25, 50, 0.95);
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    line-height: 1.5;
}

select option:hover,
select option:focus {
    background-color: #00C853;
    color: #FFFFFF;
}

select option:checked {
    background: linear-gradient(135deg, #00C853 0%, #00B8D4 100%);
    color: #FFFFFF;
    font-weight: 600;
}

.form-text-modern {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted-text);
    font-size: 0.85rem;
}

/* Checkbox and Radio Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition-normal);
    min-height: 60px;
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-card-content {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--primary-green);
}

.checkbox-card:hover .checkbox-card-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 200, 83, 0.3);
}

.checkbox-card-content i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.checkbox-card-content span {
    color: var(--white);
    font-weight: 500;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition-normal);
    min-height: 70px;
}

.radio-card input[type="radio"]:checked ~ .radio-card-content {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--primary-green);
}

.radio-card:hover .radio-card-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 200, 83, 0.3);
}

.radio-card-content i {
    font-size: 1.8rem;
}

.radio-card-content div {
    flex: 1;
}

.radio-card-content strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.radio-card-content small {
    display: block;
    color: var(--light-text);
    font-size: 0.85rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.btn-submit,
.btn-reset {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.6);
}

.btn-reset {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-title {
        font-size: 2.2rem;
    }
    
    .form-subtitle {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
}
