* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f8fc;
    color: #333;
}

/* =========================
   HEADER PRINCIPAL
========================= */

header {
    width: 100%;
    height: 80px;
    background: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 60px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.logo h2 {
    font-size: 22px;
    color: #183B6B;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    margin-left: 35px;

    text-decoration: none;

    color: #0b2f6d;
    font-weight: 600;

    transition: .3s;
}

header nav a:hover {
    color: #29c27d;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 650px;

    background-image: url("img_garavito/Fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 130px 80px 80px;
}

.contenido {
    width: 55%;
}

.contenido h1 {
    font-size: 55px;
    line-height: 1.1;
    color: #123c75;
}

.contenido p {
    margin: 25px 0;
    font-size: 18px;
    line-height: 1.7;
}

button {
    padding: 15px 35px;

    background: #29c27d;
    color: white;

    border: none;
    border-radius: 30px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;

    transition: .3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(41, 194, 125, .3);
}

.destacados {
    display: flex;
    gap: 35px;
    margin-top: 30px;
    align-items: center;
}

.destacados div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #123c75;
    font-size: 16px;
}

.destacados span {
    font-size: 25px;
}

.destacados strong {
    font-weight: 600;
}


/* =========================
   TARJETA DEL HERO
========================= */

.tarjeta {
    width: 350px;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.tarjeta h2 {
    color: #0B3C70;
    margin-bottom: 20px;
}

.tarjeta p {
    margin-bottom: 12px;
    line-height: 1.6;
}


/* =========================
   MENÚ DESPLEGABLE
========================= */

.menu-desplegable {
    position: fixed;
    top: 100px;
    right: 40px;
    z-index: 2000;
}

.boton-menu {
    background: #3ED37C;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.contenido-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 55px;
    background: white;
    min-width: 230px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.contenido-menu a {
    display: block;
    padding: 7px 20px;
    text-decoration: none;
    color: #0B3C70;
    font-weight: 600;
    transition: .3s;
}

.contenido-menu a:hover {
    background: #f1f9ee;
    color: #3ED37C;
}

.menu-desplegable:hover .contenido-menu {
    display: block;
}


/* =========================
   SECCIONES
========================= */

.seccion {
    width: 90%;
    max-width: 1300px;

    margin: 70px auto;

    padding: 60px;

    background: white;

    border: 2px solid #3ED37C;
    border-radius: 30px;

    box-shadow: 0 10px 30px rgba(18, 60, 117, .12);

    scroll-margin-top: 120px;
}

.seccion > h2 {
    text-align: center;

    font-size: 42px;

    color: #0B3C70;

    margin-bottom: 40px;
}


/* =========================
   TARJETA DE LAS SECCIONES
========================= */

.CardPP {
    width: 100%;

    background: white;

    padding: 10px;

    border-radius: 20px;
}

.CardPP h2 {
    text-align: center;

    font-size: 42px;

    color: #0B3C70;

    margin-bottom: 35px;
}

.CardPP p {
    width: 100%;

    font-size: 18px;

    line-height: 1.8;

    color: #333;

    text-align: justify;
}

.CardPP ul {
    padding-left: 25px;
}

.CardPP li {
    font-size: 18px;

    line-height: 1.8;

    color: #333;

    text-align: justify;

    margin-bottom: 15px;
}


/* =========================
   PREGUNTA PROBLEMA
========================= */

#pregunta .CardPP p {
    max-width: 1000px;

    margin: auto;

    font-size: 22px;

    line-height: 1.8;

    text-align: center;
}


/* =========================
   OBJETIVOS
========================= */

.objetivos-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.objetivo-card {
    padding: 30px;

    background: #f1f9ee;

    border-radius: 20px;

    border-left: 6px solid #3ED37C;

    transition: .3s;
}

.objetivo-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.objetivo-card h3 {
    font-size: 23px;

    color: #0B3C70;

    margin-bottom: 15px;
}

.objetivo-card p {
    font-size: 17px;

    line-height: 1.7;

    color: #444;

    text-align: left;
}


/* =========================
   IMÁGENES DEL PROYECTO
========================= */

.seccion img {
    max-width: 100%;

    height: auto;

    display: block;

    margin: 30px auto;
}

#introduccion img {
    max-width: 600px;

    border-radius: 15px;
}


/* =========================
   CALCULADORA DE IMC
========================= */

.calculadora-imc {
    width: 100%;
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.calculadora-imc h2 {
    font-size: 42px;
    color: #123c75;
    margin-bottom: 15px;
}

.descripcion-imc {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #555;
    font-size: 17px;
    line-height: 1.7;
}

.formulario-imc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    text-align: left;
}

.campo-imc {
    display: flex;
    flex-direction: column;
}

.campo-imc label {
    margin-bottom: 8px;
    color: #123c75;
    font-weight: 600;
    font-size: 16px;
}

.campo-imc input,
.campo-imc select {
    width: 100%;
    padding: 14px 16px;

    border: 2px solid #d5e8e2;
    border-radius: 12px;

    background: white;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;

    outline: none;

    transition: .3s;
}

.campo-imc input:focus,
.campo-imc select:focus {
    border-color: #3ED37C;
    box-shadow: 0 0 0 3px rgba(62, 211, 124, .12);
}

.boton-imc {
    margin-top: 30px;

    padding: 15px 40px;

    background: #3ED37C;
    color: white;

    border: none;
    border-radius: 30px;

    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}

.boton-imc:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(62, 211, 124, .3);
}

