/* ==========================================================================
   Manual NFC (/tienda/manual-nfc). Ilustraciones propias de TST hechas en CSS:
   pantallas de celular con los pasos de la app NFC Tools.
   ========================================================================== */
.nfc-manual { background: #f3f7f5; }
.nfc-manual h2 { margin: 0 0 1.4rem; color: #0e2e2a; font: 800 clamp(1.6rem, 3vw, 2.3rem) Montserrat, sans-serif; letter-spacing: -.03em; }
.nfc-manual h3 { margin: 0 0 .35rem; color: #173f38; font: 700 1.08rem Montserrat, sans-serif; }
.nfc-manual p { color: #52665f; }
.nfc-manual code { padding: .1rem .35rem; border-radius: 6px; color: #0f5e52; background: #e3f4ef; font-size: .85em; }

/* Portada */
.nfc-hero { color: #fff; background: #0e2e2a; background-image: radial-gradient(rgba(0, 212, 170, .08) 1px, transparent 1.4px); background-size: 28px 28px; }
.nfc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; padding-block: 4.5rem; }
.nfc-hero h1 { margin: .3rem 0 1rem; color: #fff; font: 800 clamp(2.2rem, 4.6vw, 3.8rem)/1.02 Montserrat, sans-serif; letter-spacing: -.045em; }
.nfc-hero .eyebrow { color: #8ff3d9; }
.nfc-lead { max-width: 58ch; color: #d6ece6 !important; font-size: 1.05rem; }
.nfc-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.nfc-hero .button.primary { color: #0e2e2a; background: #fff; }
.nfc-hero .button.ghost { color: #fff; border-color: #ffffff55; background: transparent; }
.nfc-hero__art { display: grid; place-items: center; }
.nfc-card-art { position: relative; display: grid; place-items: center; width: min(320px, 80%); aspect-ratio: 1.6; border-radius: 22px; background: linear-gradient(135deg, #1f6f63, #3fae9a); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(-8deg); }
.nfc-card-art span { z-index: 1; font: 800 2.4rem Montserrat, sans-serif; letter-spacing: .06em; }
.nfc-card-art i { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 1; border: 2px solid #ffffff55; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.nfc-card-art i:nth-of-type(2) { width: 66%; opacity: .7; }
.nfc-card-art i:nth-of-type(3) { width: 86%; opacity: .45; }

/* Antes de empezar / dónde está el lector */
.nfc-need, .nfc-where, .nfc-steps, .nfc-help, .nfc-cta { padding-block: 3.5rem 0; }
.nfc-need__grid, .nfc-where__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nfc-where__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nfc-need article, .nfc-where__item { padding: 1.3rem; border: 1px solid #dce9e5; border-radius: 18px; background: #fff; }
.nfc-need article > i { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .8rem; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #3fae9a, #1f6f63); }
.nfc-need a { color: #1f6f63; font-weight: 700; }
.nfc-where__item { display: flex; align-items: center; gap: 1.3rem; }
.nfc-device { position: relative; flex: 0 0 86px; height: 160px; margin: 0; border: 3px solid #173f38; border-radius: 20px; background: linear-gradient(160deg, #eef7f4, #d8ece6); }
.nfc-device::before { content: ""; position: absolute; top: 10px; left: 12px; width: 18px; height: 18px; border-radius: 6px; background: #173f38; }
.nfc-device__zone { position: absolute; left: 50%; width: 58px; height: 34px; border: 2px dashed #3fae9a; border-radius: 12px; background: rgba(63, 174, 154, .22); transform: translateX(-50%); animation: nfcZone 2s ease-in-out infinite; }
.nfc-device--iphone .nfc-device__zone { top: 8px; }
.nfc-device--android .nfc-device__zone { top: 60px; }
.nfc-tag-dot { position: absolute; right: -16px; width: 28px; height: 20px; border-radius: 6px; background: #1f6f63; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.nfc-device--iphone .nfc-tag-dot { top: 14px; }
.nfc-device--android .nfc-tag-dot { top: 66px; }
@keyframes nfcZone { 50% { background: rgba(63, 174, 154, .42); } }

/* Paso a paso con pantallas de celular */
.nfc-steps__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; margin: 0; padding: 0; list-style: none; }
.nfc-steps__list > li { display: grid; gap: 1rem; align-content: start; padding: 1.2rem; border: 1px solid #dce9e5; border-radius: 22px; background: #fff; }
.nfc-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: .5rem; border-radius: 50%; color: #fff; background: #1f6f63; font: 800 .85rem Inter, sans-serif; }
.nfc-phone { justify-self: center; width: 190px; margin: 0; padding: 8px; border-radius: 30px; background: #0e2e2a; box-shadow: 0 14px 30px rgba(14, 46, 42, .25); }
.nfc-phone__screen { position: relative; overflow: hidden; height: 330px; border-radius: 23px; background: #f6faf9; font: 500 .72rem Inter, sans-serif; color: #173f38; }
.nfc-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: .45rem .8rem .2rem; font-weight: 700; font-size: .6rem; }
.nfc-phone__notch { width: 56px; height: 14px; border-radius: 10px; background: #0e2e2a; }
.nfc-app-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; color: #fff; background: #1f6f63; }
.nfc-app-head strong { font: 700 .8rem Montserrat, sans-serif; }
.nfc-app-logo { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #1f6f63; background: #8ff3d9; font: 800 .7rem Inter, sans-serif; }
.nfc-app-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #1f6f63; }
.nfc-app-tabs span { padding: .45rem 0; color: #cdebe3; text-align: center; font-weight: 700; }
.nfc-app-tabs span.is-hit { color: #fff; box-shadow: inset 0 -3px 0 #8ff3d9; }
.nfc-app-empty { display: grid; place-items: center; gap: .4rem; height: 200px; color: #8aa19c; }
.nfc-app-empty i { font-size: 1.6rem; }
.nfc-app-list { display: grid; gap: .35rem; padding: .7rem; }
.nfc-app-list p { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .55rem .6rem; border-radius: 10px; color: #173f38 !important; background: #fff; box-shadow: 0 1px 3px rgba(14, 46, 42, .08); }
.nfc-app-list p i { width: 1rem; color: #3fae9a; text-align: center; }
.nfc-app-list p small { margin-left: auto; color: #b42318; font-size: .58rem; }
.nfc-app-list p.is-dim { opacity: .55; }
.nfc-app-list p.is-no { opacity: .6; text-decoration: line-through; text-decoration-color: #b42318; }
.is-hit { position: relative; outline: 2px solid #f59e0b; outline-offset: 2px; animation: nfcHit 1.6s ease-in-out infinite; }
@keyframes nfcHit { 50% { outline-color: rgba(245, 158, 11, .25); } }
.nfc-app-form { display: grid; gap: .45rem; padding: .7rem; }
.nfc-app-form label { font-weight: 700; font-size: .66rem; color: #52665f; }
.nfc-app-input { overflow: hidden; padding: .55rem .6rem; border: 1.5px solid #3fae9a; border-radius: 10px; background: #fff; white-space: nowrap; text-overflow: ellipsis; font-size: .66rem; }
.nfc-caret { display: inline-block; width: 1px; height: .8rem; margin-left: 1px; vertical-align: middle; background: #173f38; animation: nfcCaret 1s steps(1) infinite; }
@keyframes nfcCaret { 50% { opacity: 0; } }
.nfc-app-form button { padding: .6rem; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #3fae9a, #1f6f63); font: 700 .72rem Inter, sans-serif; }
.nfc-app-size { margin: 0 .7rem; padding: .55rem .6rem; border-radius: 10px; background: #e3f4ef; font-size: .66rem; }
.nfc-app-size span { display: block; color: #52665f; font-size: .6rem; }
.nfc-app-scan, .nfc-app-done { position: relative; display: grid; place-items: center; align-content: center; gap: .5rem; height: 300px; text-align: center; }
.nfc-app-scan i { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: #1f6f63; font-size: 1.4rem; transform: rotate(90deg); }
.nfc-pulse { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -52px 0 0 -32px; border-radius: 50%; background: rgba(63, 174, 154, .35); animation: nfcPulse 1.8s ease-out infinite; }
@keyframes nfcPulse { to { transform: scale(2.4); opacity: 0; } }
.nfc-app-scan strong, .nfc-app-done strong { font: 800 .9rem Montserrat, sans-serif; }
.nfc-app-scan p, .nfc-app-done p { margin: 0; font-size: .68rem; }
.nfc-app-done span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #3fae9a, #1f6f63); font-size: 1.8rem; box-shadow: 0 0 0 10px rgba(63, 174, 154, .15); }

/* Problemas frecuentes */
.nfc-help__list { display: grid; gap: .7rem; }
.nfc-help details { border: 1px solid #dce9e5; border-radius: 14px; background: #fff; }
.nfc-help summary { padding: 1rem 1.2rem; color: #173f38; font: 700 .98rem Inter, sans-serif; cursor: pointer; }
.nfc-help ul { margin: 0; padding: 0 1.2rem 1.1rem 2.4rem; color: #52665f; }
.nfc-help li { margin: .35rem 0; }

/* Cierre */
.nfc-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-block: 3.5rem 4rem; padding: 2rem !important; border-radius: 22px; background: #0e2e2a; }
.nfc-cta h2 { margin: 0 0 .3rem; color: #fff; }
.nfc-cta p { margin: 0; color: #d6ece6; }
.nfc-cta .button.primary { color: #0e2e2a; background: #8ff3d9; }

@media (max-width: 900px) {
  .nfc-hero__grid { grid-template-columns: 1fr; padding-block: 3rem; }
  .nfc-hero__art { display: none; }
  .nfc-need__grid, .nfc-where__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .is-hit, .nfc-pulse, .nfc-caret, .nfc-device__zone { animation: none; } }


/* La tienda fija colores con "body.tst-store-page #contenido"; aquí se ajustan. */
body.tst-store-page #contenido.nfc-manual .nfc-hero .button.primary { color: #0e2e2a; background: #fff; }
body.tst-store-page #contenido.nfc-manual .nfc-cta .button.primary { color: #0e2e2a; background: #8ff3d9; }
body.tst-store-page #contenido.nfc-manual .nfc-hero h1,
body.tst-store-page #contenido.nfc-manual .nfc-cta h2 { color: #fff; }
.nfc-need, .nfc-where, .nfc-steps, .nfc-help { padding-block: 0; margin-top: 3.5rem; }
.nfc-need { margin-top: 3rem; }
.nfc-manual .nfc-cta { box-sizing: border-box; margin-top: 3.5rem; margin-bottom: 4rem; padding: 2rem 2.2rem; }
body.tst-store-page #contenido.nfc-manual .nfc-cta { padding: 2rem 2.2rem; }
body.tst-store-page #contenido.nfc-manual .nfc-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.nfc-manual .button { gap: .5rem; }
.nfc-cta-wrap { margin-top: 3.5rem; margin-bottom: 4rem; }
body.tst-store-page #contenido.nfc-manual .nfc-cta { margin: 0; }
