/* Variables de diseño */
:root {
    --primary-color: #0E2FAB;
    --primary-on: #FF7F00;
    --secondary-color: #e3510d;
    --secondary: #2C3E50;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header */
.about-header {
    background: linear-gradient(135deg, var(--primary-color), #0E2FAB);
    color: var(--white);
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-color);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.about-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Sección de contenido principal */
.content-section {
    padding: 1rem 0;
    background-color: var(--light-color);
}

.content-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.images-column {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.images-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 0;
    left: 0;
}

.text-column {
    flex: 1;
    padding: 2rem;
}

.text-column h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

.text-column h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 10px;
}

.text-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.text-column strong {
    color: var(--secondary-color);
}

/* Tarjetas de características */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--secondary-color);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Sección de valores */
.about-values {
    background: linear-gradient(135deg, #f5f7fa, #e4e8ed);
    padding: 1rem 0;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.values-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 4rem;
    font-weight: 700;
    position: relative;
}

.values-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* Estilos para la sección de valores */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.value-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    /* sombra media */
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.value-card:nth-child(1) {
    animation: slideUpFade 0.8s forwards 0.2s;
}

.value-card:nth-child(2) {
    animation: slideUpFade 0.8s forwards 0.4s;
}

.value-card:nth-child(3) {
    animation: slideUpFade 0.8s forwards 0.6s;
}

.value-card:nth-child(4) {
    animation: slideUpFade 0.8s forwards 0.8s;
}

.value-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-sm);
    /* sombra más sutil al hacer hover */
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* azul principal para íconos */
    margin-bottom: 1.5rem;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* texto oscuro */
}

.value-card p {
    color: var(--text-light);
    /* gris suave */
    font-size: 1rem;
}

/* Animación para mostrar las tarjetas */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones */
.animate-fade {
    animation: fadeIn 1s ease forwards;
}

.animate-slide {
    animation: slideIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .content-container {
        flex-direction: column;
    }

    .images-column {
        min-height: 300px;
        width: 100%;
    }

    .text-column {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .about-header {
        padding: 4rem 1rem;
    }

    .about-header h1 {
        font-size: 2.5rem;
    }

    .about-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .about-grid, .values-grid {
        grid-template-columns: 1fr;
    }

    .content-container {
        padding: 0 1rem;
    }
}

/* Para la seccion de mision y vision */
.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 30px;
    
}

.box {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 35px 30px;
    width: 48%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-on);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.box::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    background: rgba(255, 127, 0, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 0;
}

.icon {
    font-size: 32px;
    color: var(--primary-on);
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 127, 0, 0.1);
    box-shadow: 0 5px 15px rgba(255, 127, 0, 0.1);
}

h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: var(--secondary);
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Efecto de iluminación naranja sutil */
.box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 127, 0, 0.1) 0%, rgba(255, 127, 0, 0) 70%);
    z-index: 0;
    transition: all 0.5s ease;
    opacity: 0;
}

.box:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%;
        margin-bottom: 30px;
    }
}

@media (max-width: 500px) {
    .box {
        width: 100%;
        padding: 25px 20px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }
}