/* ===========================
   Layout general
   =========================== */
#app-reservar.layout {
  display: flex;
  justify-content: center;           /* centra horizontalmente el contenedor */
  align-items: center;               /* centra verticalmente las columnas   */
  gap: 40px;
  max-width: 1200px;
  width: 90%;
  margin: 40px auto;
  font-family: inherit;
}

/* Columna izquierda (tabs + contenido) */
#app-reservar .left-column {
  flex: 2;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;                /* por defecto centrado (calendario, etc.) */
  font-family: inherit;
}

/* Columna derecha (imagen + descripción) */
#app-reservar .right-column {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: inherit;
}
#app-reservar .side-image {
  max-width: 90%;
  max-height: 60vh;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}
#app-reservar .side-description {
  font-size: inherit;
  color: #333;
  line-height: 1.5;
  max-width: 90%;
  font-family: inherit;
}

/* ===========================
   Tabs
   =========================== */
#app-reservar .tabs {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}
#app-reservar .tab {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  text-align: center; padding: 6px 8px;
  font-size: inherit; font-weight: bold; line-height: 1.2;
  cursor: pointer;
  background: #f8f8f8; border: 1px solid #ddd; border-radius: 5px;
  color: #666; transition: all .2s ease;
  opacity: .5; pointer-events: none; font-family: inherit;
}
#app-reservar .tab.active {
  background: #d50000; color: #fff;
  opacity: 1; pointer-events: auto;
}
#app-reservar .tab.enabled { opacity: 1; pointer-events: auto; }

#app-reservar .tab-number {
  display: inline-block;
  width: 22px; height: 22px; line-height: 22px;
  border-radius: 50%;
  background: #d50000; color: #fff;
  font-weight: bold; margin-right: 6px; font-size: 16px; font-family: inherit;
}
#app-reservar .tab:not(.active) .tab-number { background: #ccc; color: #666; }
#app-reservar .tab.enabled:not(.active) .tab-number { background: #999; color: #fff; }

/* Títulos dentro del flujo */
#app-reservar h3 {
  font-size: 1rem; font-weight: 300; color: #555;
  margin-top: 8px; margin-bottom: 18px; line-height: 1.3; text-align: left;
}

/* Contenido por tab */
#app-reservar .tab-content { display: none; margin-top: 20px; font-family: inherit; }
#app-reservar .tab-content.active { display: block; }

/* Calendario inline centrado */
#app-reservar .flatpickr-calendar.inline { margin: 20px auto; display: block; }

/* Botones generales */
#app-reservar button {
  display: inline-block; margin-top: 20px;
  background: #ff0000; color: #fff; border: none;
  padding: 10px 25px; font-size: inherit; cursor: pointer; font-family: inherit;
}
#app-reservar button:hover { background: #b30000; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  #app-reservar.layout { flex-direction: column; align-items: center; }
  #app-reservar .left-column, #app-reservar .right-column { width: 100%; }
  #app-reservar .side-image { max-height: 40vh; }
}

/* ===========================
   Controles de boletos (info.php)
   =========================== */
#info .ticket-control input {
  width: 40px; text-align: center; border: 1px solid #ccc; border-radius: 5px;
  font-size: inherit; color: #333; background: #fff; font-family: inherit;
}
#info .ticket-control input[type="number"] {
  -moz-appearance: textfield; appearance: textfield;
  font-weight: bold; text-align: center; background: #fff; color: #333;
}
#info .ticket-control input::-webkit-outer-spin-button,
#info .ticket-control input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* ===========================
   CHECKOUT (mismo look que info.php)
   =========================== */

/* 1) Quitar centrado heredado solo dentro del tab checkout */
#app-reservar .left-column #checkout { text-align: left !important; }

/* 2) Bloques de campos */
#checkout .personal-data {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* 3) Etiquetas e inputs */
#checkout label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-align: left !important;
}
#checkout input[type="text"],
#checkout input#card-number,
#checkout input#exp-month,
#checkout input#exp-year,
#checkout input#cvc {
  display: block;
  width: 100% !important;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: border .2s ease;
}
#checkout input:focus { border-color: #d50000; outline: none; }

/* 4) Dos columnas opcionales para mes/año */
#checkout .two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* 5) Grid simple tipo 12/6-6/12 (si usas tc-row / tc-col-*) */
#checkout .checkout-form { width: 100%; }
#checkout .tc-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
#checkout .tc-col-12 { grid-column: 1 / -1; }
#checkout .tc-col-6  { grid-column: span 6; }
@media (max-width: 640px) { #checkout .tc-col-6 { grid-column: span 12; } }

/* 6) Texto legal */
#checkout .legal-text {
  font-size: 13px;
  color: #777;
  margin: 10px 0;
  line-height: 1.4;
}

/* 7) Checkbox T&C */
#checkout .tc-accept {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .95rem;
}
#checkout .tc-accept input { transform: scale(1.05); }

/* 8) Logos de tarjetas (opcional) */
#checkout .tc-card-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#checkout .tc-card-icons img { height: 64px; object-fit: contain; }

/* 9) Mensajes de estado */
#checkout .tc-message {
  border-radius: 6px;
  padding: .75rem 1rem;
  margin: .5rem 0 1rem;
  border: 1px solid transparent;
  font-size: .95rem;
}
#checkout .tc-message--success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
#checkout .tc-message--danger  { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }

/* 10) Botón pagar */
#checkout button[type="submit"] {
  background: #d50000; color: #fff; border: none;
  padding: 14px 28px; border-radius: 6px; font-size: 16px;
  cursor: pointer; font-weight: 500; width: 100%;
  transition: background .25s ease;
}
#checkout button[type="submit"]:hover { background: #b30000; }

/* Fila de 2 columnas (6/12 + 6/12) */
#checkout .tc-row.tc-two {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0,1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}
#checkout .tc-row.tc-two .tc-col-6 { 
  grid-column: span 6 / span 6 !important; 
  min-width: 0 !important;
}

/* En mobile: apilar */
@media (max-width: 640px){
  #checkout .tc-row.tc-two .tc-col-6 { grid-column: 1 / -1 !important; }
}

/* Asegura alineación izquierda dentro del tab */
#checkout { text-align: left !important; }
