* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --tamano-imgPrincipal: 400px;
    --tamano-imagen1: 100px;
    --tamano-imagen2: 150px;
}

.imgVertical{
    width: calc(var(--tamano-imagen1) * 3);
    height: calc(var(--tamano-imagen1) * 4);
}

.imgHorizontal{
    width: calc(var(--tamano-imagen2) * 4);
    height: calc(var(--tamano-imagen2) * 3);
}

.imgVertical, .imgHorizontal {
    max-width: 100%;
    height: auto;
}

.hidden{
    display: none;
}

ul {
    list-style-type: none;
    margin-top: 10px;
}

ul li {
    margin-bottom: 15px;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

.caja{
    display: flex;
    padding: 0 0 9px 4px;
    height: 30px;
    width: 30px;
}

.icono{
    width: 20px;
    margin: 0 7px 0 5px;
}

a{
    color: inherit;
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #2e7d32;
    color: white;
    padding: 5px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid #1b5e20;
}

header .centrador {
    display: flex;
    align-items: center;
    margin-left: 20px; 
    gap: 20px;
}

#logo {
    border-radius: 50%;
    width: 75px;
    height: 75px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nombre-lema {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nombre-lema #nombre {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.nombre-lema span:nth-child(2),
.nombre-lema span:nth-child(3) {
    font-size: 14px;
    color: #c8e6c9;
}

#menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin: 10px;
}

.menu-categorias{
    width: 40vw;
    display: flex;
    flex-wrap: wrap;
}

.categorias{
    width: 33%;
    box-sizing: border-box;
    padding: 0 5px;
}

.categorias a {
    display: block;
    padding: 8px 12px;
    background-color: #388e3c;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px;
}

.categorias a:hover {
    background-color: #4caf50;
    transform: translateY(-2px);
}

.seccion {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: auto;
    height: auto;
    border-bottom: 1px solid #ccc;
    padding: 40px 20px;
    gap: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 55px;
    background: #f9f9f9;
}

.derecha img, .izquierda img{
    border-radius: 60px;
    border: 1px solid black;
}

.titulo {
    font-size: 28px;
    color: #2e7d32;
    margin-bottom: 10px;
    text-align: center;
}

.subtitulo {
    font-size: 20px;
    color: #4caf50;
    margin: 10px 0;
    text-align: center;
}

.texto {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
        text-align: center;
    }

    header .centrador {
        flex-direction: column;
        margin: 0;
        align-items: center;
    }

    .nombre-lema {
        font-size: 14px;
    }

    .menu-categorias {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    header nav, .menu-categorias.show, #menu-toggle {
        display: flex;
        flex-direction: column;
    }

    .categorias {
        width: 100%;
        border: none;
        text-align: center;
        padding: 10px 0;
    }

    header .redes-contacto {
        align-items: center;
        gap: 8px;
        margin-right: 0px;
    }

    .seccion {
        flex-direction: column;
        padding: 30px 35px;
        width: 100vw;
        margin: 0px;
    }

    .izquierda, .derecha {
        width: 100%;
    }

    .contenido {
        width: 100%;
        padding: 0 10px;
    }

    .contenido .lista{
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .valores{
        min-width: 100%;
    }

    .titulo {
        font-size: 20px;
    }
}