/* OportuNet Tienda · estilos (prefijo .opt- para no chocar con Blocksy) */
.opt-store{--opt-navy:#1d2f63;--opt-blue:#33529a;--opt-orange:#f6664b;--opt-sky:#e9edf8;--opt-head:#d5dbee;--opt-ink:#1b2347;
 box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;background:#fff;color:var(--opt-ink);text-align:left;
 font-family:Roboto,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;font-size:16px;line-height:1.4}
.opt-store *,.opt-store *::before,.opt-store *::after{box-sizing:border-box}
.opt-store p,.opt-store strong,.opt-store small,.opt-store span,.opt-store b{margin:0;padding:0;letter-spacing:normal;text-transform:none}
.opt-store b,.opt-store strong{font-weight:700}
.opt-store svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.opt-store a,.opt-store a:hover,.opt-store a:focus{text-decoration:none}
.opt-store button{-webkit-appearance:none;appearance:none;margin:0;font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none;min-height:0;line-height:1.2;cursor:pointer}
.opt-store input{margin:0;font:inherit}

/* quita el relleno blanco que Blocksy deja arriba y abajo del contenido en esta página */
body.opt-page [data-vertical-spacing*=top]{padding-top:0}
body.opt-page [data-vertical-spacing*=bottom]{padding-bottom:0}
[data-vertical-spacing*=top]:has(#optStore){padding-top:0}
[data-vertical-spacing*=bottom]:has(#optStore){padding-bottom:0}

.opt-banner{background:#33529a}
.opt-banner-in{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1180px;margin:0 auto;padding:24px 20px}
.opt-banner-txt{flex:1 1 auto;text-align:center}
.opt-store .opt-banner-h{font-size:clamp(26px,3.6vw,38px);font-weight:800;line-height:1.1;color:#fff;letter-spacing:.01em}
.opt-store .opt-banner-h b{color:var(--opt-orange)}
.opt-store .opt-banner-p{margin-top:6px;font-size:clamp(14px,1.6vw,17px);line-height:1.3;color:#dfe5f6}
.opt-banner-cart{flex:0 0 auto;color:var(--opt-orange)}
.opt-banner-cart svg{width:56px;height:56px;stroke-width:1.7}

.opt-wrap{max-width:1180px;margin:0 auto;padding:26px 20px 40px}
.opt-card{background:#fff;border:1px solid #d5dbee;border-radius:20px;margin-bottom:18px;overflow:hidden}
.opt-card.is-open{border-color:var(--opt-blue)}
.opt-store h2.opt-card-hh{margin:0;padding:0;border:0;background:none;font:inherit;line-height:1.2;letter-spacing:normal;text-transform:none}
.opt-store .opt-card-h{display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:18px 22px;border:0;border-radius:0;background:#fff;color:var(--opt-navy);text-align:left}
.opt-store .opt-card-h:hover{background:#f5f7fc;color:var(--opt-navy)}
.opt-card-ico{flex:0 0 auto;color:var(--opt-blue)}
.opt-card-ico svg{width:32px;height:32px}
.opt-card-tt{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0}
.opt-store .opt-card-t{font-size:clamp(18px,2.3vw,25px);font-weight:800;line-height:1.2;color:var(--opt-navy)}
.opt-store .opt-card-t small{font-size:.78em;font-weight:700;color:var(--opt-blue)}
.opt-store .opt-card-m{font-size:14.5px;font-weight:500;color:#444b70}
.opt-store .opt-card-m .woocommerce-Price-amount,.opt-store .opt-card-m bdi{font-weight:700;color:var(--opt-navy)}
.opt-chev{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--opt-sky);color:var(--opt-blue);transition:transform .2s,background-color .15s,color .15s}
.opt-chev svg{width:20px;height:20px;stroke-width:2.4}
.opt-card.is-open .opt-chev{transform:rotate(180deg);background:var(--opt-blue);color:#fff}
.opt-card-body{padding:0 22px 22px}
.opt-card:not(.is-open) .opt-card-body{display:none}
.opt-store .opt-card-p{margin:0 0 14px;font-size:15px;color:#444b70}

.opt-table{border:1px solid #d5dbee;border-radius:14px;overflow:hidden}
.opt-head,.opt-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 250px;align-items:center;gap:14px;padding:10px 16px}
.opt-head{background:var(--opt-head);font-weight:700;font-size:15px;color:var(--opt-navy)}
.opt-c{text-align:center}
.opt-row{border-top:1px solid #e4e8f4;background:#fff}
.opt-row:first-of-type{border-top:0}
.opt-svc{display:flex;align-items:center;gap:14px;min-width:0}
.opt-ico{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--opt-sky);color:var(--opt-blue)}
.opt-ico svg{width:26px;height:26px}
.opt-name{display:flex;flex-direction:column;min-width:0}
.opt-store .opt-name strong{font-size:17px;line-height:1.25;color:var(--opt-navy)}
.opt-store .opt-name small{font-size:14px;line-height:1.3;color:#444b70}
.opt-store .opt-price{text-align:center;font-size:20px;font-weight:700;color:var(--opt-navy)}
.opt-store .opt-price .woocommerce-Price-amount,.opt-store .opt-price bdi{font-weight:700;color:inherit}
.opt-qty{display:flex;align-items:center;justify-content:center;gap:10px}
.opt-step{display:inline-flex;align-items:center;border:1px solid #d0d6ea;border-radius:10px;background:#f5f7fc;overflow:hidden}
.opt-store .opt-step button{width:34px;height:36px;border:0;background:transparent;color:var(--opt-navy);font-size:20px;font-weight:700;padding:0}
.opt-store .opt-step button:hover{background:#e4e8f4}
.opt-store .opt-step input{width:46px;height:36px;border:0;border-left:1px solid #d0d6ea;border-right:1px solid #d0d6ea;border-radius:0;background:#fff;color:var(--opt-navy);font-size:17px;font-weight:700;text-align:center;padding:0;-moz-appearance:textfield;appearance:textfield}
.opt-store .opt-step input::-webkit-outer-spin-button,.opt-store .opt-step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.opt-store .opt-add{white-space:nowrap;min-width:100px;height:38px;border:0;border-radius:999px;padding:0 20px;background:#f6664b;color:#fff;font-size:15px;font-weight:700;transition:background-color .15s}
.opt-store .opt-add:hover{background:#e5573b}
.opt-store .opt-add[disabled]{opacity:.7;cursor:wait}
.opt-store .opt-add.is-ok{background:#1a783c}
.opt-store .opt-add.is-err{background:#b3261e}
.opt-store :focus-visible{outline:3px solid #2d8cff;outline-offset:2px}

.opt-bar{margin:6px 0 0;border-radius:16px;background:var(--opt-navy);color:#fff}
.opt-bar-in{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px}
.opt-bar.is-empty .opt-bar-btns{display:none}
.opt-store .opt-bar-txt{font-size:16px;font-weight:600;color:#fff}
.opt-store .opt-bar-txt .woocommerce-Price-amount,.opt-store .opt-bar-txt bdi{color:#ffb4a3;font-weight:800}
.opt-bar-btns{display:flex;gap:10px}
.opt-store .opt-link,.opt-store .opt-go{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:700;border:2px solid #fff;color:#fff;white-space:nowrap}
.opt-store a.opt-link:hover{background:#fff;color:var(--opt-navy)}
.opt-store a.opt-go,.opt-store button.opt-go{background:#f6664b;border-color:#f6664b;color:#fff}
.opt-store a.opt-go:hover,.opt-store button.opt-go:hover{background:#e5573b;border-color:#e5573b;color:#fff}
.opt-store button.opt-go[disabled]{opacity:.75;cursor:wait}

@media (max-width:820px){
 .opt-wrap{padding:18px 14px 30px}
 .opt-card{border-radius:16px}
 .opt-head{display:none}
 .opt-row{grid-template-columns:1fr auto;grid-template-areas:"svc svc" "price qty";gap:10px 12px;padding:14px 12px}
 .opt-svc{grid-area:svc}
 .opt-price{grid-area:price;text-align:left!important;align-self:center}
 .opt-qty{grid-area:qty;justify-content:flex-end}
 .opt-banner-cart svg{width:40px;height:40px}
 .opt-banner-in{padding:18px 16px;gap:12px}
 .opt-store .opt-banner-h{font-size:26px}
 .opt-store .opt-banner-p{margin-top:6px;font-size:14px}
 .opt-store .opt-card-h{padding:14px 14px;gap:10px}
 .opt-card-ico svg{width:26px;height:26px}
 .opt-card-body{padding:0 14px 16px}
 .opt-store .opt-card-m{font-size:13.5px}
 .opt-chev{width:34px;height:34px}
 .opt-bar{border-radius:14px}
 .opt-bar-in{gap:10px;padding:14px}
 .opt-store .opt-bar-txt{flex:1 1 100%;font-size:14.5px;text-align:center}
 .opt-bar-btns{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr}
 .opt-store .opt-link,.opt-store .opt-go{height:42px;padding:0 10px}
}
@media (max-width:420px){
 .opt-qty{gap:8px}
 .opt-store .opt-add{min-width:96px;padding:0 10px}
 .opt-store .opt-step input{width:38px}
}
@media (prefers-reduced-motion:reduce){.opt-add,.opt-chev{transition:none}}

/* ---------- carrito dentro de la página ---------- */
html.opt-lock{overflow:hidden}
.opt-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.opt-modal[hidden]{display:none}
.opt-modal-bg{position:absolute;inset:0;background:rgba(15,25,60,.62)}
.opt-modal-box{position:relative;display:flex;flex-direction:column;width:100%;max-width:680px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);background:#fff;border-radius:20px;overflow:hidden;outline:0;animation:optPop .18s ease-out}
@keyframes optPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.opt-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:var(--opt-navy);color:#fff}
.opt-store .opt-modal-h{flex:1 1 auto;font-size:22px;font-weight:800;color:#fff}
.opt-store .opt-x{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;line-height:1;padding:0}
.opt-store .opt-x:hover{background:rgba(255,255,255,.28)}
.opt-modal-list{flex:1 1 auto;overflow-y:auto;padding:6px 20px;overscroll-behavior:contain}
.opt-ci{display:grid;grid-template-columns:minmax(0,1fr) auto 96px auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e4e8f4}
.opt-ci:last-child{border-bottom:0}
.opt-ci.is-busy{opacity:.55}
.opt-ci-name{display:flex;flex-direction:column;min-width:0}
.opt-store .opt-ci-name strong{font-size:16px;line-height:1.25;color:var(--opt-navy)}
.opt-store .opt-ci-name small{font-size:13.5px;color:#444b70}
.opt-store .opt-cq{min-width:40px;text-align:center;font-size:17px;font-weight:700;color:var(--opt-navy);background:#fff;border-left:1px solid #d0d6ea;border-right:1px solid #d0d6ea;line-height:36px;height:36px}
.opt-store .opt-ci-line{text-align:right;font-size:17px;font-weight:700;color:var(--opt-navy)}
.opt-store .opt-ci-line .woocommerce-Price-amount,.opt-store .opt-ci-line bdi{font-weight:700;color:inherit}
.opt-store .opt-cx{border:0;background:none;color:#b3261e;font-size:14px;font-weight:600;padding:6px 4px;text-decoration:underline}
.opt-store .opt-cx:hover{color:#7d1a14}
.opt-store .opt-step button:disabled,.opt-store .opt-cx:disabled{cursor:wait}
.opt-empty{display:flex;flex-direction:column;align-items:center;padding:26px 0 30px;text-align:center}
.opt-empty .opt-empty-logo{display:block;width:auto;max-width:230px;height:auto;max-height:72px;margin:0 auto 18px}
.opt-empty .opt-go{height:46px;padding:0 28px;font-size:16px}
.opt-store .opt-empty-t{max-width:26em;margin:0 auto 20px;font-size:17px;line-height:1.45;color:#444b70}
.opt-modal-foot{padding:14px 20px 18px;border-top:1px solid #e4e8f4;background:#f5f7fc}
.opt-modal.is-empty .opt-modal-foot{display:none}
.opt-store .opt-tot{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:2px;font-size:17px;font-weight:600;color:var(--opt-navy)}
.opt-store .opt-tot strong{font-size:24px;font-weight:800}
.opt-store .opt-tot strong .woocommerce-Price-amount,.opt-store .opt-tot strong bdi{font-weight:800;color:inherit}
.opt-modal-btns{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.opt-store .opt-keep{height:44px;padding:0 22px;border-radius:999px;border:2px solid var(--opt-navy);background:#fff;color:var(--opt-navy);font-size:15px;font-weight:700}
.opt-store .opt-keep:hover{background:var(--opt-navy);color:#fff}
.opt-modal .opt-go{height:44px;padding:0 26px;font-size:16px}
@media (max-width:620px){
 .opt-modal{align-items:flex-end;padding:0}
 .opt-modal-box{max-width:none;border-radius:20px 20px 0 0;max-height:92vh;max-height:92dvh}
 .opt-ci{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "step line" "rm rm";gap:8px 12px}
 .opt-ci-name{grid-area:name}
 .opt-ci .opt-step{grid-area:step;justify-self:start}
 .opt-ci-line{grid-area:line}
 .opt-ci .opt-cx{grid-area:rm;justify-self:start;padding-left:0}
 .opt-modal-btns .opt-keep,.opt-modal-btns .opt-go{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.opt-modal-box{animation:none}}


/* ---------- datos de pago dentro de la ventana ---------- */
.opt-store .opt-back{flex:0 0 auto;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;padding:0}
.opt-store .opt-back:hover{background:rgba(255,255,255,.28)}
.opt-back[hidden]{display:none}
.opt-view{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.opt-view[hidden]{display:none}
.opt-pay-body{flex:1 1 auto;overflow-y:auto;padding:16px 20px 18px;overscroll-behavior:contain}
.opt-store .opt-pay-intro{margin:0 0 14px;font-size:14.5px;color:#444b70}
.opt-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.opt-f{display:flex;flex-direction:column;gap:5px;min-width:0}
.opt-f.is-wide{grid-column:1/-1}
.opt-store .opt-f label,.opt-store .opt-lbl{display:block;margin:0;font-size:14px;font-weight:600;line-height:1.25;color:var(--opt-navy)}
.opt-store .opt-req{color:#b3261e}
.opt-store .opt-f input,.opt-store .opt-f select,.opt-store .opt-f textarea{display:block;width:100%;max-width:none;height:46px;margin:0;padding:0 12px;border:1px solid #b9c2de;border-radius:10px;background:#fff;color:var(--opt-ink);font:inherit;font-size:16px;line-height:1.3;box-shadow:none}
.opt-store .opt-f textarea{height:auto;min-height:72px;padding:10px 12px;resize:vertical}
.opt-store .opt-f select{-webkit-appearance:none;appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333529a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:18px}
.opt-store .opt-f input:focus,.opt-store .opt-f select:focus,.opt-store .opt-f textarea:focus{border-color:var(--opt-blue);outline:2px solid var(--opt-blue);outline-offset:0}
.opt-store .opt-f input::placeholder,.opt-store .opt-f textarea::placeholder{color:#8e93b6;opacity:1}
.opt-store .opt-fixed{height:46px;margin:0;padding:0 12px;border:1px solid #d5dbee;border-radius:10px;background:#f5f7fc;color:var(--opt-navy);font-size:16px;font-weight:600;line-height:44px}
.opt-store .opt-terms{display:flex;align-items:flex-start;gap:10px;margin-top:14px;font-size:14px;line-height:1.35;color:#444b70;cursor:pointer}
.opt-store .opt-terms input{flex:0 0 auto;width:20px;height:20px;margin-top:1px;accent-color:#33529a}
.opt-store .opt-terms a{color:var(--opt-blue);text-decoration:underline}
.opt-store .opt-priv{margin-top:10px;font-size:12.5px;line-height:1.4;color:#444b70}
.opt-store .opt-priv p{margin:0}
.opt-store .opt-priv a{color:var(--opt-blue);text-decoration:underline}
.opt-store .opt-err{margin:14px 0 0;padding:10px 14px;border:1px solid #f1b5af;border-radius:10px;background:#fdecea;color:#7d1a14;font-size:14.5px;line-height:1.4}
.opt-err[hidden]{display:none}
.opt-store .opt-err a{color:#7d1a14;font-weight:700;text-decoration:underline}
.opt-store .opt-submit{width:100%;height:50px;font-size:17px}
.opt-store .opt-note{margin:8px 0 0;text-align:center;font-size:13px;color:#444b70}
@media (max-width:620px){
 .opt-fields{grid-template-columns:1fr;gap:10px}
 .opt-pay-body{padding:12px 16px 14px}
 .opt-store .opt-f input,.opt-store .opt-f select,.opt-store .opt-fixed{height:44px;line-height:42px}
 .opt-view-pay .opt-modal-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px))}
 .opt-view-pay .opt-tot{margin-bottom:8px}
 .opt-store .opt-submit{height:48px}
 .opt-store .opt-note{display:none}
}

/* contenedor de la ventana (no ocupa espacio en la página) */
.opt-store.opt-global{height:0;overflow:visible;background:none}

/* IVA incluido */
.opt-store .opt-iva{margin:0 0 12px;text-align:right;font-size:13.5px;font-weight:600;color:#444b70}
.opt-store .opt-iva .woocommerce-Price-amount,.opt-store .opt-iva bdi{font-weight:700;color:var(--opt-navy)}
.opt-store .opt-iva:empty{display:none}
.opt-store .opt-bar-iva{font-weight:500;color:#dfe5f6}

/* ventana del carrito en escritorio: panel que entra desde la derecha */
.opt-modal-bg{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
@media (min-width:821px){
 .opt-modal{justify-content:flex-end;align-items:stretch;padding:0}
 .opt-modal-box{width:540px;max-width:94vw;height:100vh;height:100dvh;max-height:none;border-radius:24px 0 0 24px;animation:optSlideR .26s ease-out}
 .opt-modal-top{padding:20px 24px}
 .opt-modal-list{padding:6px 24px}
 .opt-modal-foot{padding:16px 24px 22px}
 .opt-pay-body{padding:18px 24px 20px}
 .opt-modal-list{display:flex;flex-direction:column}
 .opt-empty{justify-content:center;flex:1 1 auto;padding-bottom:90px}
}
@keyframes optSlideR{from{transform:translateX(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.opt-modal-box{animation:none}}

/* ---- administradoras y trámite $0 ---- */
.opt-store .opt-ally{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #bfe0c8;border-radius:12px;background:#f0f8f2;font-size:14.5px;line-height:1.4;color:#1b2347}
.opt-store .opt-ally-ico{flex:0 0 auto;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1a783c;color:#fff;font-size:13px;font-weight:700;line-height:1}
.opt-store .opt-ally strong{color:#1a783c}
.opt-ent{display:flex;flex-direction:column;gap:4px;margin-top:10px;max-width:440px}
.opt-store .opt-ent-l{font-size:13px;font-weight:700;color:var(--opt-navy)}
.opt-store .opt-sel{width:100%;height:40px;padding:0 10px;border:1.5px solid #c3cbe6;border-radius:10px;background:#fff;color:var(--opt-ink);font:inherit;font-size:14.5px;cursor:pointer}
.opt-store .opt-sel:focus{outline:2px solid var(--opt-blue);outline-offset:1px;border-color:var(--opt-blue)}
.opt-store .opt-sel.is-err{border-color:#b3261e}
.opt-store .opt-ent-err{display:block;margin-top:4px;font-size:13.5px;font-weight:600;color:#b3261e}
.opt-store .opt-ent-err[hidden]{display:none}
.opt-store .opt-price.is-free{display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.15}
.opt-store .opt-price .opt-free{font-size:22px;font-weight:800;color:#1a783c}
.opt-store .opt-price .opt-free-t{font-size:13px;font-weight:700;color:#1a783c}
.opt-store .opt-price .opt-was{font-size:13px;font-weight:500;color:#6a7190;text-decoration:line-through}
.opt-store .opt-price .opt-was *{font-weight:500;font-size:13px;color:#6a7190}
.opt-store .opt-ci-name .opt-ci-ent{font-size:13.5px;color:#2c3357;font-weight:600}
.opt-store .opt-ci-name .opt-free-t{font-size:13.5px;font-weight:700;color:#1a783c}
@media (max-width:820px){.opt-store .opt-price.is-free{align-items:flex-start}.opt-ent{max-width:none}}
