/* --- Variables Reutilizadas --- */
:root {
    --color-text-dark: #1C1C1E;
    --color-text-mid: #5A5A5A;
    --color-text-light: #777777;
    --color-background-soft: #F5F5F5;
    --color-background-card: #FFFFFF;
    --color-border-subtle: #E5E5E5;
    --color-accent-blue: #4A90E2;
    --color-light-blue: #EAF3FF;
    --color-primary-button: #1C1C1E;
    --color-hover-dark: #333333;
    --border-radius-card: 8px;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-weight-bold: 800;
    --font-weight-medium: 600;
}

/*====================================================================
  1. ESTILOS BASE Y BANNER PRINCIPAL (HERO)
======================================================================*/
body {
    background-color: var(--color-background-soft);
    font-family: var(--font-primary);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Estilo del Banner/Hero Section (similar al Hero de la página principal) */
.banner {
    text-align: center;
}

.hero-text-content {
    max-width: 750px;
    margin: 0 auto;
}

.hero-text-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.hero-text-content h1 span {
    color: var(--color-accent-blue);
}

.hero-text-content p {
    font-size: 1.1em;
    color: var(--color-text-mid);
    max-width: 650px;
    margin: 0 auto;
}

/*====================================================================
  2. SECCIÓN HISTORIA (LAYOUT DE DOS COLUMNAS)
======================================================================*/
.about-history {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    margin-bottom: 40px;
}

/* Columna de Historia (Texto) */
.history {
    flex: 2; /* Ocupa más espacio */
}

.history h4 {
    font-size: 1.5em;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.history p {
    font-size: 1em;
    color: var(--color-text-mid);
    line-height: 1.8;
}

.history p span {
    display: block; /* Asegura el salto de línea entre párrafos */
    margin-bottom: 15px;
}

/* Columna de Datos/Progreso (Aside) */
aside {
    flex: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: center;
    padding-left: 20px;
    border-left: 1px solid var(--color-border-subtle); /* Separador visual */
}

.progress {
    display: flex;
    gap: 15px;
    align-items: center;
}

.progress .data {
    /* Estilo del círculo de datos */
    height: 70px;
    width: 70px;
    min-width: 70px;
    border-radius: 50%;
    background-color: var(--color-light-blue);
    color: var(--color-accent-blue);
    font-size: 1.4em;
    font-weight: var(--font-weight-bold);
    
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-accent-blue); /* Borde de acento */
}

.text-data p:first-child {
    font-size: 1em;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.2;
}

.text-data p:last-child {
    font-size: 0.85em;
    color: var(--color-text-light);
    margin: 0;
}

/*====================================================================
  3. SECCIÓN VALORES (GRID DE TARJETAS)
======================================================================*/
.values {
    background-color: var(--color-background-card);
    padding: 60px 40px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border-subtle);
}

.text-values {
    text-align: center;
    margin-bottom: 40px;
}

.text-values h4 {
    font-size: 1.8em;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.text-values p {
    font-size: 1em;
    color: var(--color-text-mid);
    max-width: 500px;
    margin: 0 auto;
}

.cards-values {
    display: grid;
    /* 4 columnas en escritorio */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cards-values .card {
    background-color: var(--color-background-soft);
    border-radius: var(--border-radius-card);
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cards-values .card img {
    height: 40px;
    width: 40px;
    margin-bottom: 15px;
    /* Estilo del ícono: similar al de servicios */
    filter: invert(36%) sepia(85%) saturate(1636%) hue-rotate(200deg) brightness(98%) contrast(90%);
}

.cards-values .card p:first-of-type {
    font-size: 1.1em;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.cards-values .card p:last-of-type {
    font-size: 0.9em;
    color: var(--color-text-mid);
}


/*====================================================================
  4. RESPONSIVE
======================================================================*/
@media (max-width: 992px) {
    .about-history {
        flex-direction: column; /* Apila historia y datos en móvil */
        gap: 30px;
    }
    
    aside {
        border-left: none;
        padding-left: 0;
        padding-top: 20px;
        border-top: 1px solid var(--color-border-subtle);
    }
    
    .cards-values {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }

    .values {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .banner {
        padding: 40px 0;
    }
    
    .cards-values {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 15px;
    }

    .progress {
        flex-direction: column;
        text-align: center;
    }
    
    .progress .data {
        margin: 0 auto;
    }

    .text-data {
        text-align: center;
    }
}