:root {
    --marron-oscuro: #4b2c0d;
    --marron-principal: #724300;
    --beige: #f6ecda;
    --beige-claro: #f7f1e7;
    --beige-oscuro: #E6D7B8;
    --naranja-tierra: #b27a0b;
        }
        
/* Header con imagen completa */

body{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.page-header {
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 73vh;
    object-fit: cover;
    object-position: 50% 30%;
}

/* SECCION 1 */
.cultural-section {
    padding: 5rem 1rem;
    background: var(--beige-claro);
}

.cultural-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cultural-image {
    position: relative;
    top: -150px;
    left: 80px;
    width: 100%;
    height: 100%;
}

.cultural-img {
    width: 90%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cultural-content {
    padding: 2rem;
    position: relative;
}

.cultural-text {
    color: var(--marron-oscuro);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.cultural-text:last-child {
    margin-bottom: 0;
}

.cultural-text {
    position: relative;
    z-index: 2;
}

/* Animaciones */
.cultural-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.cultural-content {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease 0.5s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* SECCION 2 */

/* ===== SECCIÓN MIXTA ===== */
.mixed-section {
    padding: 4rem 1rem;
    background: var(--beige-claro);
}

.mixed-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Contenedor 1: Texto y lista (sin efectos) */
.text-list-container {
    text-align: center;
    padding: 0 2rem;
}

.mixed-title {
    font-size: 2.5rem;
    color: var(--naranja-tierra);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.mixed-title::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 2px;
    background: var(--beige-claro);
    border-radius: 2px;
}

.mixed-title::before {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 2px;
    background: var(--naranja-tierra);
    border-radius: 2px;
}

.mixed-text {
    color: var(--marron-principal);
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0 auto;
    margin-bottom: 2rem;
    max-width: 600px;
    
}

.mixed-list {
    list-style: disc;
    padding: 0 4rem;
    margin: 0 5rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.mixed-list-item {
    color: var(--marron-principal);
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
}

/* Contenedor 2: Galería inclinada */
.gallery-inclined {
    display: flex;
    justify-content: center;
}

.inclined-item {
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(15deg);
    transition: transform 0.4s ease;
    height: 350px;
}

.inclined-item:nth-child(even) {
    transform: rotate(2deg);
}

.inclined-item:nth-child(3) {
    transform: rotate(-10deg);
}

.inclined-item:hover {
    transform: rotate(0deg);
}

.inclined-item:nth-child(even):hover {
    transform: rotate(0deg);
}

.inclined-item:nth-child(3):hover {
    transform: rotate(0deg);
}

.inclined-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

/* SECCION 3 */

/* ===== SECCIÓN MÚLTIPLES GALERÍAS ===== */
.multi-gallery-section {
    padding: 5rem 0rem 0 0rem;
    background: var(--beige-claro);
    overflow: hidden;
    max-width: 100%;
}

.gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

/* Contenedor 1: Título y párrafo */
.gallery-header {
    text-align: center;
    padding: 0 2rem;
}

.gallery-main-title {
    font-size: 2.5rem;
    color: var(--naranja-tierra);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.gallery-main-title::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 2px;
    background: var(--beige-claro);
    border-radius: 2px;
}

.gallery-main-title::before {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 550px;
    height: 2px;
    background: var(--naranja-tierra);
    border-radius: 2px;
}

.gallery-description {
    color: var(--marron-principal);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Cada set de galería */
.gallery-set {
    text-align: center;
    margin: 0;
    padding: 4rem 0;
    max-width: 100%;
}

.gallery-container .gallery-set:nth-child(even){
    background-color: rgb(237, 227, 206);

}

.gallery-subtitle {
    font-size: 1.8rem;
    color: var(--marron-principal);
    margin-bottom: 3rem;
    font-weight: 600;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Botones de navegación */
.gallery-btn {
    background-color: transparent;
    color: var(--marron-oscuro);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.prev-btn{
    margin-right: 30px;
}

.next-btn{
    margin-left: 30px;
}

.gallery-btn:hover {
    transform: scale(1.1);
}

/* Contenedor de imágenes */
.gallery-track {
    display: flex;
    align-items: end;
    gap: 1rem;
    transition: transform 0.5s ease;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(75, 44, 13, 0.2);
    transition: all 0.5s ease;
}

/* Imagen izquierda */
.left-item {
    width: 200px;
    height: 300px;
    transform: translateX(-20px) rotate(-5deg);
    opacity: 0.7;
}

/* Imagen central (más grande) */
.center-item {
    width: 260px;
    height: 400px;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(75, 44, 13, 0.3);
}

/* Imagen derecha */
.right-item {
    width: 200px;
    height: 300px;
    transform: translateX(20px) rotate(5deg);
    opacity: 0.7;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-text{
    margin: 0 auto;
    margin-top: 3rem;
    width: 50%;
    color: var(--marron-principal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1300px) {
    .cultural-image {
        opacity: 1;
        transform: translateX(0);
    }

    .cultural-content {
        opacity: 1;
        transform: translateX(0);
    }

}

@media (max-width: 1100px){
    .cultural-image{
        left: 60px;
    }
}

@media (max-width: 1000px){
    .cultural-img{
        height: 200px;
    }
    
    .prev-btn{
        margin-right: 10px;
    }

    .next-btn{
        margin-left: 10px;
    }

    .left-item,.right-item {
        width: 180px;
        height: 270px;
    }
}

@media (max-width: 800px) {
    .page-header {
        height: 60vh;
    }

    .header-image{
        height: 100%;
    }
            
    .cultural-section {
        padding: 4rem 1rem;
    }
            
    .cultural-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cultural-image{
        top: 0;
        left: 0;
        padding: 0 2rem;
    }
            
    .cultural-img {
        width: 70%;
        height: 180px;
    }
            
    .section-title {
        font-size: 2rem;
    }
            
    .cultural-text {
        font-size: 1.05rem;
    }

    .mixed-section {
        padding: 3rem 1rem;
    }
    
    .mixed-container {
        gap: 3rem;
    }
    
    .mixed-title {
        font-size: 2.2rem;
    }

    .mixed-title::after, .mixed-title::before{
        width: 0;
    }

    
    .mixed-text {
        font-size: 1.1rem;
    }
    
    .mixed-list {
        gap: 3rem;
        width: 100%;
        margin: 0 2rem;
    }
    
    .mixed-list-item {
        font-size: .75rem;
    }
    
    .gallery-inclined {
        gap: 1.2rem;
    }
    
    .inclined-item {
        height: 350px;
        transform: rotate(-2deg);
    }
    
    .inclined-item:nth-child(even) {
        transform: rotate(1deg);
    }
    
    .inclined-item:nth-child(3) {
        transform: rotate(-0.5deg);
    }
    .multi-gallery-section {
        padding: 4rem 0 0 0;
        box-sizing: content-box;

    }
    
    .gallery-container {
        gap: 3rem;
    }
    
    .gallery-main-title {
        font-size: 2.2rem;
        padding: 0;
    }

    .gallery-main-title::after, .gallery-main-title::before {
        width: 0px;
    
    }
    
    .gallery-description {
        font-size: 1.1rem;
    }
    
    .gallery-subtitle {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    
    .gallery-wrapper {
        gap: 1rem;
    }

    .gallery-track{
        gap: 0rem;
    }
    
    .gallery-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        position: relative;
    }
    
    .left-item, .right-item {
        width: 150px;
        height: 220px;
    }
    
    .center-item {
        width: 200px;
        height: 310px;
    }
}

@media (max-width: 600px) {
    .page-header {
        height: 40vh;
    }
            
    .cultural-section {
        padding: 3rem 1rem;
    }
            
    .cultural-container {
        gap: 2rem;
    }

    .cultural-img {
        width: 100%;
        height: 180px;
    }
            
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
            
    .cultural-text {
        font-size: 1rem;
        text-align: left;
    }
            
    .cultural-content {
        padding: 1rem;
    }

    .mixed-section {
        padding: 2.5rem 1rem;
    }
    
    .mixed-container {
        gap: 2.5rem;
    }
    
    .text-list-container {
        padding: 0 1rem;
    }
    
    .mixed-title {
        font-size: 2rem;
    }
    
    .mixed-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mixed-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .mixed-list-item {
        text-align: center;
        font-size: 0.95rem;
    }
    
    .gallery-inclined {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 0.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .inclined-item {
        transform: rotate(-1deg);
    }
    
    .inclined-item:nth-child(even) {
        transform: rotate(1deg);
    }
    
    .inclined-item:nth-child(3) {
        transform: rotate(-0.5deg);
    }
    
    .inclined-item:hover {
        transform: rotate(0deg) scale(1.02);
    }
    .multi-gallery-section {
        padding: 3rem 0rem 0 0rem;
    }
    
    .gallery-container {
        gap: 2.5rem;
    }
    
    .gallery-header {
        padding: 0 1rem;
    }
    
    .gallery-main-title {
        font-size: 2rem;
    }

    .gallery-description {
        font-size: 1rem;
    }
    
    .gallery-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .gallery-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery-track {
        order: -1;
        gap: 0.3rem;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0;
    }

    .next-btn{
        left: 30px;
        bottom: 64px;
    }

    .prev-btn{
        left: -30px;
    }

    
    .left-item, .right-item {
        width: 120px;
        height: 180px;
        transform: none;
        opacity: 0.8;
    }
    
    .center-item {
        width: 160px;
        height: 240px;
    }

    .gallery-text{
        margin: 0 auto;
        width: 80%;
    }
}

@media (max-width: 500px) {
    .cultural-img {
        height: 170px;
    }
}

@media (max-width: 400px) {
    .page-header {
        height: 35vh;
    }
            
    .cultural-section {
        padding: 2.5rem 0.5rem;
    }
            
    .cultural-img {
        height: 120px;  
    }
            
    .section-title {
        font-size: 1.8rem;
    }
            
    .cultural-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .mixed-section {
        padding: 2rem 0.5rem;
    }
    
    .mixed-container {
        gap: 2rem;
    }
    
    .text-list-container {
        padding: 0;
    }
    
    .mixed-title {
        font-size: 1.8rem;
    }
    
    .mixed-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .mixed-list-item {
        font-size: 0.9rem;
    }
    
    .gallery-inclined {
        gap: 0.3rem;
    }
    
    .inclined-item {
        height: 250px;
        border-radius: 10px;
    }

    .multi-gallery-section {
        padding: 2.5rem 0 0 0;
    }
    
    .gallery-main-title {
        font-size: 1.8rem;
    }
    
    .gallery-description {
        font-size: 0.95rem;
    }
    
    .gallery-subtitle {
        font-size: 1.3rem;
    }
    
    .left-item, .right-item {
        width: 100px;
        height: 150px;
    }
    
    .center-item {
        width: 140px;
        height: 210px;
    }
    
    .gallery-track {
        gap: 0rem;
    }
}