/* iniciales */
/*
Azul Tech #004173
Gris Industrial #666866
Celeste electrico #00c3ff
*/


html {
    scroll-behavior: smooth;
}
section {
    padding: 100px 0;
}

@font-face {
    font-family: 'Magnetar';
    src: url('fonts/Magnetar.woff2') format('woff2'),
    url('fonts/Magnetar.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* nav */
body {
    font-family: 'Roboto', sans-serif;
}
h1, h2, h3, h4 {
    font-family: 'Magnetar', 'Poppins', sans-serif;
    /*font-family: 'Poppins', sans-serif;*/
}
.pt50 {
    padding-top: 50px !important;
}
.bg-light {
    background-color: rgb(0, 65, 115, 0.03) !important;
}

#mainNavbar {
    padding: 18px 0;
    transition: all 0.3s ease;
    background-color: #fff;
}
#mainNavbar .nav-link {
    color: #004173;
    font-size: 0.85em;
    font-weight: 300;
    margin-left: 10px;
    position: relative;
}
#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    /*width: 0%;*/
    height: 2px;
    left: 0;
    bottom: -5px;
    background: #004173;
    transition: 0.3s;
}
#mainNavbar .nav-link:hover::after {
    width: 100%;
}
#mainNavbar.scrolled {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
#mainNavbar.scrolled .nav-link {
    color: #004173;
}
#mainNavbar .logo-nav {
    width: 200px;
}



/* slider */
.main-slider {
    margin-top: 56px;
    width: 100%;
    height: 550px;
    position: relative;
}
.swiper-slide {
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;      /* 👈 centrado vertical real */
    justify-content: center;  /* centrado horizontal */
}
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}
.slide-content h1, .slide-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.7em;
}
.slide-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    margin-top: 15px;
    line-height: 1.25em;
}
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}
.main-slider .slide-content h2,
.main-slider .slide-content p {
    opacity: 0;
    transform: translateY(40px);
}
.swiper-slide-active .slide-content h1 {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.4s;
}
.swiper-slide-active .slide-content h2 {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.6s; /* 👈 espera que termine el slide */
}
.swiper-slide-active .slide-content p:nth-of-type(1) {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.6s;
}
.swiper-slide-active .slide-content p:nth-of-type(2) {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.8s;
}
.slide-content .cta {
    display: inline-block;
    /*padding: 8px 32px;*/
    background-color: #004173;
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    border-radius: 50px;
    /*transition: all 0.3s ease;*/
    transition: background-color 0.6s cubic-bezier(.4,0,.2,1), transform 0.3s ease !important;
}
.slide-content .cta a {
    padding: 10px 36px;
}

.slide-content .cta:hover {
    background-color: #00c3ff;
    transform: translateY(-2px);
}
@media (max-width: 768px) {

    /* Slider altura */
    .main-slider {
        height: 480px;
    }

    /* Contenido */
    .slide-content {
        padding: 15px;
        max-width: 80%; /* 👈 10% menos por lado */
        /*margin: 0 auto;*/
        margin-top: 40px; /* 👈 baja el bloque visualmente */
    }

    /* Título */
    .slide-content h1,
    .slide-content h2 {
        font-size: 1.1rem; /* 👈 ~15% menos que 1.25rem */
        line-height: 1.5em;
        font-weight: 600;
    }

    /* Texto */
    .slide-content p {
        font-size: 1rem;
        line-height: 1.35em;
        margin-top: 10px;
    }

    /* CTA */
    .slide-content .cta {
        font-size: 1em;
        padding: 0; /* lo maneja el <a> */
    }

    .slide-content .cta a {
        padding: 8px 22px; /* 👈 menos padding */
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* textos */
.secciones h2 {
    color: #004173;
    font-size: 1.7rem;
    font-weight: 300;
}
.secciones h3 {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: left;
}
.secciones h4 {
    color: #666866;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.secciones p, .secciones ul li, .secciones ol li {
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.7em;
}
.secciones h2 {
    margin: 0 0 1.4rem 0;
}
.secciones h3 {
    margin: 0 0 1.4rem 0;
}
.secciones h4 {
    margin: 0 0 1.4rem 0;
}
.secciones p, .secciones ul {
    margin: 0 0 1.2rem 0;
}
.secciones .texto-centrado {
    text-align: center;
}
.secciones .cta {
    display: inline-block;
    /*margin-top: 25px;*/
    padding: 14px 32px;

    background-color: #004173;
    color: #fff;
    text-decoration: none;

    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 300;

    border-radius: 50px;
    /*transition: all 0.3s ease;*/
    transition: background-color 0.6s cubic-bezier(.4,0,.2,1), transform 0.3s ease !important;
}
.secciones .cta:hover {
    background-color: #00c3ff; /**/
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .secciones h2 {
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1.3em;
    }
    .secciones h3 {
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.35em;
    }
    .secciones h4 {
        font-size: 0.95rem;
        letter-spacing: 1px;
        line-height: 1.4em;
    }
    .secciones p,
    .secciones ul li,
    .secciones ol li {
        font-size: 0.95rem;
        line-height: 1.6em;
    }
    .secciones .cta {
        font-size: 0.95rem;
        line-height: 1.6em;
    }
}


/* soluciones */
.solution-card {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: all 0.35s ease;
}
.solution-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* leve oscurecido general */
    z-index: 1;
}
.solution-card:hover {
    transform: translateY(-6px);
}
.solution-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 26px 24px;
    background-color: rgba(0, 65, 115, 0.85); /* azul 85% */
    color: #fff;
}
.solution-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.solution-body p {
    font-size: 0.9rem;
    line-height: 1.6em;
    margin: 0;
}



