/* ============================================================
   PÁGINA: /consulta-online
   Paleta: negro/gris oscuro · blanco · dorado (#c9a961)
   Layout: split full-height en desktop, single-column en mobile
   ============================================================ */

/* ── WRAPPER SPLIT ── */
.co-split-wrapper {
  display: grid;
  grid-template-columns: 440px 1fr;
  min-height: calc(100vh - 88px);
  margin-top: 88px;
}

/* ── COLUMNA IZQUIERDA ── */

/* Pseudo-columna: extiende el fondo negro hasta el final de la página
   usando un elemento hermano invisible que llena la celda del grid */
.co-split-left-bg {
  grid-column: 1;
  grid-row: 1;
  background:
    radial-gradient(ellipse at 25% 0%, rgba(201, 169, 97, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #1a1714 0%, #0e0d0b 50%, #141210 100%);
  pointer-events: none;
}

.co-split-left {
  background:
    radial-gradient(ellipse at 25% 0%, rgba(201, 169, 97, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #1a1714 0%, #0e0d0b 50%, #141210 100%);
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  overflow-y: auto;
  scrollbar-width: none;
  /* ocupa la misma celda que el bg, encima de él */
  grid-column: 1;
  grid-row: 1;
}
.co-split-left::-webkit-scrollbar { display: none; }

.co-split-left-inner {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.co-brand-mark {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado-medio);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.co-brand-title {
  font-family: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.co-brand-desc {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Lista de confianza */
.co-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.co-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.5;
}

.co-trust-icon {
  width: 18px;
  height: 18px;
  color: var(--dorado-medio);
  flex-shrink: 0;
  margin-top: 1px;
}
.co-trust-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Badge de precio */
.co-price-badge {
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  background: rgba(201, 169, 97, 0.06);
  margin-bottom: 1.5rem;
}

.co-price-from {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.co-price-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado-medio);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-family: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
}

.co-price-service {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Hold status (izquierda) */
.co-hold-status {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--dorado-medio);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Link de contacto alternativo */
.co-contact-note {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.co-contact-link {
  font-size: 0.78rem;
  color: #6b7280;
  transition: color 0.2s;
  text-decoration: none;
}
.co-contact-link:hover {
  color: var(--dorado-medio);
}

/* ── COLUMNA DERECHA ── */
.co-split-right {
  background: #f8f8f6;
  overflow: hidden; /* sin scroll — cada paso cabe en pantalla */
  position: relative;
}

.co-form {
  height: 100%;
  position: relative;
}

/* Cada paso ocupa exactamente el alto disponible */
.co-step {
  height: 100%;
  overflow-y: auto;
  padding: 2.5rem 2.25rem;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* transición suave al cambiar de paso */
  animation: co-fade-in 0.28s ease;
}

.co-step.hidden {
  display: none;
}

@keyframes co-fade-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Header de cada paso */
.co-step-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.co-step-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado-oscuro);
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
  align-self: flex-start;
}

.co-step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111111;
  font-family: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  line-height: 1.25;
  margin: 0;
}

.co-step-sub {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
}

/* Botón volver */
.co-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
  font-family: inherit;
}
.co-back-btn:hover { color: #111111; }

/* Sección dentro del form */
.co-form-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.co-divider {
  height: 1px;
  background: #e5e2da;
  margin: 0.25rem 0;
}

/* Label de paso dentro de sección */
.co-section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.85rem;
}

.co-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Badge de timezone */
.co-tz-badge {
  background: rgba(201, 169, 97, 0.12);
  color: var(--dorado-oscuro);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Sección de slots dentro del paso 1 */
.co-slot-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── TARJETAS DE SERVICIO ── */
.co-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.consultation-service-card {
  background: #ffffff;
  border: 2px solid #e5e2da;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
}

.consultation-service-card:hover {
  border-color: var(--dorado-medio);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.consultation-service-card.selected {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.co-service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.co-service-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.co-service-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.co-service-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dorado-oscuro);
  white-space: nowrap;
  font-family: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
  flex-shrink: 0;
}

.co-service-check {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #111111;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e2da;
}

.co-service-check svg {
  width: 15px;
  height: 15px;
  fill: var(--dorado-medio);
  flex-shrink: 0;
}

.consultation-service-card.selected .co-service-check {
  display: flex;
}

/* ── CAMPOS DE FORMULARIO ── */
.co-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.co-field {
  display: flex;
  flex-direction: column;
}

.co-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.co-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #e5e2da;
  border-radius: 9px;
  background: #ffffff;
  font-size: 1rem;
  color: #111111;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.co-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.07);
}

.co-input::placeholder {
  color: #b3b0a8;
}

/* ── DISPONIBILIDAD / CALENDARIO ── */
.co-availability-panel {
  background: #ffffff;
  border: 1.5px solid #e5e2da;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.co-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.co-month-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
  font-family: 'Libre Baskerville', Baskerville, 'Baskerville Old Face', Georgia, serif;
}

.month-nav-btn {
  border: 1.5px solid #e5e2da;
  background: #f8f8f6;
  color: #374151;
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.month-nav-btn:hover:not(:disabled) {
  border-color: var(--dorado-medio);
  color: var(--dorado-oscuro);
  background: #ffffff;
}

.month-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.co-availability-hint {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: #f8f8f6;
  border-radius: 8px;
  border: 1px solid #e5e2da;
}

.availability-status {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

/* Grupos de slots por día */
.slot-day-group + .slot-day-group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e2da;
}

/* Botones de slot */
.slot-button {
  border: 1.5px solid #e5e2da;
  background: #ffffff;
  color: #374151;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.slot-button:hover:not(:disabled) {
  border-color: var(--dorado-medio);
  color: #111111;
  transform: translateY(-1px);
}

.slot-button.selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.18);
}

.slot-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #f3f4f6;
  color: #9ca3af;
}

/* ── MÉTODOS DE PAGO ── */
.co-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.co-pay-card {
  background: #ffffff;
  border: 2px solid #e5e2da;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.co-pay-card:hover {
  border-color: var(--dorado-medio);
}

.co-pay-card.selected {
  border-color: #111111;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.1);
}

.co-pay-logo {
  height: 28px;
  width: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.co-crypto-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7931a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.co-pay-info {
  flex: 1;
  min-width: 0;
}

.co-pay-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

.co-pay-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.3;
}

.co-pay-check {
  flex-shrink: 0;
  color: var(--dorado-medio);
}

.co-pay-check svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Nota del método de pago seleccionado */
.co-method-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e2da;
  border-radius: 10px;
  line-height: 1.6;
}

