/* ============================================================
   checkout.css — estilos específicos de checkout.html
   ============================================================ */

.barra-titulo { max-width: 1100px; margin: 0 auto; padding: 18px 20px 0; }

.breadcrumb { font-size: 0.8rem; color: var(--texto-muted); margin-bottom: 6px; }

.breadcrumb a:hover { color: var(--azul); }

.breadcrumb .sep { opacity: 0.5; margin: 0 4px; }

.breadcrumb .actual { color: var(--texto); font-weight: 500; }

.titulo-pagina {
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.7rem; margin: 0 0 20px;
  }

main {
    max-width: 1100px; margin: 0 auto; padding: 0 20px 60px;
    display: grid; grid-template-columns: 1fr; gap: 28px;
  }

@media (min-width: 900px) {
    main { grid-template-columns: 1fr 380px; align-items: start; }
  }

.seccion-form {
    background: var(--bg-elevada);
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
  }

.seccion-form-titulo {
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.05rem;
    margin: 0 0 4px;
  }

.seccion-form-subtitulo { font-size: 0.8rem; color: var(--texto-muted); margin: 0 0 16px; }

.campo { margin-bottom: 14px; }

.campo:last-child { margin-bottom: 0; }

.campo label {
    display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px;
  }

.campo label .opcional { font-weight: 400; color: var(--texto-muted); text-transform: none; }

.campo input[type="text"],
  .campo input[type="tel"],
  .campo input[type="email"],
  .campo select,
  .campo textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--linea);
    border-radius: 10px;
    padding: 11px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--texto);
  }

.campo input:disabled, .campo select:disabled { opacity: 0.5; cursor: not-allowed; }

.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none; border-color: var(--azul);
  }

.campo textarea { resize: vertical; min-height: 70px; }

.campo-error {
    display: none;
    font-size: 0.76rem;
    color: var(--error);
    margin-top: 5px;
  }

.campo.con-error input,
  .campo.con-error select { border-color: var(--error); }

.campo.con-error .campo-error { display: block; }

.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 480px) { .fila-2 { grid-template-columns: 1fr; } }

.opciones-comprobante { display: flex; flex-direction: column; gap: 8px; }

.opcion-radio {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid var(--linea);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
  }

.opcion-radio:has(input:checked) { border-color: var(--azul); background: var(--bg); }

.opcion-radio input { margin-top: 3px; accent-color: var(--azul); }

.opcion-radio-texto strong { display: block; font-size: 0.88rem; }

.opcion-radio-texto span { font-size: 0.78rem; color: var(--texto-muted); }

.contacto-bloque {
    border-top: 1px solid var(--linea);
    padding-top: 14px;
    margin-top: 14px;
  }

.contacto-bloque:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.contacto-bloque-titulo {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--texto-muted); margin: 0 0 10px;
  }

.info-recojo {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--linea); border-radius: 10px; padding: 14px;
    font-size: 0.88rem;
  }

.info-recojo svg { width: 20px; height: 20px; color: var(--azul); flex-shrink: 0; }

#mapa-entrega {
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--linea);
    margin-top: 6px;
  }

.mapa-nota { font-size: 0.74rem; color: var(--texto-muted); margin: 8px 0 0; }

.nota-provincia {
    background: var(--bg); border: 1px dashed var(--linea); border-radius: 10px;
    padding: 12px; font-size: 0.8rem; color: var(--texto-muted); margin-top: 4px;
  }

.estimado-entrega {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

.estimado-entrega.a-tiempo { background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.35); color: var(--texto); }

.estimado-entrega.fuera-de-horario { background: rgba(247, 148, 30, 0.1); border: 1px solid rgba(247, 148, 30, 0.4); color: var(--texto); }

.estimado-entrega .icono-estimado { flex-shrink: 0; font-size: 1rem; }

.resumen {
    background: var(--bg-elevada);
    border: 1px solid var(--linea);
    border-radius: 16px;
    padding: 20px;
  }

@media (min-width: 900px) {
    .resumen { position: sticky; top: 90px; }
  }

.resumen-titulo {
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.1rem; margin: 0 0 14px;
  }

.resumen-item {
    display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea);
  }

.resumen-item:last-of-type { border-bottom: none; }

.resumen-item-img {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px;
    background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden;
  }

