:root {
    --blanco: #FFFFFF;
    --oscuro: #212121;
    --primario: #032D63;
    --secundario:#179f54;
    --gris: #757575;
    --grisClaro: #DFE9F3;
}

/* =========================
        FUENTE PERSONALIZADA
========================= */

@font-face{
    font-family: 'AlwaysSmile';
    src: url('../fonts/Always\ Smile.otf') format('truetype');
}

/* =========================
        GENERALES
========================= */

html{
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after{
    box-sizing: inherit;
}

body{

    font-size: 16px;

    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background-image: linear-gradient(
        to top,
        var(--grisClaro) 0%,
        var(--blanco) 100%
    );

    margin: 0;

    /* espacio para header fijo */
    padding-top: 170px;
}

/* =========================
        TITULOS
========================= */

h1{
    font-size: 3.8rem;
}

h2{
    color: var(--primario);
    font-size: 3rem;
    font-weight: 700;
}

h3{
    font-size: 1.8rem;
}

h1,h2,h3{
    text-align: center;
}

/* =========================
        HEADER PREMIUM
========================= */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background:
    linear-gradient(
        rgba(255,255,255,.68),
        rgba(255,255,255,.68)
    ),
    url('../img/fondo-header.jpg');

    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;

    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 40px 42px 40px;

    box-shadow:
        0 5px 25px rgba(0,0,0,.08),
        0 4px 0 var(--secundario),
        0 8px 18px rgba(23,159,84,.18);
}

/* =========================
        GIF DECORATIVO
========================= */

.header::after{

    content:'';

    position:absolute;

    left:0;
    bottom:0;

    width:100%;

    height:65px;

    background-image:url('../img/nav-gif.gif');

    background-size:auto 100%;

    background-position:center 8px;

    background-repeat:no-repeat;

    opacity:.95;

    z-index:2;

    pointer-events:none;

    border-bottom: 1px solid var(--secundario);
}

/* =========================
        LOGO
========================= */

.logo-titulo{

    display: flex;
    align-items: center;
    gap: 15px;

    position: relative;
    z-index: 5;
}

.logo-header{

    width: 70px;
    height: 70px;

    object-fit: contain;
}

/* =========================
        INFO LOGO
========================= */

.logo-info{

    display: flex;
    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}

/* TITULO */

.titulo{

    margin: 0;

    color: var(--oscuro);

    line-height: 1;
}

/* SUBTITULO */

.subtitulo{

    font-size: 1.5rem;

    color: #444;

    font-weight: 600;

    margin-top: 3px;
}

/* ESLOGAN */

.frase-mini{

    font-family: 'AlwaysSmile', cursive;

    color: var(--secundario);

    font-size: 1.8rem;

    margin-top: 6px;

    line-height: 1.1;

    letter-spacing: 1px;

    text-shadow:
        0 0 10px rgba(23,159,84,.15);
}

#texto-eslogan{

    transition: opacity .5s ease;

    display: inline-block;
}

/* =========================
        NAVBAR
========================= */

.navegacion-principal{

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    flex-wrap: wrap;

    position: relative;
    z-index: 5;
}

.navegacion-principal a{

    position: relative;

    color: var(--oscuro);

    text-decoration: none;

    font-size: 1.7rem;
    font-weight: 600;

    padding: .8rem .2rem;

    transition: .3s;
}

/* LINEA ANIMADA */

.navegacion-principal a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:3px;

    background: var(--secundario);

    border-radius: 20px;

    transition:.3s;
}

/* HOVER */

.navegacion-principal a:hover{

    color: var(--secundario);
}

.navegacion-principal a:hover::after{

    width:100%;
}

/* ACTIVO */

.navegacion-principal a.activo{

    color: var(--secundario);
}

.navegacion-principal a.activo::after{

    width:100%;
}

/* =========================
        DERECHA
========================= */

.header-right{

    display: flex;
    align-items: center;
    gap: 22px;

    position: relative;
    z-index: 5;
}

/* =========================
        BOTON PREMIUM
========================= */

.btn-header{

    background: linear-gradient(
        135deg,
        var(--secundario),
        #118548
    );

    color: white;

    text-decoration: none;

    padding: 1.2rem 2.4rem;

    border-radius: 12px;

    font-size: 1.5rem;
    font-weight: bold;

    box-shadow:
        0 10px 20px rgba(23,159,84,.25);

    transition: .3s;
}

