/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul: #0E005A;
    --azul-footer: #050033;
    --azul-claro: #42A5F5;
    --blanco: #fff;
    --gris: #ddd;
    --gris-texto: #cfcfcf;
    --verde: #3adb12;
    --negro: #0a0a0a;
}

body {
    background: var(--blanco);
    color: var(--negro);

    font-family: 'Poppins', sans-serif;
    line-height: 1.6;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    z-index: 1000;

    background: var(--azul);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

nav {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;

    padding: 0 50px;

    background: var(--azul);
}

nav > a {
    flex-shrink: 0;
}

nav ul {
    display: flex;
    align-items: center;

    gap: 25px;

    margin-left: 45px;

    list-style: none;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    display: inline-flex;
    align-items: center;

    color: var(--blanco);

    font-size: 18px;
    font-weight: 500;

    letter-spacing: 0.5px;

    text-decoration: none;

    padding: 12px 10px;

    border-radius: 50px;

    white-space: nowrap;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);

    color: var(--azul-claro);
}

nav a:active {
    transform: scale(0.97);
}

nav a i {
    margin-right: 8px;

    color: var(--blanco);

    transition: color 0.3s ease;
}

nav a:hover i {
    color: var(--azul-claro);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    width: 75px;
    height: 75px;

    display: block;
    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 80px);

    margin-top: 80px;

    display: flex;
    align-items: center;

    background-image: url("img/fondo.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    isolation: isolate;
}


/* =========================================================
   OVERLAY
========================================================= */

.overlay {
    position: absolute;

    inset: 0;

    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.52) 50%,
        rgba(0, 0, 0, 0.30) 100%
    );
}


/* =========================================================
   CONTENIDO DEL HERO
========================================================= */

.contenido {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 950px;

    padding: 60px 65px;

    color: var(--blanco);
}

.contenido h1 {
    max-width: 900px;

    font-size: clamp(32px, 4vw, 50px);

    line-height: 1.15;

    margin-bottom: 25px;
}

.contenido p {
    max-width: 800px;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 0;
}


/* =========================================================
   LISTA DEL HERO
========================================================= */

.milista {
    margin-top: 25px;
    margin-bottom: 6px;

    padding-left: 25px;

    font-size: 20px;

    line-height: 1.5;
}

.milista li {
    margin-bottom: 7px;
}

