/* ==========================================================
   MIBOLETTO
   PUBLICO.CSS
   ESTILOS GENERALES DEL MODULO PUBLICO

   RESPONSABILIDAD DE ESTE ARCHIVO

   - Reset
   - Layout
   - Header
   - Footer
   - Contenedores
   - Botones
   - Cards Genericas
   - Listado de Eventos
   - Compra
   - Carrito
   - Cliente
   - Pago
   - Tickets

   ESTE ARCHIVO NO CONTIENE
   - Detalle del Evento
==========================================================*/


/* ==========================================================
   RESET
==========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* ==========================================================
   BODY
==========================================================*/

body{

    font-family:'Poppins',sans-serif;

    background:#f5f7fb;

    color:#1f2937;

    line-height:1.6;

}


/* ==========================================================
   ENLACES
==========================================================*/

a{

    text-decoration:none;

    transition:.25s;

}


/* ==========================================================
   IMAGENES
==========================================================*/

img{

    max-width:100%;

    display:block;

}


/* ==========================================================
   CONTENEDORES
==========================================================*/

.contenedor{

    width:min(95%,1440px);

    margin:auto;

}


.contenedor-main{

    width:min(95%,1440px);

    margin:35px auto 60px;

}


/* ==========================================================
   HEADER
==========================================================*/

.header-publico{

    position:sticky;

    top:0;

    z-index:1000;

    background:#041138;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

}


.header-publico .contenedor{

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:78px;

}


.logo{

    color:#ffffff;

    font-size:28px;

    font-weight:700;

}


.header-publico nav{

    display:flex;

    gap:25px;

}


.header-publico nav a{

    color:#ffffff;

    font-weight:500;

    position:relative;

}


.header-publico nav a:hover{

    color:#D4AF37;

}


/* ==========================================================
   TITULOS
==========================================================*/

.titulo-pagina{

    color:#041138;

    font-size:42px;

    font-weight:700;

    margin-bottom:35px;

}


/* ==========================================================
   TARJETAS GENERICAS
==========================================================*/

.card{

    background:#ffffff;

    border-radius:18px;

    padding:30px;

    box-shadow:

        0 8px 24px rgba(0,0,0,.08);

}


/* ==========================================================
   BOTONES
==========================================================*/

.btn,
.btn-principal{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:14px 28px;

    border:none;

    border-radius:12px;

    background:#D4AF37;

    color:#041138;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}


.btn:hover,
.btn-principal:hover{

    transform:translateY(-2px);

    box-shadow:

        0 8px 18px rgba(0,0,0,.18);

}


.btn-secundario{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:12px;

    background:#eef2f7;

    color:#041138;

    font-weight:700;

}


/* ==========================================================
   FOOTER
==========================================================*/

.footer-publico{

    margin-top:80px;

    background:#041138;

    color:#ffffff;

    text-align:center;

    padding:35px;

}

/* ==========================================================
   LISTADO DE EVENTOS
==========================================================*/

.grid-eventos{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));

    gap:35px;

    margin-top:35px;

}


.evento-card{

    background:#ffffff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
        0 12px 30px rgba(0,0,0,.08);

    transition:.30s;

}


.evento-card:hover{

    transform:translateY(-8px);

    box-shadow:
        0 22px 45px rgba(0,0,0,.15);

}


.evento-card img{

    width:100%;

    height:260px;

    object-fit:cover;

    object-position:center;

    background:#f3f4f6;

}


.evento-info{

    padding:28px;

}


.evento-info h2{

    color:#041138;

    font-size:24px;

    font-weight:700;

    margin-bottom:18px;

    line-height:1.3;

}


.evento-info p{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:12px;

    color:#5b6472;

    font-size:15px;

}


.evento-info i{

    color:#D4AF37;

    width:18px;

    text-align:center;

}


.evento-info .btn{

    width:100%;

    margin-top:20px;

}


/* ==========================================================
   LEYENDAS
==========================================================*/

.leyenda{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

    margin-bottom:25px;

}


.color{

    width:18px;

    height:18px;

    border-radius:6px;

    display:inline-block;

    margin-right:8px;

}


.disponible{

    background:#27ae60;

}


.reservado{

    background:#f1c40f;

}


.vendido{

    background:#e74c3c;

}


/* ==========================================================
   MAPA
==========================================================*/

.contenedor-mapa{

    overflow:auto;

    padding:20px;

    background:#ffffff;

    border-radius:18px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

}


.mapa-compra{

    position:relative;

    width:1600px;

    height:1800px;

    margin:auto;

    background:#081845;

    border-radius:18px;

}


.panel-compra{

    position:fixed;

    top:120px;

    right:25px;

    width:340px;

    background:#ffffff;

    border-radius:18px;

    padding:25px;

    display:none;

    z-index:999;

    box-shadow:
        0 15px 40px rgba(0,0,0,.20);

}


.btn-carrito{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    background:#D4AF37;

    color:#041138;

    padding:14px 24px;

    border-radius:12px;

    font-weight:700;

    margin-bottom:25px;

}


