/* ===== VARIABLES Y CONFIGURACIÓN GENERAL ===== */
:root {
    --primary: #0d6efd;
    --secondary: #14b8a6;
    --orange: #ff6b35;
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 0;
}

.navbar-brand {
    font-weight: 700;
}

.logo-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
}

.logo-box {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border-radius: 10px;
    transform: rotate(45deg);
}

.logo-text {
    position: absolute;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    z-index: 1;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 10px;
    color: #64748b;
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    font-weight: 500;
    color: #1d1d1f !important;
    transition: all 0.3s ease;
    padding: 8px 12px !important;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Mega Menu Dropdown */
.dropdown-mega {
    position: static;
}

.dropdown-menu-mega {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.mega-menu-section {
    padding: 0 15px;
}

.mega-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e7;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.mega-menu-item:hover {
    background: rgba(0, 125, 250, 0.08);
    color: var(--primary);
}

.mega-menu-item i {
    font-size: 24px;
    color: var(--primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.mega-menu-item small {
    font-size: 12px;
    color: #86868b;
    line-height: 1.3;
}

.mega-menu-item:hover strong {
    color: var(--primary);
}

/* Mobile dropdown */
@media (max-width: 991px) {
    .dropdown-menu-mega {
        position: relative !important;
        width: 100%;
        transform: none !important;
        box-shadow: none;
        background: #f5f5f7;
    }
    
    .mega-menu-section {
        padding: 10px 0;
    }
    
    .mega-section-title {
        padding-left: 15px;
    }
    
    .nav-link {
        padding: 12px 15px !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 6s ease-in-out infinite;
}

.hero-bg::before {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 10%;
}

.hero-bg::after {
    width: 500px;
    height: 500px;
    background: var(--orange);
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #64748b;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #ff8c5a);
    border: none;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

/* Tarjetas de estadísticas - ESPECÍFICO para homepage */
.stats-section .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    display: block;
}

.stats-section .stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-section .stat-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b35, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stats-section .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
    display: block;
}

.stats-section .stat-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: block;
}

.stats-section .stat-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: block;
}


.main-content .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Tarjetas del Dashboard - Layout HORIZONTAL */
.main-content .stat-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-content .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.main-content .stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.main-content .stat-icon.blue {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.08));
    color: #667eea;
}

.main-content .stat-icon.green {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.08));
    color: #28a745;
}

.main-content .stat-icon.orange {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    color: #ffc107;
}

.main-content .stat-icon.red {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
    color: #dc3545;
}

.main-content .stat-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
}

.main-content .stat-content p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Carrusel Icons */
.carousel-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.carousel-content p {
    font-size: 0.95rem;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #f1f5f9, #e0f2fe);
    padding: 80px 0;
}

.contact-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-info-side {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 50px;
}

.contact-info-side h2 {
    font-weight: 800;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-label {
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-sublabel {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-side {
    padding: 50px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

/* ===== SERVICES CAROUSEL ===== */
.services-carousel-section {
    padding: 0;
    background: #000;
    position: relative;
    overflow: hidden;
    height: 500px;
    touch-action: pan-y;
}

.carousel-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    height: 100%;
    flex: 1;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 20%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    z-index: 1;
    transition: background 0.3s ease;
}

.carousel-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.carousel-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    transition: font-size 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-slide.active {
    min-width: 40%;
}

.carousel-slide.active .carousel-overlay {
    background: linear-gradient(to top, rgba(13, 110, 253, 0.5), rgba(0,0,0,0.3));
}

.carousel-slide.active img {
    transform: scale(1.05);
}

.carousel-slide.active .carousel-content h3 {
    font-size: 2rem;
}

.carousel-slide:hover:not(.active) .carousel-overlay {
    background: linear-gradient(to top, rgba(255, 107, 53, 0.5), rgba(0,0,0,0.3));
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 107, 53, 0.8);
    border-color: var(--orange);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-section {
    padding: 80px 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

.certifications-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.1), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(20, 184, 166, 0.1), transparent 50%);
}

.certifications-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 60px;
    font-style: italic;
}

.certifications-title .highlight {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.certifications-title .highlight::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cert-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.2);
}

.cert-logo {
    width: 120px;
    height: auto;
}

.cert-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.cert-logo.evalcom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.evalcom-icon {
    font-size: 2.5rem;
    font-weight: 900;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.cert-badge i {
    font-size: 4rem;
    color: var(--secondary);
}

.cert-text {
    text-align: left;
}

.cert-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cert-sgs {
    font-size: 1.8rem;
    font-weight: 900;
}

.cert-number {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0e1a;
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.1), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.1), transparent 40%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 70px;
    
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--orange), #ff8c5a);
    border-color: var(--orange);
    color: white;
    transform: translateY(-5px);
}

.footer-section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
}

