* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1f1e1e;
}

/* ========== HEADER ========== */
.header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    z-index: 100;
}

/* Logo móvil (oculto en desktop) */
.logo-mobile {
    display: none;
}

.logo-mobile h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #1f1e1e;
}

/* Navegación */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #1f1e1e;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navegacion-contenedor {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #201e1e;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.nav-link.activo {
    font-weight: 700;
    color: #141313;
}

.nav-link:hover {
    opacity: 0.7;
}

.titulo-producto {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titulo-producto h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #1f1e1e;
    letter-spacing: 2px;
}

/* Opciones interactivas */
.opciones-interactivas {
    display: flex;
    align-items: center;
    gap: 50px;
}

.button-imc {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 60px;
    background-color: #955f39;
    border-radius: 4px;
    border: none;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.button-imc:hover {
    background-color: #7d4e2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-imc svg {
    width: 17px;
    height: 17px;
    transform: rotate(180deg) scaleY(-1);
    flex-shrink: 0;
}

.contactanos-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #1d1d1d;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.contactanos-link:hover {
    opacity: 0.7;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    max-width: 1540px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Información IMC */
.informacion-imc {
    margin-bottom: 60px;
}

.informacion-imc p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.6;
    color: #000000;
    max-width: 1500px;
}

/* Formulario IMC */
.formulario-imc {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.parametros-imc {
    background-color: #eae5df;
    padding: 40px;
    border-radius: 21px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.fila-inputs {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.input-grupo {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-grupo label {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-grupo input,
.input-grupo select {
    width: 100%;
    padding: 19px;
    border: 1.6px solid rgba(66, 80, 102, 0.4);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    background-color: white;
    box-shadow: 0px 3px 6px rgba(66, 80, 102, 0.1);
    transition: border-color 0.3s;
}

.input-grupo input:focus,
.input-grupo select:focus {
    outline: none;
    border-color: #955f39;
}

.select-grupo select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L9 9L17 1' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.unidad {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    color: #000000;
    padding-bottom: 19px;
    white-space: nowrap;
}

.btn-calcular {
    background-color: #ab7f62;
    color: white;
    border: none;
    padding: 19px 38px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    align-self: center;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-calcular:hover {
    background-color: #8f6b51;
}

/* Resultado IMC */
.resultado-imc {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 21px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.resultado-imc h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #955f39;
}

.imc-valor {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.imc-valor span {
    font-size: 64px;
    font-weight: 700;
    color: #955f39;
}

.resultado-imc p {
    font-size: 24px;
    font-weight: 600;
    color: #1f1e1e;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .titulo-producto h1 {
        font-size: 36px;
    }

    .nav-link,
    .contactanos-link {
        font-size: 18px;
    }

    .opciones-interactivas {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .header-contenedor {
        flex-wrap: wrap;
    }

    .titulo-producto {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .parametros-imc {
        padding: 30px 20px;
    }

    .informacion-imc p {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 15px;
        position: sticky;
        top: 0;
        background-color: rgba(221, 163, 100, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .menu-toggle {
        display: flex;
    }

    .navegacion-contenedor {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: #955f39;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }

    .navegacion-contenedor.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        font-size: 20px;
        color: #fef5f5;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.activo {
        color: #ffffff;
    }

    .titulo-producto h1 {
        font-size: 28px;
    }

    .opciones-interactivas {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .button-imc {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        height: 50px;
    }

    .contactanos-link {
        font-size: 18px;
        padding: 10px 0;
        color: black;
    }

    .fila-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .input-grupo {
        min-width: 100%;
    }

    .unidad {
        padding-bottom: 0;
        text-align: right;
        margin-top: -5px;
        margin-bottom: 10px;
    }

    .parametros-imc {
        padding: 25px 15px;
    }

    .btn-calcular {
        width: 100%;
        padding: 15px 25px;
        font-size: 18px;
    }

    .resultado-imc {
        padding: 25px 15px;
    }

    .imc-valor span {
        font-size: 48px;
    }

    .resultado-imc p {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .informacion-imc p {
        font-size: 16px;
    }

    .input-grupo input,
    .input-grupo select {
        padding: 15px;
        font-size: 18px;
    }

    .input-grupo label {
        font-size: 16px;
    }

    .unidad {
        font-size: 18px;
    }
}