.btn-carrito:hover{

    transform:translateY(-2px);

}


/* ==========================================================
   OBJETOS DEL MAPA
==========================================================*/

.ubicacion{

    transition:.20s;

    cursor:pointer;

}


.ubicacion:hover{

    transform:scale(1.08);

}


.mesa{

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    border-radius:50%;

    color:#ffffff;

    font-size:11px;

    font-weight:700;

    box-shadow:
        0 6px 16px rgba(0,0,0,.30);

}


.palco{

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    border-radius:18px;

    color:#ffffff;

    font-size:13px;

    font-weight:700;

    line-height:1.2;

    border:2px solid rgba(255,255,255,.15);

    box-shadow:
        0 6px 16px rgba(0,0,0,.30);

}


.silla{

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:10px;

    color:#ffffff;

    font-size:10px;

    font-weight:700;

}

/* ==========================================================
   CARRITO
==========================================================*/

.carrito-contenedor{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:35px;

    align-items:flex-start;

}


.carrito-items{

    background:#ffffff;

    border-radius:20px;

    padding:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}


.item-carrito{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

    border-bottom:1px solid #e5e7eb;

}


.item-carrito:last-child{

    border-bottom:none;

}


.item-carrito h4{

    color:#041138;

    font-size:18px;

    margin-bottom:6px;

}


.item-carrito p{

    color:#6b7280;

    font-size:14px;

}


.resumen-compra{

    position:sticky;

    top:110px;

    background:#ffffff;

    border-radius:20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.10);

}


.total-compra{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:24px;

    font-weight:700;

    color:#041138;

    margin:25px 0;

}


/* ==========================================================
   FORMULARIOS
==========================================================*/

.form-publico{

    background:#ffffff;

    border-radius:20px;

    padding:35px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}


.form-publico h2{

    color:#041138;

    margin-bottom:25px;

}


.form-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}


.form-group{

    display:flex;

    flex-direction:column;

}


.form-group label{

    margin-bottom:8px;

    font-weight:600;

    color:#374151;

}


.form-group input,
.form-group select,
.form-group textarea{

    width:100%;

    padding:14px 16px;

    border:1px solid #d1d5db;

    border-radius:12px;

    font-size:15px;

    background:#ffffff;

    transition:.25s;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    outline:none;

    border-color:#D4AF37;

    box-shadow:0 0 0 4px rgba(212,175,55,.15);

}


/* ==========================================================
   PASOS DE COMPRA
==========================================================*/

.compra-steps{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin:35px 0;

    flex-wrap:wrap;

}


.step{

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:600;

    color:#6b7280;

}


.step.activo{

    color:#041138;

}


.step-numero{

    width:34px;

    height:34px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#D4AF37;

    color:#041138;

    font-weight:700;

}


/* ==========================================================
   TICKETS
==========================================================*/

.ticket-card{

    background:#ffffff;

    border-radius:20px;

    padding:30px;

    margin-bottom:25px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}


.ticket-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

    flex-wrap:wrap;

}


.ticket-qr{

    width:140px;

    height:140px;

    margin:auto;

}


.ticket-acciones{

    display:flex;

    gap:15px;

    margin-top:25px;

    flex-wrap:wrap;

}


/* ==========================================================
   ALERTAS
==========================================================*/

.alerta{

    padding:16px 20px;

    border-radius:12px;

    margin-bottom:20px;

    font-weight:600;

}


.alerta-ok{

    background:#ecfdf5;

    color:#166534;

}


.alerta-error{

    background:#fef2f2;

    color:#991b1b;

}


.alerta-info{

    background:#eff6ff;

    color:#1d4ed8;

}


/* ==========================================================
   RESPONSIVE
==========================================================*/

@media (max-width:1200px){

    .carrito-contenedor{

        grid-template-columns:1fr;

    }

    .resumen-compra{

        position:relative;

        top:auto;

    }

}


@media (max-width:992px){

    .grid-eventos{

        grid-template-columns:repeat(2,1fr);

    }

    .form-grid{

        grid-template-columns:1fr;

    }

    .panel-compra{

        position:relative;

        right:auto;

        top:auto;

        width:100%;

        margin-top:25px;

    }

}


@media (max-width:768px){

    .grid-eventos{

        grid-template-columns:1fr;

    }

    .titulo-pagina{

        font-size:32px;

    }

    .header-publico .contenedor{

        flex-direction:column;

        gap:18px;

        padding:20px 0;

    }

    .header-publico nav{

        flex-wrap:wrap;

        justify-content:center;

    }

    .ticket-header{

        flex-direction:column;

        gap:15px;

        text-align:center;

    }

}


@media (max-width:576px){

    .contenedor,
    .contenedor-main{

        width:94%;

    }

    .btn,
    .btn-principal,
    .btn-secundario{

        width:100%;

    }

    .evento-card img{

        height:220px;

    }

    .card,
    .form-publico,
    .carrito-items,
    .resumen-compra{

        padding:20px;

    }

}