/* =========================================================================
   projetodxn.com — tokens de color y base
   =========================================================================
   Paleta: colores de la BANDERA DE BRASIL, no los de DXN (decisión
   explícita del usuario, para diferenciarse tanto de DXN como del sitio
   hermano de Perú, proyectodxn.com).

   Hex verificados contra archivos oficiales del gobierno brasileño (no hay
   ley que fije el tono exacto, pero estos son los valores que el propio
   gobierno publica y los que se usan como referencia estándar):
     - Verde:    #009440
     - Amarillo: #ffcb00
     - Azul:     #302681
   Fuente: https://en.wikipedia.org/wiki/Flag_of_Brazil (sección de color).

   El resto de la arquitectura (radios, tipografía, estructura de tokens)
   sigue el mismo método que proyectodxn.com para reusar el criterio ya
   probado — lo que cambia es la paleta, no el sistema.
   ========================================================================= */
:root {
  color-scheme: light dark;

  /* acento primario: azul de la bandera -- botones principales, header */
  --blue: #302681;     --blue-2: #4b3fb0;
  /* acento secundario: verde de la bandera -- etiquetas, iconos */
  --green: #009440;    --green-2: #14b357;  --green-text: #007a35;
  /* acento de resalte: amarillo de la bandera -- usar con cuidado, poco
     contraste como texto; sirve para insignias, subrayados, fondos chicos */
  --yellow: #ffcb00;   --yellow-2: #ffe066;
  /* WhatsApp: color de marca de WhatsApp, no de Brasil ni de DXN -- se deja
     igual que en proyectodxn.com a propósito (es un color reconocible y
     funcional, no de identidad) */
  --wa: #25d366;       --wa-2: #55e08a;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eceef5;
  --ink: #1a1a2e;
  --muted: #5c5f72;
  --line: #dfe1eb;
  --radius: 20px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #6a5ce0;    --blue-2: #8a7ef0;
    --green: #14b357;   --green-2: #4bd47f;  --green-text: #4bd47f;
    --yellow: #ffcb00;  --yellow-2: #ffe066;
    --bg: #14141f;      --surface: #1c1c2b;  --surface-2: #262638;
    --ink: #eef0f7;     --muted: #a7a9bd;    --line: #33334a;
  }
}
:root[data-theme="dark"] {
  --blue: #6a5ce0;    --blue-2: #8a7ef0;
  --green: #14b357;   --green-2: #4bd47f;  --green-text: #4bd47f;
  --bg: #14141f;      --surface: #1c1c2b;  --surface-2: #262638;
  --ink: #eef0f7;     --muted: #a7a9bd;    --line: #33334a;
}
:root[data-theme="light"] {
  --blue: #302681;    --blue-2: #4b3fb0;
  --green: #009440;   --green-2: #14b357;  --green-text: #007a35;
  --yellow: #ffcb00;  --yellow-2: #ffe066;
  --bg: #f5f6fa;       --surface: #ffffff;  --surface-2: #eceef5;
  --ink: #1a1a2e;      --muted: #5c5f72;    --line: #dfe1eb;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.label { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.76rem; font-weight: 800; color: var(--green-text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* botones -- mismo patron de pildora que proyectodxn.com, recoloreado */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0 1.5rem; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--blue) 65%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-wa { color: #06210f; background: linear-gradient(135deg, var(--wa-2), var(--wa)); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--wa) 55%, transparent); }
.btn-wa:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

/* =========================================================================
   Componentes -- traducidos 1:1 del diseño aprobado en Claude Design
   (proyecto "Combinación de colores para logo", 06/08/2026): header,
   footer, hero, cards de producto/conteúdo, WhatsApp fijo, CTA, breadcrumb,
   badges, formulario de Cadastre-se, FAQ acordeón, artigo.
   ========================================================================= */

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* dev banner -- notas de SEO visibles solo si se agrega ?devseo=1 (ver base.html) */
.dev-seo-banner { font-family: monospace; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 14px; margin: 14px auto 0; }
.dev-seo-banner.hidden { display: none; }

/* --- badges --- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; width: fit-content; }
.badge-green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green-text); }
.badge-content { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: #7a5f00; }
.badge-related { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--ink); }

/* --- breadcrumb --- */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 16px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--ink); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--muted); }
.breadcrumb li { display: inline; }