.resultado-imc {
    margin-top: 35px;

    padding: 30px;

    min-height: 100px;

    background: #f1f9ee;

    border: 2px solid #3ED37C;
    border-radius: 20px;

    color: #123c75;

    font-size: 18px;

    line-height: 1.7;
}

.resultado-imc h3 {
    margin-bottom: 10px;

    color: #123c75;

    font-size: 26px;
}

.resultado-imc .numero-imc {
    font-size: 40px;
    font-weight: 800;

    color: #3ED37C;
}

.resultado-imc .categoria-imc {
    font-size: 21px;
    font-weight: 700;

    margin-top: 8px;
}

.resultado-imc.delgadez {
    border-color: #5aa9e6;
}

.resultado-imc.delgadez-severa {
    border-color: #3b82c4;
}

.resultado-imc.sobrepeso {
    border-color: #f0b429;
}

.resultado-imc.obesidad {
    border-color: #e06b6b;
}

.resultado-imc.referencia {
    border-color: #3ED37C;
}

.nota-imc {
    margin-top: 20px;

    font-size: 13px;
    line-height: 1.6;

    color: #777;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #123c75;

    color: white;

    text-align: center;

    padding: 25px;
}


/* =========================
   CHATBOT SPORTLIFE
========================= */

.chatbot {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 3000;
}


/* BOTÓN FLOTANTE (con el logo) */

.boton-chat {
    width: 75px;
    height: 75px;

    padding: 0;

    border-radius: 50%;

    border: none;

    background: #3ED37C;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);

    transition: .3s;
}

.boton-chat:hover {
    transform: scale(1.08);
}

.chat-logo-boton {
    width: 100%;
    height: 100%;

    margin: 0;

    border-radius: 50%;

    object-fit: cover;
}


/* VENTANA (columna flexible: así el campo de texto siempre se ve) */

.ventana-chat {
    display: none;
    flex-direction: column;

    position: absolute;

    right: 0;
    bottom: 3px;

    width: 650px;
    max-width: calc(100vw - 60px);

    height: 700px;
    max-height: calc(100vh - 60px);

    background: white;

    border-radius: 25px;

    overflow: hidden;

    box-shadow: 0 15px 50px rgba(0, 0, 0, .25);
}


/* CABECERA */

.chat-header {
    flex-shrink: 0;

    height: 75px;

    padding: 15px 20px;

    background: #123c75;

    color: white;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.chat-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    object-fit: cover;

    background: white;
}

.chat-header strong {
    display: block;

    font-size: 20px;
}

.chat-header small {
    display: block;

    margin-top: 3px;

    font-size: 12px;

    opacity: .8;
}

