/* Protocolo de Denuncias — Defensa del Consumidor Jujuy
   Sistema visual compartido con DConsumidor_web: vino #542141 + naranja #E87722. */

:root {
  --plum-950: #2a0d20;
  --plum-900: #3a132e;
  --plum-800: #4a1a39;
  --plum: #542141;
  --plum-600: #6b2e55;
  --orange: #e87722;
  --orange-600: #cf6512;
  --orange-ink: #b8560c;
  --orange-soft: #fbe3ce;
  --cream: #fbf7f4;
  --paper: #ffffff;
  --ink: #221a20;
  --muted: #6b5a64;
  --line: #eadfe4;
  --green: #128453;
  --blue: #176ab1;
  --red: #d94850;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(42, 13, 32, 0.35);
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--plum);
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--plum);
  color: #fff;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container,
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand img {
  height: 42px;
  width: auto;
}

.navlinks {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navlinks a:hover {
  background: var(--cream);
  color: var(--plum);
  text-decoration: none;
}

.navlinks a.active {
  background: var(--plum);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-link:hover {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .brand img {
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .page-link {
    padding: 0 10px;
    font-size: 0.74rem;
  }
}

/* ===== Hero ===== */
.hero,
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(232, 119, 34, 0.2), transparent 62%),
    linear-gradient(135deg, var(--plum-950) 0%, var(--plum-900) 42%, var(--plum) 100%);
}

.landing-hero {
  padding: clamp(36px, 6vw, 76px) 0 clamp(56px, 7vw, 88px);
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.orb-a {
  width: 620px;
  height: 620px;
  right: -180px;
  top: -240px;
}

.orb-b {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -160px;
}

.orb-c {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: -120px;
  background: rgba(232, 119, 34, 0.08);
}

.hero .wrap,
.landing-hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: clamp(0.68rem, 1.1vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
  .eyebrow {
    white-space: nowrap;
  }
}

.hero-logo {
  width: clamp(170px, 24vw, 300px);
  height: auto;
  margin-top: 14px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28));
}

.hero h1,
.landing-hero h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--orange);
}

.landing-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.hero p:not(.eyebrow),
.landing-hero p:not(.eyebrow) {
  max-width: 64ch;
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255, 255, 255, 0.84);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: var(--plum-950);
}

.btn-orange:hover {
  background: var(--orange-600);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-plum {
  background: var(--plum);
  color: #fff;
}

.btn-plum:hover {
  background: var(--plum-900);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat::before {
  content: "✓";
  color: var(--orange);
  font-weight: 800;
}

/* ===== Main / toolbar ===== */
main {
  padding-bottom: 64px;
}

.toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -30px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.toolbar input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}

.progress {
  flex: 1 1 220px;
  max-width: 300px;
  font-size: 0.82rem;
  color: var(--muted);
}

.bar {
  height: 7px;
  margin-top: 6px;
  background: #efe6ec;
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.25s ease;
}

/* ===== Sections ===== */
.section {
  padding-top: 56px;
  scroll-margin-top: 90px;
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--plum);
}

.section > p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* steps */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.step {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -20px rgba(42, 13, 32, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 119, 34, 0.5);
}

.step button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-weight: 800;
}

.stepname {
  flex: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--plum);
}

.chev {
  color: var(--orange);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.step[aria-expanded="false"] .chev {
  transform: rotate(-90deg);
}

.detail {
  padding: 0 18px 18px 74px;
  color: #4e4050;
}

.detail p {
  margin: 0 0 12px;
}

.complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}

.complete input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.step[aria-expanded="false"] .detail {
  display: none;
}

.empty {
  display: none;
  padding: 22px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

/* alternatives */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--plum);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card.green {
  border-top: 5px solid var(--green);
}

.card.orange {
  border-top: 5px solid var(--orange);
}

.card.blue {
  border-top: 5px solid var(--blue);
}

.card.red {
  border-top: 5px solid var(--red);
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--cream);
  color: var(--orange-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* two columns / panels */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  color: var(--plum);
}

.panel ul {
  margin: 0;
  padding-left: 20px;
}

.panel li {
  margin: 9px 0;
  color: #4e4050;
}

.panel a {
  font-weight: 600;
}

/* contact */
.contact {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--plum-900), var(--plum));
  color: #fff;
}

.contact h2 {
  color: #fff;
}

.contact a {
  color: #fff;
}

.contact .pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(232, 119, 34, 0.18);
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 26px 0;
  background: var(--plum-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-credit-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit-logo {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 8px;
  background: #fff;
}

.footer-credit-logo img {
  height: 24px;
  width: auto;
}

/* ===== Landing page ===== */
.landing {
  padding-bottom: 72px;
}

.protocol-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: center;
  margin-top: -42px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.protocol-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(42, 13, 32, 0.5);
  text-decoration: none;
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.protocol-cta h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  color: var(--plum);
}

.protocol-cta p {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--plum-950);
  font-weight: 800;
  font-size: 0.95rem;
}

.cta-visual {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--plum-900), var(--plum));
  color: #fff;
  text-align: center;
}

.cta-visual strong {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--orange);
}

.cta-visual span {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.highlight {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.highlight strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  color: var(--plum);
}

.highlight span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid,
  .two,
  .protocol-cta {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .highlights {
    grid-template-columns: 1fr 1fr;
  }

  .navlinks {
    display: none;
  }

  .cta-visual {
    min-height: 150px;
  }
}

@media (max-width: 600px) {
  .cards,
  .highlights {
    grid-template-columns: 1fr;
  }

  .detail {
    padding-left: 18px;
  }

  .toolbar input {
    min-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Print ===== */
@media print {
  .site-header,
  .toolbar,
  .actions,
  .complete,
  .chev,
  .skip-link {
    display: none !important;
  }

  .hero,
  .landing-hero {
    padding: 20px;
    background: #fff !important;
    color: #000 !important;
  }

  .hero p,
  .landing-hero p {
    color: #333 !important;
  }

  .hero h1,
  .landing-hero h1 {
    color: #000 !important;
  }

  main {
    margin: 0;
  }

  .step[aria-expanded="false"] .detail {
    display: block;
  }

  .step,
  .card,
  .panel {
    break-inside: avoid;
  }

  .section {
    padding-top: 20px;
  }

  body {
    background: #fff;
  }
}
