/* =====================================================
   STYLE PRINCIPAL COMPLETO - BDC Tech
   Este archivo contiene TODO el CSS necesario
   ===================================================== */

/* VARIABLES */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f3f4f6;
    --bg-dark: #111827;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-alt: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --font-family-primary: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    --spacing-5xl: 6rem;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    --navbar-height: 70px;
    --hero-height: 100vh;
    --section-padding: 80px;
    --card-padding: 2rem;
    --form-element-height: 3rem;
    --animation-duration-fast: 0.2s;
    --animation-duration-normal: 0.3s;
    --animation-duration-slow: 0.6s;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #20ba5a;
}

/* BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* TIPOGRAFÍA GLOBAL CON MÁXIMA ESPECIFICIDAD */
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: #1f2937 !important;
}

html body h1 { font-size: var(--font-size-5xl); }
html body h2 { font-size: var(--font-size-4xl); }
html body h3 { font-size: var(--font-size-3xl); }
html body h4 { font-size: var(--font-size-2xl); }
html body h5 { font-size: var(--font-size-xl); }
html body h6 { font-size: var(--font-size-lg); }

html body p {
    margin-bottom: var(--spacing-md);
    color: #6b7280 !important;
}

html body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

html body a:hover {
    color: var(--secondary-color);
}

html body img {
    max-width: 100%;
    height: auto;
    display: block;
}

html body ul, html body ol {
    margin-bottom: var(--spacing-md);
}

html body li {
    margin-bottom: var(--spacing-xs);
}

/* BOOTSTRAP OVERRIDES GLOBALES */
html body .text-primary {
    color: #2563eb !important;
}

html body .text-muted {
    color: #6b7280 !important;
}

html body .text-dark {
    color: #1f2937 !important;
}

html body .fw-bold {
    color: #1f2937 !important;
}

html body .lead {
    color: #6b7280 !important;
}

/* UTILITY CLASSES */
.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

.lead-max-width {
    max-width: 600px;
}

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

.d-none {
    display: none !important;
}

/* ABOUT SECTION - MÁXIMA ESPECIFICIDAD */
html body #about h1,
html body #about h2,
html body #about h3,
html body #about h4,
html body #about h5,
html body #about h6,
html body #about .fw-bold {
    color: #1f2937 !important;
}

html body #about p,
html body #about .lead {
    color: #6b7280 !important;
}

html body #about .text-primary,
html body #about .display-5.text-primary {
    color: #2563eb !important;
}

html body #about .list-unstyled li,
html body #about ul li {
    color: #6b7280 !important;
}

html body #about .fas.fa-check {
    color: #2563eb !important;
}

#about {
    background: white;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23f3f4f6" opacity="0.5"/><circle cx="80" cy="80" r="1" fill="%23e5e7eb" opacity="0.3"/><circle cx="40" cy="60" r="1" fill="%23f3f4f6" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

#about .container {
    position: relative;
    z-index: 1;
}

/* SERVICIOS - MÁXIMA ESPECIFICIDAD */
html body .service-description,
html body .service-card .service-description,
html body .service-card p,
html body #services .service-description {
    color: #6b7280 !important;
}

html body .service-card h4,
html body .service-title {
    color: #1f2937 !important;
}

#services {
    background: var(--bg-light);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, transparent 50%, rgba(59, 130, 246, 0.02) 100%);
    z-index: 0;
}

#services .container {
    position: relative;
    z-index: 1;
}

#services h2 {
    color: #2563eb !important;
}

#services p {
    color: #6b7280 !important;
}

/* ESTADÍSTICAS - MÁXIMA ESPECIFICIDAD */
html body .stat-label,
html body .stat-card .stat-label {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

html body .stat-number,
html body .stat-card .stat-number {
    color: #2563eb !important;
    font-weight: 700 !important;
}

/* NAVEGACIÓN */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color) !important;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all var(--transition-fast);
}

.navbar-brand:hover .logo-img {
    transform: rotate(5deg);
}

