/*==========================
=         VARIABLES
==========================*/

:root {

    --color-primario: #0F4C81;
    --color-secundario: #00A896;
    --color-acento: #4CAF50;
    --color-fondo: #F4F8FB;
    --color-blanco: #FFFFFF;
    --color-texto: #263238;
    --color-gris: #6B7280;
    --color-sombra: rgba(0, 0, 0, .12);

    --radio: 12px;

    --transicion: .35s;

}

/*==========================
=         RESET
==========================*/

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: 'Poppins', sans-serif;

    background: var(--color-fondo);

    color: var(--color-texto);

    line-height: 1.6;

}

a {

    text-decoration: none;

}

ul {

    list-style: none;

}

/*==========================
=         HEADER
==========================*/

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    transition: .4s;

}

/* Esta clase la agregará JavaScript */

header.scroll {

    background: rgba(255, 255, 255, .97);

    backdrop-filter: blur(8px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);

}

/*==========================
=         NAVBAR
==========================*/

.navbar {

    max-width: 1300px;

    margin: auto;

    padding: 20px 35px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.logo {

    display: flex;

    align-items: center;

    gap: 15px;

}

.logo i {

    font-size: 38px;

    color: var(--color-secundario);

}

.logo h1 {

    font-size: 28px;

    color: white;

    font-weight: 700;

}

.logo span {

    font-size: 13px;

    color: #DCE6F2;

}

header.scroll .logo h1 {

    color: var(--color-primario);

}

header.scroll .logo span {

    color: var(--color-gris);

}

.menu {

    display: flex;

    align-items: center;

    gap: 30px;

}

.menu a {

    color: white;

    font-weight: 500;

    position: relative;

    transition: .3s;

}

header.scroll .menu a {

    color: var(--color-texto);

}

.menu a:hover {

    color: var(--color-secundario);

}

.menu a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 3px;

    border-radius: 20px;

    background: var(--color-secundario);

    transition: .3s;

}

.menu a:hover::after {

    width: 100%;

}

.activo {

    color: var(--color-secundario) !important;

}

.menu-mobile {

    display: none;

    font-size: 28px;

    color: white;

    cursor: pointer;

}

header.scroll .menu-mobile {

    color: var(--color-primario);

}

/*==========================
=         HERO
==========================*/

.hero {

    min-height: 100vh;

    padding: 150px 8% 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;

    background: linear-gradient(135deg, #0F4C81, #1565C0);

    overflow: hidden;

}

.hero-texto {

    flex: 1;

    color: white;

    animation: aparecerIzquierda 1s ease;

}

.subtitulo {

    display: inline-block;

    padding: 8px 18px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .18);

    margin-bottom: 25px;

    font-size: 15px;

}

.hero h2 {

    font-size: 64px;

    line-height: 1.1;

    margin-bottom: 25px;

    font-weight: 700;

}

.hero h2 span {

    color: #7CFFCB;

}

.hero p {

    font-size: 18px;

    max-width: 620px;

    color: #E6EEF7;

    margin-bottom: 40px;

}

.hero-botones {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

}

/*==========================
=         BOTONES
==========================*/

.btn {

    padding: 16px 34px;

    border-radius: 40px;

    font-weight: 600;

    transition: .35s;

}

.btn-principal {

    background: var(--color-secundario);

    color: white;

}

.btn-principal:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(0, 168, 150, .35);

}

.btn-secundario {

    border: 2px solid white;

    color: white;

}

.btn-secundario:hover {

    background: white;

    color: var(--color-primario);

}

/*==========================
=         IMAGEN HERO
==========================*/

.hero-imagen {

    flex: 1;

    display: flex;

    justify-content: center;

    animation: aparecerDerecha 1.2s ease;

}

/*==========================
=         TITULOS
==========================*/

.titulo-seccion {

    text-align: center;

    margin-bottom: 60px;

}

.titulo-seccion h2 {

    font-size: 40px;

    color: var(--color-primario);

    margin-bottom: 15px;

}

.titulo-seccion p {

    color: var(--color-gris);

    font-size: 17px;

}

/*==========================
=         ANIMACIONES
==========================*/

