/* 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;
}

html {
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Evita que secciones o el menú móvil ensanchen la página */
.header,
.hero,
.purpose,
.clientes,
.footer,
section,
article {
    max-width: 100%;
}

/* 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;
    width: 100%;
    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 */
}

.header__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.header__toggle {
    display: none;
}

.header__toggle-label {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 226, 1);
    background: rgba(255, 255, 255, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header__overlay {
    display: none;
}

.header__hamburger {
    width: 20px;
    height: 2px;
    background: var(--secondary);
    position: relative;
    display: block;
}

.header__hamburger::before,
.header__hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--secondary);
}

.header__hamburger::before {
    top: -6px;
}

.header__hamburger::after {
    top: 6px;
}

@media (max-width: 768px) {
    .header {
        overflow-x: clip;
    }

    .header__container {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        overflow: visible;
    }

    .header__toggle-label {
        display: inline-flex;
        margin-left: auto;
        position: relative;
        z-index: 1101;
        flex-shrink: 0;
    }

    .header__panel {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(300px, 86vw);
        max-width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(226, 232, 226, 1);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding: 1rem;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.25s ease;
        z-index: 1100;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: hidden;
        pointer-events: none;
    }

    .header__nav {
        width: 100%;
        justify-content: flex-start;
    }

    .header__menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .header__menu .header__link {
        display: block;
        width: 100%;
        padding: 0.8rem 0.85rem;
        border-radius: 12px;
        background: rgba(248, 250, 248, 1);
    }

    .header__actions {
        width: 100%;
    }

    .header__auth {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .header__overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1099;
        cursor: pointer;
    }

    .header__toggle:checked + .header__toggle-label .header__hamburger {
        background: transparent;
    }

    .header__toggle:checked + .header__toggle-label .header__hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header__toggle:checked + .header__toggle-label .header__hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header__toggle:checked ~ .header__overlay {
        display: block;
    }

    .header__toggle:checked ~ .header__panel {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }
}

/* BANNER PRINCIPAL (HERO) */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.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;
    width: 100%;
    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;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.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;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

.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;
    width: 100%;
    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: 1024px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .purpose__container {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header__menu,
    .header__auth {
        gap: 0.5rem;
    }

    .hero {
        height: 480px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .hero__button--primary {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
    }

    .purpose {
        padding: 3.5rem 1.25rem;
    }

    .purpose__container {
        flex-direction: column;
    }

    .purpuse__title-p {
        font-size: 1.85rem;
    }

    .purpose__text {
        font-size: 1rem;
        text-align: left;
    }

    .purpose__image {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .clientes {
        padding: 50px 0;
    }

    .clientes__container {
        padding: 0 1rem;
    }

    .swiper-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .clientes__title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer {
        padding: 3rem 1.25rem;
    }
    
    .footer__list--social {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 420px;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .purpuse__title-p {
        font-size: 1.55rem;
    }
}
