
/* =========================================================
   CAMARADA — MI CUENTA MOBILE FIX v0.3.0
   SOLO CELULAR / SOLO DISEÑO
   ========================================================= */

@media (max-width: 767px) {

  /* ---------- FONDO REAL: imagen incluida dentro del plugin ---------- */
  body.woocommerce-account {
    background:
      linear-gradient(rgba(9,10,16,.12), rgba(9,10,16,.18)),
      url("2-scaled.webp") center top / cover fixed no-repeat !important;
    overflow-x: hidden !important;
  }

  body.woocommerce-account #page,
  body.woocommerce-account .site,
  body.woocommerce-account main,
  body.woocommerce-account .site-main,
  body.woocommerce-account .content-area,
  body.woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce-MyAccount-content {
    background: transparent !important;
  }

  /* ---------- CONTENEDOR GENERAL ---------- */
  body.woocommerce-account .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 14px 124px !important;
    box-sizing: border-box !important;
  }

  /* ---------- NAVEGACIÓN SUPERIOR: UNA SOLA PIEZA DE CRISTAL ---------- */
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    margin: 12px 0 20px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 22px !important;
    background: rgba(20,20,28,.24) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
    backdrop-filter: blur(22px) saturate(120%) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    min-width: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.10) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255,255,255,.70) !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: .025em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    color: #fff !important;
    background: rgba(255,255,255,.09) !important;
  }

  /* ---------- SOLO UNA TARJETA PRINCIPAL ---------- */
  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(255,255,255,.17) !important;
    border-radius: 28px !important;
    background: rgba(18,18,26,.20) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
    backdrop-filter: blur(24px) saturate(120%) !important;
    box-sizing: border-box !important;
  }

  /* Quita tarjetas interiores y marcos repetidos */
  body.woocommerce-account .woocommerce-MyAccount-content > *,
  body.woocommerce-account .woocommerce-MyAccount-content section,
  body.woocommerce-account .woocommerce-MyAccount-content form,
  body.woocommerce-account .woocommerce-MyAccount-content table,
  body.woocommerce-account .woocommerce-MyAccount-content tbody {
    box-shadow: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content > div,
  body.woocommerce-account .woocommerce-MyAccount-content > section,
  body.woocommerce-account .woocommerce-MyAccount-content form {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  /* ---------- FILTROS ---------- */
  body.woocommerce-account .woocommerce-MyAccount-content .button,
  body.woocommerce-account .woocommerce-MyAccount-content button,
  body.woocommerce-account .woocommerce-MyAccount-content input[type="button"],
  body.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }

  /* ---------- BUSCADOR ---------- */
  body.woocommerce-account input[type="search"],
  body.woocommerce-account input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 0 16px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.19) !important;
    color: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }

  body.woocommerce-account input::placeholder {
    color: rgba(255,255,255,.48) !important;
  }

  /* ---------- LISTA DE EVENTOS: CARTELERA ---------- */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table {
    display: block !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table thead,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table thead {
    display: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tbody,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tbody {
    display: grid !important;
    gap: 14px !important;
  }

  /* Cada evento: una pieza limpia, sin tarjeta dentro de tarjeta */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tr,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tr {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 118px minmax(0,1fr) 28px !important;
    grid-template-areas: "event event action" !important;
    align-items: stretch !important;
    min-height: 158px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(17,17,25,.18) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(18px) saturate(115%) !important;
    backdrop-filter: blur(18px) saturate(115%) !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    color: #fff !important;
  }

  /* Oculta columnas que ya no queremos en móvil */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(1),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(3),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(4),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(5),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(1),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(3),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(4),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(5) {
    display: none !important;
  }

  /* Quita labels móviles como EVENTO: que estaban apareciendo verticales */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td::before,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td::before {
    display: none !important;
    content: none !important;
  }

  /* Evento */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) {
    grid-area: event !important;
    display: grid !important;
    grid-template-columns: 118px minmax(0,1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    min-height: 158px !important;
    padding: 12px !important;
    font-size: 16px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    color: #fff !important;
  }

  /* Portada tipo cartelera: completa, sin cortes */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) img,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) img {
    width: 118px !important;
    height: 146px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    min-height: 146px !important;
    max-height: 146px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0,0,0,.18) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    box-shadow: none !important;
  }

  /* Mata bloques negros interiores heredados */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) *,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) * {
    max-width: 100% !important;
    box-shadow: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) > div,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) > span,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) > div,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) > span {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  /* Flecha */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child {
    grid-area: action !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 40px !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child .button,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child .button {
    width: 28px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child .button::after,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child .button::after {
    content: "›" !important;
    display: block !important;
    text-indent: 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 34px !important;
    line-height: 38px !important;
    font-weight: 300 !important;
  }

  /* Nunca texto vertical */
  body.woocommerce-account .woocommerce *,
  body.woocommerce-account .woocommerce-MyAccount-content * {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* ---------- VIEW ORDER: conserva QR grande ---------- */
  body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content img[src*="qr"],
  body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content img[alt*="QR"],
  body.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content [class*="qr"] img {
    width: clamp(160px, 46vw, 210px) !important;
    height: clamp(160px, 46vw, 210px) !important;
    max-width: 210px !important;
    max-height: 210px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
  }
}


/* =========================================================
   v0.4.0 — FONDO REAL + CARTELERA HORIZONTAL
   CAMARADA MOBILE / SOLO DISEÑO
   ========================================================= */

@media (max-width: 767px) {

  /* 1) FONDO REAL: se fuerza por encima de fondos grises heredados */
  html,
  body.woocommerce-account {
    background-color: #16131a !important;
  }

  body.woocommerce-account::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: -2 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(10, 8, 14, .10), rgba(10, 8, 14, .18)),
      url("https://camaradatickets.com/wp-content/uploads/2026/08/2-scaled.webp") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  body.woocommerce-account::after {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: rgba(18, 15, 22, .08) !important;
  }

  body.woocommerce-account #page,
  body.woocommerce-account .site,
  body.woocommerce-account main,
  body.woocommerce-account .site-main,
  body.woocommerce-account .content-area,
  body.woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce-MyAccount-content {
    background: transparent !important;
    background-image: none !important;
  }

  /* 2) UNA SOLA SUPERFICIE DE CRISTAL, MÁS LIGERA */
  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 16px 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Los bloques de filtros/buscador dejan de parecer tarjetas */
  body.woocommerce-account .woocommerce-MyAccount-content > div,
  body.woocommerce-account .woocommerce-MyAccount-content > section,
  body.woocommerce-account .woocommerce-MyAccount-content form {
    background: rgba(18,18,26,.16) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(20px) saturate(115%) !important;
    backdrop-filter: blur(20px) saturate(115%) !important;
  }

  /* 3) CARTELERA: EVENTOS VERTICALES UNO AL LADO DEL OTRO */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table {
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tbody,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tbody {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 14px 10px 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tbody::-webkit-scrollbar,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tbody::-webkit-scrollbar {
    display: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tr,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tr {
    flex: 0 0 min(72vw, 286px) !important;
    width: min(72vw, 286px) !important;
    min-width: min(72vw, 286px) !important;
    min-height: 430px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(13,13,18,.28) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(22px) saturate(118%) !important;
    backdrop-filter: blur(22px) saturate(118%) !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td {
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Solo dejamos EVENTO + ACCIÓN */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 390px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: -.02em !important;
  }

  /* Imagen vertical grande como la cartelera */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) img,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) img {
    display: block !important;
    width: 100% !important;
    height: 320px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    max-height: 320px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: rgba(0,0,0,.10) !important;
    box-shadow: none !important;
  }

  /* Texto del evento: zona inferior estilo cartelera */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) > div,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) > span,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) > div,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) > span {
    display: block !important;
    width: 100% !important;
    padding: 16px 18px 18px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  /* Oculta labels heredados tipo EVENTO: */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td::before,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td::before {
    display: none !important;
    content: none !important;
  }

  /* Acción: toda la parte derecha queda limpia, solo flecha */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child {
    display: block !important;
    position: absolute !important;
    right: 14px !important;
    bottom: 16px !important;
    width: 34px !important;
    height: 34px !important;
    z-index: 3 !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child .button,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child .button {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:last-child .button::after,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:last-child .button::after {
    content: "→" !important;
    display: block !important;
    text-indent: 0 !important;
    color: rgba(255,255,255,.95) !important;
    font-size: 22px !important;
    line-height: 32px !important;
    font-weight: 500 !important;
  }

  /* Evita que algo vuelva a romperse verticalmente */
  body.woocommerce-account .woocommerce *,
  body.woocommerce-account .woocommerce-MyAccount-content * {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}


/* =========================================================
   v0.4.1 — PORTADA COMPLETA SIN RECORTE
   ÚNICO CAMBIO: la imagen del evento se muestra completa.
   ========================================================= */
@media (max-width: 767px) {

  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) img,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) img {
    width: 100% !important;
    height: 320px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    max-height: 320px !important;

    /* Cambio clave: mostrar TODO el póster */
    object-fit: contain !important;
    object-position: center center !important;

    background: rgba(8,8,12,.32) !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* =========================================================
   v0.4.2 — PORTADA REAL COMPLETA
   ÚNICO CAMBIO: liberar altura/ancho heredados del wrapper
   para que el póster completo se vea vertical.
   ========================================================= */
@media (max-width: 767px) {

  /* La tarjeta ya no recorta la portada */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tr,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tr {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* La celda del evento permite crecer según la imagen */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2),
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Libera cualquier wrapper que esté imponiendo el recorte horizontal */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) > *,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* Póster completo en proporción natural */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) img,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    background: rgba(8,8,12,.18) !important;
  }

  /* Si el snippet mete la imagen dentro de un contenedor con alto fijo */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table td:nth-child(2) [style*="height"],
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table td:nth-child(2) [style*="height"] {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}


/* =========================================================
   v0.4.3 — BUSCADOR ARRIBA + UNA SOLA BARRA DE FILTROS
   ÚNICO CAMBIO DE ESTA VERSIÓN:
   - quitar tarjeta grande de filtros
   - buscador arriba a lo largo
   - debajo una sola barra con 2 opciones
   - look cristal / psicodélico / transparente
   ========================================================= */
@media (max-width: 767px) {

  /* Quita el contenedor-tarjeta grande alrededor de filtros/buscador */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content > div:first-of-type,
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content > section:first-of-type {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
  }

  /* El bloque de búsqueda ocupa todo el ancho y va arriba */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content form,
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content [class*="search" i] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content input[type="search"],
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content input[type="text"] {
    width: 100% !important;
    min-height: 54px !important;
    border-radius: 18px !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.055)) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    color: #fff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
    backdrop-filter: blur(22px) saturate(120%) !important;
  }

  /* Filtros: una sola barra de cristal, dos mitades */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content .button,
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content button,
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content input[type="button"],
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content input[type="submit"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    margin: 0 !important;
  }

  /* Cuando los dos filtros comparten wrapper, conviértelo en barra */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content :is(div,section):has(> .button + .button),
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content :is(div,section):has(> button + button) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.045)) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
    backdrop-filter: blur(22px) saturate(120%) !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content :is(div,section):has(> .button + .button) > .button:first-child,
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content :is(div,section):has(> button + button) > button:first-child {
    border-right: 1px solid rgba(255,255,255,.12) !important;
  }

  /* Si el snippet no usa wrapper limpio, hacemos que los dos primeros botones
     se comporten como mitades de una misma barra */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content .button:nth-of-type(1),
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content button:nth-of-type(1) {
    border-radius: 18px 0 0 18px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-right: 0 !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.045)) !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
    backdrop-filter: blur(22px) saturate(120%) !important;
  }

  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content .button:nth-of-type(2),
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content button:nth-of-type(2) {
    border-radius: 0 18px 18px 0 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background:
      linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.045)) !important;
    -webkit-backdrop-filter: blur(22px) saturate(120%) !important;
    backdrop-filter: blur(22px) saturate(120%) !important;
  }

  /* Etiqueta BUSCAR EVENTO más limpia y arriba */
  body.woocommerce-account:not(.woocommerce-view-order)
  .woocommerce-MyAccount-content label {
    display: block !important;
    margin: 0 0 8px !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
  }
}


