/* Hero Section Mejorada */
.about-hero-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(47, 78, 178, 0.9), rgba(29, 53, 87, 0.9)),
        url('../assets/about/hero-bg.jpg') center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.about-hero-section .container {
    position: relative;
    z-index: 1;
}

.about-hero-section h1 {
    font-family: 'Amaranth', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.about-hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.about-hero-section .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.about-hero-section .btn-light {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.about-hero-section .btn-light:hover {
    background-color: transparent;
    color: white;
}

.about-hero-section .btn-outline-light {
    border: 2px solid white;
}

.about-hero-section .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.about-hero-section img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-hero-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}


/* Secciones generales mejoradas */
.section-title {
    position: relative;
    padding-bottom: 15px;
    color: var(--secondary-color);
    font-family: 'Amaranth', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Historia - Sección mejorada */
.history-section {
    padding: 80px 0;
    background-color: white;
}

.history-section img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.history-section img:hover {
    transform: scale(1.03);
}

.history-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Misión y Visión - Tarjetas mejoradas */
.mission-vision-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mission-vision-section .card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.mission-vision-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(47, 78, 178, 0.15);
}

.mission-vision-section .card-body {
    padding: 2.5rem;
}

.mission-vision-section i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.mission-vision-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-vision-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Valores Corporativos - Sección mejorada */
.values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.values-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.value-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
    border: none;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(47, 78, 178, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(47, 78, 178, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.value-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Equipo - Sección mejorada */
.team-section {
    padding: 80px 0;
    background-color: white;
}

.team-card {
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(47, 78, 178, 0.15) !important;
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(47, 78, 178, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover img {
    border-color: rgba(47, 78, 178, 0.3);
}

.team-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-card .text-muted {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    background: rgba(47, 78, 178, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Botón CTA para equipo */
.team-cta {
    margin-top: 3rem;
    text-align: center;
}

.team-cta .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.team-cta .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(47, 78, 178, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .about-hero-section {
        padding: 80px 0;
    }

    .about-hero-section h1 {
        font-size: 2.5rem;
    }

    .about-hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .about-hero-section .row>div {
        margin-bottom: 30px;
    }

    .about-hero-section img {
        max-width: 80%;
        margin: 0 auto;
    }

    .history-section .row>div {
        order: initial !important;
        margin-bottom: 30px;
    }

    .mission-vision-section .card-body,
    .value-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .team-card {
        padding: 1.5rem 1rem;
    }
}

/* Estilos para la galería de imágenes */
.gallery-container {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery-container .section-title {
    margin-bottom: 30px;
}

.gallery-container .lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    width: 300px;
    height: 400px;
}

.swiper-slide .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.swiper-slide .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(47, 78, 178, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Flechas de navegación personalizadas */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Equipo - Sección mejorada */
.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(47, 78, 178, 0.15);
}

.team-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px 20px;
}

.team-info h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-info .position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.team-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(47, 78, 178, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Efecto hover mejorado para todas las tarjetas */
.card-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 78, 178, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-effect:hover::before {
    opacity: 1;
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(47, 78, 178, 0.15);
}

/* Botones mejorados */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.btn-enhanced:hover::after {
    transform: scaleY(1);
}

.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary-enhanced:hover {
    color: white;
    box-shadow: 0 10px 20px rgba(47, 78, 178, 0.3);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Efecto de onda al hacer hover */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.wave-effect:hover::after {
    animation: wave 0.6s ease-out;
}

@keyframes wave {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}