/* Estilos para la sección Sobre el Autor */
.author-section {
    padding: 120px 0;
    background-color: var(--color-off-white);
    position: relative;
    overflow: hidden;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/texture-bg.png');
    opacity: 0.05;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.section-divider span {
    width: 80px;
    height: 3px;
    background-color: var(--color-ochre);
    position: relative;
}

.section-divider span::before,
.section-divider span::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-ochre);
    top: 50%;
    transform: translateY(-50%);
}

.section-divider span::before {
    left: -5px;
}

.section-divider span::after {
    right: -5px;
}

.author-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.author-image {
    flex: 0 0 45%;
    max-width: 45%;
    padding-right: 60px;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.image-frame::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--color-ochre);
    border-radius: 15px;
    opacity: 0.5;
    z-index: -1;
    transform: scale(1.05);
    transition: all 0.5s ease;
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-frame:hover::after {
    transform: scale(1);
    opacity: 0.8;
}

.author-portrait {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.author-bio {
    flex: 0 0 60%;
    max-width: 60%;
    padding-left: 30px;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brown-dark);
    margin-bottom: 10px;
}

.author-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-ochre);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.bio-text {
    margin-bottom: 30px;
}

.bio-text p {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.bio-text em {
    font-style: italic;
    color: var(--color-brown);
}

.author-quote {
    margin: 40px 0;
    padding: 25px 30px;
    position: relative;
    background-color: rgba(193, 154, 107, 0.08);
    border-radius: 8px;
    border-left: 4px solid var(--color-ochre);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-quote::before {
    content: '\201C';
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--color-ochre);
    position: absolute;
    top: -15px;
    left: 10px;
    opacity: 0.3;
}

.author-quote blockquote {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-brown-dark);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.author-cta {
    margin-top: 40px;
}

.author-cta .btn {
    padding: 14px 35px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.author-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(166, 124, 82, 0.3);
}

/* Animaciones */
.author-section .section-title,
.author-section .section-divider,
.author-image,
.author-name,
.author-title,
.bio-text,
.author-quote,
.author-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.author-section.in-view .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.author-section.in-view .section-divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.author-section.in-view .author-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.author-section.in-view .author-name {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.author-section.in-view .author-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.author-section.in-view .bio-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.author-section.in-view .author-quote {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.author-section.in-view .author-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .author-content {
        flex-direction: column;
    }
    
    .author-image,
    .author-bio {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .author-image {
        margin-bottom: 40px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .author-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .author-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .author-title {
        font-size: 1rem;
    }
    
    .bio-text p {
        font-size: 1rem;
    }
    
    .author-quote blockquote {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .author-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .author-name {
        font-size: 1.8rem;
    }
    
    .author-quote {
        padding-left: 15px;
    }
}