/* =========================================================
   v0.4.4 — FIX DEFINITIVO DE FONDO EN MÓVIL
   ÚNICO CAMBIO: quitar el gris y mostrar 2-scaled.webp.
   La imagen viene incluida dentro del plugin.
   ========================================================= */
@media (max-width: 767px) {

  html {
    background: #151218 !important;
  }

  body.woocommerce-account {
    position: relative !important;
    isolation: isolate !important;
    background:
      url("2-scaled.webp") center top / cover fixed no-repeat !important;
    background-color: #151218 !important;
  }

  /* Capa visible fija por encima del gris del tema, pero detrás del contenido */
  body.woocommerce-account::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    background:
      linear-gradient(rgba(12,10,15,.06), rgba(12,10,15,.12)),
      url("2-scaled.webp") center center / cover no-repeat !important;
  }

  /* Quita cualquier capa gris sólida que esté tapando el fondo */
  body.woocommerce-account #page,
  body.woocommerce-account .site,
  body.woocommerce-account .site-content,
  body.woocommerce-account .content-area,
  body.woocommerce-account main,
  body.woocommerce-account .site-main,
  body.woocommerce-account .entry-content,
  body.woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce-MyAccount-content {
    position: relative !important;
    z-index: 1 !important;
    background-color: transparent !important;
    background-image: none !important;
  }

  /* Mantiene las superficies como cristal, no gris opaco */
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content > div,
  body.woocommerce-account .woocommerce-MyAccount-content > section,
  body.woocommerce-account .woocommerce-MyAccount-content form {
    background-color: rgba(20,18,25,.16) !important;
    background-image:
      linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important;
    -webkit-backdrop-filter: blur(22px) saturate(118%) !important;
    backdrop-filter: blur(22px) saturate(118%) !important;
    box-shadow: none !important;
  }

  /* El listado/cartelera sigue dejando ver completamente el fondo */
  body.woocommerce-account:not(.woocommerce-view-order)
  table.shop_table tr,
  body.woocommerce-account:not(.woocommerce-view-order)
  table.woocommerce-orders-table tr {
    background-color: rgba(12,11,16,.20) !important;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)) !important;
  }
}


