/* Reset y base mejorados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Efectos de scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animaciones para elementos que entran en viewport */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos del menú mejorados */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #011637 !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4dffb4, #00d4aa);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #4dffb4 !important;
    transform: translateY(-2px);
}

/* Banner mejorado con efectos dinámicos */
.banner-section {
    background-image: url('../../img/banner/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    position: relative;
    padding: 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 22, 55, 0.3);
    z-index: 1;
}

.banner-text {
    padding: 2rem;
    z-index: 2;
    position: relative;
    animation: fadeInLeft 1s ease-out;
}

.banner-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffffff, #4dffb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    opacity: 0.9;
}

/* Botón CTA mejorado */
.cta-button {
    background: linear-gradient(135deg, #4dffb4, #00d4aa);
    color: #011637;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(77, 255, 180, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #011637, #00d4aa);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 63, 0.4);
    color: white;
}

/* Slider vertical con efectos mejorados */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.slider-column {
    overflow: hidden;
    height: 100%;
    position: relative;
}

.slider-row-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 25s;
}

.column-1 .slider-row-content {
    animation-name: moveDown;
}

.column-2 .slider-row-content {
    animation-name: moveUp;
}

.column-3 .slider-row-content {
    animation-name: moveDown;
    animation-duration: 30s;
}

.slider-item {
    width: 100%;
    height: 180px;
    margin: 10px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 255, 180, 0.1), rgba(0, 212, 170, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.slider-item:hover::before {
    opacity: 1;
}

.slider-item:hover {
    transform: scale(1.02);
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-item:hover img {
    transform: scale(1.05);
}

/* Animaciones para slider vertical */
@keyframes moveDown {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Sección de tecnologías mejorada */
.tech-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 255, 180, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.section-title {
    text-align: center;
    color: #0a2b5e;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    z-index: 10;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
}

/* Logo slider horizontal mejorado */
.logos-container {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    z-index: 1;
}

.logos-row {
    display: flex;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    white-space: nowrap;
}

.row-1 {
    animation: scrollRight 25s linear infinite;
}

.row-2 {
    animation: scrollLeft 25s linear infinite;
    margin-top: 20px;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 255, 180, 0.1), transparent);
    transition: left 0.6s;
}

.logo-item:hover::before {
    left: 100%;
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(77, 255, 180, 0.2);
}

.logo-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.1);
}

/* Servicios con efectos dinámicos avanzados */
.services-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 80px 0;
    position: relative;
}

.service-card {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(77, 255, 180, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: rotate(0deg);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
    transform: rotate(180deg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(77, 255, 180, 0.15);
}

.service-image {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 22, 55, 0.9), rgba(77, 255, 180, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.service-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
}

.service-card:hover .service-overlay::before {
    width: 300px;
    height: 300px;
}

.service-description {
    color: white;
    text-align: center;
    padding: 0 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #011637, #0a2b5e);
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.service-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4dffb4, #00d4aa);
    color: #011637;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(77, 255, 180, 0.3);
}

.service-plus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #011637, #00d4aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-plus i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-plus:hover::before {
    opacity: 1;
}

.service-plus:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 140, 63, 0.4);
}

.service-plus:hover i {
    color: #ffffff;
    transform: rotate(-90deg);
}

/* Efectos hover mejorados para las tarjetas */
.service-card:hover .service-overlay {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover .service-description {
    transform: translateY(0);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.service-card:hover .service-title {
    transform: translateX(5px);
}

/* CTA section mejorada */
.cta-background {
    background: linear-gradient(135deg, rgba(1, 22, 55, 0.9), rgba(10, 43, 94, 0.8)), url("../../img/cta.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 255, 180, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite reverse;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #4dffb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

/* Footer mejorado */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #011637;
    padding: 60px 0 30px;
    position: relative;
}

.contact-info-block {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-info-block:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4dffb4, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(77, 255, 180, 0.3);
    transition: all 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(77, 255, 180, 0.4);
}

.contact-icon i {
    color: #011637;
    font-size: 18px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4dffb4, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(77, 255, 180, 0.3);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #011637, #00d4aa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(77, 255, 180, 0.4);
}

.social-icon i {
    color: #011637;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-icon:hover i {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid rgba(1, 22, 55, 0.1);
}

/* Animaciones de scroll suaves */
@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-container {
        height: 400px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slider-item {
        height: 140px;
    }
    
    .logo-item {
        width: 120px;
        height: 120px;
        margin: 0 15px;
    }
    
    .service-image img {
        height: 250px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .column-3 {
        display: none;
    }
    
    .logo-item {
        width: 100px;
        height: 100px;
        margin: 0 10px;
    }
    
    .service-image img {
        height: 220px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .banner-section {
        background-attachment: scroll;
    }
    
    .cta-background {
        background-attachment: scroll;
    }
}

/* Nuevas animaciones de entrada */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.8s ease-out;
}

/* Efectos de partículas sutiles */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Mejoras de accesibilidad manteniendo el SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}