/* About Page Specific Styles */

/* Header Section */
.about-header {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 76px;
}

.about-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 48, 73, 0.8), rgba(102, 155, 188, 0.6)),
                url('../images/about.jpg') center/cover;
    z-index: -2;
}

.about-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: -1;
    transform: rotate(180deg);
}

.about-waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    fill: var(--beige-claro);
}

.about-title {
    font-family: 'Amaranth', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.about-title .highlight {
    color: var(--rojo-intenso);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.about-subtitle {
    font-family: 'Metrophobic', sans-serif;
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Historia Section */
.historia-section {
    background: var(--beige-claro);
    position: relative;
}

.historia-content {
    padding: 2rem 0;
}

.historia-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.historia-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.stat-number {
    font-family: 'Amaranth', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rojo-intenso);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Metrophobic', sans-serif;
    font-size: 0.9rem;
    color: var(--azul-oscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.historia-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-medium);
    cursor: pointer;
}

.historia-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.historia-image:hover img {
    transform: scale(1.05);
}

.imagen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 48, 73, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
}

.historia-image:hover .imagen-overlay {
    opacity: 1;
}

.imagen-overlay i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--rojo-intenso);
}

.imagen-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Timeline */
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px var(--shadow-medium);
}

.timeline-year {
    font-family: 'Amaranth', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rojo-intenso);
    min-width: 60px;
    margin-right: 1rem;
}

.timeline-content {
    font-size: 1rem;
    color: var(--azul-oscuro);
}

/* Misión y Visión */
.mision-vision {
    position: relative;
    overflow: hidden;
}

.mision-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%),
                url('../images/mis.jpg') center/cover;
    background-blend-mode: overlay;
    z-index: -1;
}

.filosofia-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.filosofia-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(0, 48, 73, 0.2);
}

.filosofia-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rojo-intenso) 0%, var(--burdeos-oscuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.filosofia-card:hover .filosofia-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(193, 18, 31, 0.3);
}

.filosofia-icon i {
    font-size: 2rem;
    color: white;
}

.filosofia-card h3 {
    font-family: 'Amaranth', cursive;
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
}

.filosofia-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Equipo Section */
.equipo-section {
    background: linear-gradient(135deg, #f8f4e6 0%, var(--beige-claro) 100%);
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 48, 73, 0.8) 0%, rgba(193, 18, 31, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social .social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-social .social-link:hover {
    background: var(--rojo-intenso);
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h4 {
    font-family: 'Amaranth', cursive;
    font-size: 1.4rem;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

.team-position {
    font-weight: 600;
    color: var(--rojo-intenso);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Valores Section */
.valores-section {
    background: var(--beige-claro);
}

.valor-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--rojo-intenso);
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.valor-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-oscuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.valor-card:hover .valor-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--rojo-intenso) 0%, var(--burdeos-oscuro) 100%);
}

.valor-icon i {
    font-size: 1.8rem;
    color: white;
}

.valor-card h4 {
    font-family: 'Amaranth', cursive;
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
}

.valor-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%),
                url('../images/cta.jpg') center/cover;
    background-blend-mode: multiply;
    z-index: -1;
}

.cta-title {
    font-family: 'Amaranth', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
    }
    
    .historia-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filosofia-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .about-header {
        height: 50vh;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .historia-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .historia-image img {
        height: 300px;
    }
    
    .filosofia-card {
        padding: 2rem 1rem;
    }
    
    .filosofia-icon {
        width: 60px;
        height: 60px;
    }
    
    .filosofia-icon i {
        font-size: 1.5rem;
    }
    
    .team-image {
        height: 200px;
    }
    
    .valor-card {
        padding: 1.5rem;
    }
    
    .valor-icon {
        width: 60px;
        height: 60px;
    }
    
    .valor-icon i {
        font-size: 1.5rem;
    }
}

/* Animaciones específicas */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotate3d(0, 1, 0, 0deg);
        opacity: 1;
    }
}

/* Efectos de hover mejorados */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo-intenso) 0%, var(--azul-claro) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* Estados de loading para imágenes */
.team-image img,
.historia-image img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.team-image img.loaded,
.historia-image img.loaded {
    opacity: 1;
}