/* Import main styles variables */
@import 'styles.css';

/* Container and Overlay Styling */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('/fotos/fondo_pc.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background image for small screens */
@media (max-width: 800px) {
    .container {
        background-image: url('/fotos/fondo_mobile.jpg');
    }
}

/* Custom overlay2 for profesionales page */
.overlay2 {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 4rem 2rem;
    background: linear-gradient(
        to bottom,
        rgba(253, 251, 247, 0.8) 0%,
        rgba(245, 243, 239, 0.7) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Introduction Section */
.intro-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1rem;
}

.intro-section h2 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.intro-section .divider {
    width: 60px;
    height: 1px;
    background-color: var(--text-secondary);
    margin: 0.75rem auto 1.5rem;
    opacity: 0.5;
}

.intro-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Back Button Styling */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
}

.back-button a:hover {
    color: var(--primary-blue);
    transform: translateX(-5px);
}

/* Professional Section Styling */
.professional-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.professional-content.reverse {
    flex-direction: row-reverse;
}

.professional-text {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.professional-name {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
    word-break: break-word;
}

.professional-title {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0 0 1rem;
    letter-spacing: 0.5px;
}

.professional-text .divider {
    width: 60px;
    height: 1px;
    background-color: var(--text-secondary);
    margin: 0 0 1.5rem;
    opacity: 0.5;
}

.professional-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.professional-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.professional-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.professional-details strong {
    color: var(--text-primary);
    font-weight: 500;
}

.professional-image {
    width: 50%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .tabs-container {
        height: 500px;
    }
    
    .professional-text {
        padding: 2rem;
    }
    
    .professional-name {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .professional-title {
        margin-bottom: 0.7rem;
    }
}

@media (max-width: 900px) {
    .tabs-container {
        flex-direction: column;
        height: 700px;
    }
    
    .intro-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .side-tabs {
        width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }
    
    .tabs-list {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.8rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-item {
        padding: 0.5rem 1rem;
        margin-right: 1rem;
        margin-bottom: 0;
        align-items: center;
        flex-direction: row;
    }
    
    .tab-item::before {
        display: none;
    }
    
    .tab-number {
        margin-bottom: 0;
        margin-right: 0.5rem;
        font-size: 0.7rem;
    }
    
    .tab-name {
        font-size: 0.9rem;
    }
    
    .tab-item:hover .tab-name,
    .tab-item.active .tab-name {
        transform: none;
    }
    
    .professional-content,
    .professional-content.reverse {
        flex-direction: column;
    }
    
    .professional-text,
    .professional-image {
        width: 100%;
    }
    
    .professional-text {
        height: 50%;
        padding: 1.5rem;
        order: 2;
    }
    
    .professional-image {
        height: 50%;
        max-height: 405px;
        order: 1;
        background-size: contain;
        background-repeat: no-repeat;
        aspect-ratio: 1;
    }
    
    .professional-name {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
        word-break: break-word;
    }
    
    .professional-title {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .professional-bio {
        font-size: 0.9rem;
        line-height: 1.6;
        max-height: 150px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.5rem;
    }
    
    .professional-bio::-webkit-scrollbar {
        width: 3px;
    }
    
    .professional-bio::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .professional-bio::-webkit-scrollbar-thumb {
        background: var(--neutral-light);
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
    }
}

@media (max-width: 600px) {
    .overlay2 {
        padding: 2rem 1rem;
    }
    
    .tabs-container {
        height: 600px;
    }
    
    .intro-section {
        margin-bottom: 1.5rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .professional-text {
        padding: 1.2rem;
        height: 60%;
    }
    
    .professional-image {
        height: 40%;
        max-height: 338px;
        background-size: contain;
        background-repeat: no-repeat;
        aspect-ratio: 1;
    }
    
    .professional-name {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
        hyphens: auto;
    }
    
    .professional-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .professional-text .divider {
        margin: 0 0 1rem;
    }
    
    .professional-bio {
        font-size: 0.85rem;
        line-height: 1.5;
        max-height: 200px;
    }
    
    .tabs-list {
        padding-bottom: 0.5rem;
    }
    
    .tab-item {
        padding: 0.4rem 0.8rem;
        margin-right: 0.5rem;
    }
    
    .tab-number {
        font-size: 0.6rem;
    }
    
    .tab-name {
        font-size: 0.8rem;
    }
}
