/* Estilos generales */



/* body, html {
    max-width: 100%;
    overflow-x: hidden;
 }

  */
 
 /* Import fonts once at the top */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Reset styles */


/* Common animation keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
    }
    50%, 70% {
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 10));
    }
}



 

.hero_main{

    position: relative;   
    display: flex;
  
    align-items: center;
    text-align: center;
    height: 60vh;
    background: linear-gradient(rgba(10, 61, 98, 0.3), rgba(4, 140, 237, 0.3)), url("../assets/servicio1.jpg") center/cover no-repeat;
    color: var(--white);
    
   
 }
 .hero_title{
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    color: white;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.5s;
 }






/* Services section */

.servicios-container {
   padding: 80px 0;
   background-color: #f9f9f9;
   overflow: hidden;
}

.servicios-header {
   text-align: center;
   max-width: 800px;
   margin: 0 auto 60px;
   opacity: 0;
   transform: translateY(30px);
   animation: fadeInUp 0.8s forwards;
}
.servicios-header h2{
    color:#00447c;
    font-size: 3rem;


}
.servicios-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 30px;
   padding: 0 20px;
   max-width: 1300px;
   margin: 0 auto;
}

.servicio-card {
   background-color: white;
   border-radius: 10px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
   padding: 30px;
   transition: transform 0.4s ease, box-shadow 0.4s ease;
   position: relative;
   z-index: 1;
   overflow: hidden;
   opacity: 0;
   transform: translateY(50px);
}

.servicio-card:nth-child(1) { animation: fadeInUp 0.8s forwards 0.2s; }
.servicio-card:nth-child(2) { animation: fadeInUp 0.8s forwards 0.4s; }
.servicio-card:nth-child(3) { animation: fadeInUp 0.8s forwards 0.6s; }
.servicio-card:nth-child(4) { animation: fadeInUp 0.8s forwards 0.8s; }
.servicio-card:nth-child(5) { animation: fadeInUp 0.8s forwards 1.0s; }
.servicio-card:nth-child(6) { animation: fadeInUp 0.8s forwards 1.2s; }

.servicio-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: linear-gradient(90deg, #0a3d62, #3498db);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.5s ease;
   z-index: 2;
}

.servicio-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 30px rgba(10, 61, 98, 0.15);
}

.servicio-card:hover::before {
   transform: scaleX(1);
}

.servicio-icono {
   margin-bottom: 20px;
   display: flex;
   justify-content: center;
}

