/* EXOSTEM - Estilos Principales */
/* Paleta de Colores */
:root {
    --primary-blue: #38519C;
    --vital-orange: #EE7E13;
    --technical-blue: #A3AFD1;
    --soft-orange: #F39E4E;
    --pure-white: #FFFFFF;
    --dark-blue: #2A3A7A;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pure-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
}

.container-fluid {
    max-width: 1400px;
}

/* Tipografía Corporativa */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 1rem;
}

/* Botones Corporativos */
.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 14px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(56, 81, 156, 0.25);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 81, 156, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 81, 156, 0.25);
}

.btn-success {
    background-color: #25D366;
    color: var(--pure-white);
    border: 2px solid #25D366;
}

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

/* Navegación */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 81, 156, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.navbar.scrolled {
    background-color: var(--pure-white);
    box-shadow: 0 2px 20px rgba(56, 81, 156, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(56, 81, 156, 0.2));
    position: relative;
    opacity: 1;
    visibility: visible;
}

.logo-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(56, 81, 156, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.25);
    filter: drop-shadow(0 4px 12px rgba(56, 81, 156, 0.3)) 
            drop-shadow(0 0 25px rgba(56, 81, 156, 0.2));
}

.navbar-brand:hover .logo-img::before {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
}

.logo-img::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, 
        rgba(56, 81, 156, 0.15) 0%, 
        rgba(56, 81, 156, 0.2) 50%, 
        rgba(56, 81, 156, 0.15) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.navbar-brand:hover .logo-img::after {
    opacity: 1;
    animation: none;
    transform: scale(1.1);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--vital-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover .brand-text {
    background: linear-gradient(135deg, var(--vital-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(2px);
}

/* Efecto de brillo corporativo en el navbar-brand completo */
.navbar-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
    border-radius: 8px;
    pointer-events: none;
}

.navbar-brand:hover::after {
    left: 100%;
}

/* Animación de entrada del logo - más sutil */
@keyframes logoEntrance {
    0% {
        transform: scale(0.95) rotate(-3deg);
    }
    50% {
        transform: scale(1.02) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.navbar-brand.loaded .logo-img {
    animation: logoEntrance 0.4s ease-out;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--vital-orange);
}

/* Botón Grid Corporativo */
.btn-grid-corporate {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    color: var(--pure-white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(56, 81, 156, 0.2);
    margin-left: auto;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-grid-corporate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-grid-corporate:hover {
    background: var(--vital-orange);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(238, 126, 19, 0.3);
}

.btn-grid-corporate:hover::before {
    width: 100%;
    height: 100%;
}

.btn-grid-corporate:active {
    transform: scale(0.95);
}

.btn-grid-corporate i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-grid-corporate:hover i {
    transform: rotate(90deg);
}

/* Panel Desplegable de Contacto */
.contact-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--pure-white);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.contact-panel.active {
    right: 0;
}

.contact-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vital-orange);
    border: none;
    color: var(--pure-white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.contact-panel-close:hover {
    background: var(--primary-blue);
    transform: rotate(90deg) scale(1.1);
}

.contact-panel-content {
    padding: 80px 40px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.contact-panel-title .highlight-orange {
    color: var(--vital-orange);
}

.contact-panel-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-panel-info {
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-info-item i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--vital-orange);
}

.contact-info-item.address {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
}

.contact-info-item.address i {
    background: var(--vital-orange);
}

.contact-panel-social {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: var(--vital-orange);
    transform: translateY(-3px) scale(1.1);
}

.contact-panel-scroll {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    animation: bounceDown 2s ease-in-out infinite;
    margin-top: auto;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.contact-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Megamenú Mejorado */
.mega-dropdown {
    position: static;
}

.mega-menu {
    border: none;
    box-shadow: 0 20px 50px rgba(56, 81, 156, 0.2), 0 0 0 1px rgba(56, 81, 156, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 1100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 81, 156, 0.15);
    position: relative;
    overflow: hidden;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    z-index: 1;
}

.mega-menu-section {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.mega-menu-section:last-child {
    margin-bottom: 0;
}

.mega-menu-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%) 1;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-title i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--vital-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mega-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 0.875rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: var(--pure-white);
    box-shadow: 0 2px 6px rgba(56, 81, 156, 0.08);
    position: relative;
    overflow: hidden;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 81, 156, 0.05), transparent);
    transition: left 0.5s ease;
}

.mega-menu-item:hover::before {
    left: 100%;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, rgba(56, 81, 156, 0.03) 0%, rgba(238, 126, 19, 0.03) 100%);
    border-color: var(--primary-blue);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(56, 81, 156, 0.18), 0 0 0 1px rgba(56, 81, 156, 0.1);
    color: var(--primary-blue);
}

.mega-menu-item-image {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 0.875rem;
    flex-shrink: 0;
    border: 2px solid rgba(56, 81, 156, 0.1);
    transition: all 0.4s ease;
    box-shadow: 0 3px 10px rgba(56, 81, 156, 0.1);
}

.mega-menu-item:hover .mega-menu-item-image {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(56, 81, 156, 0.25);
}

.mega-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mega-menu-item:hover .mega-menu-item-image img {
    transform: scale(1.15) rotate(2deg);
}

.mega-menu-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.875rem;
    flex-shrink: 0;
    color: var(--pure-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(56, 81, 156, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-menu-item-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mega-menu-item:hover .mega-menu-item-icon {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(56, 81, 156, 0.4);
}

.mega-menu-item:hover .mega-menu-item-icon::before {
    width: 100%;
    height: 100%;
}

.mega-menu-item-icon i {
    position: relative;
    z-index: 1;
}

.mega-menu-item-content {
    flex: 1;
}

.mega-menu-item-content h6 {
    margin: 0 0 0.35rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.mega-menu-item:hover .mega-menu-item-content h6 {
    color: var(--vital-orange);
}

.mega-menu-item-content p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-menu-item-content p {
    color: var(--text-dark);
}

.mega-menu-price {
    background: linear-gradient(135deg, var(--vital-orange), var(--soft-orange));
    color: var(--pure-white);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(238, 126, 19, 0.3);
    margin-top: 0.35rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-price {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(238, 126, 19, 0.4);
}

.mega-menu-status {
    background: linear-gradient(135deg, var(--technical-blue), rgba(163, 175, 209, 0.8));
    color: var(--primary-blue);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(56, 81, 156, 0.2);
    margin-top: 0.35rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-status {
    transform: scale(1.03);
    background: linear-gradient(135deg, var(--primary-blue), var(--technical-blue));
    color: var(--pure-white);
    box-shadow: 0 5px 15px rgba(56, 81, 156, 0.3);
}

.mega-menu-journal {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--pure-white);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(56, 81, 156, 0.3);
    margin-top: 0.35rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-journal {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(56, 81, 156, 0.4);
}

/* Información destacada del megamenú */
.mega-menu-info {
    background: linear-gradient(135deg, rgba(56, 81, 156, 0.05) 0%, rgba(238, 126, 19, 0.05) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid rgba(56, 81, 156, 0.1);
    box-shadow: 0 6px 20px rgba(56, 81, 156, 0.1);
    position: relative;
    overflow: hidden;
}

.mega-menu-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
}

.mega-menu-highlight h5,
.mega-menu-highlight h6 {
    color: var(--primary-blue);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.mega-menu-highlight p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.875rem;
}

.mega-menu-cta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mega-menu-cta .btn {
    flex: 1;
    min-width: 120px;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mega-menu-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 81, 156, 0.25);
}

.mega-menu-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(56, 81, 156, 0.1);
}

.mega-menu-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mega-menu-features .feature-item:hover {
    background: rgba(56, 81, 156, 0.05);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.mega-menu-features .feature-item i {
    margin-right: 0.5rem;
    width: 18px;
    font-size: 0.9rem;
}

/* Estadísticas del megamenú */
.mega-menu-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.mega-menu-stats .stat-item {
    text-align: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 12px;
    border: 2px solid rgba(56, 81, 156, 0.1);
    box-shadow: 0 3px 10px rgba(56, 81, 156, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mega-menu-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mega-menu-stats .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(56, 81, 156, 0.15);
    border-color: var(--primary-blue);
}

.mega-menu-stats .stat-item:hover::before {
    transform: scaleX(1);
}

.mega-menu-stats .stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.mega-menu-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

/* Animaciones del megamenú */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-15px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-dropdown.show .mega-menu,
.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Animación escalonada para los items del megamenú */
.mega-dropdown:hover .mega-menu-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mega-dropdown:hover .mega-menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.mega-dropdown:hover .mega-menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

.mega-dropdown:hover .mega-menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

.mega-dropdown:hover .mega-menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive del megamenú */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        margin-top: 0;
        box-shadow: 0 10px 30px rgba(56, 81, 156, 0.15);
        border-radius: 0;
        border: none;
        border-top: 3px solid;
        border-image: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%) 1;
        padding: 1.5rem;
        background: var(--pure-white);
    }
    
    .mega-menu::before {
        display: none;
    }
    
    .mega-menu-item {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .mega-menu-item:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .mega-menu-item-image {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .mega-menu-item-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-right: 0.75rem;
        border-radius: 10px;
    }
    
    .mega-menu-title {
        font-size: 0.85rem;
        margin-bottom: 0.875rem;
    }
    
    .mega-menu-item-content h6 {
        font-size: 0.85rem;
    }
    
    .mega-menu-item-content p {
        font-size: 0.7rem;
    }
    
    .mega-menu-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mega-menu-stats .stat-item {
        padding: 1.25rem;
    }
    
    .mega-menu-cta {
        flex-direction: column;
    }
    
    .mega-menu-cta .btn {
        flex: none;
        width: 100%;
    }
    
    .mega-menu-info {
        padding: 1.5rem;
    }
}

/* Dropdown tradicional para elementos sin megamenú */
.dropdown-menu:not(.mega-menu) {
    border: none;
    box-shadow: 0 10px 30px rgba(56, 81, 156, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--technical-blue);
    color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--technical-blue) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.molecules-animation {
    position: absolute;
    width: 100%;
    height: 100%;
}

.molecule {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--vital-orange), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.molecule-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.molecule-2 {
    top: 40%;
    right: 15%;
    animation-delay: 1s;
}

.molecule-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.molecule-4 {
    top: 30%;
    right: 30%;
    animation-delay: 3s;
}

.molecule-5 {
    top: 70%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(135deg, var(--vital-orange), var(--soft-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dna-helix {
    position: relative;
    width: 200px;
    height: 300px;
}

.helix-strand {
    position: absolute;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--vital-orange));
    border-radius: 2px;
    animation: helix-rotate 4s linear infinite;
}

.helix-strand:first-child {
    left: 50%;
    transform: translateX(-50%);
}

.helix-strand:last-child {
    right: 50%;
    transform: translateX(50%);
    animation-direction: reverse;
}

@keyframes helix-rotate {
    0% {
        transform: translateX(-50%) rotateY(0deg);
    }
    100% {
        transform: translateX(-50%) rotateY(360deg);
    }
}

.cell-structure {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--technical-blue);
    border-radius: 50%;
    animation: cell-pulse 3s ease-in-out infinite;
}

.cell-nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--vital-orange), var(--soft-orange));
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cell-membrane {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.5;
    animation: membrane-wave 2s ease-in-out infinite;
}

@keyframes cell-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes membrane-wave {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-blue);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

/* Secciones Corporativas */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Productos */
.products-showcase {
    padding: 5rem 0;
    background-color: var(--pure-white);
    background-image: 
        radial-gradient(circle, rgba(76, 175, 80, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    background-position: 0 0;
}

.product-card {
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(56, 81, 156, 0.12);
    border: 1px solid rgba(56, 81, 156, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(56, 81, 156, 0.2);
    border-color: rgba(56, 81, 156, 0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.product-category {
    background: var(--vital-orange);
    color: var(--pure-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.product-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Estilos para productos destacados estilo ejemplo */
.product-featured-item {
    margin-bottom: 4rem;
}

.product-image-wrapper {
    position: relative;
    padding: 2rem;
    text-align: center;
    overflow: visible;
}

.product-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    opacity: 1;
    visibility: visible;
    object-fit: contain;
}

.product-featured-content {
    padding: 2rem;
}

.product-featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-title-underline::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    border-radius: 2px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.2);
    }
}

.product-featured-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-featured-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.btn-product-order {
    background: var(--primary-blue);
    color: var(--pure-white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-product-order:hover {
    background: var(--dark-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 81, 156, 0.3);
}

@media (max-width: 991px) {
    .product-featured-title {
        font-size: 2rem;
    }
    
    .product-featured-content {
        padding: 1.5rem;
    }
    
    .product-image-wrapper {
        padding: 1rem;
    }
}

/* Investigación */
.research-section {
    background: var(--primary-blue) !important;
    position: relative;
    overflow: visible !important;
}

.research-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(238, 126, 19, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(163, 175, 209, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.research-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.research-section .container {
    position: relative;
    z-index: 1;
}

/* Imágenes decorativas con transparencia */
.research-decorative-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    max-width: 300px;
    width: auto;
    height: auto;
    display: block !important;
    visibility: visible !important;
    margin: auto 0;
}

.research-image-left {
    left: -150px;
    top: 50%;
    transform: translateY(-50%) !important;
    animation: slideInFromLeft 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.research-image-left[data-aos].aos-animate {
    transform: translateY(-50%) !important;
    left: -150px !important;
}

.research-image-right {
    right: -150px;
    top: 50%;
    transform: translateY(-50%) !important;
    animation: slideInFromRight 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.research-image-right[data-aos].aos-animate {
    transform: translateY(-50%) !important;
    right: -150px !important;
}

.research-decorative-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 300px !important;
    display: block !important;
    opacity: 0.2 !important;
    visibility: visible !important;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-400px) translateY(-50%) scale(0.6) !important;
        opacity: 0;
        left: -400px;
    }
    30% {
        opacity: 0.3;
    }
    60% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) translateY(-50%) scale(1) !important;
        opacity: 1;
        left: -150px;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(400px) translateY(-50%) scale(0.6) !important;
        opacity: 0;
        right: -400px;
    }
    30% {
        opacity: 0.3;
    }
    60% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) translateY(-50%) scale(1) !important;
        opacity: 1;
        right: -150px;
    }
}

/* Responsive para imágenes decorativas */
@media (max-width: 1199px) {
    .research-decorative-image {
        max-width: 200px;
    }
    
    .research-image-left {
        left: 0;
    }
    
    .research-image-right {
        right: 0;
    }
}

@media (max-width: 991px) {
    .research-decorative-image {
        display: none;
    }
}

.research-section .section-title,
.research-section .section-subtitle {
    color: var(--pure-white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.research-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-info-blocks {
    padding: 2rem 0;
}

.research-info-block {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.research-info-block:hover {
    background: transparent;
    transform: translateY(-5px);
}

.research-block-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--vital-orange);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.research-info-block:hover .research-block-icon {
    background: var(--vital-orange);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(238, 126, 19, 0.4);
}

.research-block-icon i {
    font-size: 2rem;
    color: var(--vital-orange);
    transition: all 0.3s ease;
}

.research-info-block:hover .research-block-icon i {
    color: var(--pure-white);
}

.research-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.research-block-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.research-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.research-visual img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: contain;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

.lab-equipment {
    position: relative;
    width: 100%;
    height: 100%;
}

.microscope {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 80px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 10px;
    animation: equipment-glow 3s ease-in-out infinite;
}

.microscope::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 20px;
    background: var(--vital-orange);
    border-radius: 50%;
}

.test-tubes {
    position: absolute;
    top: 40%;
    right: 30%;
    width: 20px;
    height: 80px;
    background: linear-gradient(to bottom, var(--technical-blue), var(--vital-orange));
    border-radius: 10px;
    animation: equipment-glow 3s ease-in-out infinite 1s;
}

.dna-sequence {
    position: absolute;
    bottom: 20%;
    left: 50%;
    width: 100px;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-blue) 0px,
        var(--primary-blue) 10px,
        var(--vital-orange) 10px,
        var(--vital-orange) 20px
    );
    animation: sequence-flow 2s linear infinite;
}

@keyframes equipment-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(56, 81, 156, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(238, 126, 19, 0.5);
    }
}

@keyframes sequence-flow {
    0% {
        transform: translateX(-50%) scaleX(0);
    }
    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

/* Servicios */
.services-section {
    padding: 5rem 0 0 0;
    background-color: var(--pure-white);
}

.services-image-wrapper {
    position: relative;
    padding: 0;
    text-align: center;
    display: block;
}

.services-image-wrapper img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100%;
    width: auto;
    height: auto;
}

.services-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.services-header-content {
    padding: 0 2rem 2rem 2rem;
}

.services-header-content .row {
    margin-left: 0;
    margin-right: 0;
}

.services-subtitle-small {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.services-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.service-feature-block {
    text-align: left;
    padding: 1rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.service-feature-block:hover {
    transform: translateY(-2px);
}

.service-hexagon-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    transition: all 0.4s ease;
}

.service-feature-block:hover .service-hexagon-icon {
    background: linear-gradient(135deg, var(--vital-orange) 0%, var(--primary-blue) 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-hexagon-icon i {
    font-size: 1.5rem;
    color: var(--pure-white);
    z-index: 1;
}

.service-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.service-title-bar {
    color: var(--vital-orange);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-right: 0.25rem;
}

.service-feature-description {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 991px) {
    .services-main-title {
        font-size: 2rem;
    }
    
    .service-feature-title {
        font-size: 1.1rem;
    }
}

.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(56, 81, 156, 0.12);
    border: 1px solid rgba(56, 81, 156, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--vital-orange) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(56, 81, 156, 0.2);
    border-color: rgba(56, 81, 156, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--pure-white);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(56, 81, 156, 0.25);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--vital-orange);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(238, 126, 19, 0.3);
}

.service-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Alianzas */
.alliances-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--technical-blue) 100%);
}

