/* ============================================================
   UnaVoz — Estilos custom
   Filosofía: editorial técnico. Serif potente, sans neutra, mono de acento.
   Paleta hueso + tinta + verde WhatsApp.
   ============================================================ */

:root {
  --bone:        #FFFFFF;          /* White — Comunica brand background */
  --bone-2:      #F9F9F9;          /* Off-white for secondary backgrounds */
  --ink:         #1D1D1B;          /* Process Black C — Comunica */
  --ink-soft:    #2A2A28;
  --muted:       #6B6B66;
  --line:        #1D1D1B;
  --line-soft:   #E5E5E5;          /* Refined for white palette */
  /* Variables --wa-* mantenidas por compatibilidad pero ahora con la
     paleta de Comunica (Process Cyan + Pantone 540 C). */
  --wa:          #009FE3;          /* Process Cyan C — Comunica */
  --wa-deep:     #003057;          /* Pantone 540 C — Comunica */
  --brand:       #009FE3;
  --brand-deep:  #003057;
  --brand-tint:  #DCEFFA;          /* tint claro para chips/badges */
  --alert:       #E04C2A;
  --dark-bg:     #0F1419;
  --dark-ink:    #E9E6DC;
  --dark-muted:  #8F8A7E;
  --dark-line:   #2A2F36;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { background: var(--bone); color: var(--ink); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
}

.serif   { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono    { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

.display {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Titulares con "cuadrícula técnica" de fondo */
.grid-lines {
  background-image:
    linear-gradient(to right, rgba(31,31,31,0.06) 1px, transparent 1px);
  background-size: 80px 100%;
}

/* Rule (línea divisoria tipo editorial) */
.rule { height: 1px; background: var(--ink); opacity: 0.85; }
.rule-soft { height: 1px; background: var(--line-soft); }

/* Badge numérico de sección (00, 01, 02…) */
.section-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Botón primario (verde WhatsApp) */
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease;
}
.btn-wa:hover { background: var(--wa-deep); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 21px; border-radius: 999px;
  font-weight: 500; letter-spacing: -0.01em;
  transition: background .15s ease, color .15s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bone);
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600;
}
.btn-dark:hover { background: var(--ink-soft); }

/* "Ventana" para capturas */
.window {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 20px 50px -20px rgba(0,0,0,0.15);
}
.window-bar {
  height: 34px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: #F3F0E7;
  border-bottom: 1px solid var(--line-soft);
}
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: #D0CCBF; }
.window-url {
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  max-width: 70%;
}

/* Dark variant */
.window.dark {
  background: #0F1419;
  border-color: #1C232D;
}
.window.dark .window-bar { background: #141A21; border-color: #1C232D; }
.window.dark .window-url { background: #0F1419; border-color: #1C232D; color: #8FA1B3; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wa); }

/* Tabs perfiles */
.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #fff;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s ease;
}
.tab-btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* Tabla comparativa */
.cmp {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.cmp th, .cmp td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.cmp th { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cmp th.col-us {
  color: var(--ink);
  font-family: "Instrument Serif", serif;
  font-size: 22px;
}
.cmp td.center, .cmp th.center { text-align: center; }
.cmp .yes { color: var(--wa-deep); font-weight: 600; }
.cmp .no  { color: #9A9A95; }
.cmp tr.ours td { background: rgba(37,211,102,0.04); }

/* Anotación manuscrita (Caveat) */
.note {
  font-family: "Caveat", "Segoe Script", cursive;
  color: var(--alert);
  font-size: 26px;
  line-height: 1.1;
}
.note-arrow {
  display: inline-block;
  width: 40px; height: 40px;
  background: url("img/arrow.svg") center/contain no-repeat;
}

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}
details.faq > summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  font-family: "Inter", sans-serif;
  font-size: 24px;
  color: var(--muted);
  transition: transform .2s ease;
}
details.faq[open] > summary::after { transform: rotate(45deg); }
details.faq p { color: var(--muted); font-size: 17px; line-height: 1.6; margin-top: 12px; }

/* Tarjetas sector */
.sector-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}

/* Formulario */
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

/* Scroll reveal (opcional con JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: all .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Zoomable / Lightbox */
.zoomable { cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.zoomable:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.2); }

.zoom-hint {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity .2s ease;
}
.zoomable:hover .zoom-hint { opacity: 1; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 40px;
  animation: lb-in .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-size: 28px; line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* Responsive helpers */
@media (max-width: 768px) {
  .display { line-height: 1; }
}
