/* Colors & Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f2ff;
    --secondary-color: #f77f00;
    --success-color: #06a77d;
    --danger-color: #d62828;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ================ NAVBAR ================ */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar-nav {
    overflow: visible !important;
}

.nav-item.dropdown {
    position: relative;
    overflow: visible !important;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 8px 12px !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

/* ================ DROPDOWN MENU ================ */
.nav-item.dropdown .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    min-width: 200px !important;
    background-color: var(--bg-white) !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 9999 !important;
    margin: 0 !important;
    
    /* Oculto por defecto */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Cuando está visible */
.navbar-nav .nav-item.dropdown .dropdown-menu.show,
.nav-item.dropdown .dropdown-menu.show {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Asegurar que Bootstrap no oculte el dropdown - EXCEPTO cuando está en show */
.navbar-expand-lg .navbar-collapse .dropdown-menu:not(.show) {
    visibility: hidden !important;
    opacity: 0 !important;
}

.dropdown-menu.show {
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item {
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text-dark) !important;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white !important;
}

.dropdown-divider {
    margin: 6px 0;
    border-top-color: var(--border-light);
}

/* ================ HERO SECTION ================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(247, 127, 0, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* ================ SLIDER SECTION ================ */
.slider-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

.carousel {
    width: 100%;
    height: auto;
}

.carousel-inner {
    height: 600px;
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-item.active {
    display: flex;
    align-items: center;
}

.slide-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(20%, -20%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.slide-content .row {
    height: 100%;
}

.slide-text h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out;
}

.slide-text p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.slide-text .d-flex {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.slide-icon {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.slide-icon i {
    font-size: 200px;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    bottom: 30px;
    z-index: 5;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.carousel-indicators .active {
    background-color: white;
    width: 32px;
    border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================ SERVICIOS SECTION ================ */
.servicios-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ================ SOLUCIONES SECTION ================ */
.soluciones-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.solution-item {
    padding: 40px 0;
}

.solution-item h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.solution-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.solution-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.solution-features i {
    margin-right: 10px;
    min-width: 20px;
}

/* ================ STATS SECTION ================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    padding: 80px 0;
    color: white;
}

.stat-card {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
}

/* ================ WHY SECTION ================ */
.why-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.why-section h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.why-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* ================ CTA SECTION ================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052a3 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section .lead {
    font-size: 18px;
    opacity: 0.95;
}

/* ================ CONTACT SECTION ================ */
.contact-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
}

.contact-form .form-control {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-info {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h6 {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ================ BUTTONS ================ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003d80);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

/* ================ FOOTER ================ */
.footer-section {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

.footer-section h6 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-footer a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-footer a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ================ RESPONSIVENESS ================ */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 40px;
    }

    .solution-item .row {
        flex-direction: column-reverse;
    }

    .solution-item:nth-child(even) .row {
        flex-direction: column;
    }

    .carousel-inner {
        height: 500px;
    }

    .slide-icon i {
        font-size: 150px;
    }

    .slide-text h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .servicios-section,
    .soluciones-section,
    .why-section,
    .contact-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .contact-info {
        margin-top: 40px;
    }

    .social-footer {
        justify-content: center;
        margin-top: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hero-image,
    .why-image,
    .solution-image {
        height: 250px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .nav-link {
        font-size: 14px;
    }

    .carousel-inner {
        height: 400px;
    }

    .slide-icon i {
        font-size: 100px;
    }

    .slide-text h1 {
        font-size: 28px;
    }

    .slide-text p {
        font-size: 14px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-lg {
        width: 100%;
        padding: 12px 20px;
    }

    .contact-form .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ================ SERVICIOS DETALLADOS ================ */
.service-detail-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.2);
    transform: translateY(-8px);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-detail-header i {
    font-size: 40px;
    color: var(--primary-color);
    min-width: 50px;
}

.service-detail-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.service-detail-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-checklist li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-checklist i {
    color: var(--success-color);
    font-weight: bold;
}

/* ================ TESTIMONIOS SECTION ================ */
.testimonios-section {
    background: var(--bg-white);
}
/* ================ NUEVAS PÁGINAS PÚBLICAS ================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Animaciones */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Cards de Servicios Mejoradas */
.service-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Cards de Información de Contacto */
.contact-info-card {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Acordeón Personalizado */
.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Cards de Filosofía */
.philosophy-card {
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Badges de Certificación */
.cert-badge {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Miembros del Equipo */
.team-member {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: white;
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Pasos del Proceso */
.process-step {
    position: relative;
    padding-left: 100px;
    margin-bottom: 30px;
}

.process-step .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

.process-step h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Formulario Mejorado */
.form-control-lg {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Sección de Error 404 */
.error-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7ff 100%);
}

.error-content h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.quick-link {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.quick-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.2);
}

/* Política de Privacidad */
.privacy-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 15px;
}

.privacy-section .alert {
    border-left: 4px solid;
}

.privacy-section .alert-info {
    border-left-color: var(--primary-color);
}

.privacy-section .alert-warning {
    border-left-color: #ffc107;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .error-content h1 {
        font-size: 5rem;
    }
    
    .process-step {
        padding-left: 80px;
    }
    
    .process-step .step-number {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

/* Footer Links Hover */
.footer-links a {
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* Smooth Transitions */
a, button, input, textarea, select {
    transition: all 0.3s ease;
}

/* Overflow Hidden Para Animaciones */
.container-lg {
    overflow: hidden;
}