/* Importar una fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* HEADER*/

.header__logo-link img {
    height: 50px;
    width: auto;
}
.header__link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.header__link:hover, .header__link--active {
    color: var(--primary);
}

.header__button--primary {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.header__button--primary:hover {
    background-color: var(--primary-dark);
} 
 .header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    
    /* ALINEACIÓN CLAVE */
    display: flex;
    justify-content: space-between; /* Empuja los 3 bloques a los extremos y centro */
    align-items: center;
}

/* Reset de listas para que se vean en línea */
.header__menu, 
.header__auth {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem; /* Espacio interno entre los links */
    margin: 0;
    padding: 0;
}

/* Ajuste opcional: Si quieres que el menú esté perfectamente centrado 
   independientemente del tamaño del logo o los botones */
.header__nav {
    flex: 1; 
    display: flex;
    justify-content: center; /* Esto centra el menú en el espacio restante */
}

.header__logo, 
.header__actions {
    flex: 0 0 auto; /* Evita que el logo o botones se estiren */
}

/* BANNER PRINCIPAL (HERO) */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__button--primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s;
}

.hero__button--primary:hover {
    transform: scale(1.05);
    background-color: var(--primary-dark);
}

/* QUIENES SOMOS (PURPOSE) */
.purpose {
    padding: 6rem 2rem;
    background-color: var(--bg-light);
}

.purpose__container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.purpose__content {
    flex: 1;
}

.purpuse__tag {
    display: inline-block;
    font-size: 0.875rem;
    background: #dbeafe;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.purpuse__title-p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.purpose__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

.purpose__image-container {
    flex: 1;
}

.purpose__image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
}

.purpose__credits {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 1rem;
}

/*SLIDER*/
/* SLIDER CLIENTES */
.clientes {
    padding: 80px 0;
    background-color: var(--white);
}

.clientes__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.clientes__title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.swiper-container {
    overflow: hidden;
    padding: 20px 0;
}

.clientes__list {
    display: flex;
    list-style: none;
    padding: 0;
    align-items: center;
}

.clientes__card {
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 12px;
}

.clientes__image {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%); /* Efecto elegante: logos en gris */
    opacity: 0.6;
    transition: all 0.4s ease;
}

.clientes__text {
    position: absolute;
    bottom: 0;
    opacity: 0;
    transform: translateY(10px);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

/* Hover: El logo cobra vida y el texto sube */
.clientes__card:hover .clientes__image {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-15px);
}

.clientes__card:hover .clientes__text {
    opacity: 1;
    transform: translateY(-5px);
}

/*swiper*/
/* Contenedor del slider */
.swiper-container {
    position: relative; /* ESTO ES CLAVE para que los botones no se escapen */
    overflow: hidden;
    padding: 20px 60px; /* Espacio para que las flechas no tapen los logos */
    margin: 0 auto;
    max-width: 100%;
}

/* Estilo de los Botones (Flechas) */
.swiper-button-next, 
.swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--primary) !important;
    transition: all 0.3s ease;
    top: 50% !important; /* Centrado vertical respecto al slider */
    transform: translateY(-50%);
}

/* Ajuste de posición para que queden en los extremos del padding */
.swiper-button-prev { left: 5px !important; }
.swiper-button-next { right: 5px !important; }

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 1.2rem !important; /* Tamaño de la flecha interna */
    font-weight: bold;
}

/* Hover de botones */
.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

/* Ocultar flechas en móviles muy pequeños para no estorbar */
@media (max-width: 480px) {
    .swiper-button-next, 
    .swiper-button-prev {
        display: none !important;
    }
    .swiper-container {
        padding: 20px 10px;
    }
}

/* FOOTER */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 2rem;
}

.footer__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer__branding .footer__image {
    height: 40px;
    margin-bottom: 1rem;
}

.footer__image-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer__image-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer__list {
    list-style: none;
}
.footer__item--text{
    font-size: 18px;

}
.footer__item {
    margin-bottom: 0.75rem;
}

.footer__item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__item a:hover {
    color: var(--white);
}

/*BOTON DE WHATSAPP*/

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* Distancia del borde inferior */
    right: 40px;  /* Distancia del borde derecho */
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100; /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Verde más oscuro al pasar el mouse */
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-icon {
    margin-top: 2px; /* Ajuste fino visual del icono */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Idealmente aquí pondrías un menú hamburguesa */
    }
    
    .hero__title {
        font-size: 2.25rem;
    }

    .purpose__container {
        flex-direction: column;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--social {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}