/* Variables globales */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --transition-speed: 0.3s;
}

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Header y navegación */
.navbar {
    transition: all var(--transition-speed);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform var(--transition-speed);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Sección Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    overflow: hidden;
}

#network-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.hero-shape path {
    fill: #ffffff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    padding: 1rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Secciones generales */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Tarjetas de productos */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card-text {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1;
}

.card-icon-large {
    position: relative;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-icon-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.card-icon-large:hover::before {
    animation: shine 0.6s ease-in-out;
}

.card-icon-large i {
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.card-icon-large:hover i {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.card-icon-large .icon-logo {
    width: 70px;
    height: auto;
    margin-top: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    background: white;
    padding: 8px;
}

.card-icon-large:hover .icon-logo {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Estilos para las ilustraciones SVG realistas en la sección de productos */
.realistic-svg {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
}

.card-icon-large:hover .realistic-svg {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

/* Gradientes específicos para cada card */
.card:nth-child(1) .card-icon-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card:nth-child(2) .card-icon-large {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card:nth-child(3) .card-icon-large {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { opacity: 0; transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card-icon-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Carousel de clientes */
#carouselClientes {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

#carouselClientes .carousel-item {
    padding: 2rem 0;
}

#carouselClientes .carousel-item img {
    max-width: 200px;
    height: auto;
    transition: all var(--transition-speed);
}

#carouselClientes .carousel-item img:hover {
    transform: scale(1.1);
}

#carouselClientes .carousel-control-prev,
#carouselClientes .carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#carouselClientes .carousel-control-prev:hover,
#carouselClientes .carousel-control-next:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#carouselClientes .carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    z-index: 1;
}

@media (max-width: 768px) {
    #carouselClientes .carousel-control-prev,
    #carouselClientes .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 15px;
    }
    
    #carouselClientes .carousel-control-prev {
        left: 15px;
    }
    
    #carouselClientes .carousel-control-next {
        right: 15px;
    }
    
    #carouselClientes .carousel-counter {
        bottom: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Formulario de contacto */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enlaces sociales */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* Media queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Optimizaciones de rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modales */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-links a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Estilos para la sección de testimonios */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
}

.testimonial-content i {
    font-size: 2rem;
    opacity: 0.2;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 30px;
    }
}

/* Estilos para la sección de estadísticas */
.stat-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Estilos para el carrusel en modales */
.modal .carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal .carousel-inner {
    height: 300px;
}

.modal .carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.modal .carousel-item img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.modal .carousel-control-prev,
.modal .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

.modal .carousel-indicators {
    margin-bottom: 0;
    bottom: 10px;
}

.modal .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.modal .carousel-indicators button.active {
    background-color: var(--primary-color);
}

.modal .carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .modal .carousel-inner {
        height: 200px;
    }
    
    .modal .carousel-control-prev,
    .modal .carousel-control-next {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }
}

/* Sección Quiénes Somos - Versión Compacta */
.about-content {
    padding: 0;
    text-align: left;
}

.about-main-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-secondary-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-item-compact {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.feature-item-compact:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.feature-item-compact i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.feature-item-compact span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
}

.about-image-wrapper-compact {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-image-wrapper-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-image-compact {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.about-image-wrapper-compact:hover .about-image-compact {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .about-main-text {
        font-size: 1rem;
    }
    
    .about-secondary-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .feature-item-compact {
        padding: 0.6rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-item-compact i {
        margin-right: 0.6rem;
        font-size: 1rem;
    }
    
    .feature-item-compact span {
        font-size: 0.85rem;
    }
    
    .about-image-compact {
        height: 250px;
    }
}

/* Estilos para el contenedor del logo del cliente */
.client-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 400px;
}

.razon-social {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.05);
    transition: all 0.3s ease;
}

.client-logo:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .client-logo-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    .client-logo {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Estilos para el texto en las flechas del carrusel */
.carousel-control-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-text,
.carousel-control-next:hover .carousel-control-text {
    opacity: 1;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: -30px;
    }

    .carousel-control-next {
        right: -30px;
    }

    .carousel-control-text {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

/* Estilos para la galería de productos */
.product-gallery {
    margin-bottom: 1rem;
}

.gallery-main {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.gallery-thumbs .row {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-thumbs .col-6 {
    padding: 0;
    width: calc(50% - 10px);
}

.gallery-thumbs .thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    border: 1px solid #eee;
}

.gallery-thumbs .thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbs .thumb {
        height: 80px;
    }
}

/* Estilos para la sección de programas distribuidos */
.program-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.program-logo {
    width: 190px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.program-card h5 {
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 600;
}

.program-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .program-card {
        padding: 1.5rem;
    }
    
    .program-logo {
        width: 190px;
        height: 100px;
    }
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    display: flex;
}

/* Animación de hover para las tarjetas de productos */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animación de hover para los enlaces del menú */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Animación de hover para los botones sociales */
.social-link {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Animación de hover para las miniaturas de la galería */
.gallery-thumbs .thumb {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbs .thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contador animado - Estilos adicionales */
.counter {
    font-variant-numeric: tabular-nums; /* Números de ancho fijo para evitar saltos */
    transition: transform 0.3s ease;
}

.counter:hover {
    transform: scale(1.1);
}

/* Animación suave para cuando los números cambian */
@keyframes countUp {
    from {
        opacity: 0.7;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Timeline de Implementación */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 123, 255, 0.3));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-icon:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6); }
    100% { box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

/* Flechas apuntando al centro */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: white;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.timeline-duration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.timeline-summary {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.timeline-summary h5 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* Botones mejorados */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-primary::before {
    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;
    z-index: -1;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.btn-outline-primary:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-item-right {
        justify-content: flex-start !important;
    }
    
    .timeline-icon {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-left-color: transparent !important;
        border-right-color: white !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        border-left-color: transparent;
        border-right-color: white;
    }
}

/* Optimización adicional: Desactivar animación de red para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    #network-background {
        display: none !important;
    }
    
    /* También desactivar animación de contador si prefieren menos movimiento */
    .counter {
        animation: none !important;
    }
}

/* Nuevos estilos para imágenes realistas en la sección de productos */
.realistic-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
    background: #fff;
}

.card-icon-large:hover .realistic-img {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.realistic-img-rect {
    width: 320px;
    height: 200px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.07);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
}

.card-icon-large:hover .realistic-img-rect {
    transform: scale(1.06);
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .realistic-img {
        width: 80px;
        height: 80px;
    }
    
    .realistic-img-rect {
        width: 100%;
        height: 140px;
    }
    
    .card-icon-large {
        min-height: 120px;
        padding: 1rem 0.5rem 0.5rem;
    }
}
