/* Variables CSS para colores */
:root {
    --color-primary: #007bff;
    --color-dark: #232323;
    --color-light: #f9f9f9;
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-hover: rgba(0, 123, 255, 0.1);
    --color-border-hover: rgba(0, 123, 255, 0.5);
    --color-footer: #232323;
    --color-footer-text: #ccc;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Header */
header {
    background-color: var(--color-dark);
    color: white;
    height: 100px;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    position: static;
    background-color: transparent;
    width: auto;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

/* Hamburguesa */
.hamburguer {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
    background-color: var(--color-light);
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 1.25rem;
}

.hero h2 {
    font-size: 1.25rem;
    color: var(--color-text-light);
}

/* Visión y Misión */
.vision-mision {
    padding: 1.25rem 0.625rem;
    background-color: var(--color-light);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.377);
    margin: 2.5rem auto;
    max-width: 90%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content div {
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content h2 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.625rem;
}

.content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
    text-align: justify;
}

/* Responsividad */
@media (min-width: 768px) {
    .content {
        flex-direction: row;
        justify-content: space-between;
    }

    .content div {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #333;
        width: 100%;
        flex-direction: column;
        text-align: center;
        z-index: 1000;
        padding: 1.25rem 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.125rem;
        padding: 0.625rem 1.25rem;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--color-primary);
    }

    .hamburguer {
        display: flex;
    }

    .content {
        flex-direction: column-reverse;
    }

    .content div {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--color-footer);
    color: white;
    padding: 1.25rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

.footer-section {
    flex: 1 1 300px;
    margin: 0.625rem;
}

.footer-section h2, .footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: #f4f4f4;
}

.footer-section p, .footer-section ul {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-footer-text);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.3125rem 0;
}

.footer-section ul li a {
    color: var(--color-footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.social-links a {
    margin: 0 0.625rem;
    display: inline-block;
}

.social-links img {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #aaa;
}

/* Catálogo */
.catalogo-home {
    padding: 3.125rem 1.25rem;
    background-color: var(--color-light);
    text-align: center;
}

.catalogo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.categoria {
    flex: 1 1 250px;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.categoria:hover {
    transform: scale(1.05);
}

.categoria img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.categoria h2 {
    margin: 0.625rem 0;
    font-size: 1.125rem;
    color: var(--color-text-dark);
}

/* Responsividad en catálogo */
@media (max-width: 768px) {
    .categoria {
        flex: 1 1 calc(50% - 1.25rem);
    }
}

@media (max-width: 480px) {
    .categoria {
        flex: 1 1 calc(100% - 1.25rem);
    }
}

/* Aliados */
.affiliates-content {
    display: flex;
    gap: 1rem; /* Espacio entre los elementos */
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.25rem; /* Separación con el borde */
}

.affiliate {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    max-width: 300px; /* Asegura que no se estiren demasiado */
    width: 100%; /* Asegura que ocupe todo el ancho disponible dentro del contenedor */
    transition: transform 0.3s;
    margin-bottom: 1rem; /* Espaciado inferior */
}

.affiliate:hover {
    transform: scale(1.05);
}

.affiliate img {
    width: 100%; /* Asegura que la imagen ocupe todo el ancho disponible */
    height: auto;
    border-radius: 10px;
    margin-bottom: 0.625rem;
}

.affiliate-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Responsividad para pantallas de teléfono */
@media (max-width: 768px) {
    .affiliate {
        flex: 1 1 calc(50% - 1.25rem); /* 2 columnas en pantallas medianas */
    }
}

@media (max-width: 480px) {
    .affiliate {
        flex: 1 1 calc(50% - 1.25rem); /* 2 columnas en pantallas pequeñas */
    }
}

/* Título de la sección de Aliados */
.section-title {
    text-align: center; /* Centra el título */
    font-size: 24px; /* Tamaño del texto */
    font-weight: bold; /* Negrita */
    margin-bottom: 20px; /* Espaciado inferior */
    color: #333; /* Color del texto */
}