/* --- header --- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--blue) 0%, var(--green) 62%, var(--yellow) 100%); flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--blue-2); text-decoration: underline; text-decoration-thickness: 2px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle-bars::before { transform: translateY(-6px); }
.menu-toggle-bars::after { transform: translateY(4px); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 16px clamp(16px,4vw,40px) 24px; flex-direction: column; gap: 14px; font-size: 16px; font-weight: 500; background: var(--surface); }
.mobile-nav a { color: var(--ink); text-decoration: none; }
@media (max-width: 767px) {
  .site-header .bar { height: 56px; }
  .site-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle-input:checked ~ .mobile-nav { display: flex; }
}

/* --- footer --- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px clamp(16px,4vw,40px); }
.footer-about p { font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 280px; }
.footer-col-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--wa); color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; text-decoration: none; width: fit-content; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px clamp(16px,4vw,40px); font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 16px; } }

/* --- whatsapp fab --- */
.wa-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 999px; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(37,211,102,.4); z-index: 50; text-decoration: none; color: #fff; transition: box-shadow .15s, filter .15s; }
.wa-fab:hover { box-shadow: 0 6px 18px rgba(37,211,102,.55); filter: brightness(1.04); }
.wa-fab svg { width: 26px; height: 26px; }
@media (max-width: 767px) { .wa-fab { right: 16px; bottom: 16px; } }