/* Nota de advertencia */
.co-warning-note {
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  line-height: 1.6;
}

/* Botón de submit */
.co-submit {
  width: 100%;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 1rem;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.co-submit:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}

.co-submit:active {
  transform: translateY(0);
}

/* Nota de seguridad bajo el botón */
.co-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.75rem;
  text-align: center;
}

/* ── HOLD STATUS ── */
.hold-status {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--dorado-oscuro);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .co-split-wrapper {
    grid-template-columns: 1fr;
    margin-top: 72px;
    min-height: unset;
  }

  .co-split-left {
    position: static;
    height: auto;
    overflow: visible;
  }

  .co-split-left-inner {
    padding: 1.5rem 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
  }

  .co-brand-mark { display: none; }
  .co-brand-title { font-size: 1.1rem; margin-bottom: 0; width: 100%; }
  .co-brand-desc { display: none; }
  .co-trust-list { display: none; }
  .co-price-badge { margin-bottom: 0; flex: 1; min-width: 140px; }
  .co-contact-note { display: none; }

  /* En mobile los pasos sí pueden hacer scroll */
  .co-split-right { overflow: visible; }
  .co-step { height: auto; overflow: visible; padding: 1.5rem 1.25rem; }

  .co-services-grid { grid-template-columns: 1fr; }
  .co-fields-row { grid-template-columns: 1fr; }
  .co-payment-methods { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .co-split-left-inner { padding: 1.25rem 1rem; }
  .co-step { padding: 1.25rem 1rem; }
  .co-step-title { font-size: 1.1rem; }
}
