/* ============================================
   ESTILOS MODERNOS - LibiSoft S.A.S
   Barrancabermeja, Santander
   ============================================ */

/* Variables CSS Modernas */
:root {
    --primary-gradient: linear-gradient(135deg, #29ABE2 0%, #8B65AE 50%, #ED1E79 100%);
    --primary-gradient-hover: linear-gradient(135deg, #ED1E79 0%, #8B65AE 50%, #29ABE2 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient: linear-gradient(135deg, #29ABE2, #ED1E79);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar Moderno */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar-modern.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    position: relative;
    z-index: 10;
}

.logo-modern {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(20px);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link-modern:hover,
.nav-link-modern.active {
    color: #ED1E79;
    background: rgba(237, 30, 121, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.8) 0%, rgba(139, 101, 174, 0.7) 50%, rgba(237, 30, 121, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Asegurar que el gradient-text sea visible en secciones con fondo blanco */
.section-title-modern .gradient-text {
    background: linear-gradient(135deg, #29ABE2 0%, #ED1E79 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Botones del hero con estilo idéntico al badge */
.hero-buttons .btn-modern.btn-primary-modern {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: none !important;
    text-transform: none !important;
    border: none !important;
    margin: 0 !important;
}

.hero-buttons .btn-modern.btn-primary-modern::before {
    display: none !important;
}

.hero-buttons .btn-modern.btn-primary-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(41, 171, 226, 0.3) !important;
    scale: 1 !important;
    color: white !important;
}

/* Botones Modernos */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-modern {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* Botón específico para la sección About - Estilo como section-badge */
.about-section-modern .btn-primary-modern {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 2rem auto 0;
    display: inline-flex;
    width: auto;
    text-align: center;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    text-transform: none;
    box-shadow: 0 4px 16px rgba(41, 171, 226, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.about-section-modern .btn-primary-modern::before {
    display: none; /* Desactivar el efecto shimmer para este botón */
}

.about-section-modern .btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 30, 121, 0.3);
    color: white;
}

.btn-outline-modern {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: white;
    color: #ED1E79;
    transform: translateY(-2px);
}

/* Animaciones */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0; }
}

/* Carousel Controls Modernos */
.modern-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.8;
}

.modern-control:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1.1);
}

.modern-indicators {
    bottom: 2rem;
}

.modern-indicators [data-bs-target] {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.modern-indicators [data-bs-target].active {
    background: white;
}

/* Secciones */
.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}


.section-title-modern {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section-modern {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content-modern {
    padding: 2rem;
}

.about-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.about-icon-box i {
    font-size: 2rem;
    color: white;
}

.about-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text-modern {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image-modern {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.1) 0%, rgba(237, 30, 121, 0.1) 100%);
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

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

.floating-card i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.floating-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.floating-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* MVO Section */
.mvo-section-modern {
    padding: 4rem 0;
    background: var(--primary-gradient);
}

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

.mvo-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mvo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: var(--transition);
}

.mvo-card:hover::before {
    left: 0;
}

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

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

.mvo-icon i {
    font-size: 2rem;
    color: white;
}

.mvo-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.mvo-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services-intro-section {
    padding: 6rem 0;
    background: white;
}

.services-intro-content {
    padding: 2rem;
}

.services-intro-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.services-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-item i {
    color: #ED1E79;
    font-size: 1.25rem;
}

.feature-item span {
    color: #333;
    font-weight: 500;
}

/* Service Cards */
.services-cards-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.service-card-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-modern:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card-modern:hover .service-card-overlay {
    opacity: 0.3;
}

.service-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.service-icon i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.service-card-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

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

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #666;
}

.service-features-list i {
    color: #ED1E79;
    font-size: 0.875rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ED1E79;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-card-link:hover {
    gap: 1rem;
    color: #29ABE2;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background: white;
    overflow: hidden;
}

.partners-slider {
    overflow: hidden;
    padding: 2rem 0;
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: scroll-partners 30s linear infinite;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Formulario Moderno */
.formulario-modern {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.formulario-modern.active {
    display: flex;
}

.formulario-container {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

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

.formulario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.formulario-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.formulario-header h2 i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-form-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
}

.close-form-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: rotate(90deg);
}

.form-modern {
    padding: 2rem;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group-modern label i {
    color: #ED1E79;
}

.form-group-modern input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #ED1E79;
    box-shadow: 0 0 0 3px rgba(237, 30, 121, 0.1);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn-modern {
    flex: 1;
    justify-content: center;
}

/* Footer Moderno */
/* Footer Moderno - Estilos con alta especificidad */
footer.footer-modern,
.footer-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: white !important;
    padding: 4rem 0 2rem !important;
    margin-top: 4rem !important;
    width: 100% !important;
    clear: both !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

footer.footer-modern .container,
.footer-modern .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

footer.footer-modern .footer-content,
.footer-modern .footer-content {
    margin-bottom: 3rem !important;
    width: 100% !important;
    display: block !important;
}

footer.footer-modern .footer-content .row,
.footer-modern .footer-content .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
    width: 100% !important;
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 0 !important;
}

footer.footer-modern .footer-content .row > [class*="col-"],
.footer-modern .footer-content .row > [class*="col-"] {
    padding: 0 15px !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}

/* Solo aplicar width 100% a elementos sin clases de columna específicas */
footer.footer-modern .footer-content .row > [class*="col-"]:not(.col-lg-6):not(.col-md-6):not(.col-lg-4):not(.col-md-12),
.footer-modern .footer-content .row > [class*="col-"]:not(.col-lg-6):not(.col-md-6):not(.col-lg-4):not(.col-md-12) {
    width: 100% !important;
}

footer.footer-modern .footer-widget,
.footer-modern .footer-widget {
    margin-bottom: 2rem !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
}

footer.footer-modern .footer-logo,
.footer-modern .footer-logo {
    margin-bottom: 1.5rem !important;
    display: block !important;
}

footer.footer-modern .footer-logo,
.footer-modern .footer-logo {
    margin-bottom: 1.5rem !important;
    display: block !important;
    background: transparent !important;
    padding: 1rem !important;
    border-radius: 0 !important;
    border: none !important;
    text-align: center !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

footer.footer-modern .footer-logo img,
.footer-modern .footer-logo img {
    height: 100px !important;
    width: auto !important;
    max-width: 300px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    /* Aumentar brillo y contraste para mejor visibilidad */
    filter: brightness(1.3) contrast(1.4) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.4)) !important;
    background: transparent !important;
    opacity: 1 !important;
}

/* Efecto hover para el logo */
footer.footer-modern .footer-logo:hover,
.footer-modern .footer-logo:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
    transform: translateY(-2px) !important;
    transition: var(--transition) !important;
}

footer.footer-modern .footer-logo img:hover,
.footer-modern .footer-logo img:hover {
    filter: brightness(1.5) contrast(1.6) drop-shadow(0 6px 20px rgba(255, 255, 255, 0.5)) !important;
    transition: var(--transition) !important;
    transform: scale(1.05) !important;
}

footer.footer-modern .footer-description,
.footer-modern .footer-description {
    color: #ffffff !important;
    line-height: 1.8 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    display: block !important;
    text-align: center !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

footer.footer-modern .footer-social,
.footer-modern .footer-social {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.social-link i {
    display: block;
}

footer.footer-modern .footer-title,
.footer-modern .footer-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    display: block !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
}

footer.footer-modern .footer-contact,
.footer-modern .footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #ffffff !important;
    line-height: 1.6;
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-contact i {
    color: #ED1E79 !important;
    margin-top: 0.25rem;
    font-size: 1.3rem !important;
    min-width: 24px !important;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(237, 30, 121, 0.5)) !important;
}

.footer-contact a,
.footer-contact span {
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    word-break: break-word;
    font-weight: 400 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.footer-contact a:hover {
    color: white;
}

footer.footer-modern .footer-links,
.footer-modern .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

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

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: 1rem !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.9rem !important;
    color: #ED1E79 !important;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(237, 30, 121, 0.5)) !important;
}

footer.footer-modern .footer-bottom,
.footer-modern .footer-bottom {
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: 2rem !important;
}

footer.footer-modern .footer-bottom .row,
.footer-modern .footer-bottom .row {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

footer.footer-modern .footer-bottom p,
.footer-modern .footer-bottom p {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    display: block !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.95 !important;
}

/* Asegurar que el footer no tenga elementos flotantes */
.footer-modern::before,
.footer-modern::after {
    content: "";
    display: table;
    clear: both;
}

/* Estilos específicos para la fila inferior del footer */
footer.footer-modern .footer-row-bottom,
.footer-modern .footer-row-bottom {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

footer.footer-modern .footer-col-left,
footer.footer-modern .footer-col-right,
.footer-modern .footer-col-left,
.footer-modern .footer-col-right {
    display: block !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    footer.footer-modern .footer-col-left,
    footer.footer-modern .footer-col-right,
    .footer-modern .footer-col-left,
    .footer-modern .footer-col-right {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        float: left !important;
    }
}

@media (min-width: 992px) {
    footer.footer-modern .footer-col-left,
    footer.footer-modern .footer-col-right,
    .footer-modern .footer-col-left,
    .footer-modern .footer-col-right {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Override de estilos antiguos que puedan interferir */
.contact-container,
.pnl_circular_foother,
.panel-circular-foother,
.panel-circular-sombra-foother {
    display: none !important;
}

/* Asegurar que el footer tenga prioridad */
footer.footer-modern {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* Asegurar que las columnas del footer estén bien distribuidas - SOLO para elementos sin clases específicas */
.footer-modern .col-lg-4:not(.footer-col-left):not(.footer-col-right),
.footer-modern .col-md-6:not(.footer-col-left):not(.footer-col-right) {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    /* Forzar que col-md-6 ocupe 50% del ancho */
    footer.footer-modern .col-md-6,
    .footer-modern .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Específicamente para la segunda fila del footer */
    footer.footer-modern .footer-content > .row:last-child > .col-md-6,
    footer.footer-modern .footer-content > .row:nth-child(2) > .col-md-6,
    .footer-modern .footer-content > .row:last-child > .col-md-6,
    .footer-modern .footer-content > .row:nth-child(2) > .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: inline-block !important;
        vertical-align: top !important;
        float: left !important;
    }
    footer.footer-modern .col-md-12,
    .footer-modern .col-md-12 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    /* Información de Contacto y Enlaces Rápidos lado a lado en tablets */
    footer.footer-modern .row .col-md-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    footer.footer-modern .footer-widget-right,
    .footer-modern .footer-widget-right {
        text-align: right !important;
    }
    footer.footer-modern .footer-widget-right .footer-links,
    .footer-modern .footer-widget-right .footer-links {
        text-align: right !important;
    }
    footer.footer-modern .footer-widget-right .footer-links a,
    .footer-modern .footer-widget-right .footer-links a {
        justify-content: flex-end !important;
    }
}

@media (min-width: 992px) {
    /* Forzar que col-lg-6 ocupe 50% del ancho en desktop */
    footer.footer-modern .col-lg-6,
    .footer-modern .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Específicamente para la segunda fila del footer en desktop */
    footer.footer-modern .footer-content > .row:last-child > .col-lg-6,
    footer.footer-modern .footer-content > .row:nth-child(2) > .col-lg-6,
    .footer-modern .footer-content > .row:last-child > .col-lg-6,
    .footer-modern .footer-content > .row:nth-child(2) > .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: inline-block !important;
        vertical-align: top !important;
        float: left !important;
    }
    
    /* Asegurar que la fila use flexbox correctamente */
    footer.footer-modern .footer-content > .row:last-child,
    footer.footer-modern .footer-content > .row:nth-child(2),
    .footer-modern .footer-content > .row:last-child,
    .footer-modern .footer-content > .row:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    footer.footer-modern .col-lg-4,
    .footer-modern .col-lg-4 {
        width: 33.33333333% !important;
        flex: 0 0 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
    /* Información de Contacto a la izquierda, Enlaces Rápidos a la derecha */
    footer.footer-modern .footer-widget-right,
    .footer-modern .footer-widget-right {
        text-align: right !important;
    }
    footer.footer-modern .footer-widget-right .footer-links,
    .footer-modern .footer-widget-right .footer-links {
        text-align: right !important;
    }
    footer.footer-modern .footer-widget-right .footer-links a,
    .footer-modern .footer-widget-right .footer-links a {
        justify-content: flex-end !important;
    }
    /* Información de Contacto alineada a la izquierda */
    footer.footer-modern .row .col-lg-6:first-child .footer-widget,
    .footer-modern .row .col-lg-6:first-child .footer-widget {
        text-align: left !important;
    }
}

/* Resetear cualquier estilo de Bootstrap que pueda interferir */
footer.footer-modern .row,
.footer-modern .row {
    --bs-gutter-x: 1.5rem !important;
    --bs-gutter-y: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    margin-right: calc(-0.5 * var(--bs-gutter-x)) !important;
    margin-left: calc(-0.5 * var(--bs-gutter-x)) !important;
    margin-bottom: 0 !important;
}

/* Forzar que la segunda fila del footer tenga las columnas lado a lado */
footer.footer-modern .footer-content > .row:last-child,
footer.footer-modern .footer-content > .row:nth-child(2),
.footer-modern .footer-content > .row:last-child,
.footer-modern .footer-content > .row:nth-child(2) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

footer.footer-modern .footer-content > .row:last-child > .col-lg-6,
footer.footer-modern .footer-content > .row:nth-child(2) > .col-lg-6,
footer.footer-modern .footer-content > .row:last-child > .col-md-6,
footer.footer-modern .footer-content > .row:nth-child(2) > .col-md-6,
.footer-modern .footer-content > .row:last-child > .col-lg-6,
.footer-modern .footer-content > .row:nth-child(2) > .col-lg-6,
.footer-modern .footer-content > .row:last-child > .col-md-6,
.footer-modern .footer-content > .row:nth-child(2) > .col-md-6 {
    display: block !important;
    float: none !important;
}

footer.footer-modern .row > *,
.footer-modern .row > * {
    flex-shrink: 0 !important;
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    margin-top: var(--bs-gutter-y) !important;
    box-sizing: border-box !important;
}

/* Solo aplicar width 100% a elementos sin clases de columna */
footer.footer-modern .row > *:not([class*="col-"]),
.footer-modern .row > *:not([class*="col-"]) {
    width: 100% !important;
    max-width: 100% !important;
}

/* Chat Button Moderno */
.chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    border: none;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chat-button img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 2rem;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

.chat-panel.active {
    display: flex;
}

.chat-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-stats {
        justify-content: center;
    }

    .mvo-cards {
        grid-template-columns: 1fr;
    }

    .chat-panel {
        width: calc(100% - 2rem);
        right: 1rem;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .about-title-modern {
        font-size: 2rem;
    }

    .formulario-container {
        margin: 1rem;
        max-height: 95vh;
    }

    .form-buttons {
        flex-direction: column;
    }

    .footer-modern {
        padding: 3rem 0 1.5rem;
    }

    .footer-content .row > [class*="col-"] {
        margin-bottom: 2rem;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }
    
    footer.footer-modern .footer-widget-right,
    .footer-modern .footer-widget-right {
        text-align: center !important;
    }
    
    footer.footer-modern .footer-widget-right .footer-links a,
    .footer-modern .footer-widget-right .footer-links a {
        justify-content: center !important;
    }
    
    /* En móviles, las columnas se apilan */
    footer.footer-modern .col-md-6,
    .footer-modern .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    footer.footer-modern .col-lg-6,
    .footer-modern .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    /* Logo centrado en móviles */
    footer.footer-modern .footer-logo {
        text-align: center !important;
    }
    
    footer.footer-modern .footer-logo img {
        margin: 0 auto !important;
    }
    
    footer.footer-modern .footer-social {
        justify-content: center !important;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.g-4 {
    gap: 1.5rem;
}

.g-5 {
    gap: 3rem;
}

