* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    background-color: #ffffff;
    padding: 10px 0;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 0.6fr 2.5fr 0.5fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 10px;
}

.image-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-content {
    padding: 0;
}

.section-title {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-text {
    font-size: 0.95em;
    line-height: 1.7;
}

.section-text p {
    margin-bottom: 10px;
    text-align: left;
}

.button-container {
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
}

.regresar-btn {
    display: inline-block;
    background-color: #4472C4;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s;
}

.regresar-btn:hover {
    background-color: #365a9e;
}

.nutritional-section {
    background-color: #ffffff;
    padding: 0;
}

.section-title-main {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.intro-nutrientes {
    font-size: 0.95em;
    margin-bottom: 15px;
    text-align: left;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 0.8fr 3fr;
    gap: 30px;
    align-items: start;
}

.sidebar-info {
    font-size: 0.85em;
    line-height: 1.6;
    padding: 10px;
}

.main-text {
    font-size: 0.95em;
}

.nutrients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    overflow-x: auto;
    display: block;
}

.nutrients-table thead {
    background-color: #4472C4;
    color: white;
}

.nutrients-table th,
.nutrients-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.nutrients-table th {
    font-weight: 600;
    font-size: 0.95em;
}

.nutrients-table tbody tr:nth-child(even) {
    background-color: #D9E2F3;
}

.nutrients-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.nutrients-table td {
    font-size: 1.1em;
}

/* Pantallas grandes (1440px en adelante) */
@media (min-width: 1440px) {
    .logo {
        height: 80px;
    }

    .container {
        padding: 0 60px;
        margin: 30px auto;
    }

    .content-wrapper {
        gap: 40px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 1.15em;
        line-height: 1.9;
    }

    .section-text p {
        margin-bottom: 14px;
    }

    .regresar-btn {
        padding: 15px 38px;
        font-size: 1.2em;
    }

    .section-title-main {
        font-size: 1.6em;
        margin-bottom: 15px;
    }

    .intro-nutrientes {
        font-size: 1.15em;
        margin-bottom: 20px;
    }

    .content-with-sidebar {
        gap: 40px;
    }

    .sidebar-info {
        font-size: 1.05em;
        line-height: 1.8;
        padding: 15px;
    }

    .main-text {
        font-size: 1.15em;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 15px 18px;
    }

    .nutrients-table th {
        font-size: 1.15em;
    }

    .nutrients-table td {
        font-size: 1.3em;
    }
}

/* Pantallas muy grandes (1920px en adelante) */
@media (min-width: 1920px) {
    .logo {
        height: 100px;
    }

    .container {
        max-width: 1800px;
        padding: 0 80px;
        margin: 40px auto;
    }

    .content-wrapper {
        gap: 50px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.9em;
        margin-bottom: 25px;
    }

    .section-text {
        font-size: 1.35em;
        line-height: 2.1;
    }

    .section-text p {
        margin-bottom: 18px;
    }

    .regresar-btn {
        padding: 18px 45px;
        font-size: 1.4em;
    }

    .section-title-main {
        font-size: 1.9em;
        margin-bottom: 20px;
    }

    .intro-nutrientes {
        font-size: 1.35em;
        margin-bottom: 25px;
    }

    .content-with-sidebar {
        gap: 50px;
    }

    .sidebar-info {
        font-size: 1.25em;
        line-height: 2;
        padding: 20px;
    }

    .main-text {
        font-size: 1.35em;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 18px 22px;
    }

    .nutrients-table th {
        font-size: 1.35em;
    }

    .nutrients-table td {
        font-size: 1.5em;
    }
}

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
        margin: 15px auto;
    }

    .content-wrapper {
        grid-template-columns: 1fr 2fr;
        gap: 25px;
        margin-bottom: 15px;
    }

    .button-container {
        grid-column: 1 / -1;
        justify-content: center;
        padding-top: 15px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-info {
        order: 2;
    }

    .main-text {
        order: 1;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .nutrients-table td {
        font-size: 1em;
    }
}

/* Tablets pequeñas (481px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        margin: 10px auto;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .image-left {
        order: 1;
    }

    .main-content {
        order: 2;
    }

    .button-container {
        order: 3;
        grid-column: 1;
        justify-content: center;
        padding-top: 10px;
    }

    .section-title {
        font-size: 1.2em;
        margin-bottom: 12px;
    }

    .section-text {
        font-size: 0.9em;
    }

    .section-title-main {
        font-size: 1.2em;
    }

    .intro-nutrientes {
        font-size: 0.9em;
    }

    .sidebar-info {
        font-size: 0.85em;
        padding: 8px;
    }

    .nutrients-table {
        font-size: 0.85em;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 8px 10px;
    }

    .nutrients-table td {
        font-size: 0.95em;
    }

    .regresar-btn {
        padding: 10px 25px;
        font-size: 0.95em;
    }
}

/* Móviles (hasta 480px) */
@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .logo {
        height: 50px;
    }

    .container {
        padding: 0 15px;
        margin: 8px auto;
    }

    .content-wrapper {
        gap: 15px;
    }

    .section-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .section-text {
        font-size: 0.85em;
        line-height: 1.6;
    }

    .section-text p {
        margin-bottom: 8px;
    }

    .section-title-main {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .intro-nutrientes {
        font-size: 0.85em;
        margin-bottom: 12px;
    }

    .sidebar-info {
        font-size: 0.8em;
        padding: 6px;
    }

    .nutrients-table {
        display: table;
        font-size: 0.75em;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 6px 8px;
    }

    .nutrients-table th {
        font-size: 0.85em;
    }

    .nutrients-table td {
        font-size: 0.85em;
    }

    .regresar-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

/* Móviles muy pequeños (hasta 320px) */
@media (max-width: 320px) {
    .logo {
        height: 40px;
    }

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1em;
    }

    .section-text {
        font-size: 0.8em;
    }

    .section-title-main {
        font-size: 1em;
    }

    .intro-nutrientes {
        font-size: 0.8em;
    }

    .sidebar-info {
        font-size: 0.75em;
    }

    .nutrients-table {
        font-size: 0.7em;
    }

    .nutrients-table th,
    .nutrients-table td {
        padding: 5px 6px;
    }

    .regresar-btn {
        padding: 7px 15px;
        font-size: 0.85em;
    }
}