/* =====================================================
   TOPTICKETS
   index.html + venta.html
===================================================== */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

:root{
  --brand-blue:#0daee7;
  --brand-blue-dark:#078fc4;
  --text-dark:#1d1d1f;
  --border-soft:#d8e0e5;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  background:#fff;
  color:var(--text-dark);
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select{
  font:inherit;
}

/* =====================================================
   ENCABEZADO
===================================================== */

.page-top{
  height:12px;
  background:#050505;
}

.topbar{
  min-height:45px;
  background:var(--brand-blue);
}

.nav-container{
  width:905px;
  max-width:92%;
  min-height:45px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  color:#fff;
  font-size:26px;
  line-height:1;
  font-weight:900;
  letter-spacing:-1.5px;
}

.search-box{
  width:190px;
  height:31px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0 10px;
  border-radius:18px;
  background:#1bdfea;
  color:#fff;
}

.search-box input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:10px;
}

.search-box input::placeholder{
  color:#fff;
  opacity:1;
}

.buscar-btn{
  border:0;
  background:transparent;
  color:#fff;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.nav-spacer{
  flex:1;
}

.nav-link{
  color:#fff;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}

.sell-btn{
  min-width:61px;
  padding:7px 12px;
  border-radius:16px;
  background:#fff;
  color:#0ca9e7;
  text-align:center;
  font-size:10px;
  font-weight:700;
  position:relative;
}

.sell-btn::after{
  content:"NUEVO";
  position:absolute;
  top:-5px;
  right:-4px;
  padding:1px 4px;
  border-radius:4px;
  background:#000;
  color:#fff;
  font-size:5px;
  font-weight:900;
}

/* =====================================================
   INDEX
===================================================== */

.index-hero{
  min-height:470px;
  position:relative;
  overflow:hidden;
  background:url("Palenque.png") center 24% / cover no-repeat;
}

.index-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.18),
    rgba(0,0,0,.34) 48%,
    rgba(0,0,0,.78)
  );
}

.index-hero-content{
  width:905px;
  max-width:92%;
  min-height:470px;
  margin:0 auto;
  padding:85px 0 34px;
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.index-hero h1{
  max-width:650px;
  color:#fff;
  font-size:34px;
  line-height:1.05;
  font-weight:900;
  text-shadow:0 3px 9px rgba(0,0,0,.65);
}

.index-hero p{
  margin-top:10px;
  color:#fff;
  font-size:13px;
  text-shadow:0 2px 5px rgba(0,0,0,.65);
}

.primary-btn{
  display:inline-flex;
  width:max-content;
  align-items:center;
  justify-content:center;
  min-width:210px;
  min-height:47px;
  margin-top:23px;
  padding:12px 24px;
  border-radius:7px;
  background:linear-gradient(90deg,#efffff,#18b8ef);
  color:#fff;
  font-size:16px;
  font-weight:900;
  box-shadow:0 5px 14px rgba(0,0,0,.25);
  transition:.2s;
}

.primary-btn:hover{
  transform:translateY(-2px);
}

.featured-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:30px;
}

.featured-card{
  height:92px;
  position:relative;
  overflow:hidden;
  border-radius:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.35);
}

.featured-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transition:.25s;
}

.featured-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(transparent,rgba(0,0,0,.88));
}

.featured-card:hover img{
  transform:scale(1.06);
}

.featured-info{
  position:absolute;
  z-index:2;
  left:10px;
  right:10px;
  bottom:8px;
  color:#fff;
}

.featured-info strong{
  display:block;
  font-size:12px;
  line-height:1.1;
  text-transform:uppercase;
}

.featured-info span{
  display:block;
  margin-top:3px;
  font-size:10px;
}


.events-section{
  width:905px;
  max-width:92%;
  margin:0 auto;
  padding:42px 0 75px;
}

.section-title{
  margin-bottom:25px;
  color:#087fbb;
  font-size:22px;
  font-weight:400;
}

.events-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:32px 24px;
}

.event-card{
  position:relative;
  display:block;
  color:#222;
  transition:.22s;
}

.event-card:hover{
  transform:translateY(-5px);
}

.event-card img{
  display:block;
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  object-position:center top;
  border-radius:7px;
  background:#eee;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}

.event-card h3{
  margin-top:11px;
  font-size:13px;
  line-height:1.25;
  font-weight:500;
  text-transform:uppercase;
}

.event-card p{
  margin-top:5px;
  color:#555;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* Avisos de venta próxima */
.primary-coming{
  cursor:default;
  background:#ffffff;
  color:#e00000;
  border:3px solid #e00000;
  font-weight:900;
}

.featured-info span{
  display:inline-block;
  width:max-content;
  margin-top:5px;
  padding:5px 9px;
  border:2px solid #ff1b1b;
  border-radius:4px;
  background:#fff;
  color:#e00000;
  font-size:10px;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  box-shadow:0 4px 10px rgba(0,0,0,.28);
}

.coming-soon{
  display:none !important;
}

.coming-soon-image{
  position:absolute;
  top:14px;
  left:50%;
  z-index:20;
  display:block;
  width:calc(100% - 20px);
  padding:9px 8px;
  transform:translateX(-50%);
  border:3px solid #ff1b1b;
  border-radius:7px;
  background:rgba(255,255,255,.96);
  color:#e00000;
  font-size:13px;
  line-height:1;
  font-weight:1000;
  letter-spacing:1.3px;
  text-align:center;
  text-transform:uppercase;
  text-shadow:0 1px 0 #fff;
  box-shadow:
    0 5px 14px rgba(0,0,0,.35),
    0 0 0 2px rgba(255,255,255,.65);
  pointer-events:none;
  animation:proximamentePulso 1.15s infinite ease-in-out;
}

@keyframes proximamentePulso{
  0%,100%{
    transform:translateX(-50%) scale(1);
  }
  50%{
    transform:translateX(-50%) scale(1.055);
  }
}

/* =====================================================
   VENTA - MISMA ESTRUCTURA DE LA PÁGINA ORIGINAL
===================================================== */

.page-container{
  width:905px;
  max-width:92%;
  margin:0 auto;
}

.event-hero{
  width:830px;
  max-width:100%;
  min-height:545px;
  position:relative;
  overflow:hidden;
  background-position:center top;
  background-size:cover;
  background-repeat:no-repeat;
}

.event-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.02) 0%,
      rgba(0,0,0,.10) 42%,
      rgba(0,0,0,.82) 100%
    );
}

.event-data{
  position:absolute;
  z-index:2;
  left:24px;
  right:25px;
  bottom:24px;
  color:#fff;
}

.event-line{
  display:flex;
  align-items:flex-end;
  gap:18px;
}

.event-poster{
  width:78px;
  height:117px;
  flex:0 0 auto;
  object-fit:cover;
  object-position:center top;
  background:#eee;
  box-shadow:0 5px 14px rgba(0,0,0,.35);
}

.event-copy{
  min-width:0;
  padding-bottom:18px;
}

.event-copy h1{
  max-width:650px;
  color:#fff;
  font-size:30px;
  line-height:1.03;
  font-weight:900;
  text-transform:uppercase;
  text-shadow:0 2px 5px rgba(0,0,0,.6);
}

.event-date{
  display:block;
  margin-top:3px;
  font-size:30px;
  line-height:1;
  font-weight:900;
  text-shadow:0 2px 5px rgba(0,0,0,.6);
}

