/* Variables de diseño */
:root {
    /* Colores para el services-header */
    --primary-color: #1c6dfa;
    --light-color: #f8f9fa;
    --white: #ffffff;
    /* Colores adicionales para todo el contenido */
    --primary-secction: #1a2c9f;
    --secondary-color: #e3510d;
    --accent: #2980b9;
    --dark-color: #1a1a1a;
    --light-accent: #ecf0f1;
    --text-color: #333;
    --text-light: #666;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --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: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header */
.about-header {
    background: linear-gradient(135deg, var(--primary-color), #0d4bc4);
    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: 5rem; /* Espacio aumentado entre tarjetas */
    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;
    text-align: justify;
}

/* 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-secction);
    /* azul principal para íconos */
    margin-bottom: 1.5rem;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-secction);
    /* texto oscuro */
}

.value-card p {
    color: var(--text-light);
    /* gris suave */
    font-size: 1rem;
    text-align: justify;
}

/* 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;
    }
}

/* Estilos para la sección de visión y misión */
.vm-container {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.vm-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 0.5rem;
}

.vm-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.vm-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.vm-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.vm-card-content {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vm-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.vm-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.vm-card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2rem;
    text-align: justify;
    flex-grow: 1;
    margin: 15px;
}

.vision-card .vm-card-title {
    color: var(--primary);
}

.vision-card .vm-card-title::after {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.mision-card .vm-card-title {
    color: var(--primary-secction);
}

.mision-card .vm-card-title::after {
    background: linear-gradient(90deg, var(--secondary), #e74c3c);
}

/* Efecto de borde sutil al hover */
.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 1;
}

.vision-card::before {
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.mision-card::before {
    background: linear-gradient(90deg, var(--secondary), #e74c3c);
}

.vm-card:hover::before {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vm-grid {
        gap: 2rem;
    }

    .vm-card-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .vm-container {
        padding: 5rem 1.5rem;
    }

    .vm-header h1 {
        font-size: 2.5rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .vm-header {
        margin-bottom: 3rem;
    }

    .vm-header h1 {
        font-size: 2.2rem;
    }

    .vm-header p {
        font-size: 1.1rem;
    }

    .vm-card-title {
        font-size: 1.8rem;
    }

    .vm-card-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .vm-container {
        padding: 4rem 1rem;
    }

    .vm-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .vm-card-image {
        height: 220px;
    }

    .vm-card-content {
        padding: 1.8rem;
    }

    .vm-card-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
}