.text-orange {
    color: var(--orange);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li i {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list li div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-contact-list li strong {
    color: white;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links li a i {
    color: var(--secondary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--orange);
    padding-left: 10px;
}

.footer-links li a:hover i {
    transform: translateX(5px);
    color: var(--orange);
}

.footer-bottom {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.scroll-top {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--orange), #ff8c5a);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== CHATBOT ===== */
.chatbot-button {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.6);
}

.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    overflow: hidden;
    max-height: 600px;
}

.chatbot-window.active {
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.chatbot-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.status-online {
    font-size: 0.6rem;
    color: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-body {
    padding: 20px;
    background: #f8fafc;
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.chat-message {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.bot-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-content p + p {
    margin-top: 10px;
}

.message-content strong {
    color: var(--primary);
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin-left: 40px;
    padding: 12px 16px;
    border-radius: 15px 15px 0 15px;
}

.user-message p {
    color: white;
    margin: 0;
}

.animate-message {
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-options-container {
    margin-top: 15px;
}

.options-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    text-align: center;
}

.chat-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chat-option-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-option-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.chat-option-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(20, 184, 166, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

.chat-option-btn:hover i {
    transform: scale(1.1);
}

.chat-response {
    background: #e0f2fe;
    border-left: 3px solid var(--primary);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.chat-response p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.chat-response a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.chat-response a:hover {
    text-decoration: underline;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.chatbot-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.chatbot-typing {
    display: flex;
    gap: 6px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    width: fit-content;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info-side,
    .contact-form-side {
        padding: 30px;
    }
    
    .chatbot-window {
        width: 90%;
        right: 5%;
    }
    
    .whatsapp-float,
    .chatbot-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        right: 20px;
    }
    
    .chatbot-button {
        bottom: 90px;
    }
    
    /* Carrusel responsive mejorado */
    .services-carousel-section {
        height: 400px;
    }
    
    .carousel-slide {
        min-width: 70%;
    }
    
    .carousel-slide.active {
        min-width: 70%;
    }
    
    .carousel-content {
        bottom: 20px;
    }
    
    .carousel-content h3 {
        font-size: 1.3rem;
    }
    
    .carousel-slide.active .carousel-content h3 {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    /* Certificaciones responsive */
    .certifications-title {
        font-size: 2rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .cert-item {
        padding: 30px 15px;
    }
    
    .cert-badge i {
        font-size: 3rem;
    }
    
    .cert-sgs {
        font-size: 1.5rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .footer-logo-text {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .services-carousel-section {
        height: 350px;
    }
    
    .carousel-slide {
        min-width: 85%;
    }
    
    .carousel-slide.active {
        min-width: 85%;
    }
    
    .carousel-content h3 {
        font-size: 1.2rem;
    }
    
    .carousel-slide.active .carousel-content h3 {
        font-size: 1.4rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-icon {
        width: 100%;
        justify-content: center;
    }
}

/* ===== VARIABLES ===== */
:root {
    --primary: #0d6efd;
    --secondary: #14b8a6;
    --orange: #ff6b35;
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* ===== NAVBAR ESTILO APPLE ===== */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    padding: 0;
}

.navbar-logo {
    height: 70px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 21px;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.5px;
    display: none;
}

.brand-tagline {
    display: none;
}

.navbar-nav {
    gap: 0;
}

.nav-link {
    font-weight: 400;
    color: #1d1d1f !important;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    font-size: 14px;
    position: relative;
    opacity: 0.85;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:active {
    transform: translateY(0);
}

.navbar-toggler {
    border: none;
    padding: 4px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%2829, 29, 31, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO CAROUSEL ESTILO APPLE ===== */
.hero-carousel-section {
    margin-top: 68px;
    background: #ffffff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.carousel-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    z-index: 2;
}

.carousel-product-name {
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.carousel-product-spec {
    font-size: 28px;
    font-weight: 400;
    color: #6e6e73;
    margin-bottom: 20px;
}

.carousel-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.carousel-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.carousel-feature i {
    font-size: 20px;
    color: var(--orange);
}

.carousel-feature span {
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
}

.carousel-pricing {
    background: rgba(13, 110, 253, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.carousel-price-label {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.carousel-price {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.carousel-interest {
    font-size: 32px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 8px;
}

.carousel-price-detail {
    font-size: 13px;
    color: #6e6e73;
}

.carousel-cta {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.carousel-cta:hover {
    background: #ff8c5a;
    transform: scale(1.05);
    color: white;
}

.carousel-product-image {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 400px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: var(--primary);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.5;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-note {
    font-size: 11px;
    color: #6e6e73;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .carousel-item {
        height: 500px;
    }

    .carousel-product-name {
        font-size: 36px;
    }

    .carousel-product-spec {
        font-size: 20px;
    }

    .carousel-price {
        font-size: 32px;
    }

    .carousel-interest {
        font-size: 24px;
    }

    .carousel-product-image {
        width: 280px;
        right: 5%;
    }

    .carousel-pricing {
        padding: 20px 25px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 600px;
    }

    .carousel-product-image {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0;
    }

    .carousel-features {
        width: 100%;
    }
}

/* Espaciado para contenido debajo */
.content-spacer {
    height: 100px;
    background: #ffffff;
}
.quick-text-nav {
    position: relative; /* Clave para el z-index */
    z-index: 999;       /* Lo pone por encima de otras secciones */
    background: #f8f9fa; 
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    clear: both;        /* Asegura que no se monte sobre elementos flotantes */
}

.nav-paragraph {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
}

.nav-paragraph a {
    position: relative;
    z-index: 1000;      /* Asegura que el enlace esté arriba de todo */
    color: #0d6efd; 
    text-decoration: none;
    font-weight: 600;
    cursor: pointer !important; /* Fuerza la aparición de la mano */
    display: inline-block;      /* Mejora el área de contacto del mouse */
    padding: 2px 5px;
}

.nav-paragraph a:hover {
    color: #004dc0;
    text-decoration: underline;
}

/* Desplazamiento suave para todos los enlaces internos */
html {
    scroll-behavior: smooth;
}

.hero-section {
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Esto asegura que el fondo esté DEBÁS de los botones */
}

.hero-buttons {
    position: relative;
    z-index: 10; /* Fuerza a los botones a estar al frente */
}

/* Evitar que el botón de WhatsApp flotante tape los clics si es muy grande */
.whatsapp-float {
    z-index: 9999;
}