.cerrar-chat {
    padding: 0 8px;

    background: transparent;

    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}

.cerrar-chat:hover {
    transform: none;
    box-shadow: none;
    color: #56E39F;
}


/* MENSAJES */

.chat-mensajes {
    flex: 1;

    min-height: 120px;

    padding: 20px;

    overflow-y: auto;

    background: #f5f8fc;
}

.mensaje {
    max-width: 85%;

    padding: 12px 15px;

    margin-bottom: 12px;

    border-radius: 15px;

    font-size: 14px;

    line-height: 1.6;
}

.mensaje.bot {
    background: white;

    color: #333;

    border: 1px solid #e1e8ef;
}

.mensaje.usuario {
    margin-left: auto;

    background: #3ED37C;

    color: white;
}


/* BOTONES DE DEPORTES */

.opciones-deporte {
    flex-shrink: 0;

    max-height: 190px;

    overflow-y: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 7px;

    padding: 10px 15px;

    background: white;

    border-top: 1px solid #eee;
}

.opciones-deporte button {
    padding: 8px 5px;

    background: #f1f9ee;

    color: #123c75;

    border: 1px solid #cde5d2;

    border-radius: 10px;

    font-family: 'Poppins', sans-serif;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition: .2s;
}

.opciones-deporte button:hover {
    background: #3ED37C;

    color: white;

    transform: none;
    box-shadow: none;
}


/* CAMPO DE TEXTO */

.chat-input {
    flex-shrink: 0;

    display: flex;
    gap: 8px;

    padding: 12px;

    background: white;

    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;

    padding: 12px 15px;

    border: 2px solid #d5e8d4;
    border-radius: 25px;

    outline: none;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #29c27d;
}

.chat-input button {
    width: 45px;
    height: 45px;

    padding: 0;

    border-radius: 50%;

    background: #29c27d;

    color: white;

    border: none;

    cursor: pointer;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    header {
        padding: 0 25px;
    }

    header nav a {
        margin-left: 15px;
    }

    .hero {
        flex-direction: column;

        gap: 40px;

        padding: 120px 30px 60px;
    }

    .contenido {
        width: 100%;
    }

    .contenido h1 {
        font-size: 42px;
    }

    .tarjeta {
        width: 100%;
        max-width: 500px;
    }

    .seccion {
        padding: 35px 25px;
    }

    .objetivos-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .formulario-imc {
        grid-template-columns: 1fr;
    }

    .calculadora-imc h2 {
        font-size: 32px;
    }

    .descripcion-imc {
        font-size: 15px;
    }

    .resultado-imc {
        padding: 20px;
    }

}


@media (max-width: 600px) {

    header {
        height: auto;

        padding: 15px 20px;

        flex-direction: column;

        gap: 15px;
    }

    header nav {
        flex-wrap: wrap;

        justify-content: center;
    }

    header nav a {
        margin: 5px 10px;
    }

    .hero {
        padding-top: 180px;
    }

    .contenido h1 {
        font-size: 35px;
    }

    .contenido p {
        font-size: 16px;
    }

    .CardPP h2,
    .seccion > h2 {
        font-size: 32px;
    }

    .CardPP p,
    .CardPP li {
        font-size: 16px;

        text-align: left;
    }

    .destacados {
        flex-wrap: wrap;
        gap: 15px;
    }

}


@media (max-width: 500px) {

    .chatbot {
        right: 15px;
        bottom: 15px;
    }

    .ventana-chat {
        width: calc(100vw - 30px);
        max-width: none;

        right: -5px;

        height: 500px;
    }

    .opciones-deporte {
        max-height: 140px;
    }

}

/* =====================================
   SPORTLIFE - ZONA DE RETOS
===================================== */

.sportlife-zona {
    width: 90%;
    max-width: 1150px;
    margin: 70px auto;
    padding: 55px 35px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(18, 60, 117, 0.08);
    scroll-margin-top: 100px;
}

.sportlife-encabezado {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px;
}