.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.alliance-item {
    text-align: center;
    padding: 1rem;
    background: var(--pure-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(56, 81, 156, 0.1);
    transition: all 0.3s ease;
}

.alliance-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(56, 81, 156, 0.2);
}

.alliance-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.alliance-item:hover img {
    filter: grayscale(0%);
}

/* CTA Section Corporativo */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--pure-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(238, 126, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    color: var(--pure-white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-blue) !important;
    background-color: var(--primary-blue) !important;
    color: var(--pure-white);
    padding: 3rem 0 1rem;
}

.footer-logo {
    height: 50px;
}

.footer-title {
    color: var(--pure-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--vital-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--vital-orange);
    transform: translateY(-2px);
}

.contact-info {
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: var(--vital-orange);
    width: 20px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--vital-orange);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
}

.legal-link:hover {
    color: var(--vital-orange);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: var(--pure-white);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: var(--pure-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--text-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--vital-orange);
    border: none;
    border-radius: 50%;
    color: var(--pure-white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--soft-orange);
    transform: translateY(-2px);
}

/* Utilidades */
.bg-light {
    background-color: rgba(248, 249, 250, 0.8) !important;
    backdrop-filter: blur(10px);
}

/* Secciones con espaciado corporativo */
section {
    padding: 6rem 0;
}