.nav-link {
    color: #374151 !important;
    font-weight: var(--font-weight-medium);
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md) !important;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--transition-slow);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(37, 99, 235, 0.15);
    font-weight: var(--font-weight-semibold);
}

.navbar-toggler {
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: var(--spacing-xs);
    transition: all var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.navbar-toggler:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.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%2855, 65, 81, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* MOBILE NAVIGATION */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin: var(--spacing-md) calc(-1 * var(--spacing-md));
        padding: var(--spacing-lg);
        border-radius: var(--border-radius-xl);
        border: 1px solid rgba(37, 99, 235, 0.1);
        margin-top: var(--spacing-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        margin: var(--spacing-xs) 0;
        text-align: center;
        border-radius: var(--border-radius-lg);
        color: #374151 !important;
    }
    
    .nav-link:hover {
        background: rgba(37, 99, 235, 0.1);
        transform: translateX(5px);
        color: var(--primary-color) !important;
    }
    
    .nav-link.active {
        background: rgba(37, 99, 235, 0.15);
        color: var(--primary-color) !important;
        font-weight: var(--font-weight-semibold);
    }
}

/* HERO CAROUSEL */
.hero-carousel {
    height: 75vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.carousel-item.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* HERO CAROUSEL BACKGROUNDS */
.carousel-item:nth-child(1) {
    background-image: url('../img/hero/transformaciondigital.jpg');
}

.carousel-item:nth-child(2) {
    background-image: url('../img/hero/inteligenciaartificial.jpg');
}

.carousel-item:nth-child(3) {
    background-image: url('../img/hero/analisisdatos.jpg');
}

.carousel-item:nth-child(4) {
    background-image: url('../img/hero/comunidaddigital.jpg');
}

.carousel-item:nth-child(5) {
    background-image: url('../img/hero/optimizacionprocesos.jpg');
}

.carousel-container {
    position: relative;
    z-index: 2;
    text-align: center !important;
    color: white;
    max-width: 900px;
    width: 90%;
    padding: 0 20px;
    margin: 0 auto;
}

.carousel-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    color: white;
    text-align: center !important;
}

.carousel-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}

/* CAROUSEL CONTROLS */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* CAROUSEL INDICATORS */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-indicators [data-bs-target].active {
    background-color: white;
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* BOTONES */
.btn {
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-full);
    padding: var(--spacing-md) var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    background: var(--bg-gradient-alt);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* CAROUSEL BUTTONS */
.carousel-container .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}

.carousel-container .btn-primary {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.carousel-container .btn-primary:hover {
    background: linear-gradient(45deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

.carousel-container .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    backdrop-filter: blur(5px);
}

.carousel-container .btn-outline-light:hover {
    background: white;
    color: #2563eb;
    border-color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* SERVICE CARDS */
.service-card {
    background: white;
    padding: var(--card-padding);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--accent-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.service-description {
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* STAT CARDS */
.stat-card {
    background: white;
    padding: var(--card-padding);
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 1;
}

/* PORTFOLIO */
#portfolio {
    background: white;
    position: relative;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e5e7eb" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 0;
}

#portfolio .container {
    position: relative;
    z-index: 1;
}

#portfolio h2 {
    color: #2563eb !important;
}

#portfolio p {
    color: #6b7280 !important;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.95;
}

.portfolio-title {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

/* CONTACTO */
#contact {
    background: var(--bg-gradient);
    position: relative;
    color: white;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50 Q25 30 50 50 T100 50 V100 H0 Z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2,
#contact h3,
#contact h4 {
    color: white !important;
}

#contact .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* CONTACT METHODS */
.contact-method {
    transition: all var(--transition-normal);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.contact-method:hover .contact-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: var(--font-size-xl);
}

/* FORMULARIOS */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

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

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--card-padding);
    border-radius: var(--border-radius-2xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CONTACT FORM ESPECÍFICOS */
.contact-form-wrapper {
    position: relative;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.contact-form .form-control:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.contact-form .form-control::placeholder {
    color: #666;
    opacity: 0.8;
    font-weight: 400;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.contact-form .btn {
    border-radius: 15px;
    padding: 18px 35px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .btn-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border-color: rgba(255, 255, 255, 0.8);
}

.contact-form .btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form .btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: white !important;
    margin-bottom: var(--spacing-lg);
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    margin-left: var(--spacing-sm);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-tooltip);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    animation: none;
}

/* CHATBOT */
.bdc-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
}

.chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.chatbot-toggle i {
    font-size: 18px;
}

.chatbot-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.chatbot-window.active {
    display: flex;
    animation: chatbotSlideUp 0.3s ease-out;
}

@keyframes chatbotSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
}

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

/* FOCUS STATES */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp var(--animation-duration-slow) ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown var(--animation-duration-slow) ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft var(--animation-duration-slow) ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight var(--animation-duration-slow) ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .carousel-container .btn {
        display: block;
        width: 80%;
        margin: 0.5rem auto;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .contact-form-wrapper {
        margin-top: 2rem;
        padding: 2rem;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .contact-form .form-control {
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .contact-form .btn {
        padding: 15px 30px;
        font-size: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 65vh;
        min-height: 450px;
    }
    
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-container .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .contact-form .form-control {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .contact-form .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* TRANSICIONES SUAVES */
.carousel-item.active {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.carousel-item {
    will-change: transform;
    backface-visibility: hidden;
}

.carousel-container {
    will-change: opacity;
}

/* DARK MODE OVERRIDE */
@media (prefers-color-scheme: dark) {
    html body #about h1, html body #about h2, html body #about h3, 
    html body #about h4, html body #about h5, html body #about h6,
    html body #about .fw-bold, html body .service-card h4, 
    html body .service-title {
        color: #1f2937 !important;
    }
    
    html body #about p, html body #about .lead, 
    html body .service-description, html body #about li, 
    html body .stat-label, html body .service-card p {
        color: #6b7280 !important;
    }
    
    html body .text-primary, html body .stat-number, 
    html body .fas.fa-check {
        color: #2563eb !important;
    }
}

/* LIGHT MODE EXPLICIT */
@media (prefers-color-scheme: light) {
    html body #about h1, html body #about h2, html body #about h3, 
    html body #about h4, html body #about h5, html body #about h6,
    html body #about .fw-bold, html body .service-card h4, 
    html body .service-title {
        color: #1f2937 !important;
    }
    
    html body #about p, html body #about .lead, 
    html body .service-description, html body #about li, 
    html body .stat-label, html body .service-card p {
        color: #6b7280 !important;
    }
    
    html body .text-primary, html body .stat-number, 
    html body .fas.fa-check {
        color: #2563eb !important;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .carousel-item {
        background-attachment: scroll;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 6px;
}

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

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


/* =====================================================
   CHATBOT - ESTILOS COMPLETOS
   ===================================================== */

/* Header del chat */
.chatbot-header {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Área de mensajes */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Mensajes */
.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #6b7280;
}

.bot-message .message-avatar {
    background: #e0e7ff;
    color: #2563eb;
}

.user-message .message-avatar {
    background: #dbeafe;
    color: #2563eb;
}

.message-content {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-top-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    color: white;
    border-top-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    border-top-left-radius: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input area */
.chatbot-input-area {
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.chatbot-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px 4px 4px 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.chatbot-input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

#chatbotInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    padding: 8px 0;
    max-height: 80px;
    color: #374151;
}

#chatbotInput::placeholder {
    color: #9ca3af;
}

.chatbot-send-btn {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 13px;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
    padding-right: 4px;
}

/* System message */
.system-message {
    max-width: 100%;
    justify-content: center;
}

/* Responsive chatbot */
@media (max-width: 576px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 70vh;
        right: -10px;
        bottom: 60px;
        border-radius: 15px;
    }

    .chatbot-toggle .chatbot-badge {
        display: none;
    }
}