/* --- hero (home) --- */
.hero { padding: clamp(32px,6vw,72px) 0 clamp(48px,8vw,96px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(28px,4vw,40px); line-height: 1.15; margin: 0 0 20px; font-weight: 800; }
.hero-lede { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 32px; max-width: 480px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 640px) { .hero-ctas .btn { width: 100%; } }
.hero-figure, .placeholder-figure { aspect-ratio: 4/3; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-figure img, .placeholder-figure img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-note { font-family: monospace; font-size: 12px; color: var(--muted); text-align: center; padding: 0 20px; }

/* --- page header (hubs, artigos, paginas nucleo) --- */
.page-head { padding: 20px 0 24px; }
.page-head h1 { font-size: clamp(26px,4vw,36px); margin: 0 0 12px; font-weight: 800; }
.page-head .lede { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 640px; }
.page-head.center { text-align: center; }
.page-head.center .breadcrumb { text-align: left; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }

/* --- secciones e titulos --- */
.section { padding: 0 0 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head .see-all { font-size: 14px; font-weight: 600; text-decoration: underline; }

/* --- grids e cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(20,20,40,.18); }
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.card-produto .card-figure { position: relative; aspect-ratio: 1/1; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; overflow: hidden; }
.card-produto .card-figure img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.card-produto .card-figure .badge { position: absolute; top: 10px; left: 10px; }
.card h3, .card h4 { font-size: 16.5px; margin: 0 0 6px; font-weight: 700; }
.card p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.card .go { display: inline-block; background: transparent; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; }

.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-icon { width: 44px; height: 44px; border-radius: 999px; background: var(--surface-2); flex-shrink: 0; }
.read-more { color: var(--blue); font-size: 13.5px; font-weight: 600; text-decoration: underline; }

/* --- categoria hub tiles (Produtos) --- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 24px; }
.tile { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: block; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(20,20,40,.16); }
.tile h3 { font-size: 20px; margin: 0 0 8px; font-weight: 800; }
.tile p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.tile .go { color: var(--blue); font-weight: 600; font-size: 14px; }

/* --- CTA block --- */
.cta-block { background: var(--blue); border-radius: var(--radius); padding: clamp(32px,6vw,56px) clamp(20px,6vw,48px); text-align: center; }
.cta-block h3 { color: #fff; font-size: clamp(20px,3vw,26px); margin: 0 0 10px; font-weight: 800; }
.cta-block p { color: #d6d3f0; font-size: 15px; margin: 0 0 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-block .btn-primary { background: #fff; color: var(--blue); background-image: none; box-shadow: none; }

/* --- produto detalhe --- */
.produto-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 48px; align-items: start; margin-bottom: 24px; }
.produto-figure { position: relative; aspect-ratio: 1/1; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.produto-figure img { width: 100%; height: 100%; object-fit: contain; }
.produto-info h1 { font-size: clamp(24px,4vw,32px); margin: 0 0 14px; font-weight: 800; }
.produto-info .lede { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.produto-info h2 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.produto-info ul.beneficios { margin: 0 0 24px; padding-left: 20px; font-size: 14.5px; line-height: 1.7; color: var(--muted); list-style: disc; }
.produto-info .uso { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.produto-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.produto-related { padding: 24px 0 48px; }
.produto-related h3 { font-size: 16px; margin: 0 0 14px; font-weight: 800; }
.produto-related-links { display: flex; flex-wrap: wrap; gap: 14px; }
.produto-related-links a { color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: underline; }
.produto-artigo-link { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 420px; }

/* --- artigo (silo Benefícios) --- */
.artigo { padding: 24px 0 96px; }
.artigo-cover { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; overflow: hidden; }
.artigo-cover img { width: 100%; height: 100%; object-fit: cover; }
.artigo h1 { font-size: clamp(26px,4vw,34px); margin: 16px 0; font-weight: 800; }
.artigo .lede { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 32px; }
.artigo h2 { font-size: 19px; margin: 0 0 10px; font-weight: 700; }
.artigo p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.produto-relacionado-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; }
.produto-relacionado-card .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2); flex-shrink: 0; overflow: hidden; }
.produto-relacionado-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.produto-relacionado-card .meta-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.produto-relacionado-card .meta-title { font-size: 15px; font-weight: 700; }
.produto-relacionado-card .go { color: var(--blue); font-size: 13.5px; font-weight: 600; margin-left: auto; }
.artigo-siblings h3 { font-size: 16px; margin: 0 0 14px; font-weight: 800; }
.artigo-siblings-links { display: flex; flex-wrap: wrap; gap: 14px; }
.artigo-siblings-links a { color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: underline; }

/* --- negócio --- */
.negocio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.negocio-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.negocio-card h3 { font-size: 17px; margin: 0 0 10px; font-weight: 700; }
.negocio-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* --- artigo generico (Sobre, Termos, etc.) --- */
.article-body { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.article-body p { margin: 0 0 20px; }
.article-body .placeholder-note { text-align: left; font-family: monospace; font-size: 13px; color: var(--muted); margin-top: 24px; }

/* --- contato --- */
.contato-actions { display: flex; flex-direction: column; gap: 16px; max-width: 360px; margin: 0 auto; }
.contato-actions .btn { width: 100%; }

/* --- cadastre-se --- */
.cadastre-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.cadastre-step { flex: 1; display: flex; align-items: center; gap: 10px; }
.cadastre-step .num { width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.cadastre-step.active .num { background: var(--blue); color: #fff; }
.cadastre-step .step-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cadastre-step.active .step-label { color: var(--ink); }
.cadastre-connector { flex: 0 0 40px; height: 2px; background: var(--surface-2); }
.cadastre-connector.active { background: var(--blue); }
.cadastre-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.cadastre-card.center { text-align: center; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink); background: var(--surface); font-family: inherit; }
.field input::placeholder { color: var(--muted); }
.field input[readonly] { background: var(--surface-2); color: var(--muted); }
.field-hint { font-family: monospace; font-size: 10.5px; color: var(--muted); font-weight: 400; }
.field-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }
.field-check input { margin-top: 2px; accent-color: var(--blue); }
.field-check a { color: var(--blue); text-decoration: underline; }
.cadastre-success-icon { width: 56px; height: 56px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, transparent); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.cadastre-success-icon span { width: 22px; height: 22px; border-radius: 999px; border: 3px solid var(--green-text); }
[data-step="2"] { display: none; }
.js-step-2 [data-step="1"] { display: none; }
.js-step-2 [data-step="2"] { display: flex; }

/* --- FAQ acordeon --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary { list-style: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--blue); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

@media (max-width: 640px) {
  .produto-hero, .hero-grid { gap: 32px; }
  .cta-block { text-align: center; }
}
