/*
Theme Name: Smart Touch
Theme URI: https://smartouch.ar
Author: Smart Touch
Author URI: https://smartouch.ar
Description: Tema a medida para Smart Touch, tecnologia NFC. Compatible con WooCommerce.
Version: 1.0
Requires PHP: 7.4
Text Domain: smart-touch
*/

/* ===================================================
   SMART TOUCH — Hoja de estilos
   Fondo blanco, texto negro, violeta (#2E1A63) como
   color de detalle. Dorado reservado únicamente para
   las estrellas de reseñas.

   Nota: la tipografía de titulares se resuelve con una
   fuente del sistema tratada (peso 900 + compresión
   horizontal) en vez de depender de una fuente externa,
   para que se vea igual sin conexión a internet.
=================================================== */

:root{
  --purple: #2E1A63;
  --purple-deep: #1B0F3F;
  --black: #0A0A0B;
  --white: #FFFFFF;
  --paper: #FAF9FC;
  --star-gold: #F4B400;
  --line: rgba(46,26,99,0.16);
  --max: 1180px;
  color-scheme: light;
}

html{ color-scheme: light; background:var(--white); }
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--white);
  color: var(--black);
  font-family: -apple-system, "Segoe UI", Roboto, Arimo, Arial, sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  color-scheme: light;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }

/* Algunos navegadores/apps fuerzan un "modo oscuro" que invierte colores
   incluso con color-scheme:light declarado. Este bloque redeclara los
   colores explícitamente dentro de ese mismo contexto para que no se
   pierda el contraste (fondo claro con letra clara, etc). */
@media (prefers-color-scheme: dark){
  html, body{ background:var(--white) !important; color:var(--black) !important; }
  .site-header, .hero, .section-purple, .site-footer{ background:var(--white) !important; }
  .section-black, .checkout-card, .bank-box, .product-media, .step-card,
  .guide-note, .app-pill, .tip, .problem-card, .product, .card-mock{
    background:var(--paper) !important; color:var(--black) !important;
  }
  h1, h2, h3, .display, .logo, .footer-logo,
  .faq-item h4, .guide-step h3, .step-card h3, .problem-card h3,
  .product-info h2, .checkout-card h3{ color:var(--black) !important; }
  p, li, .faq-item p, .guide-step p, .step-card p, .problem-card p,
  .problem-card li, .hero p.lead, .section-head p{ color:#463f5c !important; }
  .eyebrow{ color:var(--purple) !important; }
}


.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; }

h1,h2,h3,.display{
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:-0.02em;
  line-height:0.92;
  color:var(--black);
  margin:0;
  transform: scaleX(0.9);
  transform-origin: left center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Arimo', sans-serif;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--purple);
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  background:var(--purple);
  border-radius:50%;
  flex:none;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--white);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.logo{
  display:flex;
  align-items:center;
}
.logo img{ height:26px; width:auto; }
.nav-links{
  display:flex; gap:32px;
  font-weight:700; font-size:14px;
  letter-spacing:0.03em;
  text-transform:uppercase;
}
.nav-links a{
  color:#5a5470;
  transition:color .2s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--purple); }
.nav-cta{
  background:var(--purple);
  color:var(--white) !important;
  padding:10px 20px;
  border-radius:999px;
  font-weight:800 !important;
}