.servicio-icono img.icon {
   width: 60px;
   height: 60px;
   transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-icono img.icon {
   transform: scale(1.15) rotate(5deg);
}

.servicio-card h3 {
   color: #0a3d62;
   font-size: 1.3rem;
   margin-bottom: 15px;
   transition: color 0.3s ease;
}

.servicio-card a {
   text-decoration: none;
}

.servicio-card a:hover h3 {
   color: #3498db;
}

.btn-ver-mas {
   display: inline-block;
   color: #0a3d62;
   font-weight: 600;
   text-decoration: none;
   position: relative;
   padding-right: 5px;
   transition: color 0.3s ease, padding-right 0.3s ease;
}

.btn-ver-mas::after {
   content: '→';
   display: inline-block;
   margin-left: 5px;
   transition: transform 0.3s ease;
}

.servicio-card:hover .btn-ver-mas {
   color: #3498db;
   padding-right: 10px;
}

.servicio-card:hover .btn-ver-mas::after {
   transform: translateX(5px);
}


 /* Metrics section */
 .metrics-section {
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px;
   display: flex;
   flex-direction: column;
   gap: 40px;
}

.metrics {
   display: flex;
   justify-content: space-around;
   flex-wrap: wrap;
   gap: 20px;
   padding: 20px 0;
   border-bottom: 1px solid #eee;
}

.metric {
   text-align: center;
   flex: 1;
   min-width: 200px;
   padding: 10px;
}

.metric-number {
   font-size: 4rem;
   font-weight: bold;
   color: var(--primary-color);
   margin-bottom: 10px;
}

.metric-label {
   font-size: 1rem;
   color: #666;
}

.content-container {
   display: flex;
   flex-wrap: wrap;
   gap: 30px;
}

.content-text {
   flex: 1;
   min-width: 300px;
}

.content-image {
   flex: 1;
   min-width: 300px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.content-image img {
   max-width: 100%;
   height: auto;
   border-radius: 8px;
}

h1 {
   color: #00447c;
   margin-bottom: 20px;
   font-size: 1.8rem;
}

p {
   margin-bottom: 15px;
   line-height: 1.6;
}

h3 {
   margin: 25px 0 15px;
   color: #333;
}

.advantages {
   list-style: none;
}

.advantages li {
   margin-bottom: 12px;
   position: relative;
   padding-left: 28px;
   line-height: 1.5;
}

.advantages li::before {
   content: "✓";
   position: absolute;
   left: 0;
   color: var(--primary-color);
   font-weight: bold;
}

@media (max-width: 768px) {
   .metrics {
       flex-direction: column;
       align-items: center;
   }
   
   .metric {
       width: 100%;
   }
   
   .content-image {
       order: -1;
   }
}
/* fin */

/* WhatsApp contact */
.whatsapp-contact {
   position: fixed;
   bottom: 20px;
   right: 20px;
   background-color: #25D366;
   color: white;
   padding: 12px 20px;
   border-radius: 50px;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 10px;
   box-shadow: 0 4px 10px rgba(0,0,0,0.2);
   opacity: 0;
   transform: translateY(20px);
   animation: bounceIn 1s ease 3s forwards;
   transition: all 0.3s ease;
   z-index: 4000;
}

.whatsapp-contact:hover {
   background-color: #128C7E;
   transform: scale(1.05);
}


/* testimonials */
/* Estilos optimizados para sección de testimonios */
.testimonials-section {
    background: linear-gradient(rgba(42, 67, 148, 0.75), rgba(0,0,0,0.85)), 
                url('../assets/mundo.avif') no-repeat center/cover;
    padding: 5rem 1rem;
    color: #fff;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
    animation: fadeInDown 0.8s ease-out;
}

.section-title span {
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.section-highlight {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    color: #333;
    text-align: left;
    position: relative;
    flex: 1 1 300px;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--order, 0) * 0.2s);
}

.testimonial-card:nth-child(1) { --order: 1; }
.testimonial-card:nth-child(2) { --order: 2; }
.testimonial-card:nth-child(3) { --order: 3; }

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: url('./assets/iconos/quote.svg') no-repeat center/contain;
    opacity: 0.2;
}

.testimonial-text {
    margin: 1.5rem 0;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid #eaeaea;
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #3498db;
}

.author-info h4 {
    margin: 0;
    color: #3498db;
    font-weight: 600;
}

.author-info p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #777;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .testimonial-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        max-width: 90%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle,
    .section-highlight {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        max-width: 100%;
    }
}
/* Preguntas frecuentes */
.faq-container  {
    max-width: 800px;
    margin: auto;
    
   
    text-align: center;
    padding: 50px 20px;
    background: #FFFFFF;
    border-radius: 10px;
    
 }
 .faq-container h2{
    color:#1B9CFC;
 }
 
 details {
    background:#F8F9FA;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
 }
 
 summary {
    cursor: pointer;
    font-weight: bold;
    color: #1E3A4C;
 }
 details p{
    color: #3282B8;
 }
 
 .btn_ter {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-decoration: none;
    background: #3282B8;
    text-align: center;
  
    
 }
 .btn_ter:hover{
    
       background: #0a5ff0;
       box-shadow: 0 8px 20px rgba(134, 12, 10, 0.5);
   
 
 }
 
 
 
 
 


 
 /* Logo carousel */
.carrusel-logos {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    padding: 20px 0;
}

.logos-wrapper {
    width: 100%;
    overflow: hidden;
}

.logos-slide {
    display: flex;
    width: calc(200px * 20);
    animation: scroll 30s linear infinite;
}

.logos-slide:hover {
    animation-play-state: paused;
}

.logos-slide img {
    width: 150px;
    height: auto;
    margin: 0 25px;
    object-fit: contain;
}

/* Special animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderPulse {
    0% {
        border-color: #0066cc;
    }
    50% {
        border-color: #4d94ff;
    }
    100% {
        border-color: #0066cc;
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .features-container,
    .main-content {
        flex-direction: column;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .content-image {
        margin-top: 30px;
    }
    
    .feature {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2, .testimonials h2 {
        font-size: 1.8rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px;
    }
    
    .logos-slide {
        animation: scroll 20s linear infinite;
    }
    
    .logos-slide img {
        width: 120px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}