/* Estilos clásicos para la página Nosotros */

/* Hero Section */
.about-hero {
    background: url('../img/about-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 0;
    position: relative;
    text-align: center;
    color: var(--light-text);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.about-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-hero h1 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.about-hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Historia Section */
.history {
    padding: 4rem 0;
    background-color: #fff;
}

.history-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.history-intro p {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    border-right: none;
    border-top: none;
}

.timeline-date {
    position: absolute;
    top: 20px;
    width: 100px;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -125px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -125px;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--text-color);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Misión y Visión */
.mission-vision {
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mission-vision-container {
    display: flex;
    gap: 2rem;
}

.mission-box,
.vision-box {
    flex: 1;
    background-color: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.mission-box h3,
.vision-box h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.mission-box p,
.vision-box p {
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.7;
}

/* Equipo Section */
.team {
    padding: 4rem 0;
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--light-bg);
}

.team-photo {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

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

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-info p.position {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.team-info p.description {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.team-social a:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}

/* Valores Section */
.values {
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.7;
}

/* Certificaciones Section */
.certifications {
    padding: 4rem 0;
    background-color: #fff;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certification-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
}

.certification-icon {
    margin-bottom: 1.5rem;
}

.certification-icon img {
    width: 100px;
    height: auto;
    margin: 0 auto;
    border: none;
}

.certification-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.certification-item p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: url('../img/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    text-align: center;
    color: var(--light-text);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-content h2 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-buttons .btn-outline {
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.cta-buttons .btn-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .mission-vision-container {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        float: right;
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        border-right: none;
        border-top: none;
    }
    
    .timeline-date {
        width: auto;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        right: auto;
        left: 0;
        top: -30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 0;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Branches Section */
.branches {
    padding: 5rem 0;
    background-color: #fff;
}

.branches-map {
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.branches-map iframe {
    display: block;
    border-radius: var(--border-radius);
}

.branches-map img {
    width: 100%;
    display: block;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.branch-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.branch-card.highlighted {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.branch-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.branch-card h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.branch-card p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.branch-card p:last-child {
    margin-bottom: 0;
}

.branch-card i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    min-width: 16px;
    text-align: center;
    margin-top: 4px;
}

.branch-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.branch-actions a {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.branch-actions a:hover {
    color: var(--secondary-color);
}

.branch-actions a i {
    margin-right: 0.5rem;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Branch selector styles */
.branch-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.branch-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    font-family: var(--font-family-serif);
}

.branch-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.branch-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Responsive styles for branch selector */
@media (max-width: 768px) {
    .branch-selector {
        flex-direction: row;
        justify-content: center;
    }
    
    .branch-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .branch-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .branch-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Responsive styles for branches section */
@media (max-width: 992px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .branches {
        padding: 4rem 0;
    }
    
    .branches-map {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-card {
        padding: 1.5rem;
    }
} 