:root{color-scheme:dark;--line:#41413e;--panel:#1e1e1d}
*{box-sizing:border-box}
body{margin:0;background:var(--opari-black);color:var(--opari-cream);font:1rem/1.55 var(--opari-font-body);min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
a{color:inherit}
button,input,select{font:inherit}
:focus-visible{outline:3px solid var(--opari-orange);outline-offset:4px}
.skip{position:absolute;top:.5rem;left:.5rem;transform:translateY(-180%);padding:.75rem;background:var(--opari-black);z-index:2}
.skip:focus{transform:none}
.wrap,.header-inner{width:min(100% - 3rem,74rem);margin-inline:auto}
.header{border-bottom:1px solid var(--line)}
.header-inner,.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding-block:1.2rem}
.header nav{display:flex;gap:clamp(.65rem,3vw,2rem);flex-wrap:wrap}
.header nav a,.cart-link{text-decoration:none;font-weight:700}
.header nav a:hover,.header nav a[aria-current]{color:var(--opari-orange)}
.cart-link{white-space:nowrap}
#cantidad{background:var(--panel);padding:.18rem .45rem;border-radius:.2rem}
footer{border-top:1px solid var(--line);color:var(--opari-gray);font-size:.875rem;margin-top:3rem}
h1,h2,h3{font-family:var(--opari-font-heading);line-height:1;margin:0 0 1rem}
h1{font-size:clamp(3.1rem,7.8vw,7.2rem);font-weight:900;letter-spacing:-.025em}
h2{font-size:clamp(2rem,4vw,3.5rem)}
h3{font-size:1.65rem}
p{margin:0 0 1rem}
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.5rem,4vw,4rem);padding-block:clamp(2.5rem,8vw,7rem)}
.hero h1{text-transform:uppercase}
.hero img,.course-image{display:block;width:100%;height:auto;border-radius:.25rem}
.hero img{aspect-ratio:1.28;object-fit:cover}
.accent{color:var(--opari-orange)}
.kicker{color:var(--opari-orange);text-transform:uppercase;letter-spacing:.11em;font-size:.8rem;font-weight:800;margin-bottom:1.25rem}
.lead{font-size:clamp(1rem,1.6vw,1.25rem);color:var(--opari-gray);max-width:42ch;margin-bottom:1.6rem}
.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid transparent;border-radius:.25rem;background:var(--opari-orange);color:var(--opari-black);padding:.65rem 1.05rem;font-weight:800;text-decoration:none;cursor:pointer}
.secondary{border-color:#76746e;background:transparent;color:var(--opari-cream)}
.button:hover,button:hover{filter:brightness(1.15)}
button[disabled]{opacity:.65;cursor:default}
.band{background:var(--opari-cream);color:var(--opari-black);padding-block:2.5rem}
.tiles,.split,.lesson-grid{display:grid;gap:1rem}
.tiles{grid-template-columns:repeat(3,1fr)}
.tile{border-top:2px solid #272622;padding-block:1rem}
.page{padding-top:clamp(2rem,6vw,4.5rem)}
.page h1{font-size:clamp(3rem,7vw,5.5rem)}
.split{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:1.5rem}
.card{padding:clamp(1rem,3vw,1.6rem);border:1px solid var(--line);background:var(--panel);border-radius:.35rem;min-width:0}
.card img{margin-bottom:1rem}
.actions{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;margin-top:1rem}
.notice{padding:.8rem 1rem;margin-bottom:1rem;border-left:4px solid var(--opari-orange);background:#292321}
.field{display:grid;gap:.4rem;margin-bottom:1rem}
input,select{border:1px solid #76746e;border-radius:.25rem;background:var(--opari-black);color:var(--opari-cream);padding:.6rem;width:100%;min-height:44px}
.price{font-size:1.45rem;font-weight:800}
.muted{color:var(--opari-gray)}
.lesson-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
.player{aspect-ratio:16/9;display:grid;place-content:center;text-align:center;background:#0d0d0d;border:1px solid var(--line);margin-bottom:1rem;padding:1rem}
.lesson-list{margin:0;padding-left:1.4rem}
.lesson-list li{padding:.4rem 0}
.row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;padding:.65rem 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
progress{width:100%;accent-color:var(--opari-orange)}
details{padding:.65rem 0;border-bottom:1px solid var(--line)}
summary{cursor:pointer;font-weight:700}
@media(max-width:740px){.hero,.split,.lesson-grid{grid-template-columns:1fr}.hero img{aspect-ratio:1.65}.tiles{grid-template-columns:1fr}.tile p{margin-bottom:0}}
@media(max-width:480px){.wrap,.header-inner{width:calc(100% - 2rem)}.header-inner{display:grid;grid-template-columns:1fr auto;gap:.75rem}.header nav{grid-row:2;grid-column:1/-1}.cart-link{grid-column:2;grid-row:1}.footer-inner{align-items:start;flex-direction:column;gap:.3rem}}

/* Página de venta */
.sales{background:var(--opari-cream);color:var(--opari-black);padding-bottom:4rem}
.sales-hero{border-bottom:1px solid #d4cfc3}
body:has(.sales-landing) .header{display:none}
.sales-promise{padding-block:1.4rem 1rem;text-align:center}
.sales-promise h1{margin:0 auto;max-width:21ch;font-size:clamp(1.8rem,7.7vw,2rem);line-height:1.15;font-weight:800;letter-spacing:-.015em;text-wrap:balance}
.sales-promise-caption{margin:.6rem auto 0;color:#494640;font-size:.85rem;line-height:1.45}
.sales-promise strong{color:#a82b0b}
.sales-promise em,.sales-scene em{color:#a82b0b;font-style:normal}
.sales-product,.sales-scene{margin-block:0}
.sales-product img,.sales-scene img{display:block;width:100%;height:auto;object-fit:contain;border-radius:.6rem}
.sales-product{max-width:35rem}
.sales-section,.sales-scene{padding-top:2rem;max-width:58rem}
.sales-section h2{font-size:clamp(1.9rem,4vw,3rem)}
.sales-list{list-style:none;padding:0;margin:0;display:grid;gap:.55rem}
.sales-list li{position:relative;background:#ede7dc;padding:.75rem .8rem .75rem 2.35rem;border-radius:.4rem}
.sales-list li::before{position:absolute;inset-inline-start:.8rem;color:#a82b0b;font-weight:800;content:'?'}
.sales-list.benefits li::before{content:'✓'}
.sales-scene figcaption{margin:1rem auto 0;max-width:22ch;text-align:center;font:800 clamp(1.65rem,4vw,2.8rem)/1.05 var(--opari-font-heading)}
.sales-enroll{margin-top:2rem;padding:1rem;border-radius:.6rem;background:#131313;color:#f5f3ed}
.sales-enroll h2{margin-bottom:.45rem}
.sale-price{font-weight:800}
.sale-price small{display:block;color:#ddd;font-size:.78rem}
.sales-enroll p:last-child{margin-bottom:0}
@media(min-width:741px){
  .sales-promise{padding-block:2.5rem 1.5rem}
  .sales-promise h1{font-size:clamp(2.2rem,4.75vw,4.25rem);max-width:25ch}
  .sales-section,.sales-scene{padding-top:3rem}
  .sales-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:2rem}
  .sales-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-enroll{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.35rem}
}
.syllabus{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1.8rem;border-top:1px solid #d4cfc3;padding-top:1.5rem}
.syllabus details{border-color:#d4cfc3}
.syllabus summary{min-height:44px;padding:.5rem 0}
.unit-number{font-variant-numeric:tabular-nums;font-size:.8rem;font-weight:800;color:inherit;opacity:.75;margin-inline:.6rem}
.syllabus details p{margin:.5rem 1rem .5rem 2.75rem}

/* Vista de lección */
.lesson-page{padding-top:1.4rem}
.lesson-breadcrumb{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1.65rem;color:var(--opari-gray);font-size:.9rem}
.lesson-breadcrumb a{color:var(--opari-cream)}
.lesson-page .lesson-grid{gap:clamp(1rem,3vw,2rem)}
.lesson-page h1{font-size:clamp(2.5rem,5vw,4.5rem);line-height:.96}
.lesson-page .kicker{margin-bottom:.55rem}
.lesson-page .player{display:block;position:relative;overflow:hidden;padding:0;border:0;border-radius:.3rem}
.player img{height:100%;object-fit:cover;opacity:.66;margin:0}
.player-caption{position:absolute;inset:auto 0 0;text-align:left;background:#131313;padding:.75rem 1rem;color:var(--opari-cream)}
.player-caption span,.lesson-list small{display:block;color:var(--opari-gray);font-size:.82rem}
.lesson-actions{padding-bottom:1.2rem;border-bottom:1px solid var(--line)}
.lesson-notes{margin-top:1.2rem}
.lesson-notes h2,.lesson-sidebar h2{font-size:1.85rem}
.resource-link{display:flex;justify-content:space-between;padding:.75rem .9rem;border:1px solid var(--line);border-radius:.25rem;text-decoration:none}
.lesson-sidebar{border:1px solid var(--line);border-radius:.3rem;background:var(--panel);padding:1.1rem}
.lesson-sidebar label{font-size:.85rem;color:var(--opari-gray)}
.lesson-sidebar ol{list-style:none;padding:0;margin-top:.7rem}
.lesson-sidebar li{padding:0}
.lesson-sidebar a{display:flex;gap:.45rem;text-decoration:none;padding:.65rem .35rem;border-radius:.2rem}
.lesson-sidebar a:hover,.lesson-sidebar a[aria-current]{background:#36302b}
.lesson-sidebar a[aria-current] .unit-number{color:#ff804d}
@media(max-width:740px){
  .syllabus{grid-template-columns:1fr}
  .lesson-page .lesson-grid{grid-template-columns:1fr}
}


/* Ficha y recorrido de compra */
.enroll-copy{flex:1;min-width:0}
.commerce{background:#fff;color:#171411;min-height:65vh;padding:1.5rem 0 3rem;color-scheme:light}
.commerce-wrap{max-width:46rem}
.commerce h1,.commerce h2{font-family:var(--opari-font-body);line-height:1.15;letter-spacing:-.035em}
.commerce h1{font-size:clamp(1.75rem,5.6vw,2.65rem)}
.commerce h2{font-size:clamp(1.25rem,4.4vw,1.55rem)}
.commerce-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:1rem;margin-bottom:1.1rem}
.commerce-heading h1{margin:0}
.commerce-heading a,.commerce-back{color:#863219;font-size:.875rem;text-underline-offset:.2em}
.sales-enroll button,.commerce-total button[data-action="checkout"],.payment-actions button:first-child{width:100%;min-height:48px}
.cart-labels,.cart-total-row{display:flex;justify-content:space-between;gap:.7rem;align-items:baseline}
.cart-labels{border-bottom:1px solid #e1d8cf;padding:.65rem 0;color:#665850;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}
.commerce-line{display:grid;grid-template-columns:3.2rem minmax(0,1fr) auto;align-items:start;gap:.7rem;padding:1rem 0;border-bottom:1px solid #e1d8cf;font-size:.9rem}
.commerce-line img{width:100%;height:auto;border-radius:.35rem}
.commerce-line span{display:block;color:#665850}
.commerce .secondary{color:#131313;border-color:#92877a}
.commerce-line button{font-size:.8rem;padding:.25rem .45rem;margin-top:.4rem}
.commerce-total{margin-top:1.25rem}
.cart-total-row h2{margin-bottom:.6rem}
.cart-market{margin-top:2rem;max-width:16rem}
.commerce-card{background:#fff;border:1px solid #e1d8cf;border-radius:.55rem;padding:1rem;min-width:0}
.commerce input,.commerce select{background:#fff;color:#171411;border-color:#b5a698}
.commerce input{min-height:3rem}
.commerce .notice{background:#faeee7;color:#4f2e20;font-size:.85rem}
.commerce-summary{margin:0 0 1.3rem;background:#f8f3ed;border-color:#eaded1}
.commerce-summary summary{display:flex;align-items:baseline;gap:.5rem}
.commerce-summary summary::before{content:'+';color:#8d290f}
.commerce-summary[open] summary::before{content:'−'}
.commerce-summary summary strong{margin-inline-start:auto}
.commerce-summary .commerce-line{padding-bottom:0;border:0}
#checkout-test h2{margin-top:1.45rem}
.method-preview{border-inline-start:.25rem solid var(--opari-orange)}
.method-preview p{margin:.4rem 0 0;color:#665850;font-size:.9rem}
.payment-actions{justify-content:center}
.commerce-back{display:inline-block;margin-top:1rem}
.commerce-thanks .button{width:100%;min-height:48px}
.commerce-kicker{font-weight:800;color:#187343}

body:has(.cart-view,.checkout-view,.confirmation-view){background:#fff}
body:has(.cart-view,.checkout-view,.confirmation-view) .header{display:none}
body:has(.cart-view,.checkout-view,.confirmation-view) footer{margin-top:0;border-color:#ece5dc;color:#665850}
body:has(.cart-view,.checkout-view,.confirmation-view) .footer-inner{max-width:46rem}
.commerce-brand{margin:-1.5rem 0 1.5rem;border-bottom:1px solid #ece5dc}
.commerce-brand .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.25rem}
.commerce-logo{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}
.commerce-logo img{display:block;width:7.5rem;height:auto}
.commerce-brand a:not(.commerce-logo){color:#863219;font-size:.82rem}
.checkout-view .commerce-heading h1{font-size:1.45rem}
.checkout-view .commerce-summary{padding:.85rem 1rem}
.payment-example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.65rem;margin:.8rem 0}
.payment-number{grid-column:1/-1}
.payment-example dt{font-size:.79rem;color:#665850;margin-bottom:.25rem}
.payment-example dd{margin:0;padding:.5rem .65rem;background:#faf7f2;border:1px solid #eaded1;border-radius:.3rem;font-size:.875rem}

.sales-enroll button[data-action="add"],
.commerce-total button[data-action="checkout"],
.payment-actions button[value="paid"],
.commerce-thanks .button {
  background: #187343;
  color: #fff;
}

.confirmation-check {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #e9f6ee;
  color: #187343;
}
.confirmation-check::after {
  content: '';
  width: .72rem;
  height: 1.32rem;
  border: solid currentColor;
  border-width: 0 .2rem .2rem 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.syllabus summary {
  display: flex;
  align-items: center;
  list-style: none;
}
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::before {
  content: '';
  flex: 0 0 .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 .1rem .1rem 0;
  transform: rotate(-45deg);
}
.syllabus details[open] summary::before { transform: rotate(45deg); }

@keyframes content-appear {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes confirmation-pop {
  from { opacity: 0; transform: scale(.75); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes confirmation-draw {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@media (prefers-reduced-motion: no-preference) {
  #contenido > :is(.page,.lesson-page) { animation: content-appear .22s ease-out both; }
  .header nav a,
  .lesson-sidebar a { transition: color .18s ease, background-color .18s ease; }
  .syllabus summary::before { transition: transform .22s ease; }
  .syllabus details[open] > p { animation: content-appear .22s ease-out both; }
  .confirmation-check { animation: confirmation-pop .28s ease-out both; }
  .confirmation-check::after { animation: confirmation-draw .32s ease-out .16s both; }

  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .syllabus details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size .24s ease, opacity .18s ease, content-visibility .24s allow-discrete;
    }
    .syllabus details[open]::details-content { block-size: auto; opacity: 1; }
    .syllabus details[open] > p { animation: none; }
  }
}

@media (max-width: 740px) {
  .cart-view .commerce-line {
    column-gap: .9rem;
  }
  .cart-view .commerce-line > div > strong {
    display: block;
    max-inline-size: 23ch;
    text-wrap: balance;
  }
  .cart-view .commerce-line > strong {
    white-space: nowrap;
  }
}


:is(.sales-enroll,.commerce-total) button[aria-busy="true"] {
  gap: .55rem;
  opacity: 1;
  cursor: wait;
}
:is(.sales-enroll,.commerce-total) button[aria-busy="true"]::before {
  content: '';
  width: .8rem;
  height: .8rem;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
}
@keyframes purchase-loading {
  to { transform: rotate(1turn); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.sales-enroll,.commerce-total) button[aria-busy="true"]::before {
    animation: purchase-loading .6s linear infinite;
  }
}

.sales.sales-white{background:#fff}
.field textarea{width:100%;min-width:0;padding:.65rem;border:1px solid #76746e;border-radius:.25rem;background:var(--opari-black);color:var(--opari-cream);font:inherit}

.storefront-custom img,
.storefront-custom iframe {
  display: block;
  width: 100%;
  border: 0;
}
.storefront-custom img { height: auto; border-radius: .6rem; }
.storefront-section-text { white-space: pre-wrap; overflow-wrap: anywhere; }

.sales-enroll.product-information {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.product-square { aspect-ratio: 1; background: #2a2420; overflow: hidden; border-radius: .45rem; }
.product-square img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-liquid { display: grid; gap: .65rem; margin: 1rem 0; }
.product-liquid iframe { width: 100%; border: 0; background: #fff; border-radius: .35rem; }
.product-information button[disabled] { opacity: .7; }
@media (min-width: 741px) {
  .sales-enroll.product-information { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

.storefront-full{width:100%;max-width:none;margin-inline:0;box-sizing:border-box}.storefront-custom img{display:block}.storefront-full img{border-radius:inherit}

.sales .product-information{background:transparent;color:#202223;border:0;box-shadow:none;border-radius:0;display:block;max-width:620px;padding:24px}.sales .product-information .product-square{width:100%;aspect-ratio:1;margin-bottom:20px}.sales .product-information .product-square img{width:100%;height:100%;object-fit:contain}.sales .product-information h2{font:650 clamp(24px,5vw,32px)/1.15 system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 12px}.sales .product-information .enroll-copy{padding:0}.sales .product-information p{color:inherit}.sales .product-information .sale-price{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-family:system-ui,sans-serif}.sale-price del{font-size:16px;color:#777;font-weight:400}.sales .product-information .actions{display:block}.sales .product-information .actions button{width:100%;background:#187344;color:white;border-color:#187344}.sales .product-information .product-liquid{width:100%}

.offer-countdown{margin:18px 0;padding:24px;background:#ff6038;color:#fff;border-radius:20px;text-align:center;font:600 16px/1.4 system-ui,sans-serif;box-sizing:border-box}.offer-countdown strong,.offer-countdown time,.offer-countdown small{display:block}.offer-countdown time{font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:10px}.offer-countdown small{font-size:10px;letter-spacing:.05em}
.sales .product-information .product-square{background:transparent}.sales .product-information .sale-price small{color:#616161}.sales.sales-white{color:#202223;font-family:var(--opari-font-body,Arial,sans-serif)}
.product-currency{display:flex;align-items:center;gap:12px;margin:14px 0;font:13px system-ui,sans-serif;color:#616161}.product-currency select{font:inherit;padding:8px 28px 8px 10px;background:white;color:#202223;border:1px solid #d5d5d5;border-radius:6px}
.footer-currency{display:flex;align-items:center;gap:10px;font:12px system-ui,sans-serif;color:#b9b9b9;margin:0}.footer-currency select{font:inherit;padding:8px 28px 8px 10px;background:#fff;color:#202223;border:1px solid #dedede;border-radius:5px}.footer-inner{flex-wrap:wrap}

/* Commerce information follows the available screen width. */
@media(min-width:768px){.sales .product-information{max-width:1160px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;padding:40px 24px}.sales .product-information .product-square{grid-column:1;grid-row:1;margin:0}.sales .product-information .enroll-copy{grid-column:2;grid-row:1;min-width:0;padding-top:12px}.sales .product-information h2{font-size:clamp(26px,3vw,36px)}}
.footer-currency{gap:0;margin-left:auto;opacity:.8;font-size:11px}.footer-currency .currency-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.footer-currency select{background:transparent;color:inherit;border:0;border-radius:0;font:inherit;padding:4px 16px 4px 4px;max-width:78px;cursor:pointer}.footer-currency select option{background:#fff;color:#202223}.footer-currency:focus-within,.footer-currency:hover{opacity:1}

button:active:not(:disabled),a.button:active{filter:brightness(.9);transform:scale(.985)}
body[data-surface="store-preview"]{background:#fff;color:#242424;color-scheme:light}
body[data-surface="store-preview"]>.header{display:none}
