/* maestrito2/sty/stylesS.css - Estilos específicos para la página Sobre Nosotros */
/* Los estilos del header y footer ahora son globales y están en /styles.css */

/* 📌 CONTENEDOR GENERAL DE "SOBRE NOSOTROS" */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Centrado */
    padding: 40px 20px; /* Espaciado interno */
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px; /* Más espacio entre secciones */
    gap: 40px; /* Espacio entre imagen y texto */
}

.about-section img {
    width: 100%;
    max-width: 480px; /* Imágenes un poco más grandes */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1 1 400px; /* Flexibilidad para la imagen */
}

.about-section .text {
    flex: 1 1 450px; /* Flexibilidad para el texto */
    text-align: left;
    max-width: 600px;
}

.about-section h2 {
    font-size: 2rem; /* Títulos más grandes */
    color: var(--primary-color, #0056b3); /* Usar variable global */
    margin-bottom: 15px;
    font-weight: 600;
}

.about-section p {
    color: var(--dark-gray, #333);
    line-height: 1.7; /* Mejor legibilidad */
    font-size: 1.05rem; /* Texto ligeramente más grande */
    text-align: justify;
}

/* Inversión de orden para variedad visual */
.about-section.reverse {
    flex-direction: row-reverse;
}

/* Sección de Valores */
.values-container {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-gray, #f5f5f5); /* Usar variable global */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.values-container h2 {
    font-size: 2.5rem;
    color: var(--primary-color, #0056b3);
    margin-bottom: 40px;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Tarjetas responsivas */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 30px; /* Más padding */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar contenido de la tarjeta */
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.value-card img {
    width: 70px; /* Iconos de valores */
    height: 70px;
    margin-bottom: 20px;
    /* border-radius: 50%; Si son circulares */
    object-fit: contain;
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--dark-gray, #333);
    margin-bottom: 10px;
    font-weight: 600;
}

.value-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive para la página Sobre Nosotros */
@media screen and (max-width: 768px) {
    .about-container {
        padding: 30px 15px;
    }
    .about-section {
        flex-direction: column !important; /* Forzar siempre columna en móvil */
        margin-bottom: 40px;
        gap: 20px;
    }
    .about-section img {
        max-width: 90%; /* Que no ocupe todo el ancho */
        margin: 0 auto 20px auto; /* Centrar y espacio inferior */
    }
    .about-section .text {
        max-width: 100%;
        padding: 0 10px;
    }
    .about-section h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    .about-section p {
        font-size: 1rem;
    }

    .values-container h2 {
        font-size: 2rem;
    }
    .values-grid {
        grid-template-columns: 1fr; /* Una columna para valores en móvil */
    }
    .value-card {
        padding: 25px;
    }
    .value-card h3 {
        font-size: 1.3rem;
    }
}
