﻿/* Contenedor principal responsive */
.main-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Alerta de campaña finalizada */
.main-alert {
    width: 100%;
    background: rgb(249, 220, 214);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.7rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campaign-ended-text {
    width: 85%;
    max-width: 1200px;
    cursor: default;
    /*font-family: "Muli";*/
    font-weight: bold;
    font-size: 12px;
    line-height: 1.5;
    color: #404040;
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 0 10px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .campaign-ended-text {
        font-size: 1.1rem;
        padding: 0 15px;
        line-height: 1.3;
    }

    .main-alert {
        padding: 1rem 0;
    }
}

/* Carrusel principal */
.carousel-container {
    padding: 2rem 1rem;
    background: #fff;
}

.carousel-wrapper {
    border-radius: 20px;
    max-width: 86vw;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.33% - 1.5rem); /* Muestra 3 imágenes a la vez */
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-width {
    width: auto !important;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item-img {
    scroll-snap-align: start;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9; /* Fondo para espacios vacíos */
    aspect-ratio: 2/3; /* Relación más alta (2:3) */
}

    .carousel-item-img img {
        max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
        height: 101%; /* Mantiene la proporción natural */
        display: block;
        border-radius: 20px; /* Bordes redondeados */
        box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    }

@media (max-width: 768px) {
    .carousel-wrapper {
        max-width: 56vw !important;
    }

    .carousel-item-img img {
        height: auto !important;
    }
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

    .carousel-control:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control.prev {
        left: 1rem;
    }

    .carousel-control.next {
        right: 1rem;
    }

    .carousel-control svg {
        width: 24px;
        height: 24px;
        fill: #404040;
    }

/* Mobile Styles */
@media (max-width: 768px) {
    .carousel-item-img {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .carousel-control {
        transition: all 0.3s ease;
    }

    .carousel-wrapper {
        overflow: visible !important;
    }

    .carousel {
        min-height: 200px; /* Ajusta según necesidad */
    }

    .carousel-control.next {
        right: -4rem !important;
    }

    .carousel-control.prev {
        left: -4rem !important;
    }
}

/* Estilos para el contenedor de botones fijos */
.botonesInteraccion {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Estilos para el botón principal */
.botonGenerar {
    background: #bb9c68;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .botonGenerar:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }

/* Asegurar que el contenido no quede detrás del botón */
.main-content {
    padding-bottom: 80px; /* Ajusta según la altura de tu botón */
}

div.contenedorPSE {
    position: absolute;
    bottom: 0%;
    z-index: 100;
    margin: 0 0 2vw 84px;
    background-color: #d39086;
    border-radius: 12px;
    cursor: pointer;
}

    div.contenedorPSE a {
        position: relative;
        align-items: center;
        height: 54px;
        text-decoration: none !important;
    }

img.pse {
    width: 64px;
    height: 64px;
    position: absolute;
    left: -32px;
    top: -5px;
}

p.textoPSE {
    font-weight: bold;
    font-size: 1rem;
    padding: 0px 15px 0px 42px;
    margin: 0;
    cursor: pointer;
    color: #000000 !important;
}

.carousel.center-content {
    justify-content: center;
    display: flex !important; /* Aseguramos que flex esté aplicado en este caso */
    gap: 2rem; /* Mantiene separación entre 2 imágenes */
}