@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 1% 2% 1% 2%;
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, #f4f4f4, #e0f7fa);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.5s ease;
}

header,
main,
footer {
    border-radius: 1rem;
}

header {
    background: linear-gradient(90deg, #2d6a4f, #40916c);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    width: 100px;
    position: absolute;
    left: 20px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

main {
    background: #d8f3dc;
    padding: 2% 5%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.documentacion {
    margin: 20px auto;
    text-align: left;
}

.seccion {
    margin-bottom: 30px;
}

.seccion h2 {
    font-size: 1.6rem;
    color: #2d6a4f;
    margin-bottom: 10px;
    font-weight: bold;
}

.enlace-documentacion {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.enlace-documentacion li {
    margin: 10px 0;
}

.enlace-documentacion a {
    color: #2d6a4f;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    position: relative;
    border-radius: 5px;
    background-color: rgba(64, 145, 108, 0.1);
    transition: all 0.3s ease;
}

.enlace-documentacion a::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #40916c;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.enlace-documentacion a:hover {
    background-color: #40916c;
    color: white;
}

.enlace-documentacion a:hover::before {
    width: 100%;
}

button {
    padding: 12px 24px;
    margin: 10px;
    border: none;
    background: linear-gradient(45deg, #40916c, #1b4332);
    color: white;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #1b4332, #40916c);
    transform: translateY(-3px);
}

footer {
    background: linear-gradient(90deg, #40916c, #2d6a4f);
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 80%;
    margin: 0 auto 20px;
}

.info {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: white;
    left: 0;
    bottom: -3px;
    transition: width 0.3s ease;
}

.links a:hover {
    color: #d8f3dc;
}

.links a:hover::after {
    width: 100%;
}


/* Contenedor principal */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 90%;
    margin: 30px auto;
    justify-items: center; /* Centrado horizontal en cada celda */
    align-items: center; /* Centrado vertical en cada celda */
}

/* Imágenes individuales */
.marca-logo {
    max-width: 120px; /* Tamaño más pequeño */
    width: 100%;
    height: auto;
    display: block; /* Imprescindible para centrado */
    margin: 0 auto; /* Centrado adicional */
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain; /* Mantiene proporciones */
    object-position: center; /* Centra la imagen dentro del contenedor */
}

.marca-logo:hover {  /* El hover debe aplicarse a la imagen */
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}




/* Estilos para la navegación */
.navegation {
    text-align: left;
    padding: 15px 20px;
    margin: 10px 0 20px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
    transition: all 0.3s ease;
}

.navegation a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navegation a:hover {
    color: #2d6a4f;
}

.navegation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2d6a4f;
    transition: width 0.3s ease;
}

.navegation a:hover::after {
    width: 100%;
}

.navegation > a:not(:last-child)::after {
    content: '';
    margin: 0 5px;
}

.navegation:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}