:root {
    --marron-oscuro: #4b2c0d;
    --marron-principal: #724300;
    --beige: #f6ecda;
    --beige-claro: #f7f1e7;
    --beige-oscuro: #E6D7B8;
    --naranja-tierra: #b27a0b;
}
        
/* Header con imagen completa */
.page-header {
    max-width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECCION 1 */
.deportiva-section {
    padding: 5rem 1rem;
    background: var(--beige-claro);
}

.deportiva-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.deportiva-image {
    position: relative;
    top: -150px;
    left: 80px;
    width: 100%;
    height: 100%;
}

.deportiva-img {
    width: 90%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deportiva-content {
    padding: 2rem;
    position: relative;
}

.deportiva-text {
    color: var(--marron-oscuro);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.deportiva-text:last-child {
    margin-bottom: 0;
}


.deportiva-text {
    position: relative;
    z-index: 2;
        }

/* Animaciones */
.deportiva-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.deportiva-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);
    }
}


/* ===== SECCIÓN 2 ===== */
.workshops-section {
    padding: 5rem 1rem;
    background: var(--beige-claro);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--naranja-tierra);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span{
    padding: 0 2rem;
    background-color: var(--beige-claro);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 1px;
    background: linear-gradient(90deg, var(--naranja-tierra), var(--marron-principal));
    border-radius: 2px;
    z-index: -1;
}

/* Grid de talleres */
.workshops-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

.workshop-card {
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.workshop-title {
    font-size: 1.4rem;
    color: var(--marron-principal);
    margin-bottom: 1.6rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.8rem;
}

.workshop-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(75, 44, 13, 0.1);
    flex: 1;
    display: flex;
    align-items: center;
}

.workshop-img {
    width: 170%;
    height: 280px;
    object-fit: cover;
}

/* SECCION 3 */

.simple-section {
    padding: 4rem 1rem;
    background: var(--beige-claro);
}

.simple-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Contenedor 1: Imagen grande */
.image-large {
    width: 50%;
}

.large-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 2rem;
}

/* Contenedor 2: Texto */
.text-content {
    text-align: center;
    padding: 0 4rem;
}

.simple-text {
    color: var(--marron-principal);
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 4rem 5rem 4rem;
}

/* Contenedor 3: Galería de 4 imágenes */
.gallery-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.gallery-item {
    border-radius: 8px;
    width: 160px;
    height: auto;
}

.small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECCION 4 */

/* Versión con CSS Grid */
.grid-container-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-container-grid .grid-item {
    overflow: hidden;
}

.grid-container-grid .grid-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1300px) {
    .deportiva-image {
        opacity: 1;
        transform: translateX(0);
    }

    .deportiva-content {
        opacity: 1;
        transform: translateX(0);
    }

}

@media (max-width: 1100px){
    .deportiva-image{
        left: 60px;
    }
}


@media (max-width: 1000px){
    .deportiva-img{
        height: 200px;
    }
}


@media (max-width: 800px) {
    .page-header {
        height: 50vh;
    }
    
    .deportiva-section {
        padding: 4rem 1rem;
    }

    .section-title::after {
        width: 0px;
    }
        
    .deportiva-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .deportiva-image{
        top: 0;
        left: 0;
        padding: 0 2rem;
    }
    
    .deportiva-img {
        width: 70%;
        height: 180px;

    }
            
    .section-title {
        font-size: 1.8rem;
    }
            
    .deportiva-text {
        font-size: 1.05rem;
    }
    .workshops-section {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .workshops-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 2rem;
        max-width: 600px;
    }
    
    .workshop-card {
        padding: 1.8rem;
    }
    
    .workshop-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .workshop-img {
        height: 280px;
    }

    .simple-section {
        padding: 3rem 1rem;
    }
    
    .simple-container {
        gap: 2.5rem;
    }
    
    .large-img {
        height: 250px;
    }
    
    .text-content {
        padding: 0 1.5rem;
    }
    
    .simple-text {
        font-size: 1.1rem;
    }
    
    .gallery-small {
        gap: 2.5rem;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .small-img {
        height: 130px;
    }

    .grid-container-grid .grid-image {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .page-header {
        height: 40vh;
    }
            
    .deportiva-section {
        padding: 3rem 1rem;
    }
            
    .deportiva-container {
        gap: 2rem;
    }
    
    .deportiva-img {
        width: 100%;
        height: 180px;
    }
            
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
            
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
    }
            
    .deportiva-text {
        font-size: 1rem;
        text-align: left;
    }
            
    .deportiva-content {
        padding: 1rem;
    }
            
    .deportiva-content::before {
        top: -1rem;
        left: 0;
        font-size: 4rem;
    }
    .workshops-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .workshops-grid {
        gap: 1.5rem;
    }
    
    .workshop-card {
        padding: 1.5rem;
    }
    
    .workshop-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .workshop-img {
        height: 140px;
    }

    .simple-section {
        padding: 2.5rem 1rem;
    }
    
    .simple-container {
        gap: 2rem;
    }
    
    .large-img {
        height: 200px;
    }
    
    .text-content {
        padding: 0 1rem;
    }
    
    .simple-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .gallery-small {
        gap: 1rem;
    }
    
    .small-img {
        height: 140px;
    }

    .grid-container-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .grid-container-grid .grid-image {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .deportiva-img {
        height: 170px;
    }
}

@media (max-width: 400px) {
    .page-header {
        height: 35vh;
    }
            
    .deportiva-section {
        padding: 2.5rem 0.5rem;
    }

    .deportiva-img {
        height: 120px;
    }
            
    .section-title {
        font-size: 1.8rem;
    }
            
    .deportiva-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .workshops-section {
        padding: 2.5rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .workshops-grid {
        gap: 1.2rem;
    }
    
    .workshop-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .workshop-title {
        font-size: 1.1rem;
        padding-bottom: 0.6rem;
    }
    
    .workshop-title::after {
        width: 40px;
        height: 2px;
    }
    
    .workshop-card:hover .workshop-title::after {
        width: 60px;
    }
    
    .workshop-image {
        border-radius: 8px;
    }
    
    .workshop-img {
        height: 140px;
    }

    .simple-section {
        padding: 2rem 0.5rem;
    }
    
    .simple-container {
        gap: 1.5rem;
    }
    
    .large-img {
        height: 150px;
        border-radius: 8px;
    }
    
    .text-content {
        padding: 0;
    }
    
    .simple-text {
        font-size: 0.95rem;
    }
    
    .gallery-small {
        gap: 0.8rem;
    }
    
    .gallery-item {
        border-radius: 6px;
        width: 120px;
    }

    .small-img {
        height: 75px;
    }
}