.event-place{
  display:block;
  margin-top:9px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

.buy-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:240px;
  height:47px;
  margin-top:20px;
  border-radius:7px;
  background:linear-gradient(90deg,#efffff,#19b9ef);
  color:#fff;
  font-size:17px;
  font-weight:900;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
  transition:.2s;
}

.buy-btn:hover{
  transform:translateY(-2px);
}

/* Tarjeta completa de información */
.info-panel{
  width:830px;
  max-width:100%;
  margin:36px 0 48px;
  overflow:hidden;
  border:1px solid var(--border-soft);
  border-radius:9px;
  background:#fff;
  box-shadow:0 8px 24px rgba(22,45,58,.10);
}

.information{
  width:100%;
  padding:28px 30px 25px;
  border-bottom:1px solid #e4e9ed;
}

.info-label{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  color:#111;
  font-size:14px;
  font-weight:700;
}

.info-label::before{
  content:"";
  width:11px;
  height:11px;
  flex:0 0 auto;
  border:2px solid var(--brand-blue);
  border-radius:50%;
}

.notice{
  max-width:none;
  color:#111;
  font-size:11px;
  line-height:1.75;
  text-transform:uppercase;
  letter-spacing:.08px;
}

/* Segundo bloque dentro de la misma caja */
.details{
  width:100%;
  padding:27px 30px 30px;
}

.details h2{
  margin-bottom:9px;
  color:#111;
  font-size:22px;
  line-height:1.2;
  font-weight:600;
}

.details-intro{
  margin-bottom:22px;
  color:#222;
  font-size:11px;
  line-height:1.55;
  text-transform:uppercase;
}

.detail-row{
  margin-bottom:19px;
  color:#111;
  font-size:11px;
  line-height:1.7;
  text-transform:uppercase;
}

.detail-row:last-child{
  margin-bottom:0;
}

.detail-row em{
  color:#222;
  text-transform:none;
}

.detail-icon{
  display:inline-flex;
  width:20px;
  color:#e550c9;
  font-size:13px;
  text-align:center;
}


/* Mapa de ancho completo */
.map-section{
  width:100vw;
  height:300px;
  margin-left:calc(50% - 50vw);
  overflow:hidden;
  background:#e8f5f8;
  border-top:1px solid #d9e1e6;
}

.map-section iframe{
  display:block;
  width:100% !important;
  min-width:100% !important;
  height:100% !important;
  border:0;
}

/* =====================================================
   PIE DE PÁGINA
===================================================== */

.footer{
  width:100%;
  padding:28px 0 17px;
  background:var(--brand-blue);
  color:#fff;
  font-size:11px;
}

.footer-main{
  width:905px;
  max-width:92%;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr .8fr .8fr;
  gap:55px;
  align-items:start;
}

.footer-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}

.footer-links a{
  display:block;
  color:#fff;
  font-weight:700;
  line-height:1.25;
}

.footer-column label{
  display:block;
  margin-bottom:9px;
  color:#fff;
  font-weight:700;
}

.footer-column select{
  width:155px;
  height:33px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:2px;
  outline:0;
  background:var(--brand-blue-dark);
  color:#fff;
  font-size:10px;
}

.footer-bottom{
  width:905px;
  max-width:92%;
  margin:20px auto 0;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.25);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.footer-bottom strong{
  color:#fff;
  font-size:18px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:800px){
  .events-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .event-copy h1,
  .event-date{
    font-size:25px;
  }
}

@media(max-width:600px){
  .page-top{
    height:7px;
  }

  .nav-container{
    padding:9px 0;
    flex-wrap:wrap;
  }

  .logo{
    font-size:23px;
  }

  .search-box{
    order:5;
    width:100%;
  }

  .nav-spacer{
    display:none;
  }

  .nav-link{
    margin-left:auto;
  }

  .index-hero,
  .index-hero-content{
    min-height:540px;
  }

  .index-hero-content{
    padding-top:55px;
  }

  .index-hero h1{
    font-size:28px;
  }

  .featured-row{
    grid-template-columns:1fr;
    gap:12px;
  }

  .featured-card{
    height:80px;
  }

  .events-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 14px;
  }

  .event-hero{
    min-height:500px;
  }

  .event-data{
    left:16px;
    right:16px;
    bottom:20px;
  }

  .event-line{
    gap:12px;
  }

  .event-poster{
    width:70px;
    height:105px;
  }

  .event-copy{
    padding-bottom:7px;
  }

  .event-copy h1,
  .event-date{
    font-size:21px;
  }

  .event-place{
    font-size:10px;
  }

  .buy-btn{
    width:100%;
  }

  .info-panel{
    margin:22px 0 32px;
    border-radius:7px;
  }

  .information,
  .details{
    padding-left:18px;
    padding-right:18px;
  }

  .info-label{
    font-size:13px;
  }

  .notice,
  .details-intro,
  .detail-row{
    font-size:10px;
  }

  .map-section{
    height:240px;
  }

  .footer-main{
    grid-template-columns:1fr;
    gap:22px;
  }

  .footer-bottom{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
}


/* =====================================================
   COMPRA.HTML
===================================================== */

.purchase-page{
  min-height:100vh;
  padding-bottom:104px;
  background:#fff;
}

.purchase-container{
  width:905px;
  max-width:92%;
  margin:0 auto;
  padding:28px 0 70px;
}

/* Paso superior y línea horizontal */
.purchase-progress{
  width:830px;
  max-width:100%;
  margin:0 auto;
  padding-left:34px;
}

.purchase-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:70px;
  margin:0 0 15px;
  color:#385866;
  font-size:12px;
  font-weight:500;
}

.purchase-step-circle{
  width:24px;
  height:24px;
  margin-bottom:7px;
  border:1px solid #b9c5ca;
  border-radius:50%;
  background:#fff;
}

.purchase-divider{
  width:830px;
  max-width:100%;
  height:1px;
  margin:0 auto 32px;
  background:#c4cbd0;
}

/* Cuadro que rodea toda la compra */
.purchase-panel{
  width:830px;
  max-width:100%;
  margin:0 auto;
  padding:38px 40px 48px;
  border:1px solid #cbd2d6;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}

.purchase-info{
  margin-bottom:27px;
}

.purchase-info-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#24576b;
  font-size:12px;
  line-height:1.2;
  font-weight:400;
}

.purchase-info-title::before{
  content:"ⓘ";
  color:#20c3ed;
  font-size:13px;
}

.purchase-info-text{
  max-width:760px;
  color:#202326;
  font-size:10px;
  line-height:1.62;
  font-weight:400;
  text-transform:uppercase;
}

.purchase-question{
  margin:25px 0 20px;
  color:#315e70;
  font-size:12px;
  font-weight:400;
}

.purchase-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  margin-bottom:22px;
}

.purchase-sort{
  display:flex;
  align-items:center;
  gap:13px;
  color:#354b55;
  font-size:10px;
}

.purchase-sort select{
  width:125px;
  height:34px;
  padding:0 10px;
  border:1px solid #bfc9ce;
  outline:0;
  background:#fff;
  color:#202326;
  font-size:10px;
}

.purchase-view-icons{
  display:flex;
  gap:13px;
  padding:7px 12px 0 0;
  color:#19bee8;
  font-size:16px;
}

.zone-layout{
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:38px;
  align-items:start;
}

.zone-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:3px;
}

.zone-item{
  display:grid;
  grid-template-columns:12px 1fr auto;
  gap:9px;
  align-items:center;
  min-height:19px;
  border:0;
  background:transparent;
  color:#202326;
  text-align:left;
  cursor:pointer;
}

.zone-dot{
  width:11px;
  height:11px;
  border-radius:50%;
}

.zone-name{
  font-size:10px;
  font-weight:500;
  text-transform:uppercase;
}

.zone-price{
  color:#34383b;
  font-size:9px;
}

.zone-item:hover .zone-name,
.zone-item.active .zone-name{
  color:#111;
  font-weight:700;
}

.zone-item.active{
  transform:translateX(3px);
}

/* Mapa más pequeño y centrado como el original */
.map-area{
  min-height:470px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 22px 50px;
}

.seat-map-wrap{
  width:335px;
  max-width:100%;
  position:relative;
  margin:0 auto;
}

.seat-map{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
  transform-origin:center;
  transition:transform .18s ease;
}

.map-zone{
  cursor:pointer;
  transition:filter .18s,opacity .18s;
}

.map-zone:hover{
  filter:brightness(1.05);
}

