/* Import fonts once at the top */
/* Importar desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:ital,wght@0,400;0,600;1,400&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));
    }
}

/* Common styles */
.container2,
.container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Headings */



h1 {
    
    font-size: 36px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease 0.9s forwards;

}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    color: #1f73b4;
}

h2::after,
.why-choose-us h2::after,
.servicios-header h2::after,
.testimonials h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0a3d62;
    margin: 15px auto 0;
    transform: scaleX(0);
    animation: expandLine 1s forwards 0.5s;
}

h3 {
    color: #333;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

/* Paragraphs */
p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.2s forwards;
}

/* Buttons */
.btn_pri,
.btn_ter {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0a3d62;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn_pri {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 1.1s;
}

.btn_pri:hover,
.btn_ter:hover {
    background-color: #0c4b78;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn_ter {
    display: block;
    width: max-content;
    margin: 20px auto 0;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.btn_ter:hover {
    animation: none;
}

/* Hero section */

.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;}
    right: 0;
    bottom: 0;
    left: 0;
   
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
right: 0;
bottom: 0;
left: 0;
    background: rgba(10, 61, 98, 0.3);
    z-index: 1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    width: 90%;
    max-width: 800px;
}

.content h1 {
    font-size: 2rem; /* Valor por defecto */
font-size: min(max(2rem, 7vw), 3.5rem); /* Alternativa a clamp() */
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeUp .8s forwards;
}

.content p {
   font-size: 2rem; /* Valor por defecto */
font-size: min(max(2rem, 7vw), 3.5rem); /* Alternativa a clamp() */
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .8s forwards .3s;
}

.btn {
    display: inline-block;
    background: #0a3d62;
    color: white;
    padding: .8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: fadeUp .8s forwards .6s;
    transition: transform .3s, background .3s;
}

.btn:hover {
    background: #155e93;
    transform: translateY(-3px);
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: .3s;
}

.dots span.active {
    background: white;
    transform: scale(1.2);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {height: 80vh}
    .content {width: 95%}
}

/* Why Choose Us section */
.why-choose-us {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.why-choose-us h2 {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 28px;
    color: #0063B1;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 25px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.feature:nth-child(1) {
    animation: fadeInUp 0.8s forwards 0.3s;
}

.feature:nth-child(2) {
    animation: fadeInUp 0.8s forwards 0.5s;
}

.feature:nth-child(3) {
    animation: fadeInUp 0.8s forwards 0.7s;
}

.feature:nth-child(4) {
    animation: fadeInUp 0.8s forwards 0.9s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(10, 61, 98, 0.15);
}

.feature img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.feature:hover img {
    transform: scale(1.1) rotate(5deg);
}

.feature h3 {
    margin-bottom: 15px;
    color: #0a3d62;
    font-size: 1.3rem;
    position: relative;
}

.feature h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #0a3d62;
    margin: 10px auto 0;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature:hover h3::after {
    transform: scaleX(1);
}

/* Services section */
.servicios-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 28px;
    color: #0063B1;

}

.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-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 {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.metric {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.metric:nth-child(2) {
    animation-delay: 0.3s;
}

.metric:nth-child(3) {
    animation-delay: 0.6s;
}

.metric-number {
    font-size: 5rem;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
    animation: countUp 2s ease-out forwards;
}

.metric-label {
    font-size: 1.2rem;
    color: #666;
}

/* Main content */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
}

.content-text {
    flex: 2;
}

.content-image {
    flex: 4;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease 1.5s forwards;
}

.advantages {
    list-style: none;
    padding: 0;
}

.advantages li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.5s ease forwards;
}

.advantages li:nth-child(1) {
    animation-delay: 1.8s;
}

.advantages li:nth-child(2) {
    animation-delay: 2.0s;
}

.advantages li:nth-child(3) {
    animation-delay: 2.2s;
}

.advantages li:nth-child(4) {
    animation-delay: 2.4s;
}

.advantages li:before {
    content: "✓";
    color: #0066cc;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* 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 section */
.testimonials h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #0066cc;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: calc(50% - 15px);
    min-width: 280px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial:nth-child(1) {
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.testimonial:nth-child(2) {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
}

.quote {
    position: relative;
    margin-bottom: 25px;
}

.quote img:first-child {
    width: 30px;
    height: auto;
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.quote img:last-child {
    width: 30px;
    height: auto;
    position: absolute;
    bottom: -15px;
    right: -10px;
    opacity: 0.7;
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

.client {
    display: flex;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.3s forwards;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0066cc;
    animation: borderPulse 3s infinite;
}

.client-info {
    margin-left: 15px;
}

.client-info h4 {
    font-size: 1.1rem;
    color: #0066cc;
    margin-bottom: 5px;
}

.client-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Pricing table */
.tarifario-container h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #0066cc;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}
.tarifario-container {
    overflow: hidden;
    animation: slideInFromLeft 0.8s ease-out;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.3s both;
}

th {
    background-color: #0066cc;
    color: white;
    padding: 15px;
    text-align: left;
}

td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

tbody tr {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr:hover {
    background-color: #e6f2ff;
    transform: translateX(5px);
}

tbody tr:nth-child(1) {
    animation: slideRow 0.5s ease-out 0.5s both;
}

tbody tr:nth-child(2) {
    animation: slideRow 0.5s ease-out 0.7s both;
}

tbody tr:nth-child(3) {
    animation: slideRow 0.5s ease-out 0.9s both;
}

.costo {
    font-weight: bold;
    color: #0066cc;
}



/* Preguntas frecuentes */
.faq-container {
    max-width: 800px;
    margin: auto;


    text-align: center;
    padding: 50px 20px;
    background: #FFFFFF;
    border-radius: 10px;

}

.faq-container h2 {
    color: #0066cc;
}

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: #0c0c0c;
}

.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;
    }
}