/* ---------- Hero ---------- */
.hero{
  background:var(--white);
  color:var(--black);
  position:relative;
  overflow:hidden;
  padding:76px 0 96px;
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
  position:relative;
}
.hero .eyebrow{ margin-bottom:18px; }
.hero h1{
  font-size:clamp(40px, 5.6vw, 68px);
  color:var(--black);
}
.hero h1 .accent{
  color:var(--white);
  background:var(--purple);
  padding:2px 14px;
  border-radius:8px;
  display:inline-block;
}
.hero p.lead{
  font-size:19px;
  color:#463f5c;
  max-width:46ch;
  margin:22px 0 30px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  font-family:'Arimo',sans-serif;
  font-weight:800;
  font-size:15px;
  padding:16px 28px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-light{ background:var(--purple); color:var(--white); }
.btn-light:hover{ box-shadow:0 10px 24px rgba(46,26,99,0.3); }
.btn-outline{ background:transparent; color:var(--purple); border-color:var(--purple); }
.btn-outline:hover{ background:var(--purple); color:var(--white); }
.btn-dark{ background:var(--black); color:var(--white); }
.btn-dark:hover{ box-shadow:0 10px 24px rgba(0,0,0,0.25); }

/* --- Hero tap demo (signature element) --- */
.tap-demo{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  height:420px;
}
.card-mock{
  position:relative;
  width:230px; height:320px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 30px 60px rgba(46,26,99,0.16);
  padding:26px 20px;
  color:var(--black);
  transform:rotate(-4deg);
  z-index:2;
}
.card-mock .card-eyebrow{
  font-family:'Arimo',sans-serif; font-weight:700; font-size:13px;
  color:var(--purple);
}
.card-mock .stars{
  display:flex; gap:4px; margin:14px 0 10px;
}
.card-mock .stars svg{ width:22px; height:22px; opacity:0.18; transition:opacity .35s ease; }
.card-mock.filled .stars svg{ opacity:1; }
.card-mock .stars svg{ fill:var(--star-gold); }
.card-mock .nfc-row{
  display:flex; align-items:center; gap:10px;
  margin-top:20px;
  font-size:12px; font-weight:700; color:var(--purple);
  text-transform:uppercase; letter-spacing:.04em;
}
.pulse-ring{
  position:absolute;
  width:52px; height:52px;
  border-radius:50%;
  border:2px solid var(--star-gold);
  opacity:0;
}
.card-mock.filled .pulse-ring{ animation:pulse 1.1s ease-out; }
@keyframes pulse{
  0%{ opacity:.9; transform:scale(0.4);}
  100%{ opacity:0; transform:scale(2.4);}
}
.phone-mock{
  position:absolute;
  width:120px; height:240px;
  background:var(--black);
  border-radius:26px;
  border:4px solid #222;
  right:calc(50% - 190px);
  bottom:10px;
  z-index:1;
  transition:transform 1.8s cubic-bezier(.65,0,.35,1);
  transform:translate(90px,120px) rotate(8deg);
  box-shadow:0 20px 40px rgba(46,26,99,0.25);
}
.tap-demo.animate .phone-mock{
  transform:translate(10px,40px) rotate(2deg);
}
.tap-caption{
  position:absolute; bottom:0; left:0; right:0;
  text-align:center;
  font-size:13px; font-weight:700;
  color:#8b849e;
  letter-spacing:.03em;
  text-transform:uppercase;
}

/* ---------- Section basics ---------- */
section{ padding:88px 0; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(30px,4vw,44px); color:var(--black); margin-top:10px; }
.section-head p{ color:#3f3a52; font-size:17px; margin-top:14px; }
.section-purple{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-black{ background:var(--paper); }

/* ---------- Problem/solution ---------- */
.problem-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
}
.problem-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:32px;
}
.problem-card h3{
  font-size:22px; text-transform:none; font-weight:800;
  letter-spacing:0; margin-bottom:14px;
}
.problem-card.no h3::before{ content:"✕ "; color:var(--black); }
.problem-card.yes h3::before{ content:"✓ "; color:var(--purple); }
.problem-card p{ color:#463f5c; margin:0; }
.problem-card ul{ margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.problem-card li{ color:#463f5c; padding-left:20px; position:relative; }
.problem-card.no li::before{ content:"–"; position:absolute; left:0; color:var(--black); }
.problem-card.yes li::before{ content:"–"; position:absolute; left:0; color:var(--purple); }

/* ---------- Product ---------- */
.product{
  background:var(--white);
  border-radius:24px;
  border:1px solid var(--line);
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  overflow:hidden;
  box-shadow:0 30px 60px rgba(46,26,99,0.08);
}
.product-media{
  background:var(--paper);
  display:flex; align-items:center; justify-content:center;
  padding:40px;
  position:relative;
  border-right:1px solid var(--line);
}
.product-media img{
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:0 30px 50px rgba(46,26,99,0.14);
}
.badge-first{
  position:absolute; top:24px; left:24px;
  background:var(--purple); color:var(--white);
  font-weight:800; font-size:12px;
  letter-spacing:.04em; text-transform:uppercase;
  padding:8px 14px; border-radius:999px;
}
.product-info{ padding:44px; }
.product-info .eyebrow{ margin-bottom:12px; }
.product-info h2{
  font-size:clamp(28px,3vw,38px);
  color:var(--black);
  margin-bottom:14px;
}
.product-info > p{ color:#463f5c; margin-bottom:26px; }
.price-row{
  display:flex; align-items:baseline; gap:14px;
  margin-bottom:6px;
}
.price-old{
  font-size:19px; color:#8b849e;
  text-decoration:line-through;
}
.price-new{
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight:900; font-size:44px;
  color:var(--purple);
  letter-spacing:-0.02em;
  display:inline-block;
  transform: scaleX(0.9);
  transform-origin:left center;
}
.price-badge{
  background:var(--purple); color:var(--white);
  font-weight:800; font-size:13px;
  padding:6px 12px; border-radius:8px;
}
.price-note{ font-size:14px; color:#8b849e; margin-bottom:26px;}
.feature-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:32px; }
.feature-list li{
  display:flex; gap:12px; align-items:flex-start;
  color:#2c2740; font-weight:600; font-size:15px;
}
.feature-list li svg{ flex:none; margin-top:2px; }
.product-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- How it works (teaser) ---------- */
.steps-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.step-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px;
}
.step-num{
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight:900; font-size:15px;
  color:var(--purple);
  letter-spacing:.02em;
  margin-bottom:14px;
}
.step-card h3{
  font-size:19px; text-transform:none; font-weight:800;
  letter-spacing:0; margin-bottom:8px;
  color:var(--black);
}
.step-card p{ color:#463f5c; font-size:15px; margin:0; }
.teaser-cta{ margin-top:36px; text-align:center; }

/* ---------- Checkout / contacto ---------- */
.checkout{
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
}
.checkout-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:34px;
}
.checkout-card h3{
  font-size:20px; text-transform:none; font-weight:800; letter-spacing:0;
  margin-bottom:16px;
}
.checkout-steps{ display:flex; flex-direction:column; gap:18px; margin-bottom:20px; }
.checkout-steps li{ display:flex; gap:14px; }
.checkout-steps .n{
  flex:none; width:30px; height:30px; border-radius:50%;
  background:var(--purple); color:var(--white);
  font-weight:800; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.checkout-steps div p{ margin:0; color:#463f5c; }
.checkout-steps div strong{ display:block; color:var(--black); margin-bottom:2px; }

.bank-box{
  background:var(--paper);
  border:1px dashed var(--purple);
  border-radius:14px;
  padding:20px 22px;
  font-size:15px;
}
.bank-box .row{ display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid var(--line); }
.bank-box .row:last-child{ border-bottom:none; }
.bank-box .row span:first-child{ color:#7a7390; font-weight:600; }
.bank-box .row span:last-child{ font-weight:800; color:var(--black); }
.bank-note{ font-size:13px; color:#8b849e; margin-top:12px; }

/* ---------- Trust strip ---------- */
.trust-strip{
  display:flex; flex-wrap:wrap; gap:32px;
  justify-content:space-between;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:28px 0;
}
.trust-item{ display:flex; gap:12px; align-items:center; font-weight:700; font-size:14px; color:#2c2740; }
.trust-item svg{ flex:none; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--white); color:#5a5470; padding:52px 0 30px; border-top:1px solid var(--line); }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.footer-logo{ display:flex; align-items:center; }
.footer-logo img{ height:22px; width:auto; }
.footer-links{ display:flex; gap:28px; font-size:14px; font-weight:600; }
.footer-links a{ color:#5a5470; }
.footer-links a:hover{ color:var(--purple); }
.footer-bottom{ margin-top:36px; font-size:13px; color:#a19bb0; }

/* ---------- Guide page ---------- */
.guide-hero{
  background:var(--white); color:var(--black);
  padding:64px 0 56px;
  border-bottom:1px solid var(--line);
}
.guide-hero h1{ font-size:clamp(34px,5vw,52px); color:var(--black); }
.guide-hero p{ color:#463f5c; max-width:56ch; margin-top:16px; font-size:17px; }
.guide-note{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--paper);
  border:1px solid var(--purple);
  color:var(--purple);
  padding:10px 16px; border-radius:999px;
  font-size:13px; font-weight:700; margin-top:24px;
}
.guide-steps{ display:flex; flex-direction:column; gap:0; max-width:820px; margin:0 auto; }
.guide-step{
  display:grid; grid-template-columns:70px 1fr; gap:28px;
  padding:40px 0;
  border-bottom:1px solid var(--line);
}
.guide-step:last-child{ border-bottom:none; }
.guide-step .num{
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight:900; font-size:38px; color:var(--purple);
  line-height:1;
  display:inline-block;
  transform: scaleX(0.9);
  transform-origin:left center;
}
.guide-step h3{
  font-size:22px; text-transform:none; font-weight:800; letter-spacing:0;
  margin-bottom:10px; color:var(--black);
}
.guide-step p{ color:#463f5c; margin:0 0 10px; }
.guide-step .tip{
  background:var(--paper); border-radius:10px; padding:12px 16px;
  font-size:14px; color:#5a5470; margin-top:12px;
}
.guide-step .tip strong{ color:var(--purple); }
.app-row{ display:flex; gap:14px; margin-top:14px; flex-wrap:wrap; }
.app-pill{
  border:1px solid var(--line); border-radius:10px;
  padding:10px 16px; font-size:14px; font-weight:700;
  color:var(--purple); background:var(--white);
}
.faq{ max-width:820px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--line); padding:22px 0; }
.faq-item h4{ font-size:16px; font-weight:800; margin:0 0 8px; color:var(--black); }
.faq-item p{ margin:0; color:#463f5c; }

/* ---------- Responsive ---------- */
html, body{ overflow-x:hidden; max-width:100vw; }

@media (max-width: 920px){
  .hero-grid{ grid-template-columns:1fr; }
  .tap-demo{ height:360px; order:-1; }
  .problem-grid{ grid-template-columns:1fr; }
  .product{ grid-template-columns:1fr; }
  .product-media{ padding:32px; border-right:none; border-bottom:1px solid var(--line); }
  .steps-row{ grid-template-columns:1fr; }
  .checkout{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .guide-step{ grid-template-columns:1fr; gap:8px; }

  /* La animación del hero (tarjeta + celular) usaba posiciones pensadas
     para escritorio y se salía del ancho de pantalla en mobile. Acá se
     recalcula todo relativo al propio contenedor, sin desbordar. */
  .card-mock{ width:190px; height:260px; padding:20px 16px; }
  .card-mock .stars svg{ width:18px; height:18px; }
  .phone-mock{
    width:90px; height:180px;
    right:16px; bottom:16px;
    transform:translate(30px,60px) rotate(8deg);
  }
  .tap-demo.animate .phone-mock{
    transform:translate(0,20px) rotate(2deg);
  }
}

@media (max-width: 380px){
  .card-mock{ width:170px; height:240px; }
  .phone-mock{ width:80px; height:160px; right:10px; }
}


/* ============ WooCommerce overrides ============ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background:var(--white); border:1px solid var(--line); border-radius:18px;
  padding:20px; text-align:left;
}
.woocommerce ul.products li.product .price{ color:var(--purple); font-weight:800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce-page a.button{
  background:var(--purple) !important; color:var(--white) !important;
  border-radius:999px !important; font-weight:800 !important;
  padding:14px 26px !important; border:none !important;
  text-transform:none !important; font-family:inherit !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{
  background:var(--purple-deep) !important;
}
.woocommerce div.product p.price, .woocommerce div.product span.price{
  color:var(--purple); font-weight:800; font-size:28px;
}
.woocommerce table.shop_table{ border-color:var(--line); }
.woocommerce-checkout #payment ul.payment_methods{ border-color:var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select{
  border:1px solid var(--line); border-radius:10px; padding:12px 14px;
}
.woocommerce-message, .woocommerce-info{
  border-top-color:var(--purple) !important;
}
.woocommerce-message::before, .woocommerce-info::before{ color:var(--purple) !important; }

/* ---------- Banner de valor (pago único) ---------- */
.value-banner{
  background:var(--black);
  padding:36px 0;
}
.value-banner-inner{
  display:flex;
  align-items:center;
  gap:24px;
}
.value-banner-icon{
  flex:none;
  width:56px; height:56px;
  border-radius:50%;
  background:var(--purple);
  display:flex; align-items:center; justify-content:center;
  font-size:26px;
}
.value-banner h3{
  color:var(--white);
  font-size:clamp(19px,2.4vw,26px);
  text-transform:none;
  letter-spacing:0;
  margin-bottom:6px;
}
.value-banner p{
  color:rgba(255,255,255,0.72);
  margin:0;
  font-size:15px;
  max-width:60ch;
}
@media (max-width: 640px){
  .value-banner-inner{ flex-direction:column; text-align:center; }
}