.sportlife-encabezado > span,
.sportlife-panel-superior span {
    color: #26965f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.sportlife-encabezado h2 {
    color: #123c75;
    font-size: 38px;
    margin: 10px 0;
}

.sportlife-encabezado p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.sportlife-juegos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sportlife-tarjeta {
    min-width: 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5eee8;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sportlife-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(18, 60, 117, 0.09);
}

.sportlife-ilustracion {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #edf8ef;
    border-radius: 14px;
    font-size: 48px;
    margin-bottom: 20px;
}

.sportlife-numero {
    color: #26965f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sportlife-tarjeta h3 {
    color: #123c75;
    font-size: 21px;
    margin: 8px 0;
}

.sportlife-tarjeta p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    min-height: 48px;
    margin-bottom: 18px;
}

.sportlife-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 12px;
    background: #29c27d;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sportlife-boton:hover {
    background: #20a968;
}

.sportlife-boton:disabled {
    background: #a9cdb9;
    cursor: not-allowed;
}

.sportlife-boton.secundario {
    background: #edf3fa;
    color: #123c75;
    margin-left: 8px;
}

.sportlife-panel {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #e3eee6;
    border-radius: 22px;
    background: #f8fbf9;
}

.sportlife-panel-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sportlife-panel-superior h3 {
    color: #123c75;
    font-size: 25px;
    margin-top: 6px;
}

.sportlife-salir {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #e8f0eb;
    color: #123c75;
    font-size: 20px;
    cursor: pointer;
}

.sportlife-progreso {
    width: 100%;
    height: 8px;
    background: #e0e9e2;
    border-radius: 20px;
    margin: 24px 0 15px;
    overflow: hidden;
}

#sportlife-barra {
    width: 0;
    height: 100%;
    background: #29c27d;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.sportlife-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #526579;
    font-size: 13px;
    margin-bottom: 25px;
}

#sportlife-pregunta {
    color: #123c75;
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 20px;
}

#sportlife-opciones {
    display: grid;
    gap: 12px;
}

.sportlife-opcion {
    width: 100%;
    padding: 15px;
    border: 1px solid #dce7df;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

.sportlife-opcion:hover:not(:disabled) {
    border-color: #29c27d;
    background: #f0faf3;
}

.sportlife-opcion:disabled {
    cursor: default;
}

.sportlife-opcion.correcta {
    border-color: #24965c;
    background: #e4f7e9;
    color: #17683e;
}

.sportlife-opcion.incorrecta {
    border-color: #d58a8a;
    background: #fff0f0;
    color: #963b3b;
}

#sportlife-mensaje {
    min-height: 30px;
    margin: 16px 0;
    color: #526579;
    font-size: 14px;
    line-height: 1.6;
}

#sportlife-siguiente {
    margin-top: 5px;
}

#sportlife-final {
    text-align: center;
    padding: 25px 0 10px;
}

.sportlife-trofeo {
    font-size: 60px;
    margin-bottom: 12px;
}

#sportlife-resultado-titulo {
    color: #123c75;
    font-size: 27px;
}

#sportlife-resumen {
    color: #526579;
    line-height: 1.8;
    margin: 15px 0 25px;
}

@media (max-width: 650px) {
    .sportlife-zona {
        width: calc(100% - 24px);
        margin: 35px auto;
        padding: 28px 16px;
        border-radius: 20px;
    }

    .sportlife-encabezado h2 {
        font-size: 30px;
    }

    .sportlife-encabezado p {
        font-size: 14px;
    }

    .sportlife-juegos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sportlife-tarjeta {
        padding: 18px;
    }

    .sportlife-ilustracion {
        min-height: 95px;
        font-size: 40px;
    }

    .sportlife-tarjeta p {
        min-height: 0;
    }

    .sportlife-panel {
        padding: 20px 15px;
    }

    .sportlife-panel-superior h3 {
        font-size: 21px;
    }

    #sportlife-pregunta {
        font-size: 18px;
    }

    .sportlife-opcion {
        font-size: 14px;
    }

    .sportlife-boton.secundario {
        margin: 10px 0 0;
    }
}
