/* Estilos específicos para la página Quiénes Somos */

/* Page Hero */
.page-hero {
    height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 150px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.page-hero .hero-content {
    z-index: 2;
    position: relative;
    max-width: 600px;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards;
}

.page-hero p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Navigation Active State */
.nav-menu a.active {
    color: #ff6b6b;
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* About Section */
.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-card p {
    line-height: 1.8;
    color: #666;
}

.about-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.about-card li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.about-card li:last-child {
    border-bottom: none;
}

/* History Section */
.history-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.history-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Directory Section */
.directory-section {
    background: #fff;
}

.directory-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.director-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.director-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.director-card.president {
    border-top: 4px solid #ff6b6b;
}

.director-card.vice-president {
    border-top: 4px solid #4ecdc4;
}

.director-card.secretary {
    border-top: 4px solid #45b7d1;
}

.director-card.treasurer {
    border-top: 4px solid #96ceb4;
}

.director-card.director1 {
    border-top: 4px solid #feca57;
}

.director-card.director2 {
    border-top: 4px solid #ff9ff3;
}

.director-card.director3 {
    border-top: 4px solid #54a0ff;
}

.director-photo {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Agregado para contener la imagen */
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen cubra todo el contenedor manteniendo proporciones */
    object-position: center; /* Centra la imagen */
}

.photo-placeholder {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.member-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Agregado para contener la imagen */
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen cubra todo el contenedor manteniendo proporciones */
    object-position: center top; /* Posiciona la imagen desde la parte superior central */
    border-radius: 50%; /* Asegura que la imagen también sea circular */
}

/* Si quieres que la imagen tenga bordes redondeados en la parte superior */
.director-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Asegura que la imagen respete el border-radius */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.director-info {
    padding: 2rem;
}

.director-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.position {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.bio {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info span {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Team Section */
.team-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-member:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo .photo-placeholder {
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.team-member span {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
        margin-top: 190px;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .directors-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-year {
        position: absolute;
        left: -50px;
        width: 60px;
        height: 60px;
        font-size: 1rem;
        margin: 0;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 1.5rem;
    }
    
    .director-info {
        padding: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
}