/* Plantillas web (Diseño Web): catálogo, ficha, compra y pedido.
   Usa las variables de styles-aula-20260729.css (--blue, --navy, --line…). */

/* ---------- catálogo ---------- */
.wt-section { padding: 84px 0 92px; border-top: 1px solid #e3ecf8; background: radial-gradient(circle at 88% 0%, rgba(40, 136, 255, .08), transparent 30%), #f8fbff; }
.wt-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.wt-heading h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; }
.wt-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.wt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.wt-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce7f4; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(18, 49, 99, .08); transition: transform .25s ease, box-shadow .25s ease; }
.wt-card:hover { transform: translateY(-5px); box-shadow: 0 25px 55px rgba(18, 49, 99, .14); }
.wt-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe9f7; }
.wt-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform .45s ease; }
.wt-card:hover .wt-card-media img { transform: scale(1.04); }
.wt-chip { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(3, 17, 48, .78); font-size: .68rem; font-weight: 800; backdrop-filter: blur(6px); }
.wt-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 22px; }
.wt-card-body > small { color: var(--blue); font-size: .64rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.wt-card-body h3 { margin: 8px 0 7px; font-size: 1.15rem; line-height: 1.22; }
.wt-card-body h3 a { color: var(--navy); text-decoration: none; }
.wt-card-body > p { margin: 0; color: #687693; font-size: .8rem; line-height: 1.6; }
.wt-card-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; }
.wt-card-price b { color: var(--navy); font-size: 1.2rem; }
.wt-card-price s, .wt-detail-price s { color: #98a3b8; font-size: .85rem; }
.wt-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wt-card-actions .button { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 14px; font-size: .78rem; }
.wt-card-more { margin-top: 14px; color: var(--blue); font-size: .75rem; font-weight: 800; text-decoration: none; }

/* ---------- ficha ---------- */
.wt-detail-hero { padding: 34px 0 64px; background: linear-gradient(180deg, #f3f8ff, #fff); }
.wt-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; margin-top: 22px; }
.wt-browser { overflow: hidden; border: 1px solid #d6e2f2; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px rgba(18, 49, 99, .16); }
.wt-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #e6edf7; background: #f6f9fd; }
.wt-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2dbe8; }
.wt-browser-bar span { margin-left: 10px; padding: 3px 12px; overflow: hidden; border-radius: 999px; color: #6b778f; background: #fff; font-size: .72rem; white-space: nowrap; text-overflow: ellipsis; }
.wt-browser img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; object-position: top center; }
.wt-detail-copy h1 { margin: 12px 0 10px; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.wt-detail-lead { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.7; }
.wt-detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.wt-detail-price b { color: var(--navy); font-size: 2rem; }
.wt-detail-price span { color: var(--muted); font-size: .85rem; }
.wt-detail-includes { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text); font-size: .86rem; }
.wt-detail-includes span, .wt-detail-sidebar li span { margin-right: 8px; color: var(--blue); font-weight: 900; }
.wt-detail-body { padding: 60px 0 80px; }
.wt-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.wt-detail-content h2 { margin: 0 0 14px; color: var(--navy); font-size: 1.45rem; }
.wt-detail-content h2:not(:first-child) { margin-top: 38px; }
.wt-detail-content p { color: var(--text); line-height: 1.75; }
.wt-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #0a173c; box-shadow: var(--shadow); }
.wt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-steps { display: grid; gap: 12px; margin: 0; padding-left: 22px; color: var(--text); line-height: 1.65; }
.wt-steps code { padding: 1px 6px; border-radius: 6px; background: var(--soft-blue); }
.wt-detail-sidebar { position: sticky; top: 100px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.wt-detail-sidebar h3 { margin: 0 0 12px; color: var(--navy); }
.wt-detail-sidebar ul { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--text); font-size: .86rem; }
.wt-detail-sidebar dl { display: grid; gap: 4px; margin: 0 0 20px; font-size: .82rem; }
.wt-detail-sidebar dt { margin-top: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wt-detail-sidebar dd { margin: 0; color: var(--ink); }
.wt-detail-sidebar .button { width: 100%; justify-content: center; }

/* ---------- compra y pedido ---------- */
.wt-checkout { padding: 34px 0 90px; background: #f8fbff; min-height: 60vh; }
.wt-checkout h1 { margin: 14px 0 22px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.wt-checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.wt-form { display: grid; gap: 22px; }
.wt-form fieldset { display: grid; gap: 14px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.wt-form legend { padding: 0 6px; color: var(--navy); font-weight: 800; }
.wt-form label { display: grid; gap: 6px; }
.wt-form label > span { color: var(--ink); font-size: .8rem; font-weight: 700; }
.wt-form input[type="text"], .wt-form input[type="email"], .wt-form input[type="tel"], .wt-form input[type="file"] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfdbec; border-radius: 12px; background: #fff; font: inherit; }
.wt-form input:focus { outline: 2px solid rgba(8, 100, 238, .25); border-color: var(--blue); }
.wt-form small { color: var(--muted); font-size: .74rem; }
.wt-trap { position: absolute !important; left: -9999px !important; }
.wt-currency { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-currency a { padding: 10px 16px; border: 1px solid #cfdbec; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 700; }
.wt-currency a.is-active { border-color: var(--blue); color: var(--blue); background: var(--soft-blue); }
.wt-methods { display: grid; gap: 10px; }
.wt-method { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px !important; padding: 14px 16px; border: 1px solid #cfdbec; border-radius: 14px; cursor: pointer; }
.wt-method:has(input:checked) { border-color: var(--blue); background: var(--soft-blue); }
.wt-method span { display: grid; gap: 2px; }
.wt-method b { color: var(--ink); font-size: .9rem; }
.wt-accept { display: flex !important; align-items: flex-start; gap: 10px !important; color: var(--text); font-size: .8rem; line-height: 1.55; }
.wt-submit { justify-content: center; min-height: 52px; font-size: .95rem; }
.wt-summary { position: sticky; top: 100px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.wt-summary img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; object-position: top; }
.wt-summary > div { padding: 20px 22px 22px; }
.wt-summary small { color: var(--blue); font-size: .64rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.wt-summary h2 { margin: 6px 0 12px; color: var(--navy); font-size: 1.2rem; }
.wt-summary ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: .82rem; }
.wt-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.wt-summary-total b { color: var(--navy); font-size: 1.4rem; }

.wt-order { max-width: 820px; }
.wt-order h2 { margin: 26px 0 12px; color: var(--navy); font-size: 1.2rem; }
.wt-order-meta, .wt-order-note { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.wt-alert { margin: 16px 0; padding: 14px 18px; border: 1px solid #f0d58a; border-radius: 14px; color: #6b5310; background: #fff8e1; font-size: .88rem; line-height: 1.6; }
.wt-alert-error { border-color: #f3b9b9; color: #8a1f1f; background: #fff1f1; }
.wt-alert-success { border-color: #a9dfbd; color: #165c33; background: #ecfbf2; }
.wt-alert-info { border-color: #bcd5fb; color: #133e86; background: #eef5ff; }
.wt-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.wt-download { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border: 1px solid #bcd5fb; border-radius: 16px; background: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease; }
.wt-download:hover { transform: translateY(-2px); }
.wt-download span { grid-row: span 2; display: grid; place-items: center; height: 54px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #0868f6, #0052df); font-size: .8rem; font-weight: 900; }
.wt-download b { color: var(--navy); }
.wt-download small { color: var(--muted); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-pay-box { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.wt-pay-box h2:first-child { margin-top: 0; }
.wt-pay-details { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.wt-pay-details img { width: 190px; height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: 14px; }
.wt-pay-details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.wt-pay-details dt { color: var(--muted); }
.wt-pay-details dd { margin: 0; color: var(--ink); }
.wt-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 980px) {
  .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-detail-grid, .wt-detail-layout, .wt-checkout-grid { grid-template-columns: 1fr; }
  .wt-detail-sidebar, .wt-summary { position: static; }
  .wt-heading { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wt-section { padding: 56px 0 64px; }
  .wt-grid { grid-template-columns: 1fr; }
  .wt-checkout-grid .wt-summary { order: -1; }
  .wt-form fieldset, .wt-pay-box { padding: 18px; }
}
