/* COA: ficha de producto, página de certificados y aceptación de términos en el checkout */
.coa-section { padding: 70px 0 20px; background: #fff; }
.coa-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.coa-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.coa-kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: #0F7095; background: rgba(15, 112, 149, .08); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.coa-head h2, .coa-empty h2 { font-size: 36px; font-weight: 800; color: #0B3C5D; margin: 0 0 8px; }
.coa-head p { color: #5b6b7a; font-size: 17px; margin: 0; }

.coa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.coa-grid-product { grid-template-columns: repeat(auto-fit, minmax(300px, 520px)); justify-content: center; }
.coa-grid-product .coa-card { display: grid; grid-template-columns: 200px 1fr; }
.coa-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.coa-card:hover { box-shadow: 0 16px 40px rgba(11, 60, 93, .12); transform: translateY(-4px); }
.coa-card[hidden] { display: none; }
.coa-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f4f8fb; cursor: zoom-in; overflow: hidden; aspect-ratio: 420 / 620; }
.coa-grid:not(.coa-grid-product) .coa-thumb { aspect-ratio: auto; height: 230px; }
.coa-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s; }
.coa-card:hover .coa-thumb img { transform: scale(1.04); }
.coa-zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(11, 60, 93, .88); color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.coa-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.coa-lab { font-size: 12px; font-weight: 700; color: #138a7a; text-transform: uppercase; letter-spacing: .5px; display: inline-flex; gap: 6px; align-items: center; }
.coa-body h3 { font-size: 19px; line-height: 1.35; font-weight: 700; color: #0B3C5D; margin: 0; }
.coa-body h3 small { font-size: 14px; color: #0F7095; font-weight: 700; background: rgba(15, 112, 149, .08); padding: 2px 8px; border-radius: 6px; margin-left: 4px; white-space: nowrap; }
.coa-dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.coa-dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 6px; }
.coa-dl dt { color: #64748b; font-weight: 500; }
.coa-dl dd { margin: 0; color: #0B3C5D; font-weight: 600; text-align: right; }
.coa-note { font-size: 13px; color: #7a5b14; background: #fff8eb; border-radius: 8px; padding: 6px 10px; margin: 0; }
.coa-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: auto; padding-top: 6px; }
.coa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #0B3C5D; color: #fff !important;
  font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .2s; border: 0; }
.coa-btn:hover { background: #0F7095; }
.coa-btn.wa { background: #25D366; }
.coa-btn.wa:hover { background: #1eb457; }
.coa-btn.ghost { background: transparent; color: #0B3C5D !important; border: 1px solid #cbd5e1; }
.coa-btn.ghost:hover { border-color: #0F7095; color: #0F7095 !important; }
.coa-link { font-size: 14px; font-weight: 600; color: #0F7095 !important; text-decoration: underline !important; }
.coa-code { font-size: 13px; color: #64748b; }
.coa-empty { display: flex; gap: 22px; align-items: flex-start; max-width: 860px; margin: 0 auto; padding: 30px 32px; border: 1px solid #e2e8f0; border-radius: 20px; background: #f8fbfd; }
.coa-empty > i { font-size: 40px; color: #26C0A8; }
.coa-empty h2 { font-size: 26px; }
.coa-empty p { color: #475569; }
.coa-disclaimer { display: flex; gap: 10px; max-width: 900px; margin: 28px auto 0; font-size: 13px; line-height: 1.6; color: #64748b; text-align: left; }
.coa-disclaimer i { color: #0F7095; margin-top: 3px; }

/* Página coa.html */
.coa-page { padding: 60px 0 90px; }
.coa-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.coa-toolbar h2 { font-size: 28px; font-weight: 800; color: #0B3C5D; margin: 0; }
.coa-toolbar p { color: #64748b; margin: 4px 0 0; }
.coa-search { position: relative; flex: 0 1 320px; }
.coa-search input { width: 100%; border: 1px solid #e2e8f0; border-radius: 999px; padding: 11px 18px 11px 42px; background: #f4f8fb; outline: none; }
.coa-search input:focus { border-color: #0F7095; background: #fff; }
.coa-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; }
.coa-sub { font-size: 22px; font-weight: 800; color: #0B3C5D; margin: 56px 0 6px; }
.coa-sub + p { color: #64748b; margin: 0 0 22px; }
.coa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 46px; }
.coa-steps div { padding: 22px; border-radius: 16px; background: #f4f8fb; }
.coa-steps b { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: #0B3C5D; color: #fff; margin-bottom: 10px; }
.coa-steps h3 { font-size: 17px; color: #0B3C5D; font-weight: 700; margin: 0 0 6px; }
.coa-steps p { font-size: 14px; color: #475569; margin: 0; line-height: 1.55; }

/* Visor */
.coa-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(4, 18, 30, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.coa-lightbox[hidden] { display: none; }
.coa-lightbox img { max-width: min(900px, 100%); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; background: #fff; }
.coa-close { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #0B3C5D; font-size: 28px; line-height: 1; cursor: pointer; }

/* Aceptación de términos en el checkout */
.terms-gate { clear: both; margin: 8px 0 18px; padding: 20px 22px; border: 2px solid #f6e2b8; border-radius: 16px; background: #fffaf0; }
.terms-gate h4 { font-size: 17px; font-weight: 800; color: #7a4b00; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.terms-gate > p { float: none !important; width: auto !important; font-size: 14px; color: #6b5a3a; margin: 0 0 14px; line-height: 1.55; }
.terms-gate label { clear: both; display: flex !important; flex-direction: row !important; gap: 12px; align-items: flex-start; float: none !important; width: auto !important;
  font-size: 14px !important; line-height: 1.5 !important; color: #3b3b3b !important; margin: 0 0 12px !important; cursor: pointer; font-weight: 400 !important; position: static !important; }
.terms-gate label span { display: block !important; flex: 1; position: static !important; margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: #3b3b3b !important; }
.terms-gate input[type="checkbox"] { appearance: auto !important; -webkit-appearance: checkbox !important; position: static !important; opacity: 1 !important;
  flex: 0 0 20px; width: 20px !important; height: 20px !important; min-width: 20px; margin: 1px 0 0 !important; padding: 0 !important; accent-color: #0B3C5D; cursor: pointer; }
.terms-gate a { color: #0F7095; font-weight: 700; text-decoration: underline; }
#submit[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 767px) {
  .coa-grid-product .coa-card { grid-template-columns: 1fr; }
  .coa-grid-product .coa-thumb { aspect-ratio: auto; height: 260px; }
  .coa-head h2 { font-size: 28px; }
  .coa-empty { flex-direction: column; padding: 24px; }
  .coa-steps { grid-template-columns: 1fr; }
}