.btn-header:hover{

    transform: translateY(-3px);

    box-shadow:
        0 15px 25px rgba(23,159,84,.35);
}

/* =========================
        REDES SOCIALES
========================= */

.redes-sociales{

    display: flex;
    align-items: center;
    gap: 15px;
}

.redes-sociales a{

    position: relative;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .3s ease;
}

/* CONTORNO FIJO */

.redes-sociales a::before{

    content:'';

    position:absolute;

    inset:0;

    border-radius:50%;

    border:2px solid var(--secundario);

    box-shadow:
        0 0 10px rgba(23,159,84,.15);
}

/* ICONO */

.redes-sociales img{

    width: 20px;
    height: 20px;

    object-fit: contain;

    position: relative;
    z-index: 2;
}

/* HOVER */

.redes-sociales a:hover{

    transform: translateY(-4px) scale(1.08);
}


.redes-sociales a:hover::before{

    box-shadow:
        0 0 18px rgba(23,159,84,.35);
}

.redes-sociales a:hover{

    transform: translateY(-4px) scale(1.08);

    border-color: #0d7d40;

    box-shadow:
        0 10px 20px rgba(0,0,0,.18),
        0 0 15px rgba(23,159,84,.25);
}

.redes-sociales img{

    width: 20px;
    height: 20px;

    object-fit: contain;
}

/* =========================
        BOTONES GENERALES
========================= */

.boton{

    background: var(--secundario);

    color: var(--blanco);

    padding: 1rem 2rem;

    margin-top: 1rem;

    font-size: 1.6rem;

    text-decoration: none;

    text-transform: uppercase;

    font-weight: bold;

    border-radius: .5rem;

    border: none;

    display: inline-block;

    text-align: center;

    cursor: pointer;

    transition: .3s;

    box-shadow:
        0 5px 15px rgba(3, 45, 99, 0.25),
        0 0 10px rgba(23, 159, 84, 0.15);
}

.boton:hover{

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(3, 45, 99, 0.35),
        0 0 15px rgba(23, 159, 84, 0.25);

    filter: brightness(1.05);
}

/* =========================
        SOMBRAS
========================= */

.sombra{

    box-shadow:
        0 8px 20px rgba(0,0,0,.08);

    background-color: var(--blanco);

    padding: 1rem;

    border-radius: 1rem;
}

/* =========================
        HERO
========================= */

.hero h1{

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.05;

    margin: 0 0 1rem;

    max-width: 760px;
}

.hero p{

    max-width: 640px;

    line-height: 1.85;

    color: #cbd5e1;

    margin-bottom: 28px;
}

.eyebrow{

    text-transform: uppercase;

    letter-spacing: 0.2em;

    color: #a5b4fc;

    font-size: 1.7rem;

    margin-bottom: 1rem;
}

/* =========================
        RESPONSIVE
========================= */

@media (max-width:1200px){

    body{
        padding-top: 180px;
    }

    .header{

        flex-direction: column;

        gap: 25px;

        padding: 20px 20px 60px 20px;
    }

    .navegacion-principal{

        gap: 20px;
    }
}

@media (max-width:768px){

    body{
        padding-top: 170px;
    }

    .header{

        padding: 12px 12px 38px 12px;

        gap: 12px;
    }

    .logo-titulo{

        flex-direction: row;

        gap: 10px;
    }

    .logo-header{

        width: 48px;
        height: 48px;
    }

    .titulo{

        font-size: 2rem;
    }

    .subtitulo{

        font-size: 1.1rem;
    }

    .frase-mini{

        font-size: 1.4rem;

        margin-top: 2px;
    }

    .navegacion-principal{

        gap: 10px;
    }

    .navegacion-principal a{

        font-size: 1.3rem;

        padding: .4rem .1rem;
    }

    .header-right{

        flex-direction: row;

        gap: 12px;
    }

    .btn-header{

        padding: .8rem 1.4rem;

        font-size: 1.2rem;
    }

    .redes-sociales{

        gap: 10px;
    }

    .redes-sociales a{

        width: 34px;
        height: 34px;
    }

    .redes-sociales img{

        width: 16px;
        height: 16px;
    }

    .header::after{

        height: 24px;

        background-position:center 4px;
    }
}