/* ==========================================================================
   PANTALLA: NOSOTROS (ABOUT)
   ========================================================================== */

/* --- HERO DE NOSOTROS --- */
.about-hero {
    background: linear-gradient(rgba(11, 12, 16, 0.85), var(--bg-dark)), url('../img/hero-about-bg.jpg') no-repeat center center/cover;
    padding: 120px 0 80px 0;
    text-align: left;
}

.about-hero-content {
    max-width: 800px;
}

.about-tag-red {
    color: #E53935;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.about-hero-content h1 {
    color: #FFFFFF;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-hero-content p {
    color: #94A3B8;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ==========================================================================
   FILOSOFÍA DETALLADA Y VALORES
   ========================================================================== */
.about-philosophy-detailed {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

/* --- Misión y Visión Unificada --- */
.mv-unified-container {
    margin-bottom: 80px;
}

.mv-box-unified {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mv-part {
    flex: 1;
}

.mv-part h3 {
    color: #ffffff; /* Título en Rojo ORDI */
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.mv-part p {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mv-divider {
    width: 1px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Valores Institucionales --- */
.values-section-header {
    margin-bottom: 40px;
}

.values-section-header h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 800;
}

.values-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-card {
    background-color: var(--bg-dark);
    border-left: 3px solid #E53935;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.value-number {
    color: rgba(229, 57, 53, 0.5);
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.value-card h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.value-card p {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN DE CERTIFICACIONES (MEDALLAS RAU)
   ========================================================================== */
.about-certifications {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.certs-header {
    margin-bottom: 50px;
}

.certs-header h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.certs-header p {
    color: #94A3B8;
    max-width: 700px;
}

.badges-grid {
    display: flex;             /* Cambiamos a flex para mayor control */
    flex-wrap: wrap;           /* Permite que se pasen a la siguiente línea */
    justify-content: center;   /* Centra todas las tarjetas, incluyendo la última */
    gap: 30px;                 /* Espacio entre tarjetas */
    padding: 20px 0;
}

/* Tarjetas de Medallas */
.badge-card {
    display: grid;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px 20px; 
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.badge-card:hover {
    border-color: rgba(229, 57, 53, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.15);
}

.badge-img-container {
    width: 140px;  
    height: 140px; 
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center
}

.badge-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.badge-card h4 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.badge-issuer {
    color: #E53935;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Ajuste especial para que la insignia horizontal no se deforme */
.badge-card:nth-child(5) .badge-main-img {
    width: 80%; /* Le da un poco más de aire */
    object-fit: contain; /* Asegura que se vea completa sin estirarse */
}


/* Aumentamos el tamaño de la imagen solo en la tarjeta CESE */
.badge-card:nth-child(5) .badge-main-img {
    width: 100%;        /* Ocupa todo el ancho disponible */
    max-width: 200px;   /* Pero no más de 200px para que no se pixelee */
    height: auto;       /* Mantiene la proporción */
    margin-bottom: 10px; /* Un poco de aire antes del texto */
}

/* Opcional: Si quieres que el contenedor de la imagen también sea más grande */
.badge-card:nth-child(5) .badge-img-container {
    height: 120px;      /* Le damos una altura fija para que todas las tarjetas se vean iguales */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==========================================================================
   RESPONSIVIDAD (MÓVILES Y TABLETAS)
   ========================================================================== */
@media (max-width: 992px) {
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    .mv-container {
        grid-template-columns: 1fr;
    }
    .values-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mv-box-unified { flex-direction: column; text-align: center; gap: 20px; }
    .mv-divider { width: 100%; height: 1px; }
    .values-cards-grid { grid-template-columns: 1fr; }
    .badges-grid {
        grid-template-columns: 1fr;
    }
}

