* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #027502;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.brand-logo {
    color: #39f139;
    font-size: 19px;
    font-weight: bold;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    color: #fff;
    font-weight: bold;
}

.hero {
    padding: 70px 20px;
    text-align: center;
    background: #038f03;
    color: white;
    border-top: 3px solid #39f139;
    border-bottom: 3px solid #39f139;
    
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
}

.card {
    background: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    border: 1px solid #027502;
}

textarea,
input {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    background: #038f03;
    color: white;
    border: 2px solid #39f139;
    padding: 14px 22px;
    border-radius: 16px;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: #027502;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: #eef4ff;
    min-height: 70px;
    word-break: break-word;
}

.info-content {
    margin: 60px 0;
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
    border: 1px solid #027502;
}

.info-content h2 {
    margin: 25px 0 15px;
    color: #038f03;
}

footer {
    margin-top: 60px;
    background: #122413;
    color: white;
    text-align: center;
    padding: 25px;
}

@media(max-width:768px) {

    .hero h1 {
        font-size: 28px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

}

.category ul li a:hover {
    color: #027502;
}

.menu a:hover {
    color: #39f139;
}


/* protin spain */

.protein-result {
    text-align: center;
    padding: 20px;
}

.result-number {
    font-size: 42px;
    font-weight: 700;
    margin: 15px 0;
}

.result-disclaimer,
.calculator-note {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

.error {
    font-weight: 600;
}

@media (max-width: 768px) {
    
    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        width: 100%;
    }

    .result-number {
        font-size: 34px;
    }
}

/* Calculadora de Horas Trabajadas */

.result-number {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.error {
    font-weight: 600;
}

.calculator-note {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

@media (max-width: 768px) {

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    .result-number {
        font-size: 34px;
    }
}

/* Calculadora de Incertidumbre */

.uncertainty-result {
    text-align: center;
    padding: 20px;
}

.uncertainty-result p {
    line-height: 1.7;
}

.result-number {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
    word-break: break-word;
}

.error {
    font-weight: 600;
}

.calculator-note {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

@media (max-width: 768px) {

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    .result-number {
        font-size: 28px;
    }

    .uncertainty-result {
        padding: 10px;
    }
}

/* Calculadora de Paneles Solares */

.solar-result {
    text-align: center;
    padding: 20px;
}

.solar-result .result-number {
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0;
}

.solar-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.solar-result-grid div {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.solar-result-grid span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.solar-result-grid strong {
    display: block;
    font-size: 20px;
}

.solar-note {
    font-size: 14px;
    line-height: 1.6;
}

.calculator-note {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

.error {
    font-weight: 600;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    .solar-result .result-number {
        font-size: 34px;
    }

    .solar-result-grid {
        grid-template-columns: 1fr;
    }

}