.milista li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.boton {
    display: inline-block;

    margin-top: 25px;

    padding: 15px 35px;

    background: var(--verde);
    color: var(--negro);

    border: 2px solid transparent;
    border-radius: 5px;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.boton:hover {
    background: var(--azul-claro);

    color: var(--blanco);

    transform: translateY(-3px);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.boton:active {
    transform: translateY(-1px);
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 70px;
    height: 70px;

    z-index: 1000;

    display: block;

    border-radius: 50%;

    transition: transform 0.3s ease;
        
}

.whatsapp img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.whatsapp:hover {
    transform: scale(1.1);
}

.whatsapp:active {
    transform: scale(0.96);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 100%;

    background: var(--azul-footer);

    color: var(--blanco);
}

.footer-contenedor {
    width: 100%;
    max-width: 1300px;

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 60px;

    padding: 50px 40px;

    flex-wrap: wrap;
}


/* =========================================================
   FOOTER - LOGO
========================================================= */

.footer-logo {
    flex: 1 1 500px;
}

.footer-logo img {
    width: 80px;
    height: 80px;

    display: block;

    margin-bottom: 15px;

    border-radius: 50%;

    object-fit: cover;
}

.footer-logo h2 {
    margin-bottom: 10px;

    color: var(--azul-claro);

    font-size: 28px;

    line-height: 1.3;
}

.footer-logo p {
    color: var(--blanco);

    line-height: 1.7;
}


/* =========================================================
   FOOTER - CONTACTO
========================================================= */

.footer-contacto {
    flex: 0 1 300px;

    padding-top: 8px;
}

.footer-contacto h3 {
    margin-bottom: 15px;

    color: var(--azul-claro);

    font-size: 28px;

    line-height: 1.3;
}

.footer-contacto a,
.footer-contacto p {
    display: flex;
    align-items: center;

    color: var(--gris-texto);

    line-height: 1.6;

    text-decoration: none;
}

.footer-contacto a {
    margin-bottom: 10px;
}

.footer-contacto i {
    width: 25px;

    margin-right: 8px;

    color: var(--blanco);

    text-align: center;
}

.footer-contacto a:hover {
    color: var(--azul-claro);
}


/* =========================================================
   FOOTER - COPYRIGHT
========================================================= */

.footer-copy {
    text-align: center;

    padding: 25px 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    color: var(--gris-texto);

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   FOOTER - AVISOS Y TÉRMINOS
========================================================= */

.footer-aviso,
.footer-terminos {
    text-align: center;

    padding: 4px 15px;

    color: var(--gris-texto);

    font-size: 12px;

    line-height: 1.5;
}

.footer-terminos {
    padding-bottom: 15px;
}

.footer-aviso a,
.footer-terminos a {
    color: var(--gris-texto);

    text-decoration: none;

    transition: color 0.3s ease;
}

.footer-aviso a:hover,
.footer-terminos a:hover {
    color: var(--azul-claro);
}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--azul-claro);

    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    header {
        height: 75px;
    }

    nav {
        height: 75px;

        padding: 0 25px;
    }

    .logo {
        width: 68px;
        height: 68px;
    }

    nav ul {
        gap: 8px;

        margin-left: 20px;
    }

    nav a {
        font-size: 16px;

        padding: 11px 8px;
    }

    nav a i {
        margin-right: 6px;
    }

    .hero {
        min-height: calc(100vh - 75px);

        margin-top: 75px;
    }

    .contenido {
        max-width: 850px;

        padding: 50px 40px;
    }

    .milista {
        font-size: 18px;
    }

    .footer-contenedor {
        padding: 40px 30px;

        gap: 40px;
    }
}


/* =========================================================
   TABLET PEQUEÑA / MÓVIL GRANDE
========================================================= */

@media (max-width: 768px) {

    header {
        height: auto;

        min-height: 70px;
    }

    nav {
        min-height: 70px;
        height: auto;

        padding: 7px 15px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .logo {
        width: 62px;
        height: 62px;
    }

    nav ul {
        width: 100%;

        display: flex;

        justify-content: center;
        align-items: center;

        gap: 3px;

        margin-left: 0;

        padding-bottom: 3px;

        flex-wrap: wrap;
    }

    nav a {
        font-size: 13px;

        padding: 7px 6px;

        letter-spacing: 0;
    }

    nav a i {
        margin-right: 4px;
    }

    /*
       El hero utiliza padding-top para compensar
       la navegación de dos líneas en móviles.
    */

   .hero {
    min-height: 100svh;
    margin-top: 0;
    padding-top: 115px;
    background-position: center center;
}

    .overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.50)
        );
    }

    .contenido {
        max-width: 100%;

        padding: 40px 25px;
    }

    .contenido h1 {
        font-size: clamp(30px, 7vw, 40px);

        line-height: 1.15;

        margin-bottom: 20px;
    }

    .contenido p {
        font-size: 16px;

        line-height: 1.6;
    }

    .milista {
        margin-top: 20px;

        padding-left: 22px;

        font-size: 17px;
    }

    .milista li {
        margin-bottom: 6px;
    }

    .boton {
        margin-top: 22px;

        padding: 14px 25px;

        font-size: 15px;
    }

    .whatsapp {
        width: 60px;
        height: 60px;

        right: 18px;

        bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .footer-contenedor {
        padding: 40px 25px;

        gap: 30px;
    }

    .footer-logo,
    .footer-contacto {
        flex: 1 1 100%;
    }

    .footer-contacto {
        padding-top: 0;
    }

    .footer-logo h2 {
        font-size: 22px;
    }

    .footer-logo p {
        font-size: 15px;

        line-height: 1.6;
    }

    .footer-contacto h3 {
        font-size: 24px;
    }
}


/* =========================================================
   MÓVILES
========================================================= */

@media (max-width: 480px) {

    nav {
        padding: 6px 10px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    nav ul {
        gap: 1px;
    }

    nav a {
        font-size: 12px;

        padding: 6px 5px;
    }

    nav a i {
        margin-right: 3px;
    }

    /*
       Ajuste para móviles pequeños:
       el menú ocupa menos espacio vertical.
    */

    .hero {
        padding-top: 108px;

        min-height: 100svh;
    }

    .overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.76),
            rgba(0, 0, 0, 0.55)
        );
    }

    .contenido {
        padding: 35px 20px;
    }

    .contenido h1 {
        font-size: 29px;

        line-height: 1.15;
    }

    .contenido p {
        font-size: 15px;

        line-height: 1.6;
    }

    .milista {
        padding-left: 20px;

        font-size: 16px;

        line-height: 1.5;
    }

    .boton {
        width: 100%;

        text-align: center;

        padding: 14px 20px;
    }

    .whatsapp {
        width: 55px;
        height: 55px;

        right: 15px;

        bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .footer-contenedor {
        padding: 30px 20px;

        gap: 25px;
    }

    .footer-logo h2 {
        font-size: 20px;
    }

    .footer-logo p {
        font-size: 14px;
    }

    .footer-contacto h3 {
        font-size: 22px;
    }

    .footer-copy {
        padding: 20px 15px;

        font-size: 13px;
    }

    .footer-aviso,
    .footer-terminos {
        font-size: 11px;
    }
}


/* =========================================================
   MÓVILES MUY PEQUEÑOS
========================================================= */

@media (max-width: 375px) {

    nav a {
        font-size: 11px;

        padding: 6px 4px;
    }

    nav a i {
        margin-right: 2px;
    }

    .hero {
        padding-top: 98px;
    }

    .contenido {
        padding: 30px 18px;
    }

    .contenido h1 {
        font-size: 27px;
    }

    .contenido p {
        font-size: 14px;
    }

    .milista {
        font-size: 15px;
    }

    .boton {
        font-size: 14px;
    }
}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}