section.py-5 {
    padding: 5rem 0;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-orange {
    color: var(--vital-orange) !important;
}

/* Animaciones adicionales */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section Actualizado */
.hero-section {
    position: relative;
    min-height: 180vh;
    background: var(--pure-white);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Imágenes de esquinas */
.hero-corner-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.corner-image {
    position: absolute;
    width: 250px;
    height: 250px;
    overflow: visible;
    border-radius: 20px;
    opacity: 0.6 !important;
    visibility: visible !important;
    box-shadow: none;
    background: transparent;
    transition: all 0.3s ease;
    display: block;
    z-index: 4;
}

.corner-image:hover {
    opacity: 0.8 !important;
    transform: scale(1.05);
    box-shadow: none;
}

.corner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
}

/* Asegurar visibilidad inicial con AOS */
.corner-image[data-aos] {
    opacity: 0.6 !important;
    visibility: visible !important;
}

.corner-image[data-aos].aos-animate {
    opacity: 0.6 !important;
    visibility: visible !important;
}

.corner-top-left {
    top: 20%;
    left: 0;
}

.corner-top-right {
    top: 20%;
    right: 0;
}

.corner-bottom-left {
    bottom: 15%;
    left: 6%;
}

.corner-bottom-right {
    bottom: 15%;
    right: 6%;
}

/* Imagen central grande */
.hero-main-image {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 950px;
    overflow: visible;
    border-radius: 30px;
    box-shadow: none;
    background: transparent;
    z-index: 5;
    opacity: 1;
    visibility: visible;
    display: block;
}

.hero-main-image:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: none;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Elementos flotantes */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-molecule-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-molecule-2 {
    top: 15%;
    right: 8%;
    animation-delay: 2s;
}

.floating-cell-1 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.floating-cell-2 {
    bottom: 15%;
    right: 12%;
    animation-delay: 3s;
}

.molecule-icon, .cell-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--vital-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(56, 81, 156, 0.3);
}