.resumen-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.resumen-item-info { flex: 1; min-width: 0; }

.resumen-item-nombre {
    font-size: 0.78rem; font-weight: 500; margin: 0 0 2px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }

.resumen-item-meta { font-size: 0.74rem; color: var(--texto-muted); font-family: 'IBM Plex Mono', monospace; }

.resumen-item-subtotal { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

.resumen-linea {
    display: flex; justify-content: space-between; font-size: 0.85rem;
    padding: 6px 0; color: var(--texto-muted);
  }

.resumen-linea.destacada { color: var(--texto); font-weight: 600; }

.resumen-linea .valor-cotizar { color: var(--ember); font-weight: 600; font-size: 0.78rem; text-align: right; }

.resumen-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--linea);
    font-family: 'Big Shoulders Display', sans-serif;
  }

.resumen-total span:first-child { font-size: 0.85rem; font-weight: 600; color: var(--texto-muted); font-family: 'Inter', sans-serif; }

.resumen-total span:last-child { font-size: 1.6rem; font-weight: 800; color: var(--texto); }

.btn-enviar-checkout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: var(--whatsapp); color: #0d1f13; border: none;
    font-weight: 700; font-size: 0.98rem; padding: 15px; border-radius: 12px; cursor: pointer;
    margin-top: 16px;
  }

.btn-enviar-checkout:hover { background: var(--whatsapp-dark); }

.btn-enviar-checkout svg { width: 19px; height: 19px; }

.nota-checkout {
    font-size: 0.74rem; color: var(--texto-muted); text-align: center; margin: 10px 0 0;
  }

.estado-vacio {
    text-align: center;
    padding: 70px 20px;
    color: var(--texto-muted);
  }

.estado-vacio .icono { font-size: 2rem; margin-bottom: 12px; }

.estado-vacio a { color: var(--azul); font-weight: 600; }

/* ============================================================
   Pantalla de confirmación (post-envío)
   ============================================================ */

.tarjeta-confirmacion {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
  }

.confirmacion-cabecera {
    text-align: center;
    padding: 20px 0 4px;
  }

.icono-exito-check {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    display: flex; align-items: center; justify-content: center;
  }

.icono-exito-check svg { width: 26px; height: 26px; color: var(--whatsapp); }

.confirmacion-titulo {
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.4rem;
    color: var(--texto); margin: 0 0 6px;
  }

.confirmacion-subtitulo { margin: 0; color: var(--texto-muted); font-size: 0.88rem; }

.confirmacion-subtitulo strong { color: var(--texto); }

.confirmacion-meta {
    font-size: 0.82rem; color: var(--texto-muted); margin: -6px 0 12px;
  }

.aviso-confirmacion {
    display: flex; align-items: flex-start; gap: 10px;
    border-radius: 10px; padding: 12px 14px; font-size: 0.82rem; line-height: 1.5;
    margin-top: 12px;
  }

.aviso-confirmacion svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.aviso-confirmacion.exito {
    background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.35); color: var(--texto);
  }

.aviso-confirmacion.exito svg { color: var(--whatsapp); }

.aviso-confirmacion.alerta {
    background: rgba(247, 148, 30, 0.1); border: 1px solid rgba(247, 148, 30, 0.4); color: var(--texto);
  }

.aviso-confirmacion.alerta svg { color: var(--ember); }

.fila-botones-respaldo {
    display: flex; gap: 10px; margin-top: 10px;
  }

.btn-respaldo-checkout {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--linea); border-radius: 10px;
    padding: 11px 10px; font-size: 0.82rem; font-weight: 600; color: var(--texto);
    cursor: pointer; font-family: 'Inter', sans-serif;
  }

.btn-respaldo-checkout:hover { border-color: var(--azul); }

.btn-respaldo-checkout svg { width: 16px; height: 16px; flex-shrink: 0; }

.nota-confirmacion {
    font-size: 0.78rem; color: var(--texto-muted); text-align: center; margin: 10px 0 0;
  }

.nota-confirmacion.alerta { color: var(--ember); }

.link-seguir-catalogo {
    display: block; text-align: center; margin-top: 18px;
    color: var(--azul); font-weight: 600; font-size: 0.88rem;
  }

/* El footer ya vive en footer.css */