/*
============================================================

BLOQUE DE COMPRA

============================================================
*/


.bdc {

  width: 100%;

  box-sizing: border-box;

  margin-top: 24px;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #e5e7eb;

  border-radius: 16px;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.06);

}


/*
============================================================

TITULO

============================================================
*/


.bdc-titulo {

  width: 100%;

  display: grid;

  grid-template-columns:
    33.3333%
    33.3333%
    33.3333%;

  box-sizing: border-box;

  background: #f8fafc;

  border-bottom: 1px solid #e5e7eb;

}


/*
============================================================

COLUMNAS DEL TITULO

============================================================
*/


.bdc-titulo > div {

  min-width: 0;

  box-sizing: border-box;

  padding: 14px 12px;

  color: #64748b;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

}


/*
============================================================

ALINEACION DEL TITULO

============================================================
*/


.bdc-columna-tipo {

  text-align: left;

}


.bdc-columna-valor {

  text-align: center;

}


.bdc-columna-cantidad {

  text-align: center;

}


/*
============================================================

CONTENEDOR DE TICKETS

============================================================
*/


.bdc-tickets {

  width: 100%;

}


/*
============================================================

FILA DE TICKET

============================================================
*/


.bdc-ticket {

  width: 100%;

  display: grid;

  grid-template-columns:
    33.3333%
    33.3333%
    33.3333%;

  box-sizing: border-box;

  min-height: 64px;

  border-bottom: 1px solid #eef0f3;

  transition:
    background-color 0.15s ease;

}


.bdc-ticket:last-child {

  border-bottom: none;

}


.bdc-ticket:hover {

  background: #fafafa;

}


/*
============================================================

COLUMNAS DE LAS FILAS

============================================================
*/


.bdc-ticket > div {

  min-width: 0;

  box-sizing: border-box;

  padding: 14px 12px;

  display: flex;

  align-items: center;

}


/*
============================================================

TIPO

============================================================
*/


.bdc-ticket
.bdc-columna-tipo {

  justify-content: flex-start;

  color: #111827;

  font-size: 15px;

  font-weight: 600;

}


/*
============================================================

VALOR

============================================================
*/


.bdc-ticket
.bdc-columna-valor {

  justify-content: center;

  color: #111827;

  font-size: 15px;

  font-weight: 600;

}


/*
============================================================

CANTIDAD

============================================================
*/


.bdc-ticket
.bdc-columna-cantidad {

  justify-content: center;

  gap: 10px;

}


/*
============================================================

BOTONES + Y -

============================================================
*/


.bdc-cantidad-menos,
.bdc-cantidad-mas {

  width: 32px;

  height: 32px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  border: 1px solid #d9dee7;

  border-radius: 50%;

  background: #ffffff;

  color: #1f2937;

  font-size: 20px;

  font-weight: 500;

  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;

}


.bdc-cantidad-menos:hover,
.bdc-cantidad-mas:hover {

  background: #f3f4f6;

  border-color: #cbd5e1;

}


.bdc-cantidad-menos:active,
.bdc-cantidad-mas:active {

  transform: scale(0.92);

}


/*
============================================================

NUMERO DE CANTIDAD

============================================================
*/


.bdc-cantidad-numero {

  min-width: 20px;

  color: #111827;

  font-size: 15px;

  font-weight: 700;

  text-align: center;

}


/*
============================================================

BOTON COMPRAR

============================================================
*/


.evento-buy-btn {

  width: calc(100% - 24px);

  min-height: 48px;

  margin:
    16px 12px;

  box-sizing: border-box;

  border: none;

  border-radius: 12px;

  background: #111827;

  color: #ffffff;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease;

}


.evento-buy-btn:hover {

  background: #1f2937;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.12);

}


.evento-buy-btn:active {

  transform: scale(0.98);

}


/*
============================================================

MODO TACTIL

============================================================
*/


@media (max-width: 480px) {

  .bdc {

    border-radius: 14px;

  }


  .bdc-titulo > div {

    padding:
      12px 8px;

    font-size: 11px;

  }


  .bdc-ticket > div {

    padding:
      12px 8px;

  }


  .bdc-ticket
  .bdc-columna-tipo,
  .bdc-ticket
  .bdc-columna-valor {

    font-size: 14px;

  }


  .bdc-ticket
  .bdc-columna-cantidad {

    gap: 7px;

  }


  .bdc-cantidad-menos,
  .bdc-cantidad-mas {

    width: 30px;

    height: 30px;

  }

}
