/* =========================================================
   CONTENEDOR
========================================================= */

.fe-evento {
    width: 100%;
}

.fe-evento-contenido,
.fe-galeria-contenedor {
    width: min(1400px, 92%);
    margin: 0 auto;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.fe-evento-header {
    padding: 60px 0;
}

.fe-evento-contenido {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 50px;
    align-items: center;
}

.fe-evento-contenido.fe-sin-portada {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
}

.fe-evento-portada img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.fe-evento-info h1 {
    margin: 0 0 25px;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.05;
}

.fe-evento-dato {
    margin-bottom: 10px;
}

.fe-evento-descripcion {
    margin-top: 25px;
}


/* =========================================================
   GALERÍA
========================================================= */

.fe-galeria {
    padding: 60px 0 120px;
}

.fe-galeria-titulo {
    margin-bottom: 30px;
}

.fe-galeria-titulo h2 {
    margin: 0 0 5px;
    font-size: 32px;
}

.fe-galeria-titulo p {
    margin: 0;
    opacity: 0.7;
}


/* =========================================================
   GRID
========================================================= */

.fe-grid-fotos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.fe-foto {
    position: relative;
}

.fe-foto-boton {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.fe-foto-imagen {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.fe-foto-boton:hover .fe-foto-imagen {
    transform: scale(1.03);
}


/* =========================================================
   BOTÓN DE ZOOM (VISTA PREVIA GRANDE)
========================================================= */

.fe-foto-zoom {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    font-size: 15px;
    line-height: 1;

    cursor: pointer;
    z-index: 2;

    opacity: 0;
    transition: opacity 0.2s ease;
}

.fe-foto:hover .fe-foto-zoom {
    opacity: 1;
}

@media (max-width: 900px) {

    .fe-foto-zoom {
        opacity: 1;
    }

}


/* =========================================================
   BUSCADOR DE FOTOS DENTRO DEL EVENTO
========================================================= */

.fe-buscador-fotos {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.fe-buscador-fotos input {
    flex: 1;
    max-width: 420px;

    padding: 13px 16px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 15px;
}

.fe-buscador-fotos input:focus {
    outline: 2px solid #111;
    outline-offset: 1px;
}

#fe-limpiar-busqueda-fotos {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;
    line-height: 1;

    border: 1px solid #111;
    border-radius: 8px;

    background: #fff;
    cursor: pointer;

    font-size: 14px;
    font-weight: 600;
}

#fe-limpiar-busqueda-fotos:hover {
    background: #111;
    color: #fff;
}

#fe-buscando-fotos,
#fe-sin-resultados-fotos {
    padding: 20px 0;
    color: #666;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.fe-lightbox-contenido {
    position: relative;
    z-index: 2;

    width: min(1100px, 94%);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.fe-lightbox-imagen-contenedor {
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-lightbox-imagen-contenedor img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.fe-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
    z-index: 3;
}

.fe-lightbox-anterior {
    left: -10px;
}

.fe-lightbox-siguiente {
    right: -10px;
}

.fe-lightbox-footer {
    margin-top: 20px;
}

@media (max-width: 600px) {

    .fe-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .fe-lightbox-anterior {
        left: 4px;
    }

    .fe-lightbox-siguiente {
        right: 4px;
    }

}


/* =========================================================
   CHECK
========================================================= */

.fe-foto-check {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: white;

    font-size: 18px;

    opacity: 0;
    transform: scale(0.8);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   FOTO SELECCIONADA
========================================================= */

.fe-foto.seleccionada .fe-foto-boton {
    outline: 4px solid #111;
}

.fe-foto.seleccionada .fe-foto-check {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   CARGAR MÁS
========================================================= */

.fe-cargar-mas-contenedor {
    text-align: center;
    margin-top: 40px;
}

.fe-cargar-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    line-height: 1;

    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.fe-cargar-mas:hover {
    opacity: 0.85;
}


/* =========================================================
   BARRA DE SELECCIÓN
========================================================= */

.fe-seleccion-barra {
    position: fixed;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 20px;

    background: #111;
    color: #fff;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.fe-seleccion-barra.visible {
    transform: translateY(0);
}

#fe-ver-seleccion {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    line-height: 1;

    border: 0;
    border-radius: 5px;
    cursor: pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .fe-evento-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fe-grid-fotos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

}


@media (max-width: 600px) {

    .fe-evento-header {
        padding: 30px 0;
    }

    .fe-galeria {
        padding: 30px 0 100px;
    }

    .fe-grid-fotos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .fe-seleccion-barra {
        left: 10px;
        right: 10px;
        bottom: 10px;

        padding: 12px 14px;

        font-size: 14px;
    }

}

/* =========================================================
   MODAL DE SELECCIÓN
========================================================= */

.fe-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.fe-modal.abierto {
    opacity: 1;
    visibility: visible;
}


.fe-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
}


.fe-modal-contenido {
    position: relative;
    z-index: 2;

    width: min(900px, 100%);
    max-height: 90vh;

    overflow-y: auto;

    background: #fff;
    color: #111;

    border-radius: 12px;

    padding: 30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.3);
}


.fe-modal-cerrar {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #eee;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}


.fe-modal-header {
    margin-bottom: 25px;
}


.fe-modal-header h2 {
    margin: 0 0 5px;

    font-size: 32px;
}


.fe-modal-header p {
    margin: 0;

    opacity: 0.65;
}


/* =========================================================
   FOTOS DEL MODAL
========================================================= */

.fe-modal-fotos {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}


.fe-modal-foto {
    position: relative;
}


.fe-modal-foto img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 6px;
}


.fe-modal-foto-eliminar {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(0,0,0,0.75);

    color: #fff;

    cursor: pointer;

    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   FOOTER
========================================================= */

.fe-modal-footer {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #ddd;
}


.fe-boton-principal {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;
    line-height: 1;

    border: 0;
    border-radius: 6px;

    background: #111;

    color: #fff;

    cursor: pointer;

    font-size: 16px;
}


.fe-boton-principal:hover {
    opacity: 0.85;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .fe-modal {
        padding: 10px;
    }


    .fe-modal-contenido {
        padding: 20px;

        max-height: 95vh;
    }


    .fe-modal-fotos {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }


    .fe-modal-footer {

        flex-direction: column;

        align-items: stretch;

    }


    .fe-boton-principal {
        width: 100%;
    }

}

/* =========================================================
   PAQUETES DE COMPRA
========================================================= */

.fe-paquetes-compra {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.fe-paquetes-compra h3 {
    margin: 0 0 20px;
    font-size: 24px;
}

.fe-paquetes-lista {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.fe-paquete-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 0;
    overflow: hidden;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;
}

.fe-paquete-card-imagen {
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
}

.fe-paquete-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fe-paquete-card-contenido {
    padding: 20px;
    flex: 1;
}

.fe-paquete-card > .fe-elegir-paquete {
    margin: 0 20px 20px;
    width: auto;
}

.fe-paquete-card h4 {
    margin: 0 0 8px;
    font-size: 20px;
}

.fe-paquete-card p {
    margin: 0 0 15px;
    color: #666;
}

.fe-paquete-precio {
    margin-bottom: 5px;

    font-size: 24px;
    font-weight: 700;
}

.fe-paquete-cantidad {
    margin-bottom: 20px;

    font-size: 14px;
    color: #666;
}

.fe-elegir-paquete {
    width: 100%;
}


/* =========================================================
   PAQUETE SELECCIONADO
========================================================= */

.fe-paquete-card.seleccionado {
    border: 2px solid #111;
}


/* =========================================================
   AVISO DE CANTIDAD
========================================================= */

.fe-aviso-paquete {
    display: none;

    margin-top: 15px;
    padding: 12px 15px;

    border-radius: 6px;

    background: #f5f5f5;
    color: #111;

    font-size: 14px;
}

.fe-aviso-paquete.visible {
    display: block;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .fe-paquetes-lista {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PASO 2: RESUMEN + DATOS DEL CLIENTE
========================================================= */

.fe-volver {
    background: none;
    border: 0;
    padding: 0 0 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.fe-volver:hover {
    color: #111;
}

.fe-resumen-pedido {
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: #f7f7f7;
}

.fe-resumen-pedido h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.fe-resumen-linea {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 15px;
}

.fe-resumen-linea span {
    color: #666;
}

.fe-resumen-linea strong {
    text-align: right;
}

.fe-resumen-total {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 20px;
}

.fe-datos-cliente h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.fe-datos-cliente input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.fe-error-datos {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 6px;
    background: #fdecea;
    color: #b3261e;
    font-size: 14px;
}

.fe-medios-pago {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.fe-boton-mercadopago {
    background: #009ee3;
}

.fe-boton-mercadopago:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fe-boton-whatsapp {
    background: #25d366;
}

.fe-boton-whatsapp:hover {
    opacity: 0.85;
}


/* =========================================================
   AVISO DE ESTADO DE PAGO
========================================================= */

.fe-aviso-pago {
    width: min(1400px, 92%);
    margin: 30px auto 0;
    padding: 18px 22px;
    border-radius: 10px;
}

.fe-aviso-pago strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.fe-aviso-pago p {
    margin: 0;
}

.fe-aviso-exito {
    background: #e6f7ec;
    color: #0a5c2e;
}

.fe-aviso-pendiente {
    background: #fff6e5;
    color: #8a5a00;
}

.fe-aviso-error {
    background: #fdecea;
    color: #b3261e;
}