* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    background: url(../img/fondos/background.png) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    /* padding: 15px; */
    flex-direction: column;
}

.main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

/* CONTENEDOR PRINCIPAL (FILA EN DESKTOP) */
.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
    }
}

/* BOTONES LATERALES */
.botones-laterales {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* background-color: rgba(105, 29, 51, 0.9); */
    order: 1;
}

@media (min-width: 768px) {
    .botones-laterales {
        width: 250px;
        padding: 30px 15px;
        flex-direction: column;
        justify-content: flex-start;
        order: 0;
        height: 100%;
    }
}

@media (min-width: 992px) {
    .botones-laterales {
        width: 280px;
        display: flex;
        justify-content: center;
        font-size: 20px;
        align-items: center;
    }
}

.boton-slider {
    width: calc(50% - 10px);
min-width: 200px;
height: 50px;
background-color: transparent;
color: #ddc9a2;
border-radius: 0px 10px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
font-weight: 600;
align-items: center;
justify-content: center;
padding: 0 10px;
text-align: center;
border: none;
background: #691d33;
}

.boton-slider:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(105, 29, 51, 0.4);
}

.boton-slider.active {
    background-color: #691d33;
    color: #ddc9a2;
    transform: translateX(5px);
}

@media (min-width: 768px) {
    .boton-slider {
        width: 100%;
        transform: none;
        font-size: 18px;
    }
    .boton-slider.active {
        transform: translateX(10px);
        font-size: 18px;
    }
}

/* CONTENEDOR DEL SLIDER */
.contenedor-slider {
    flex: 1;
    display: flex;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    order: 2;
}

@media (min-width: 768px) {
    .contenedor-slider {
        padding: 30px;
        max-height: calc(100vh - 30px);
        overflow-y: hidden;
        min-height: 900px;
    }
}

.slider {
    width: 100%;
    position: relative;
    min-height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.slide-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.slide h2 {
    margin: 15px 0;
    color: #691d33;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
}

.slide h3 {
    margin-bottom: 20px;
    color: #691d33;
    font-weight: 400;
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
}

.slide p {
    color: #000000;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
    font-size: 18px;
    user-select: text;
}

.media-container {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CARRUSEL DE UNA IMAGEN */
.carousel-container {
    width: 100%;
    margin: 30px 0;
    position: relative;
}

.wrapper {
    width: 100%;
    position: relative;
    padding: 0 40px;
}

.wrapper i {
    top: 50%;
    height: 40px;
    width: 40px;
    cursor: pointer;
    font-size: 1rem;
    position: absolute;
    text-align: center;
    line-height: 40px;
    background: #691d33;
    color: #ddc9a2;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transform: translateY(-50%);
    transition: all 0.2s;
    z-index: 10;
}

.wrapper i:hover {
    background: #8a2a47;
    transform: translateY(-50%) scale(1.1);
}

.wrapper i:first-child {
    left: 0;
}

.wrapper i:last-child {
    right: 0;
}

.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%; /* Una sola imagen */
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel .card {
    scroll-snap-align: start;
    list-style: none;
    /* background: #fff; */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    /* border: 2px solid rgba(105, 29, 51, 0.1); */
    overflow: hidden;
}

.card .img {
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #f5f5f5; */
}

.card .img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* MEDIA QUERIES PARA EL CARRUSEL */
@media (min-width: 768px) {
    .card .img {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .card .img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .card .img {
        height: 250px;
    }
    .wrapper {
        padding: 0 30px;
    }
    .wrapper i {
        height: 35px;
        width: 35px;
    }
}
</style>