/* Estilos para la página Sobre Mí */
.page-hero {
    height: 350px;
    background: linear-gradient(135deg, var(--color-brown-dark), var(--color-ochre));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 126px; /* Ajustado para el header + barra social */
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/texture-bg.png');
    opacity: 0.1;
    z-index: 1;
    animation: subtle-move 30s infinite alternate linear;
}

@keyframes subtle-move {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

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

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-sand-light);
}

.breadcrumbs a {
    color: var(--color-sand-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--color-white);
}

.author-detail-section {
    padding: 100px 0;
    background-color: var(--color-off-white);
    position: relative;
    overflow: hidden;
}

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

.author-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.author-detail-image {
    flex: 0 0 300px;
    position: relative;
    z-index: 1;
}

.author-detail-portrait {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: perspective(1000px) rotateY(0deg);
    filter: saturate(1.1);
    border: 8px solid white;
}

.author-detail-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-ochre);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.6;
}

.author-detail-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 15px;
    width: 80%;
    height: 80%;
    background-color: var(--color-brown-dark);
    border-radius: 10px;
    z-index: -2;
    opacity: 0.1;
}

.author-detail-image:hover .author-detail-portrait {
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.author-detail-info {
    flex: 1;
}

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

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

.author-detail-text h4 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.author-detail-text h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-ochre);
}

.author-detail-text h4:first-child {
    margin-top: 0;
}

.author-detail-text p {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-gray);
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

.book-list {
    margin: 25px 0 35px;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.book-list li {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 10px;
    position: relative;
    padding: 15px 20px 15px 45px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.book-list li::before {
    content: '\f02d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-ochre);
    font-size: 1.2rem;
}

.book-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.book-list li em {
    font-style: italic;
    color: var(--color-brown-dark);
    font-weight: 600;
    display: block;
}

/* Estilos para la galería de imágenes */
.author-gallery {
    margin: 40px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.gallery-item {
    position: relative;
    width: 60%; /* Reducido al 60% */
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: perspective(1000px) rotateY(0deg);
    z-index: 1;
    border: 5px solid white;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.gallery-item:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-15px);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.8s ease;
    filter: saturate(1.1) contrast(1.1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    filter: saturate(1.3) contrast(1.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Efecto decorativo */
.gallery-item::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--color-ochre);
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transform: scale(1.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover::before {
    opacity: 0.5;
    transform: scale(1);
}

.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;
}

.footer {
    background-color: var(--color-brown-dark);
    padding: 80px 0 30px;
    color: var(--color-sand-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-logo h2 span {
    font-weight: 400;
    color: var(--color-ochre);
    margin-left: 5px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--color-sand-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-ochre);
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-ochre);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .page-title {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .author-detail-section {
        padding: 60px 0;
    }
    
    .author-detail-name {
        font-size: 2rem;
    }
    
    .author-detail-text h4 {
        font-size: 1.3rem;
    }
    
    .author-detail-text p,
    .book-list li {
        font-size: 1rem;
    }
}

.author-detail-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Imágenes adicionales */
.author-additional-image {
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 49%; /* Reducción adicional del 30% (70% del 70% original ≈ 49%) */
    margin-left: auto;
    margin-right: auto;
}

.author-ministry-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: saturate(1.1) brightness(1);
    border-radius: 10px;
}

.author-additional-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.2) 0%, rgba(139, 90, 43, 0.4) 100%);
    opacity: 0;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: 10px;
}

/* Eliminado el icono del centro */

.author-additional-image {
    position: relative;
    cursor: pointer;
}

.author-additional-image:hover .author-ministry-image {
    transform: scale(1.1);
    filter: saturate(1.3) brightness(1.1);
}

.author-additional-image:hover::before {
    opacity: 1;
}

/* Eliminado el efecto del icono */

/* Sección de familia */
.family-section {
    margin: 30px 0;
    text-align: center;
}

.family-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.family-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-ochre);
}

/* Imágenes de familia */
.family-image-row {
    margin: 25px auto;
    max-width: 49%; /* Reducción adicional del 30% (70% del 70% original ≈ 49%) */
    padding: 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.family-image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: perspective(800px) rotateY(0deg);
    cursor: pointer;
    /* Eliminamos height: 0 y padding-bottom que estaban causando el problema */
}

.family-image {
    display: block;
    width: 100%;
    height: auto; /* Permitir que la altura se ajuste automáticamente */
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: saturate(1.1) brightness(1);
    /* Eliminamos position: absolute que estaba causando el problema */
}

.family-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.2) 0%, rgba(139, 90, 43, 0.4) 100%);
    opacity: 0;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Eliminado el icono del centro */

.family-image-container:hover {
    transform: perspective(800px) rotateY(5deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.family-image-container:hover .family-image {
    transform: scale(1.05);
    filter: saturate(1.3) brightness(1.1);
}

.family-image-container:hover::before {
    opacity: 1;
}

/* Eliminado el efecto del icono */

/* Eliminados los iconos específicos */

@media screen and (max-width: 768px) {
    .author-family-images {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .page-hero {
        height: 200px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .author-detail-section {
        padding: 50px 0;
    }
}