/* Base orgánica */
.organic-base {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: linear-gradient(135deg, var(--primary-blue), var(--technical-blue));
    clip-path: circle(50% at 50% 100%);
    z-index: 2;
    opacity: 1;
}

.base-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
}

/* Contenido del hero */
.hero-section .container {
    position: relative;
    z-index: 3;
    padding-top: 150px;
}

.hero-content-row {
    align-items: flex-start !important;
    min-height: auto;
}

.hero-subtitle-small {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.highlight-orange {
    color: var(--vital-orange);
    background: rgba(238, 126, 19, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.hero-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: var(--primary-blue);
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--vital-orange), var(--soft-orange));
    border-radius: 2px;
}

/* Botón CTA */
.hero-cta {
    margin-bottom: 3rem;
}

.cta-button {
    background: var(--vital-orange);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(238, 126, 19, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--soft-orange);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(238, 126, 19, 0.4);
}

/* Productos destacados */
.hero-products {
    position: relative;
    z-index: 4;
    margin-top: 2rem;
}

.product-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    text-align: center;
    transition: all 0.3s ease;
}

.product-item.featured {
    transform: scale(1.1);
    z-index: 2;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item.featured:hover {
    transform: scale(1.1) translateY(-10px);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    border: 3px solid var(--pure-white);
    box-shadow: 0 8px 25px rgba(56, 81, 156, 0.2);
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pure-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-blue);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}