@keyframes aparecerIzquierda {

    from {

        opacity: 0;

        transform: translateX(-60px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}

@keyframes aparecerDerecha {

    from {

        opacity: 0;

        transform: translateX(60px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}

/*==================================================
=            BENEFICIOS
==================================================*/

.beneficios {

    max-width: 1250px;

    margin: 90px auto;

    padding: 0 40px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 35px;

}

.card-beneficio {

    background: var(--color-blanco);

    padding: 45px 35px;

    border-radius: var(--radio);

    text-align: center;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

    transition: var(--transicion);

    cursor: pointer;

}

.card-beneficio:hover {

    transform: translateY(-12px);

    box-shadow: 0 25px 45px rgba(0, 0, 0, .15);

}

.card-beneficio i {

    font-size: 55px;

    color: var(--color-secundario);

    margin-bottom: 25px;

}

.card-beneficio h3 {

    font-size: 25px;

    color: var(--color-primario);

    margin-bottom: 15px;

}

.card-beneficio p {

    color: var(--color-gris);

    font-size: 16px;

}

/*==================================================
=            ESPECIALIDADES
==================================================*/

.especialidades {

    background: white;

    padding: 90px 40px;

}

.contenedor-cards {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 35px;

}

.card {

    background: linear-gradient(180deg, #ffffff, #f8fbfd);

    border-radius: 18px;

    padding: 45px 30px;

    text-align: center;

    transition: .35s;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);

    overflow: hidden;

    position: relative;

}

.card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 6px;

    background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));

}

.card:hover {

    transform: translateY(-12px);

    box-shadow: 0 30px 50px rgba(0, 0, 0, .15);

}

.card i {

    font-size: 60px;

    color: var(--color-secundario);

    margin-bottom: 25px;

    transition: .35s;

}

.card:hover i {

    transform: scale(1.15);

    color: var(--color-acento);

}

.card h3 {

    color: var(--color-primario);

    font-size: 25px;

    margin-bottom: 15px;

}

.card p {

    color: var(--color-gris);

    line-height: 1.8;

}

/*==================================================
=            POR QUÉ ELEGIRNOS
==================================================*/

.porque {

    padding: 100px 40px;

    background: var(--color-fondo);

}

.porque-grid {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 35px;

}

.porque-grid div {

    background: white;

    border-radius: 18px;

    padding: 40px 30px;

    text-align: center;

    transition: .35s;

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}

.porque-grid div:hover {

    transform: translateY(-10px);

}

.porque-grid i {

    font-size: 55px;

    color: var(--color-secundario);

    margin-bottom: 25px;

}

.porque-grid h3 {

    color: var(--color-primario);

    margin-bottom: 15px;

    font-size: 24px;

}

.porque-grid p {

    color: var(--color-gris);

}

/*==================================================
=            EFECTOS GENERALES
==================================================*/

.card-beneficio,
.card,
.porque-grid div {

    opacity: 0;

    transform: translateY(50px);

    animation: subir .8s forwards;

}

.card:nth-child(2) {

    animation-delay: .15s;

}

.card:nth-child(3) {

    animation-delay: .30s;

}

.card:nth-child(4) {

    animation-delay: .45s;

}

@keyframes subir {

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

/*==================================================
=            FOOTER
==================================================*/

footer {

    background: #0B2F4A;

    color: white;

    margin-top: 100px;

}

.footer-contenido {

    max-width: 1250px;

    margin: auto;

    padding: 70px 40px;

    display: grid;

    grid-template-columns: 2fr 2fr 1fr;

    gap: 50px;

}

.footer-contenido h3 {

    font-size: 30px;

    margin-bottom: 15px;

}

.footer-contenido p {

    margin-bottom: 12px;

    color: #D7E6F3;

}

.footer-contenido i {

    color: var(--color-secundario);

    margin-right: 10px;

}

.redes {

    display: flex;

    gap: 15px;

    align-items: flex-start;

}

.redes a {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .12);

    display: flex;

    justify-content: center;

    align-items: center;

    color: white;

    transition: .35s;

    font-size: 20px;

}

.redes a:hover {

    background: var(--color-secundario);

    transform: translateY(-6px);

}

.copyright {

    text-align: center;

    padding: 20px;

    border-top: 1px solid rgba(255, 255, 255, .12);

    color: #C8D8E5;

}

/*==================================================
=            SCROLLBAR
==================================================*/

::-webkit-scrollbar {

    width: 12px;

}

::-webkit-scrollbar-track {

    background: #E8EEF5;

}

::-webkit-scrollbar-thumb {

    background: var(--color-secundario);

    border-radius: 20px;

}

::-webkit-scrollbar-thumb:hover {

    background: var(--color-primario);

}

/*==================================================
=            RESPONSIVE TABLET
==================================================*/

@media(max-width:992px) {

    .hero {

        flex-direction: column;

        text-align: center;

        padding-top: 170px;

    }

    .hero p {

        margin: auto auto 40px;

    }

    .hero-botones {

        justify-content: center;

    }

    .hero-imagen {

        margin-top: 50px;

    }

    .navbar {

        padding: 20px;

    }

    .menu {

        gap: 18px;

    }

    .footer-contenido {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .redes {

        justify-content: center;

    }

}

/*==================================================
=            RESPONSIVE CELULAR
==================================================*/

@media(max-width:768px) {

    .logo h1 {

        font-size: 23px;

    }

    .logo span {

        display: none;

    }

    .menu {

        position: fixed;

        top: 80px;

        right: -100%;

        width: 260px;

        height: 100vh;

        background: white;

        flex-direction: column;

        justify-content: flex-start;

        padding-top: 40px;

        gap: 30px;

        transition: .35s;

        box-shadow: -10px 0 25px rgba(0, 0, 0, .12);

    }

    .menu.ativo {

        right: 0;

    }

    .menu a {

        color: var(--color-texto) !important;

    }

    .menu-mobile {

        display: block;

    }

    .hero {

        padding: 150px 25px 60px;

    }

    .hero h2 {

        font-size: 42px;

    }

    .hero p {

        font-size: 16px;

    }

    .beneficios {

        padding: 0 20px;

    }

    .especialidades {

        padding: 80px 20px;

    }

    .porque {

        padding: 80px 20px;

    }

    .titulo-seccion h2 {

        font-size: 34px;

    }

    .btn {

        width: 100%;

        text-align: center;

    }

    .footer-contenido {

        padding: 60px 25px;

    }

}

/*==================================================
=            RESPONSIVE MÓVIL PEQUEÑO
==================================================*/

@media(max-width:480px) {

    .hero h2 {

        font-size: 34px;

    }

    .subtitulo {

        font-size: 13px;

    }

    .logo i {

        font-size: 30px;

    }

    .logo h1 {

        font-size: 20px;

    }

    .card,
    .card-beneficio,
    .porque-grid div {

        padding: 30px 20px;

    }

    .card h3 {

        font-size: 22px;

    }

    .card-beneficio h3 {

        font-size: 22px;

    }

}

/*==================================================
=            EFECTO SELECCIÓN
==================================================*/

::selection {

    background: var(--color-secundario);

    color: white;

}