/* =========================================================
   v0.4.5 — FIX DEL GRIS QUE TAPA EL FONDO
   ÚNICO CAMBIO: la imagen se aplica DIRECTAMENTE a la zona
   de contenido de Mi Cuenta, no solo al body.
   ========================================================= */
@media (max-width: 767px) {

  /* La misma imagen sobre cada wrapper grande que el tema puede pintar gris */
  body.woocommerce-account #page,
  body.woocommerce-account .site,
  body.woocommerce-account .site-content,
  body.woocommerce-account #content,
  body.woocommerce-account .content-area,
  body.woocommerce-account main,
  body.woocommerce-account .site-main,
  body.woocommerce-account article,
  body.woocommerce-account .entry-content,
  body.woocommerce-account .woocommerce {
    background-color: transparent !important;
    background-image:
      linear-gradient(rgba(10,8,14,.06), rgba(10,8,14,.12)),
      url("2-scaled.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: repeat-y !important;
    background-attachment: scroll !important;
  }

  /* Elementor / Hello puede meter un fondo en un contenedor intermedio */
  body.woocommerce-account main .elementor,
  body.woocommerce-account main .elementor-section,
  body.woocommerce-account main .elementor-container,
  body.woocommerce-account main .elementor-column,
  body.woocommerce-account main .elementor-widget-wrap,
  body.woocommerce-account main .elementor-element,
  body.woocommerce-account main .e-con,
  body.woocommerce-account main .e-con-inner {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  /* El contenido de Mi Cuenta queda cristal encima de la imagen */
  body.woocommerce-account .woocommerce-MyAccount-content {
    background: transparent !important;
    background-image: none !important;
  }

  /* Evita que pseudo-capas del tema vuelvan a poner el gris */
  body.woocommerce-account #page::before,
  body.woocommerce-account #page::after,
  body.woocommerce-account .site-content::before,
  body.woocommerce-account .site-content::after,
  body.woocommerce-account main::before,
  body.woocommerce-account main::after,
  body.woocommerce-account .site-main::before,
  body.woocommerce-account .site-main::after,
  body.woocommerce-account .entry-content::before,
  body.woocommerce-account .entry-content::after,
  body.woocommerce-account .woocommerce::before,
  body.woocommerce-account .woocommerce::after {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   v0.4.6 — QR MÁS GRANDE + BOLETO SIN IMAGEN DE FONDO
   SOLO VIEW-ORDER EN MÓVIL
   ========================================================= */
@media (max-width: 767px) {

  /* QR mucho más grande y protagonista */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[src*="qr"],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[alt*="QR"],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[alt*="Qr"],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[alt*="qr"],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="qr" i] img {
    width: clamp(220px, 62vw, 285px) !important;
    height: clamp(220px, 62vw, 285px) !important;
    min-width: 220px !important;
    min-height: 220px !important;
    max-width: 285px !important;
    max-height: 285px !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 18px !important;
  }

  /* Quita la imagen/arte de fondo del boleto.
     Dejamos solo una superficie oscura/transparente para que el QR destaque. */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="ticket" i],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="boleto" i],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="pass" i] {
    background-image: none !important;
    box-shadow: none !important;
  }

  /* El panel visual principal del boleto queda limpio */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="ticket" i]:not(img),
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="boleto" i]:not(img) {
    background-color: rgba(18,18,26,.58) !important;
    border-color: rgba(255,255,255,.14) !important;
    -webkit-backdrop-filter: blur(18px) saturate(110%) !important;
    backdrop-filter: blur(18px) saturate(110%) !important;
  }

  /* Si el arte del boleto está metido como pseudo-elemento */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="ticket" i]::before,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="ticket" i]::after,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="boleto" i]::before,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="boleto" i]::after {
    background-image: none !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   v0.4.7 SAFE — QR SOLO, GRANDE Y LIMPIO
   BASE: v0.4.6 FUNCIONAL DEL USUARIO
   SOLO CSS. NO JS. NO ABRE/CIERRA/ELIMINA BOLETOS.
   ========================================================= */
@media (max-width: 767px) {

  /* QR GRANDE, COMPLETO Y SIN RECORTE */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[src*="qr" i],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content img[alt*="qr" i],
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="qr" i] img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: min(82vw, 340px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;

    min-width: 260px !important;
    max-width: 340px !important;
    min-height: 0 !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 20px auto !important;
    padding: 0 !important;

    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* CUALQUIER CONTENEDOR QUE ENVUELVA AL QR SE VUELVE TRANSPARENTE.
     No se oculta ni se mueve nada: solo quitamos la "targetota". */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content div:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  ),
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content section:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  ),
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content article:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  ) {
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Quita también textura/arte en pseudo-elementos alrededor del QR */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content div:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  )::before,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content div:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  )::after,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content section:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  )::before,
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content section:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  )::after {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Reduce aire artificial de wrappers del boleto, sin ocultar contenido */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content div:has(
    img[src*="qr" i],
    img[alt*="qr" i],
    [class*="qr" i] img
  ) {
    min-height: 0 !important;
    height: auto !important;
  }

  /* Si el QR tiene un wrapper específico, también queda limpio */
  body.woocommerce-account.woocommerce-view-order
  .woocommerce-MyAccount-content [class*="qr" i] {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}