/* cómo trabajamos */
.trabajamos {
    color: #ffffff;
}
.trabajamos .intro {
    color: #000;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}
.trabajamos-card {
    background: #004173;
    border-radius: 16px;
    padding: 30px 22px 5px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}
.trabajamos-card:hover {
    background: rgba(0, 65, 115, 0.8);
    transform: translateY(-6px);
}
.trabajamos-card h3 {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 15px;
    margin-bottom: 15px;
}
.trabajamos-card p {
    font-size: 0.9rem;
    line-height: 1.4em;
    opacity: 0.95;
}
.icono-trabajo {
    font-size: 40px;
    color: #00c3ff;
}



/* tienda */
.bg-tienda {
    /*background-color: #bec9cf;*/
    background-color: rgb(0, 65, 115, 0.03) !important;
}
.banner {
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}
.banner-link:hover .banner {
    transform: scale(1.005);
}



/* clientes */
#clientes {
    padding: 80px 0;
    background: #fff;
}
.clientes-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}
.clientes-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: clientes-scroll 35s linear infinite;
}
.cliente-logo {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cliente-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}
.cliente-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
@keyframes clientes-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@media (min-width: 1024px) {
    .clientes-slider {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}
.clientes-slider:hover .clientes-track {
    animation-play-state: paused;
}



/* CASOS DE ÉXITO – SLIDER */
#clientes .custom-slider {
    position: relative;
    overflow: hidden;
}
#clientes .slides {
    display: flex;
    transition: transform 0.5s ease;
}
#clientes .slide {
    min-width: 100%;
}
#clientes .slide-col {
    position: relative;
    padding: 30px;
    min-height: 390px;
    background: #004173;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}
/* COLUMNA IZQUIERDA */
#clientes .slide-col.left h3 {
    color: #ffffff;
    font-weight: 600;
}
#clientes .slide-col.left .testimonial {
    font-size: 14px;
    line-height: 20px;
    margin: 20px 0 20px 50px;
    color: #e6eef8;
}
#clientes .slide-col.left .testimonial .cliente {
    font-weight: 600;
}
/* COLUMNA CENTRAL (IMAGEN) */
#clientes .slide-col.center {
    background-size: cover;
    background-position: center;
    justify-content: flex-start;
}
#clientes .overlay-text {
    position: absolute;
    top: 20px;
    left: 20%;
    transform: translateX(-15%);
    background: rgba(0, 65, 115,0.75);
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
}
#clientes .overlay-text p {
    font-size: 13px;
    line-height: 18px;
    color: #fff;
}
/* COLUMNA DERECHA */
#clientes .slide-col.right h4 {
    color: #ffffff;
    font-weight: 700;
}
#clientes .slide-col.right p {
    font-size: 14px;
    line-height: 20px;
    margin: 20px 50px 20px 0;
    color: #e6eef8;
}
#clientes .slide-col.right .frase {
    font-weight: 600;
}
/* LOGOS */
#clientes .logo {
    margin: auto !important;
    max-width: 180px;
}
#clientes .slide-col.right .logo {
    left: auto;
    right: 30px;
}
/* FLECHAS */
#clientes .custom-slider .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}
#clientes .custom-slider .prev {
    left: 10px;
}
#clientes .custom-slider .next {
    right: 10px;
}
#clientes .achicafont {
    font-size: 0.85em;
}


/* contacto */
.contact-section {
    background-color: #f8f9fa;
    color: #000;
}
.contact-section h4 {
    font-size: 1.25em;
    font-weight: 600;
}
.contact-section p {
    font-size: 0.9em;
}
.contact-section p strong {
    font-size: 0.9em;
     text-transform: uppercase;
}
.contact-section p a {
    color: #004173;
}
.contact-section p .agranda {
    font-size: 1.1em;
}
.contact-section p a:hover {
    text-decoration: none;
}
.social-icons a {
    font-size: 22px;
    margin-right: 15px;
    color: #000;
    transition: 0.3s;
}
.social-icons a:hover {
    color: #004173;
}
.logo-contacto {
    max-width:180px;
}
.contact-section .form-control {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.contact-section .form-control::placeholder {
    color: #888;
    font-size: 14px;
}
.contact-section .form-control:hover {
    border-color: #aaa;
}
.contact-section .form-control:focus {
    border-color: #004173;
    box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15);
    outline: none;
}
.contact-section .btn-dark {
    background: #004173;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.contact-section .btn-dark:hover {
    background: #0d1b2a;
    color: #fff;
    transform: translateY(-2px);
}
.contact-section .btn-dark:active {
    transform: scale(0.98);
}
.tx-rojo {
    color: red;
}
.tx-azul {
    color: #004173;
}
.contact-section .form-label {
    padding-left: 10px;
    font-size: 0.9em;
}

/* mapa */
#mapa {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
 .mapa {
    width: 100%;
    height: 350px;
    border: none;
}


/* footer */
.footer {
    height: 80px;
    background-color: #1c1c1c;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* botones flotantes */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}
.whatsapp-btn {
    background-color: #25D366;
}
.whatsapp-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-4px);
}
.ecommerce-btn {
    background-color: #004173;
}
.ecommerce-btn:hover {
    background-color: #004173;
    transform: translateY(-4px);
}


/* animaciones */
[data-aos="zoom-in"] {
    transform: scale(0.9) !important; /* ← cambia este valor */
}
[data-aos="zoom-in"].aos-animate {
    transform: scale(1) !important;
}
[data-aos="fade-up"] {
    transform: translate3d(0, 22px, 0) !important;
}
[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
}
[data-aos] {
    will-change: transform, opacity;
}
