/* Estilos generales */
body {
    font-family: "Roboto Mono", monospace;
    margin: 0;
    padding: 0;
    background-image: url('fondo1.jpg');
    background-size: cover;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
}
header {
    align-items: center;
    justify-content: space-between;
    background-image: url('../imagen_de_fondo.jpg');
    height: 150px;
    color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #aaa;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: auto;
}
.logo {
    height: 140px;
}
h1 {
    margin: 0;
    font-size: 45px;
    flex-grow: 5;
    text-align: left;
    padding-left: 50px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    text-shadow: 5px 5px 5px rgba(3, 3, 3, 0.973);
}
form {
    margin: 0;
}
/* Estilos del menú de navegación */
nav ul {
    list-style-type: none;
    padding: 0 30px;
    margin: 0;
    display: flex;
    align-items: center;
    background-color: white;
    flex-wrap: nowrap;
    min-height: 50px;
}
nav ul li {
    margin: 0 20px;
    position: relative;
}
nav ul li a {
    color: black;
    text-decoration: none;
    padding: 16px 25px;
    display: block;
}
nav ul li a:hover {
    background-color: #aaa;
}
.solicitud {
    margin-left: 615px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 200px;
    padding: 10px 0;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    padding: 10px;
    color: white;
    text-decoration: none;
}
.menu-item.dropdown:hover .dropdown-menu {
    display: block;
}
.menu-item i {
    margin-left: 5px;
}
main {
    padding: 2rem;
    max-width: 999px;
    margin: 0 auto;
}
h4 {
    margin: 3;
    font-size: 17px;
    flex-grow: 5;
    text-align: center;
    color: #353434;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
h2 {
    margin-top: 0px;
    font-size: 25px;
    text-align: center;
    font-family: Arial, sans-serif;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.category.active {
    opacity: 1;
    transform: translateY(0);
}
.category-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    color: #353434;
    text-decoration: none;
}
.category-item:hover {
    transform: translateY(-5px);
}
.category-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.category-item:hover .category-icon {
    color: #4e99e9;
}
.content {
    flex: 1;
    padding: 20px;
}
footer {
    text-align: center;
    background-color: white;
    position: static;
    bottom: 0;
    width: 100%;
    height: 4.8rem;
    grid-row-start: 4;
    margin-top: 2%;
}
footer p {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}
footer img {
    padding: 3px 0;
    height: 50px;
    object-fit: cover;
}
.cookie-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}
.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.accept {
    background-color: #4CAF50;
    color: white;
}
.reject {
    background-color: #d9534f;
    color: white;
}
@media screen and (max-width: 480px) {
    header {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        background-image: url('cabecera_movil.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }
    body {
        margin: 0;
        padding: 0;
        background-image: url('fondo_movil.webp');
        background-size: cover;
        background-position: center;
        overflow-x: hidden;
        display: inline;
    }
    .solicitud {
        margin-left: auto;
    }
    footer img {
        content: url("../footer-mob.webp");
        max-height: 100px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    footer {
        text-align: center;
        background-color: white;
        bottom: 0;
        width: 100%;
        height: 6rem;
        position: static;
        padding-bottom: 5px;
    }
    nav ul {
        z-index: 1;
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}
@media screen and (max-width: 1200px) {
    header {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        background-image: url('cabecera_movil.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }
    body {
        margin: 0;
        padding: 0;
        background-image: url('fondo_movil.webp');
        background-size: cover;
        background-position: center;
        overflow-x: hidden;
        display: inline;
    }
    .solicitud {
        margin-left: auto;
    }
    footer img {
        content: url("../footer-mob.webp");
        max-height: 100px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    footer {
        text-align: center;
        background-color: white;
        bottom: 0;
        width: 100%;
        height: 5rem;
        position: static;
        padding-bottom: 5px;
    }
    nav ul {
        z-index: 1;
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}