.map-zone.active{
  filter:drop-shadow(0 0 6px rgba(0,0,0,.22));
}

.map-controls{
  position:absolute;
  right:-4px;
  bottom:3px;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.map-control{
  width:21px;
  height:21px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid #111;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:15px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}

.ticket-selection{
  margin-top:0;
}

.selection-card{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  max-width:590px;
  padding:16px 18px;
  border:1px solid #dbe3e6;
  border-radius:4px;
  background:#fff;
}

.selection-card.visible{
  display:flex;
}

.selection-zone strong{
  display:block;
  margin-bottom:4px;
  color:#202326;
  font-size:12px;
  text-transform:uppercase;
}

.selection-zone span{
  color:#34383b;
  font-size:10px;
}

.quantity-control{
  display:flex;
  align-items:center;
  gap:11px;
}

.quantity-control button{
  width:28px;
  height:28px;
  border:1px solid #c8d4d9;
  border-radius:50%;
  background:#fff;
  color:#4f7c8c;
  font-size:16px;
  cursor:pointer;
}

.quantity-control output{
  min-width:22px;
  color:#202326;
  font-size:13px;
  font-weight:700;
  text-align:center;
}

/* Barra inferior fija */
.purchase-bottom{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  border-top:6px solid var(--brand-blue);
  background:#fff;
  box-shadow:0 -4px 15px rgba(0,0,0,.08);
}

.purchase-bottom-inner{
  width:905px;
  max-width:92%;
  min-height:82px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto;
  gap:22px;
  align-items:center;
}

.purchase-event{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}

.purchase-event img{
  width:62px;
  height:47px;
  flex:0 0 auto;
  object-fit:cover;
  object-position:center top;
  border-radius:3px;
}

.purchase-event-main{
  min-width:0;
}

.purchase-event-name{
  display:block;
  max-width:340px;
  color:#202326;
  font-size:9px;
  line-height:1.25;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.purchase-event-place{
  display:block;
  margin-top:4px;
  color:#137fa6;
  font-size:9px;
  text-transform:uppercase;
}

.purchase-event-date{
  margin-left:18px;
  color:#34383b;
  font-size:8px;
  line-height:1.45;
  white-space:nowrap;
}

.purchase-submit{
  min-width:126px;
  height:44px;
  border:0;
  border-radius:3px;
  background:linear-gradient(90deg,#dcffff,#39d8ef);
  color:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}

.purchase-submit:disabled{
  opacity:.46;
  cursor:not-allowed;
}

/* Modal inicial */
.important-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.52);
}

.important-overlay.hidden{
  display:none;
}

.important-modal{
  width:375px;
  max-width:100%;
  overflow:hidden;
  border-radius:8px 8px 0 0;
  background:#fff;
  box-shadow:0 18px 48px rgba(0,0,0,.35);
}

.important-header{
  min-height:41px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 13px;
  border-bottom:1px solid #9c9c9c;
  color:#66899a;
  font-size:12px;
}

.important-close{
  width:28px;
  height:28px;
  border:0;
  background:transparent;
  color:#444;
  font-size:20px;
  cursor:pointer;
}

.important-body{
  padding:13px 13px 24px;
}

.important-body p{
  color:#333;
  font-size:11px;
  line-height:1.52;
  text-transform:uppercase;
}

.important-action{
  display:flex;
  justify-content:center;
  padding:0 13px 12px;
}

.important-continue{
  width:100%;
  height:33px;
  border:0;
  border-radius:3px;
  background:linear-gradient(90deg,#d8ffff,#18b8ef);
  color:#fff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

/* Colores de zonas */
.zone-luneta{background:#fff838}
.zone-general{background:#6d2eff}
.zone-platea{background:#ff79d7}
.zone-vip{background:#9df6f8}

/* Responsive compra */
@media(max-width:760px){
  .purchase-container{
    padding-top:22px;
  }

  .purchase-progress{
    padding-left:14px;
  }

  .purchase-step{
    margin-left:0;
  }

  .purchase-panel{
    padding:26px 20px 38px;
  }

  .purchase-toolbar{
    flex-direction:column;
    gap:10px;
  }

  .zone-layout{
    grid-template-columns:1fr;
    gap:22px;
  }

  .zone-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .map-area{
    min-height:410px;
    padding-left:0;
    padding-right:0;
  }

  .seat-map-wrap{
    width:310px;
  }

  .selection-card{
    align-items:flex-start;
    flex-direction:column;
  }

  .purchase-bottom-inner{
    min-height:94px;
    grid-template-columns:1fr auto;
    gap:11px;
  }

  .purchase-event-date{
    display:none;
  }

  .purchase-event img{
    width:52px;
    height:42px;
  }

  .purchase-event-name{
    max-width:170px;
  }

  .purchase-submit{
    min-width:104px;
  }
}

@media(max-width:480px){
  .purchase-container{
    max-width:94%;
  }

  .purchase-panel{
    padding:22px 14px 34px;
  }

  .zone-list{
    grid-template-columns:1fr;
  }

  .seat-map-wrap{
    width:280px;
  }

  .purchase-bottom-inner{
    max-width:96%;
  }

  .purchase-event-place{
    max-width:145px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .important-overlay{
    align-items:flex-start;
    padding-top:10px;
  }

  .important-modal{
    width:100%;
  }
}


/* Corrección final de contraste en compra.html */
.purchase-panel,
.purchase-panel button,
.purchase-panel select{
  color:#202326;
}

.purchase-info-title,
.purchase-question{
  color:#24576b;
}

.purchase-info-text,
.purchase-sort,
.zone-name,
.zone-price,
.selection-zone strong,
.selection-zone span{
  opacity:1;
}

.purchase-info-text{
  color:#202326;
}

.zone-name{
  color:#202326;
}

.zone-price{
  color:#34383b;
}

.purchase-sort{
  color:#354b55;
}

.purchase-sort select{
  color:#202326;
}

.purchase-bottom{
  color:#202326;
}

.purchase-event-name{
  color:#202326;
}

.purchase-event-date{
  color:#34383b;
}


/* =========================================================
   COMPRA — INTERFAZ AJUSTADA AL ORIGINAL
   (No modifica el dibujo interno del mapa)
========================================================= */

.purchase-page{
  min-height:100vh;
  padding-bottom:92px;
  background:#fff;
}

.purchase-container{
  width:850px;
  max-width:92%;
  margin:0 auto;
  padding:30px 0 74px;
}

/* Paso Compra */
.purchase-progress{
  width:850px;
  max-width:100%;
  margin:0 auto;
  padding-left:8px;
}

.purchase-step{
  width:auto;
  margin:0;
  align-items:flex-start;
  color:#2582a6;
  font-size:12px;
  font-weight:400;
}

.purchase-step-circle{
  width:23px;
  height:23px;
  margin-left:7px;
  margin-bottom:8px;
  border:1px solid #dce6e9;
  background:#fff;
}

.purchase-divider{
  width:850px;
  max-width:100%;
  height:1px;
  margin:28px auto 61px;
  background:#e4e7e9;
}

/* Marco general */
.purchase-panel{
  width:850px;
  max-width:100%;
  margin:0 auto;
  padding:0;
  border:1px solid #f3f3f3;
  background:#fff;
  box-shadow:none;
}

/* Información */
.purchase-info{
  width:100%;
  margin:0 0 30px;
  padding:0;
}

.purchase-info-title{
  gap:9px;
  margin:0 0 11px;
  color:#188fc0;
  font-size:13px;
  line-height:1.2;
  font-weight:400;
}

.purchase-info-title::before{
  color:#17c8ef;
  font-size:14px;
}

.purchase-info-text{
  width:810px;
  max-width:100%;
  color:#111;
  font-size:10px;
  line-height:1.68;
  font-weight:400;
  letter-spacing:0;
  text-transform:uppercase;
}

/* Pregunta y controles */
.purchase-question{
  margin:31px 0 27px;
  color:#188fc0;
  font-size:13px;
  line-height:1.2;
  font-weight:400;
}

.purchase-toolbar{
  width:100%;
  margin:0 0 24px;
  align-items:center;
}

.purchase-sort{
  gap:20px;
  color:#317489;
  font-size:11px;
}

.purchase-sort select{
  width:125px;
  height:34px;
  padding:0 4px;
  border:0;
  border-bottom:1px solid #d2d7da;
  border-radius:0;
  background:#fff;
  color:#111;
  font-size:10px;
  box-shadow:none;
}

.purchase-view-icons{
  gap:14px;
  padding:0 3px 0 0;
  color:#0dc7ee;
  font-size:17px;
}

/* Lista lateral */
.zone-layout{
  grid-template-columns:220px minmax(0,1fr);
  gap:37px;
}

.zone-list{
  gap:14px;
  padding-top:3px;
}

.zone-item{
  grid-template-columns:12px 1fr 70px;
  gap:10px;
  min-height:20px;
  color:#111;
}

.zone-dot{
  width:11px;
  height:11px;
}

.zone-name{
  color:#111;
  font-size:10px;
  line-height:1;
  font-weight:400;
}

.zone-price{
  color:#111;
  font-size:9px;
  line-height:1;
  text-align:right;
}

.zone-item:hover .zone-name,
.zone-item.active .zone-name{
  color:#111;
  font-weight:700;
}

/* Solo posicionamiento exterior; no altera el SVG */
.map-area{
  min-height:430px;
  padding:15px 0 32px;
  align-items:center;
  justify-content:center;
}

.seat-map-wrap{
  width:335px;
  margin:0 auto;
}

/* Pregunta inferior */
.ticket-selection{
  margin-top:4px;
}

.ticket-selection > .purchase-question{
  margin:20px 0 24px;
}

/* Barra fija inferior */
.purchase-bottom{
  border-top:5px solid #15c8ef;
  background:#fff;
  box-shadow:none;
}

.purchase-bottom-inner{
  width:1020px;
  max-width:92%;
  min-height:76px;
  grid-template-columns:1fr auto;
  gap:20px;
}

.purchase-event{
  gap:10px;
}

.purchase-event img{
  width:70px;
  height:45px;
  border-radius:0;
}

.purchase-event-name{
  max-width:280px;
  color:#111;
  font-size:9px;
  line-height:1.25;
}

.purchase-event-place{
  color:#13b9e4;
  font-size:8px;
}

.purchase-event-date{
  margin-left:17px;
  color:#111;
  font-size:8px;
  line-height:1.35;
}

.purchase-submit{
  min-width:120px;
  height:45px;
  border-radius:3px;
  font-size:14px;
}

/* Móvil */
@media(max-width:760px){
  .purchase-container{
    width:92%;
    max-width:92%;
    padding-top:22px;
  }

  .purchase-progress,
  .purchase-divider,
  .purchase-panel{
    width:100%;
  }

  .purchase-divider{
    margin-bottom:36px;
  }

  .purchase-panel{
    border-color:#f0f0f0;
  }

  .purchase-info-text{
    width:100%;
  }

  .purchase-toolbar{
    align-items:flex-start;
  }

  .zone-layout{
    grid-template-columns:1fr;
  }

  .purchase-bottom-inner{
    width:96%;
    max-width:96%;
  }
}


/* =========================================================
   COMPRA — ESTRUCTURA CORRECTA POR BLOQUES
========================================================= */

.purchase-container{
  width:850px;
  max-width:92%;
}

.purchase-divider{
  width:850px;
  max-width:100%;
  margin-bottom:34px;
}

/* 1. Cuadro exclusivo de información */
.purchase-info-box{
  width:850px;
  max-width:100%;
  margin:0 auto;
  overflow:hidden;
  border:1px solid #d7dde1;
  border-radius:2px;
  background:#fff;
}

.purchase-info-box-title{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 17px;
  border-bottom:1px solid #d7dde1;
  background:#fff;
  color:#28718d;
  font-size:13px;
  font-weight:400;
}

.purchase-info-icon{
  color:#11c4ec;
  font-size:14px;
}

.purchase-info-box-body{
  padding:15px 17px 17px;
}

.purchase-info-box .purchase-info-text{
  width:100%;
  max-width:none;
  margin:0;
  color:#111;
  font-size:10px;
  line-height:1.65;
  font-weight:400;
  letter-spacing:0;
  text-transform:uppercase;
}

/* 2. Pregunta fuera del cuadro anterior y sombreada */
.zone-question-strip{
  width:850px;
  max-width:100%;
  min-height:45px;
  display:flex;
  align-items:center;
  margin:22px auto 0;
  padding:0 17px;
  border:1px solid #e0e4e7;
  background:#f3f5f6;
  color:#28718d;
  font-size:13px;
  font-weight:400;
}

/* 3. Cuadro independiente con ordenar, zonas y mapa */
.zone-options-box{
  width:850px;
  max-width:100%;
  margin:0 auto;
  padding:18px 17px 24px;
  border:1px solid #d7dde1;
  border-top:0;
  background:#fff;
}

.zone-options-box .purchase-toolbar{
  margin:0 0 18px;
  padding:0 0 16px;
  border-bottom:1px solid #e2e6e9;
}

.zone-options-box .purchase-sort{
  color:#344d58;
  font-size:11px;
}

.zone-options-box .purchase-sort select{
  width:122px;
  height:34px;
  padding:0 9px;
  border:1px solid #bdc8ce;
  border-radius:0;
  background:#fff;
  color:#111;
  font-size:10px;
}

.zone-options-box .zone-layout{
  margin:0;
}

.zone-options-box .zone-name,
.zone-options-box .zone-price{
  color:#111;
  opacity:1;
}

/* No se altera el dibujo interno del mapa */
.zone-options-box .map-area{
  margin:0;
}

/* Pregunta inferior también separada */
.ticket-selection{
  width:850px;
  max-width:100%;
  margin:22px auto 0;
}

.ticket-question-strip{
  min-height:45px;
  display:flex;
  align-items:center;
  padding:0 17px;
  border:1px solid #e0e4e7;
  background:#f3f5f6;
  color:#28718d;
  font-size:13px;
  font-weight:400;
}

.ticket-selection .selection-card{
  margin-top:0;
  border-top:0;
  border-radius:0;
}

/* Desactivar visualmente el antiguo contenedor */
.purchase-panel{
  display:contents;
}

@media(max-width:760px){
  .purchase-info-box-title,
  .purchase-info-box-body,
  .zone-question-strip,
  .zone-options-box,
  .ticket-question-strip{
    padding-left:14px;
    padding-right:14px;
  }

  .zone-options-box{
    padding-top:15px;
    padding-bottom:20px;
  }
}


/* =========================================================
   CORRECCIÓN FINAL DEL PASO "COMPRA" Y SU LÍNEA
========================================================= */

.purchase-progress{
  width:850px;
  max-width:92%;
  margin:0 auto;
  padding:0;
}

.purchase-step{
  width:70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  margin:0;
  color:#2582a6;
  font-size:12px;
  font-weight:400;
  text-align:center;
}

.purchase-step-circle{
  display:block;
  width:23px;
  height:23px;
  margin:0 0 8px;
  border:1px solid #e9e3b9;
  border-radius:50%;
  background:#fff;
}

/* La línea cruza toda la pantalla, como en la referencia */
.purchase-divider{
  width:100vw;
  max-width:none;
  height:1px;
  margin-top:28px;
  margin-right:0;
  margin-bottom:34px;
  margin-left:calc(50% - 50vw);
  background:#d9dde0;
}

@media(max-width:760px){
  .purchase-progress{
    width:92%;
    max-width:92%;
  }

  .purchase-step{
    width:70px;
  }

  .purchase-divider{
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
  }
}


/* =========================================================
   MAPA INTERACTIVO CON ASIENTOS REALES
========================================================= */

.zone-layout{
  grid-template-columns:210px minmax(0,1fr);
  gap:26px;
}

.map-area{
  min-width:0;
  min-height:650px;
  padding:0;
}

.interactive-seatmap{
  width:100%;
  position:relative;
  overflow:hidden;
  border:1px solid #d8e0e4;
  border-radius:7px;
  background:#fff;
}

.seatmap-header{
  min-height:62px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:10px 14px;
  border-bottom:1px solid #e0e5e8;
  background:#f8fafb;
}

.seatmap-back{
  min-width:124px;
  height:34px;
  padding:0 12px;
  border:1px solid #b9c7cd;
  border-radius:4px;
  background:#fff;
  color:#24576b;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}

.seatmap-heading{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.seatmap-heading strong{
  color:#111;
  font-size:13px;
}

.seatmap-heading span{
  color:#586b73;
  font-size:10px;
}

.availability-badge{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:14px;
  background:#e8fff0;
  color:#12833b;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

.seatmap-viewport{
  width:100%;
  height:560px;
  overflow:hidden;
  position:relative;
  background:#fff;
  touch-action:none;
  cursor:grab;
}

.seatmap-viewport.is-dragging{
  cursor:grabbing;
}

.interactive-seatmap-svg{
  display:block;
  width:100%;
  height:100%;
  user-select:none;
}

.overview-general-ring{
  cursor:pointer;
  transition:stroke .18s,opacity .18s;
}

.overview-general-ring:hover{
  stroke:#008fd0;
}

.overview-section{
  cursor:pointer;
  transition:filter .15s,opacity .15s,stroke-width .15s;
}

.overview-section:hover{
  filter:brightness(.93);
  stroke-width:6;
}

.overview-section.is-dimmed,
.overview-section-label.is-dimmed{
  opacity:.17;
}

.overview-section-label{
  fill:#111;
  font-size:31px;
  font-weight:500;
  pointer-events:none;
}

.tunnel-label{
  fill:#111;
  font-size:31px;
}

.stage-circle{
  pointer-events:none;
}

.row-label{
  fill:#202326;
  font-size:12px;
  font-weight:600;
  pointer-events:none;
}

.seat-node{
  fill:var(--seat-color,#fff45d);
  stroke:#5f5a24;
  stroke-width:1.8;
  cursor:pointer;
  transition:fill .12s,stroke .12s,stroke-width .12s;
  outline:none;
}

.seat-node:hover,
.seat-node:focus{
  stroke:#111;
  stroke-width:3.5;
}

.seat-node.is-selected{
  fill:#e31f2b;
  stroke:#8a0008;
  stroke-width:3.2;
}

.seatmap-controls{
  position:absolute;
  right:13px;
  bottom:48px;
  z-index:5;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.seatmap-controls button{
  width:29px;
  height:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid #111;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

.seatmap-legend{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:8px 12px;
  border-top:1px solid #e0e5e8;
  background:#fafbfc;
  color:#344b55;
  font-size:9px;
}

.seatmap-legend span{
  display:flex;
  align-items:center;
  gap:6px;
}

.legend-seat{
  width:12px;
  height:12px;
  display:inline-block;
  border:1.5px solid #555;
  border-radius:50%;
}

.legend-seat.available{
  background:#fff45d;
}

.legend-seat.selected{
  background:#e31f2b;
}

.legend-seat.stage{
  background:#000;
}

/* Panel de selección */
.seat-selection-panel{
  border:1px solid #d8e0e4;
  border-top:0;
  background:#fff;
}

.selection-empty{
  padding:22px 17px;
  color:#596d76;
  font-size:11px;
}

.selected-seats-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:14px;
}

.selected-seats-list:empty{
  display:none;
}

.selected-seat-card{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border:1px solid #d9e0e3;
  border-radius:5px;
  background:#fff;
}

.selected-seat-card > div:first-child{
  min-width:0;
}

.selected-seat-card strong{
  display:block;
  color:#111;
  font-size:11px;
}

.selected-seat-card span{
  display:block;
  margin-top:3px;
  color:#5f737c;
  font-size:9px;
}

.selected-seat-price{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.selected-seat-price button{
  width:24px;
  height:24px;
  border:0;
  border-radius:50%;
  background:#f1f3f4;
  color:#b0000a;
  font-size:17px;
  cursor:pointer;
}

.general-selection{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 17px;
  border-bottom:1px solid #e0e5e8;
}

.general-selection strong{
  display:block;
  color:#111;
  font-size:12px;
}

.general-selection span{
  display:block;
  margin-top:3px;
  color:#5e7078;
  font-size:9px;
}

.general-quantity{
  display:flex;
  align-items:center;
  gap:10px;
}

.general-quantity button{
  width:28px;
  height:28px;
  border:1px solid #bac8ce;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:17px;
  cursor:pointer;
}

.general-quantity output{
  min-width:22px;
  color:#111;
  font-size:14px;
  font-weight:800;
  text-align:center;
}

.selection-summary{
  display:flex;
  justify-content:flex-end;
  gap:38px;
  padding:14px 17px;
  border-top:1px solid #e0e5e8;
  background:#f8fafb;
}

.selection-summary > div{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
}

.selection-summary span{
  color:#5e717a;
  font-size:9px;
}

.selection-summary strong{
  color:#111;
  font-size:14px;
}

.purchase-bottom-inner{
  grid-template-columns:1fr auto auto;
}

.purchase-cart-total{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  min-width:100px;
}

.purchase-cart-total span{
  color:#5d6d74;
  font-size:9px;
}

.purchase-cart-total strong{
  color:#111;
  font-size:14px;
}

/* Disponibilidad total: no se utiliza estilo de ocupado */
.seat-node.is-occupied{
  pointer-events:auto;
  opacity:1;
}

/* Responsive */
@media(max-width:900px){
  .zone-layout{
    grid-template-columns:1fr;
  }

  .zone-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .seatmap-viewport{
    height:530px;
  }

  .selected-seats-list{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .seatmap-header{
    grid-template-columns:1fr auto;
  }

  .seatmap-back{
    grid-column:1 / -1;
    width:max-content;
  }

  .availability-badge{
    grid-column:2;
    grid-row:2;
  }

  .seatmap-viewport{
    height:440px;
  }

  .seatmap-legend{
    flex-wrap:wrap;
    gap:10px 16px;
  }

  .purchase-bottom-inner{
    grid-template-columns:1fr auto;
  }

  .purchase-cart-total{
    display:none;
  }
}


/* =========================================================
   COLORES DEFINITIVOS DE ZONAS
   Oro = amarillo | General = morado | Plata = rosa | VIP = cian
========================================================= */

.zone-luneta{
  background:#FFF23B !important;
  border:1px solid #C8A900;
}

.zone-general{
  background:#6B2CFF !important;
  border:1px solid #4316B8;
}

.zone-platea{
  background:#FF2FB2 !important;
  border:1px solid #A90072;
}

.zone-vip{
  background:#17D8E8 !important;
  border:1px solid #008E9B;
}

.overview-general-ring{
  stroke:var(--general-color,#6B2CFF) !important;
  filter:drop-shadow(0 2px 3px rgba(67,22,184,.14));
}

.overview-general-ring:hover{
  stroke:#5420D8 !important;
  filter:brightness(1.04) drop-shadow(0 3px 5px rgba(67,22,184,.22));
}

.overview-section{
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

.overview-section:hover{
  filter:brightness(.94) drop-shadow(0 3px 5px rgba(0,0,0,.18));
}

.overview-section-label{
  fill:#111 !important;
  font-weight:700;
  paint-order:stroke;
  stroke:rgba(255,255,255,.72);
  stroke-width:3px;
  stroke-linejoin:round;
}

.tunnel-label{
  fill:#111 !important;
  font-weight:700;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:3px;
}

.seat-node{
  fill:var(--seat-color,#FFF23B) !important;
  stroke:var(--seat-border,#8A7600) !important;
  stroke-width:2;
}

.seat-node:hover,
.seat-node:focus{
  filter:brightness(.95);
  stroke:#111 !important;
  stroke-width:3.4;
}

.seat-node.is-selected{
  fill:#E41F2B !important;
  stroke:#8A0008 !important;
  filter:drop-shadow(0 0 3px rgba(228,31,43,.55));
}

.availability-badge{
  background:#E9FFF1;
  color:#087A32;
  border:1px solid #B8F0CA;
}

.legend-seat.available{
  background:#FFF23B;
  border-color:#C8A900;
}

.legend-seat.selected{
  background:#E41F2B;
  border-color:#8A0008;
}

.legend-seat.stage{
  background:#000;
  border-color:#000;
}

/* Mejora visual de la lista lateral */
.zone-item{
  border-radius:5px;
  padding:7px 8px;
  transition:background .15s,transform .15s;
}

.zone-item:hover{
  background:#F5F7F8;
}

.zone-item.active{
  background:#EEF7FB;
  box-shadow:inset 3px 0 0 #14BCE8;
}

.zone-item.active .zone-name{
  color:#111;
  font-weight:900;
}


/* =========================================================
   ORDEN Y COLORES FINALES DE ZONAS
   GENERAL > PLATA > DORADA/ORO > VIP
========================================================= */

.zone-general{
  background:#6B2CFF !important;
  border-color:#4316B8 !important;
}

.zone-platea{
  background:#FF2FB2 !important;
  border-color:#A90072 !important;
  box-shadow:0 0 0 1px rgba(169,0,114,.18);
}

.zone-luneta{
  background:#FFF23B !important;
  border-color:#C8A900 !important;
}

.zone-vip{
  background:#17D8E8 !important;
  border-color:#008E9B !important;
  box-shadow:0 0 0 1px rgba(0,142,155,.18);
}

/* Mejor contraste de las secciones dentro del mapa */
.overview-section[data-zone="platea"]{
  filter:saturate(1.18) brightness(.98);
}

.overview-section[data-zone="vip"]{
  filter:saturate(1.22) brightness(.97);
}

.overview-section[data-zone="platea"]:hover,
.overview-section[data-zone="vip"]:hover{
  filter:saturate(1.3) brightness(.92) drop-shadow(0 3px 5px rgba(0,0,0,.18));
}


/* =========================================================
   CARRITO Y PAGO
========================================================= */

.checkout-cart-badge{
  min-width:54px;
  min-height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border-radius:16px;
  background:#fff;
  color:#0aa9e7;
  font-size:10px;
  font-weight:900;
}

.cart-page,
.payment-page{
  min-height:calc(100vh - 57px);
  padding:34px 0 80px;
  background:#fff;
}

.checkout-shell{
  width:980px;
  max-width:92%;
  margin:0 auto;
}

.checkout-shell > h1{
  margin:22px 0;
  color:#346d84;
  font-size:24px;
  line-height:1.2;
  font-weight:400;
}

.checkout-progress{
  display:flex;
  align-items:center;
  gap:9px;
  color:#738f9b;
  font-size:10px;
}

.checkout-progress span{
  width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cbd8dd;
  border-radius:50%;
  background:#fff;
  color:#728d99;
  font-weight:900;
}

.checkout-progress span.is-active{
  border-color:#13bde8;
  background:#13bde8;
  color:#fff;
}

.checkout-progress span.is-complete{
  border-color:#28bb74;
  background:#28bb74;
  color:#fff;
}

.checkout-progress i{
  width:58px;
  height:1px;
  background:#d8e0e4;
}

.checkout-progress i.is-complete{
  background:#28bb74;
}

.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(290px,.75fr);
  gap:28px;
  align-items:start;
}

.cart-card,
.cart-summary,
.payment-card,
.payment-summary{
  border:1px solid #dbe3e7;
  border-radius:8px;
  background:#fff;
  box-shadow:0 9px 26px rgba(31,62,77,.08);
}

.cart-card{
  padding:22px;
}

.cart-event{
  display:flex;
  gap:17px;
  align-items:center;
  padding-bottom:19px;
  border-bottom:1px solid #e2e7ea;
}

.cart-event img{
  width:112px;
  height:82px;
  flex:0 0 auto;
  object-fit:cover;
  object-position:center top;
  border-radius:5px;
}

.cart-event-copy{
  min-width:0;
}

.cart-date{
  display:block;
  margin-bottom:5px;
  color:#71a0b2;
  font-size:10px;
}

.cart-event-copy h2{
  color:#224f61;
  font-size:18px;
  line-height:1.15;
  font-weight:500;
  text-transform:uppercase;
}

.cart-event-copy p{
  margin-top:7px;
  color:#14aede;
  font-size:10px;
  text-transform:uppercase;
}

.cart-seat-heading,
.cart-seat-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
}

.cart-seat-heading{
  padding:16px 0 9px;
  color:#7a969f;
  font-size:9px;
  text-transform:uppercase;
}

.cart-seat-row{
  min-height:58px;
  padding:11px 0;
  border-top:1px solid #edf0f2;
}

.cart-seat-row strong{
  color:#151719;
  font-size:11px;
}

.cart-seat-row span{
  display:block;
  margin-top:4px;
  color:#607780;
  font-size:9px;
}

.cart-actions{
  display:flex;
  justify-content:flex-end;
  gap:18px;
  padding-top:17px;
  border-top:1px solid #e2e7ea;
}

.cart-actions a,
.cart-actions button{
  border:0;
  background:transparent;
  color:#198eb8;
  font-size:10px;
  cursor:pointer;
}

.cart-actions button{
  color:#b43e47;
}

.cart-summary,
.payment-summary{
  padding:22px;
  position:sticky;
  top:18px;
}

.cart-summary h2,
.payment-summary h2{
  margin-bottom:20px;
  color:#346d84;
  font-size:17px;
  font-weight:400;
}

.summary-row,
.summary-total{
  display:flex;
  justify-content:space-between;
  gap:18px;
}

.summary-row{
  padding:11px 0;
  border-bottom:1px solid #e5eaed;
  color:#536d78;
  font-size:10px;
}

.summary-row span{
  min-width:0;
}

.summary-row small{
  display:block;
  margin-top:4px;
  color:#8a9da5;
  font-size:8px;
}

.summary-row strong{
  color:#151719;
  font-size:11px;
}

.summary-total{
  padding:18px 0;
  align-items:flex-end;
}

.summary-total span{
  color:#486977;
  font-size:12px;
}

.summary-total strong{
  color:#316f89;
  font-size:21px;
  font-weight:500;
}

.cart-timer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:3px 0 17px;
  padding:10px 12px;
  border-radius:5px;
  background:#f3f7f9;
  color:#66818d;
  font-size:9px;
}

.cart-timer strong{
  color:#1a789c;
  font-size:11px;
}

.checkout-primary-btn{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:4px;
  background:linear-gradient(90deg,#86ebef,#12b7ee);
  color:#fff;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}

.cart-summary .checkout-primary-btn,
.payment-submit{
  width:100%;
}

.checkout-primary-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.checkout-secure-note,
.payment-provider-note{
  margin-top:13px;
  color:#778b94;
  font-size:8px;
  line-height:1.5;
  text-align:center;
}

.cart-empty{
  max-width:520px;
  margin:70px auto;
  padding:38px;
  border:1px solid #dce4e8;
  border-radius:9px;
  background:#fff;
  text-align:center;
}

.cart-empty > div{
  font-size:38px;
}

.cart-empty h2{
  margin-top:12px;
  color:#234f61;
  font-size:20px;
}

.cart-empty p{
  margin:8px 0 20px;
  color:#69808a;
  font-size:11px;
}

.cart-empty .checkout-primary-btn{
  padding:0 24px;
}

/* PAGO */

.payment-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:28px;
  align-items:start;
  margin-top:24px;
}

.payment-card{
  overflow:hidden;
}

.payment-card-header{
  min-height:91px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:20px 24px;
  border-bottom:1px solid #dde5e8;
  background:linear-gradient(135deg,#f7fcfd,#eef9fc);
}

.payment-card-header span{
  color:#17aede;
  font-size:10px;
  text-transform:uppercase;
}

.payment-card-header h1{
  margin-top:4px;
  color:#214f62;
  font-size:23px;
  font-weight:500;
}

.payment-lock{
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff;
  box-shadow:0 5px 16px rgba(31,80,101,.12);
  font-size:22px;
}

#buyerForm{
  padding:23px;
}

.payment-fieldset{
  margin:0 0 23px;
  padding:0;
  border:0;
}

.payment-fieldset legend{
  width:100%;
  margin-bottom:15px;
  padding-bottom:9px;
  border-bottom:1px solid #e0e6e9;
  color:#315f72;
  font-size:13px;
  font-weight:700;
}

.payment-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.payment-form-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#4f6974;
  font-size:10px;
}

.payment-form-grid input{
  width:100%;
  height:41px;
  padding:0 11px;
  border:1px solid #cdd8dd;
  border-radius:4px;
  outline:0;
  background:#fff;
  color:#151719;
  font-size:11px;
}

.payment-form-grid input:focus{
  border-color:#1bb9e5;
  box-shadow:0 0 0 3px rgba(27,185,229,.12);
}

.payment-method{
  min-height:72px;
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  gap:12px;
  align-items:center;
  margin-bottom:11px;
  padding:13px 14px;
  border:1px solid #d6e0e4;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}

.payment-method.is-selected{
  border-color:#17b8e5;
  background:#f1fbfe;
  box-shadow:0 0 0 2px rgba(23,184,229,.08);
}

.payment-method input{
  accent-color:#16b8e5;
}

.payment-method-icon{
  font-size:21px;
}

.payment-method strong{
  display:block;
  color:#1b4658;
  font-size:11px;
}

.payment-method small{
  display:block;
  margin-top:4px;
  color:#6e838c;
  font-size:9px;
  line-height:1.4;
}

.payment-method b{
  color:#168747;
  font-size:9px;
}

.payment-terms{
  display:flex;
  gap:9px;
  align-items:flex-start;
  margin:3px 0 18px;
  color:#607780;
  font-size:9px;
  line-height:1.45;
}

.payment-terms input{
  margin-top:2px;
  accent-color:#16b8e5;
}

.payment-message{
  margin-bottom:15px;
  padding:13px 14px;
  border-radius:5px;
  font-size:9px;
  line-height:1.5;
}

.payment-message strong,
.payment-message span{
  display:block;
}

.payment-message span{
  margin-top:5px;
}

.payment-message.is-warning{
  border:1px solid #e6c65a;
  background:#fff9dd;
  color:#674f00;
}

.payment-message code{
  padding:1px 3px;
  border-radius:2px;
  background:rgba(0,0,0,.07);
}

.payment-event{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:17px;
  padding-bottom:17px;
  border-bottom:1px solid #e0e6e9;
}

.payment-event img{
  width:82px;
  height:61px;
  flex:0 0 auto;
  object-fit:cover;
  object-position:center top;
  border-radius:4px;
}

.payment-event strong,
.payment-event span,
.payment-event small{
  display:block;
}

.payment-event strong{
  color:#204c5e;
  font-size:11px;
  text-transform:uppercase;
}

.payment-event span{
  margin-top:4px;
  color:#66828d;
  font-size:9px;
}

.payment-event small{
  margin-top:5px;
  color:#14aede;
  font-size:8px;
  text-transform:uppercase;
}

.payment-back-link{
  display:block;
  margin-top:13px;
  color:#198eb8;
  font-size:9px;
  text-align:center;
}

@media(max-width:820px){
  .cart-layout,
  .payment-layout{
    grid-template-columns:1fr;
  }

  .cart-summary,
  .payment-summary{
    position:static;
  }

  .payment-summary{
    order:-1;
  }
}

@media(max-width:560px){
  .cart-page,
  .payment-page{
    padding-top:22px;
  }

  .checkout-shell{
    max-width:94%;
  }

  .cart-card,
  .cart-summary,
  .payment-summary{
    padding:16px;
  }

  .cart-event{
    align-items:flex-start;
  }

  .cart-event img{
    width:82px;
    height:70px;
  }

  .cart-event-copy h2{
    font-size:14px;
  }

  .payment-form-grid{
    grid-template-columns:1fr;
  }

  .payment-method{
    grid-template-columns:auto auto 1fr;
  }

  .payment-method b{
    display:none;
  }

  .payment-card-header{
    padding:17px;
  }

  #buyerForm{
    padding:17px;
  }
}


/* =========================================================
   CORRECCIÓN DE RESUMEN, ASIENTOS Y CARGO POR SERVICIO
========================================================= */

[hidden]{
  display:none !important;
}

.selection-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  padding:0;
}

.selection-summary > div{
  min-height:74px;
  padding:13px 15px;
  border-left:1px solid #e0e5e8;
  align-items:flex-start;
}

.selection-summary > div:first-child{
  border-left:0;
}

.selection-summary span{
  font-size:9px;
}

.selection-summary small{
  display:block;
  margin-top:4px;
  color:#7a8c94;
  font-size:8px;
}

.selection-summary strong{
  margin-top:7px;
  font-size:14px;
}

.selection-summary-total{
  background:#eefafd;
}

.selection-summary-total strong{
  color:#087fa9;
  font-size:16px;
}

.selected-seat-price{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
}

.selected-seat-price small{
  grid-column:1;
  color:#7b8d95;
  font-size:8px;
  text-align:right;
}

.selected-seat-price button{
  grid-column:2;
  grid-row:1 / span 2;
}

.purchase-cart-total small{
  color:#6f8189;
  font-size:8px;
}

.payment-seat-section{
  margin-bottom:15px;
  padding-bottom:14px;
  border-bottom:1px solid #e0e6e9;
}

.payment-seat-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:7px;
  color:#59717c;
  font-size:9px;
  text-transform:uppercase;
}

.payment-seat-title strong{
  min-width:23px;
  height:23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eaf9fd;
  color:#087fa9;
  font-size:10px;
}

.payment-seat-list{
  max-height:210px;
  overflow:auto;
  padding-right:3px;
}

.payment-seat-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:9px 0;
  border-top:1px solid #edf1f3;
}

.payment-seat-row:first-child{
  border-top:0;
}

.payment-seat-row div{
  min-width:0;
}

.payment-seat-row strong{
  color:#151719;
  font-size:9px;
}

.payment-seat-row span{
  display:block;
  margin-top:3px;
  color:#637983;
  font-size:8px;
}

.payment-summary .summary-row small{
  display:block;
  margin-top:4px;
  color:#8598a0;
  font-size:8px;
}

@media(max-width:720px){
  .selection-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .selection-summary > div:nth-child(3){
    border-left:0;
    border-top:1px solid #e0e5e8;
  }

  .selection-summary > div:nth-child(4){
    border-top:1px solid #e0e5e8;
  }
}


/* =========================================================
   CORRECCIÓN DEFINITIVA DE CLICS EN MAPA Y ASIENTOS
========================================================= */

#seatmapViewport,
#interactiveSeatMap{
  pointer-events:auto !important;
}

#interactiveSeatMap{
  position:relative;
  z-index:2;
}

.overview-section,
.overview-general-ring,
.seat-node{
  pointer-events:all !important;
  cursor:pointer !important;
}

.overview-section-label,
.tunnel-label,
.stage-circle,
.row-label,
#interactiveSeatMap title{
  pointer-events:none !important;
}

.overview-section{
  touch-action:manipulation;
}

.seat-node{
  touch-action:manipulation;
}

.seat-node.is-selected{
  pointer-events:all !important;
}


/* =========================================================
   MODAL DE TRANSFERENCIA Y DETALLE COMPLETO DE BOLETOS
========================================================= */

.transfer-overlay[hidden]{
  display:none !important;
}

.transfer-overlay{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(8,20,28,.70);
}

.transfer-modal{
  width:570px;
  max-width:100%;
  max-height:92vh;
  overflow-y:auto;
  border-radius:11px;
  background:#fff;
  box-shadow:0 26px 80px rgba(0,0,0,.40);
}

.transfer-modal-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:21px 23px;
  border-bottom:1px solid #dce4e8;
  background:linear-gradient(135deg,#f6fcfd,#eaf8fc);
}

.transfer-modal-header span{
  color:#159fc9;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

.transfer-modal-header h2{
  margin-top:4px;
  color:#174d62;
  font-size:21px;
  font-weight:500;
}

.transfer-close{
  width:35px;
  height:35px;
  flex:0 0 auto;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#344f5a;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(31,70,85,.13);
}

.transfer-identity-warning{
  margin:18px 22px 0;
  padding:13px 14px;
  border:1px solid #f0cf69;
  border-radius:6px;
  background:#fff9df;
  color:#674f00;
  font-size:10px;
  line-height:1.5;
}

.transfer-identity-warning strong,
.transfer-identity-warning span{
  display:block;
}

.transfer-identity-warning span{
  margin-top:4px;
}

.transfer-details{
  margin:18px 22px 0;
  overflow:hidden;
  border:1px solid #dce4e8;
  border-radius:7px;
}

.transfer-row{
  min-height:54px;
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:10px 14px;
  border-top:1px solid #e5eaed;
}

.transfer-row:first-child{
  border-top:0;
}

.transfer-row > span{
  color:#667c86;
  font-size:10px;
}

.transfer-row strong{
  color:#151719;
  font-size:12px;
  overflow-wrap:anywhere;
}

.transfer-copy{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.transfer-copy button{
  min-width:61px;
  height:29px;
  border:1px solid #17add9;
  border-radius:4px;
  background:#fff;
  color:#158caf;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.transfer-total-row{
  background:#f1fbfe;
}

.transfer-total-row strong{
  color:#087fa9;
  font-size:19px;
}

.transfer-ticket-section{
  margin:18px 22px 0;
}

.transfer-ticket-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.transfer-ticket-heading h3{
  color:#315f72;
  font-size:12px;
}

.transfer-ticket-heading > strong{
  min-width:25px;
  height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eaf9fd;
  color:#087fa9;
  font-size:10px;
}

.transfer-ticket-list{
  max-height:220px;
  overflow-y:auto;
  padding:0 10px;
  border:1px solid #e0e6e9;
  border-radius:6px;
}

.transfer-ticket-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-top:1px solid #edf1f3;
}

.transfer-ticket-row:first-child{
  border-top:0;
}

.transfer-ticket-row strong{
  color:#151719;
  font-size:10px;
}

.transfer-ticket-row span{
  display:block;
  margin-top:3px;
  color:#6e8189;
  font-size:9px;
}

.transfer-cost-breakdown{
  margin:18px 22px 0;
  border-top:1px solid #dde5e8;
}

.transfer-cost-breakdown > div{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:10px 0;
  color:#536b76;
  font-size:10px;
}

.transfer-cost-breakdown strong{
  color:#151719;
  font-size:11px;
}

.transfer-cost-total{
  border-top:1px solid #dde5e8;
}

.transfer-cost-total span{
  color:#315f72;
  font-size:12px;
}

.transfer-cost-total strong{
  color:#087fa9;
  font-size:18px;
}

.transfer-instructions{
  margin:16px 38px 0;
  color:#536b76;
  font-size:10px;
  line-height:1.7;
}

.transfer-modal-actions{
  display:flex;
  justify-content:flex-end;
  padding:18px 22px 22px;
}

.transfer-secondary-btn{
  min-width:110px;
  height:38px;
  border:1px solid #bbc8ce;
  border-radius:4px;
  background:#fff;
  color:#345461;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.payment-seat-section{
  display:block !important;
}

.payment-seat-list{
  display:block !important;
}

@media(max-width:540px){
  .transfer-overlay{
    align-items:flex-start;
    padding:10px;
  }

  .transfer-modal{
    max-height:calc(100vh - 20px);
  }

  .transfer-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .transfer-copy{
    align-items:flex-start;
  }
}


/* =========================================================
   TRANSFERENCIA ÚNICA Y CARGA DE COMPROBANTE
========================================================= */

.payment-method.is-disabled{
  opacity:.58;
  cursor:not-allowed;
  background:#f3f5f6;
  filter:grayscale(.25);
}

.payment-method.is-disabled input{
  cursor:not-allowed;
}

.payment-method.is-disabled b{
  color:#9b3c44;
}

.receipt-upload-section{
  margin:18px 22px 0;
  padding:16px;
  border:1px solid #dce4e8;
  border-radius:7px;
  background:#f8fbfc;
}

.receipt-upload-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.receipt-upload-heading h3{
  color:#315f72;
  font-size:13px;
}

.receipt-upload-heading p{
  margin-top:4px;
  color:#657c86;
  font-size:9px;
  line-height:1.4;
}

.receipt-upload-heading > span{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:12px;
  background:#eaf9fd;
  color:#087fa9;
  font-size:8px;
  font-weight:800;
}

.receipt-dropzone{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px;
  border:2px dashed #9fcbd8;
  border-radius:7px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s,background .15s;
}

.receipt-dropzone:hover{
  border-color:#17add9;
  background:#f1fbfe;
}

.receipt-dropzone input{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

.receipt-dropzone-icon{
  font-size:25px;
}

.receipt-dropzone-copy strong,
.receipt-dropzone-copy small{
  display:block;
}

.receipt-dropzone-copy strong{
  color:#184c61;
  font-size:11px;
}

.receipt-dropzone-copy small{
  margin-top:4px;
  color:#6d818a;
  font-size:9px;
}

.receipt-preview{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin-top:12px;
  padding:10px;
  border:1px solid #dce4e8;
  border-radius:6px;
  background:#fff;
}

.receipt-preview img{
  width:62px;
  height:62px;
  object-fit:cover;
  border-radius:5px;
  border:1px solid #d7e0e4;
}

.receipt-file-info{
  min-width:0;
}

.receipt-file-info strong,
.receipt-file-info span{
  display:block;
}

.receipt-file-info strong{
  overflow:hidden;
  color:#192f38;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.receipt-file-info span{
  margin-top:4px;
  color:#768991;
  font-size:8px;
}

.receipt-preview > button{
  width:29px;
  height:29px;
  border:0;
  border-radius:50%;
  background:#f3f5f6;
  color:#a8222c;
  font-size:11px;
  cursor:pointer;
}

.receipt-upload-status{
  margin-top:12px;
  padding:11px 12px;
  border-radius:5px;
  font-size:9px;
  line-height:1.45;
}

.receipt-upload-status strong,
.receipt-upload-status span{
  display:block;
}

.receipt-upload-status span{
  margin-top:4px;
}

.receipt-upload-status.is-loading{
  border:1px solid #9fd4e3;
  background:#effbfe;
  color:#17627b;
}

.receipt-upload-status.is-success{
  border:1px solid #9dddb7;
  background:#edfff4;
  color:#126c36;
}

.receipt-upload-status.is-error{
  border:1px solid #e3a4aa;
  background:#fff1f2;
  color:#8c1b25;
}

.receipt-upload-button{
  width:100%;
  min-height:40px;
  margin-top:12px;
  border:0;
  border-radius:4px;
  background:linear-gradient(90deg,#77e5eb,#13b6ec);
  color:#fff;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.receipt-upload-button:disabled{
  opacity:.48;
  cursor:not-allowed;
}

@media(max-width:540px){
  .receipt-upload-heading{
    flex-direction:column;
  }

  .receipt-preview{
    grid-template-columns:auto minmax(0,1fr);
  }

  .receipt-preview > button{
    grid-column:1 / -1;
    width:100%;
    border-radius:4px;
  }
}
