:root {
    color-scheme: light;
    --brand: #6d28d9; --brand-mid: #8b5cf6; --brand-light: #f5f0ff;
    --text: #1a1a1a; --muted: #6b7280; --bg: #f8f7ff;
    --card: #ffffff; --border: #ede9f6;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }


  /* ─── TABS ─── */
  section.tab-content { display: none; }
  section.tab-content.tab-active { display: block; }
  .nav-links a { cursor: pointer; }
  .nav-links a.active { color: var(--brand); border-bottom-color: var(--brand); }

  /* ─── NAV ─── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(22,7,64,.97); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; height: 56px;
  }
  .nav-logo { padding: 0 14px; display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
  .nav-logo img { height: 36px; mix-blend-mode: screen; display: block; }
  .nav-links { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; -ms-overflow-style: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    padding: 0 12px; height: 56px; display: flex; align-items: center;
    font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; font-weight: 600;
  }
  .nav-links a.active, .nav-links a:hover { color: #fff; border-bottom-color: var(--brand-mid); }
  .nav-cta {
    margin: 0 10px; background: var(--brand); color: #fff; border: none; border-radius: 8px;
    padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
    text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0;
  }

  .si { max-width: 900px; margin: 0 auto; padding: 60px 20px; }

  /* ─── SHARED ─── */
  .sec-tag { display: inline-block; background: var(--brand-light); color: var(--brand); border-radius: 999px; padding: 4px 13px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
  .sec-title { font-size: 28px; font-weight: 800; }
  .sec-sub { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; max-width: 560px; }
  .sec-header { margin-bottom: 36px; }
  .sec-header.center { text-align: center; }
  .sec-header.center .sec-sub { margin-left: auto; margin-right: auto; }

  /* ─── INICIO ─── */
  #inicio { background: linear-gradient(145deg, #160740 0%, #3b1481 55%, #5b21b6 100%); color: #fff; }
  #inicio .si { text-align: center; padding: 80px 20px 88px; }
  .hero-badge { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 15px; font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 22px; letter-spacing: .4px; }
  .hero-logo { font-size: 58px; font-weight: 900; letter-spacing: 2px; line-height: 1; }
  .hero-logo span { color: #c4b5fd; }
  .hero-tagline { font-size: 22px; color: rgba(255,255,255,.85); margin-top: 16px; line-height: 1.35; font-weight: 300; }
  .hero-sub { font-size: 14px; color: rgba(255,255,255,.6); margin: 12px auto 0; line-height: 1.7; max-width: 440px; }
  .hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
  .btn-primary { background: #fff; color: var(--brand); border-radius: 10px; padding: 13px 26px; font-size: 14px; font-weight: 800; text-decoration: none; }
  .btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); border-radius: 10px; padding: 13px 26px; font-size: 14px; text-decoration: none; }

  /* ─── QUÉ ES ─── */
  #que-es { background: #fff; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 32px; }
  .step-card { background: var(--bg); border-radius: 16px; padding: 22px 18px; text-align: center; }
  .step-num { width: 36px; height: 36px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; margin: 0 auto 12px; }
  .step-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
  .step-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 12px; }
  .feat { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px; text-align: left; }
  #que-es .si { text-align: center; }
  #que-es .feat { text-align: left; }
  .feat .ico { font-size: 20px; flex-shrink: 0; line-height: 1.2; }
  .feat strong { display: block; font-size: 13px; margin-bottom: 2px; }
  .feat span { font-size: 12px; color: var(--muted); line-height: 1.4; }

  /* ─── CATÁLOGO ─── */
  #catalogo { background: var(--bg); }
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
  .cat-card { background: var(--card); border-radius: 16px; padding: 20px; border: 1px solid var(--border); display: flex; flex-direction: column; text-align: center; }
  .cat-icon { font-size: 28px; margin-bottom: 10px; }
  .cat-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
  .cat-price { font-size: 22px; font-weight: 900; color: var(--brand); margin-bottom: 6px; }
  .cat-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
  .cat-footer { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 12px; font-size: 11.5px; color: #9ca3af; }
  .cat-note { font-size: 11px; color: #b45309; margin-top: 3px; font-style: italic; }

  /* ─── GALERÍA ─── */
  #galeria { background: #fff; }
  .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
  .g-card { border-radius: 18px; aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; text-align: center; position: relative; overflow: hidden; }
  .g-card .g-ico { font-size: 38px; }
  .g-card .g-title { font-weight: 800; font-size: 14px; }
  .g-card .g-sub { font-size: 12px; opacity: .75; line-height: 1.35; }
  .g-card .g-nfc { position: absolute; bottom: 10px; right: 13px; font-size: 18px; opacity: .35; }
  .gc1 { background: linear-gradient(135deg,#1e0a4a,#5b21b6); color:#fff; }
  .gc2 { background: linear-gradient(135deg,#0c4a6e,#0284c7); color:#fff; }
  .gc3 { background: linear-gradient(135deg,#14532d,#16a34a); color:#fff; }
  .gc4 { background: linear-gradient(135deg,#431407,#c2410c); color:#fff; }
  .gc5 { background: linear-gradient(135deg,#1e3a5f,#2563eb); color:#fff; }
  .gc6 { background: linear-gradient(135deg,#4a044e,#a21caf); color:#fff; }

  /* ─── FAQ ─── */
  #faq { background: var(--bg); }
  .faq-list { max-width: 680px; margin: 0 auto; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-q { width: 100%; text-align: left; padding: 18px 0; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq-q .arr { font-size: 14px; color: var(--brand); transition: transform .2s; flex-shrink: 0; }
  .faq-q.open .arr { transform: rotate(180deg); }
  .faq-a { font-size: 13.5px; color: var(--muted); line-height: 1.7; padding-bottom: 16px; display: none; }
  .faq-a.open { display: block; }

  /* ─── PEDIDO (form) ─── */
  #pedido { background: #fff; }
  .order-wrap { max-width: 640px; margin: 0 auto; }
  .ostep { background: var(--bg); border-radius: 16px; padding: 18px; margin-top: 14px; }
  .ostep h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
  .ostep h3 .n { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--brand); color:#fff; font-size:12px; font-weight:700; flex-shrink:0; }
  .hint { font-size: 12px; color: #999; margin-top: 8px; line-height: 1.5; }
  #afterPedido { display: none; }
  .pgrid { display: grid; gap: 10px; }
  .pcard { display: block; border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
  .pcard input { position: absolute; opacity: 0; pointer-events: none; }
  .pcard.sel { border-color: var(--brand); background: var(--brand-light); }
  .pcard .pr1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .pcard .pn { font-weight: 700; font-size: 14px; }
  .pcard .pp { font-weight: 700; font-size: 14px; color: var(--brand); white-space: nowrap; }
  .pcard .pd { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
  .pcard .pno { font-size: 11px; color: #b45309; margin-top: 4px; font-style: italic; }
  .pro-badge { display:inline-block; background:var(--brand); color:#fff; font-size:10px; font-weight:800; border-radius:4px; padding:2px 7px; margin-left:8px; letter-spacing:.5px; vertical-align:middle; }
  .ofield { margin-bottom: 14px; }
  .ofield:last-child { margin-bottom: 0; }
  .ofield label { display: block; font-size: 12.5px; color: #555; margin-bottom: 5px; font-weight: 600; }
  .ofield input[type=text], .ofield input[type=email], .ofield input[type=number], .ofield select, .ofield textarea {
    width: 100%; border: 1px solid #ddd; border-radius: 9px; padding: 10px 11px; font-size: 14px; font-family: 'Montserrat', inherit; background: #fcfcfe; color: var(--text);
  }
  .ofield textarea { resize: vertical; min-height: 64px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .pills label { border: 2px solid #e5e7eb; border-radius: 999px; padding: 8px 15px; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
  .pills input { position: absolute; opacity: 0; pointer-events: none; }
  .pills label.sel { border-color: var(--brand); background: var(--brand-light); font-weight: 600; }
  #domFields { display: none; margin-top: 12px; }
  #factDirField { display: none; margin-top: 10px; }
  .cb-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin-top: 4px; }
  .cb-row input { width: 16px; height: 16px; }
  .sum-box { background: #fafafa; border: 1px dashed #ddd; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #555; line-height: 1.6; white-space: pre-wrap; min-height: 60px; }
  .total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 14px 18px; background: var(--brand-light); border-radius: 12px; }
  .total-row .tl { font-size: 13px; color: var(--brand); font-weight: 700; }
  .total-row .ta { font-size: 24px; font-weight: 900; color: var(--brand); }
  .errs { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 14px; display: none; }
  .errs.show { display: block; }
  .errs ul { margin: 4px 0 0; padding-left: 18px; }
  .btn-enviar { width: 100%; margin-top: 14px; background: var(--brand); color: #fff; border: none; border-radius: 12px; padding: 16px 24px; font-size: 16px; font-weight: 800; cursor: pointer; letter-spacing: .2px; }
  .btn-enviar:active { background: #5b21b6; }
  .conf-box { display: none; margin-top: 18px; border-top: 1px solid #eee; padding-top: 18px; }
  .conf-box.show { display: block; }
  .conf-box .ok { font-weight: 700; color: #15803d; margin-bottom: 8px; font-size: 15px; }
  .conf-box textarea { width: 100%; min-height: 200px; font-size: 12px; font-family: ui-monospace, monospace; border: 1px solid #ddd; border-radius: 9px; padding: 10px; background: #fcfcfe; }
  .copy-btn { margin-top: 8px; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
  .copy-btn.ok { background: #ecfdf5; border-color: #a7f3d0; color: #15803d; }

  /* ─── CONTACTO ─── */
  #contacto { background: linear-gradient(145deg, #160740 0%, #3b1481 100%); color: #fff; }
  #contacto .sec-title { color: #fff; }
  #contacto .sec-sub { color: rgba(255,255,255,.65); }
  #contacto .sec-tag { background: rgba(255,255,255,.12); color: #c4b5fd; }
  .contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px,1fr)); gap: 14px; margin-top: 32px; }
  .cc { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 22px 18px; text-align: center; position: relative; cursor: pointer; transition: background .15s; }
  .cc:hover { background: rgba(255,255,255,.16); }
  .cc a.cc-block { position: absolute; inset: 0; border-radius: 16px; z-index: 0; }
  .cc .ci, .cc .cl, .cc .cv { position: relative; z-index: 1; }
  .cc a { color: #c4b5fd; text-decoration: none; }
  .cc .ci { font-size: 30px; margin-bottom: 8px; }
  .cc .cl { font-size: 11.5px; color: rgba(255,255,255,.55); margin-bottom: 5px; letter-spacing: .3px; text-transform: uppercase; }
  .cc .cv { font-weight: 700; font-size: 14px; }
  .cc a:not(.cc-block):hover { text-decoration: underline; }

  body { display: flex; flex-direction: column; min-height: 100vh; }
  main { flex: 1; }
  footer { text-align: center; padding: 24px 16px; font-size: 12px; color: #9ca3af; background: #f3f0fe; border-top: 1px solid var(--border); margin-top: auto; }