/* =====================================================================
   Centro de privacidad Ley 21.719 — mismo sistema visual del sitio
   ===================================================================== */
.ley-page { background: #fff; color: #1d2427; }

.ley-skip {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: #111a1c; color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.ley-skip:focus { left: 8px; }

/* ---------- Hero ---------- */
.ley-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(108, 199, 43, .14) 0%, transparent 60%),
    linear-gradient(180deg, #f6f8f4 0%, #f3f6f1 100%);
  border-bottom: 1px solid #e6eae7;
}
.ley-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: #6b7670; margin-bottom: 1.5rem; }
.ley-crumbs a { color: #3f8f12; font-weight: 600; }
.ley-crumbs a:hover { text-decoration: underline; }
.ley-eyebrow {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(108, 199, 43, .16);
  color: #2f6e0c;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.ley-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #111a1c;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.ley-title span { color: #5bb81f; }
.ley-lead { max-width: 62ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; color: #46525a; margin: 0; }
.ley-meta { margin-top: 1rem; font-size: .85rem; color: #6b7670; }
.ley-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Pestañas entre documentos ---------- */
.ley-tabs-wrap {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6eae7;
}
.ley-tabs { display: flex; gap: .25rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: none; }
.ley-tabs::-webkit-scrollbar { display: none; }
.ley-tabs a {
  flex: 0 0 auto;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: #46525a;
  white-space: nowrap;
}
.ley-tabs a:hover { background: rgba(108, 199, 43, .1); color: #2f6e0c; }
.ley-tabs a.is-active { background: #111a1c; color: #fff; }

/* ---------- Botones ---------- */
.ley-btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.4rem; border-radius: 999px;
  border: 1.5px solid #cfd6d1; color: #1d2427; font-weight: 700;
  background: #fff;
}
.ley-btn-line:hover { border-color: #6cc72b; color: #2f6e0c; }

/* ---------- Documento con índice lateral ---------- */
.ley-doc { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.ley-doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.ley-toc {
  position: sticky;
  top: 140px;
  padding: 1.25rem;
  border: 1px solid #e6eae7;
  border-radius: 16px;
  background: #fff;
}
.ley-toc-title { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7670; margin: 0 0 .75rem; }
.ley-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ley-toc li { counter-increment: toc; }
.ley-toc a {
  display: flex; gap: .55rem;
  padding: .45rem .6rem;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.35;
  color: #46525a;
}
.ley-toc a::before { content: counter(toc); flex: 0 0 1.2em; color: #9aa59f; font-weight: 700; }
.ley-toc a:hover { background: #f3f6f1; color: #1d2427; }
.ley-toc a.is-active { background: rgba(108, 199, 43, .14); color: #2f6e0c; font-weight: 700; }
.ley-toc a.is-active::before { color: #3f8f12; }
.ley-toc-contact { display: block; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e6eae7; font-size: .88rem; font-weight: 700; color: #3f8f12; }

.ley-body { max-width: 780px; }
.ley-body section { scroll-margin-top: 150px; padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid #eef1ee; }
.ley-body section:last-of-type { border-bottom: 0; }
.ley-body h2 {
  display: flex; align-items: baseline; gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.015em;
  color: #111a1c;
  margin: 0 0 1rem;
}
.ley-body h2 .num {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #6cc72b; color: #0e1a07;
  font-size: .9rem; font-weight: 800;
  transform: translateY(-2px);
}
.ley-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #111a1c; margin: 1.25rem 0 .5rem; }
.ley-body p, .ley-body li { font-size: 1rem; line-height: 1.75; color: #3a464d; }
.ley-body p { margin: 0 0 1rem; }
.ley-body ul, .ley-body ol.ley-list { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.ley-body ul li, .ley-body ol.ley-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.ley-body ul li::before {
  content: ""; position: absolute; left: .2rem; top: .7em;
  width: 8px; height: 8px; border-radius: 50%; background: #6cc72b;
}
.ley-body ol.ley-list { counter-reset: li; }
.ley-body ol.ley-list li { counter-increment: li; padding-left: 2.2rem; }
.ley-body ol.ley-list li::before {
  content: counter(li); position: absolute; left: 0; top: .2em;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(108, 199, 43, .16); color: #2f6e0c; font-size: .8rem; font-weight: 800;
}
.ley-body a { color: #3f8f12; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ley-body code { background: #f3f6f1; padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }
.ley-body strong { color: #1d2427; }

/* Ficha de datos */
.ley-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; border: 1px solid #e6eae7; border-radius: 14px; overflow: hidden; margin-bottom: 1rem;
}
.ley-facts div { padding: .9rem 1.1rem; border-bottom: 1px solid #eef1ee; }
.ley-facts div:nth-child(odd) { border-right: 1px solid #eef1ee; }
.ley-facts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7670; }
.ley-facts dd { margin: .2rem 0 0; font-weight: 600; color: #1d2427; }

/* Tablas */
.ley-table-wrap { overflow-x: auto; border: 1px solid #e6eae7; border-radius: 14px; margin: 0 0 1rem; }
.ley-table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.ley-table-wrap th { background: #111a1c; color: #fff; text-align: left; font-weight: 700; padding: .8rem 1rem; }
.ley-table-wrap td { padding: .8rem 1rem; border-top: 1px solid #eef1ee; vertical-align: top; color: #3a464d; line-height: 1.55; }
.ley-table-wrap tr:nth-child(even) td { background: #fafbf9; }

/* Aviso destacado */
.ley-callout {
  display: flex; gap: .9rem;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(108, 199, 43, .1); border: 1px solid rgba(108, 199, 43, .3);
  margin: 0 0 1.25rem;
}
.ley-callout svg { flex: 0 0 22px; width: 22px; height: 22px; color: #3f8f12; margin-top: .15rem; }
.ley-callout p { margin: 0; }

/* Ayuda al final */
.ley-help {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1rem; padding: 1.5rem 1.75rem; border-radius: 18px;
  background: #111a1c; color: #fff;
}
.ley-help strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.ley-help p { color: rgba(255, 255, 255, .75); margin: .25rem 0 0; }
.ley-help-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ley-help .ley-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); text-decoration: none; }
.ley-help .ley-btn-line:hover { border-color: #6cc72b; color: #8fdc4c; }
.ley-help .btn.primary { text-decoration: none; }

/* ---------- Centro (index) ---------- */
.ley-section { padding: clamp(48px, 6vw, 88px) 0; }
.ley-section--soft { background: #f5f7f4; }
.ley-section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.ley-section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; color: #111a1c; margin: 0 0 .6rem; }
.ley-section-head h2 span { color: #5bb81f; }
.ley-section-head p { color: #56616a; font-size: 1.05rem; line-height: 1.6; margin: 0; }

.ley-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ley-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.6rem; border-radius: 18px;
  border: 1px solid #e6eae7; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.ley-card:hover { transform: translateY(-3px); border-color: rgba(108, 199, 43, .5); box-shadow: 0 18px 40px rgba(17, 26, 28, .08); }
.ley-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #6cc72b; color: #fff; margin-bottom: .5rem;
  box-shadow: 0 10px 22px rgba(108, 199, 43, .3);
}
.ley-card-icon svg { width: 24px; height: 24px; }
.ley-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #111a1c; margin: 0; }
.ley-card p { color: #56616a; line-height: 1.6; margin: 0; flex: 1; }
.ley-card-more { margin-top: .75rem; font-weight: 700; color: #3f8f12; }
button.ley-card { text-align: left; font: inherit; cursor: pointer; }

.ley-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.ley-principle { padding: 1.4rem; border-radius: 16px; background: #fff; border: 1px solid #e6eae7; }
.ley-principle h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #111a1c; margin: 0 0 .35rem; display: flex; align-items: center; gap: .5rem; }
.ley-principle h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #6cc72b; }
.ley-principle p { color: #56616a; font-size: .95rem; line-height: 1.55; margin: 0; }

.ley-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ley-step { position: relative; padding: 1.5rem; border-radius: 16px; background: #111a1c; color: #fff; }
.ley-step-date { display: inline-block; font-weight: 800; color: #8fdc4c; font-size: .95rem; margin-bottom: .4rem; }
.ley-step h3 { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 .35rem; }
.ley-step p { color: rgba(255, 255, 255, .75); margin: 0; font-size: .95rem; line-height: 1.55; }

/* ---------- Formulario de derechos ---------- */
.ley-form { padding: 1.75rem; border-radius: 18px; border: 1px solid #e6eae7; background: #fff; box-shadow: 0 10px 30px rgba(17, 26, 28, .05); margin-bottom: 2rem; }
.ley-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.ley-field { display: flex; flex-direction: column; gap: .4rem; }
.ley-field.full { grid-column: 1 / -1; }
.ley-field label { font-weight: 700; font-size: .92rem; color: #1d2427; }
.ley-field label .req { color: #c2410c; }
.ley-field input, .ley-field select, .ley-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #1d2427;
  padding: .8rem .95rem; border-radius: 12px; border: 1.5px solid #d7ddd9; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ley-field textarea { min-height: 140px; resize: vertical; }
.ley-field input:focus, .ley-field select:focus, .ley-field textarea:focus { outline: none; border-color: #6cc72b; box-shadow: 0 0 0 4px rgba(108, 199, 43, .18); }
.ley-field .hint { font-size: .82rem; color: #6b7670; }
.ley-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; line-height: 1.55; color: #3a464d; }
.ley-check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: #3f8f12; flex: 0 0 auto; }
.ley-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ley-form .btn.primary { border: 0; cursor: pointer; text-decoration: none; }
.ley-alert { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.25rem; line-height: 1.6; }
.ley-alert--ok { background: rgba(108, 199, 43, .12); border: 1px solid rgba(108, 199, 43, .4); color: #24560a; }
.ley-alert--err { background: #fff4ed; border: 1px solid #fdba8c; color: #9a3412; }
.ley-alert strong { color: inherit; }

/* ---------- Footer ---------- */
.ley-footer { background: #111a1c; color: rgba(255, 255, 255, .72); padding: clamp(40px, 5vw, 64px) 0 1.5rem; margin: 0; }
.ley-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; }
.ley-footer h3 { font-family: var(--font-display); color: #fff; font-size: 1.5rem; margin: 0 0 .6rem; }
.ley-footer h3 span { color: #6cc72b; }
.ley-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.ley-footer p { margin: 0 0 .6rem; line-height: 1.6; }
.ley-footer section a { display: block; color: rgba(255, 255, 255, .72); padding: .2rem 0; }
.ley-footer a:hover { color: #8fdc4c; }
.ley-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.ley-footer-bottom p { margin: 0; }
.ley-footer-bottom a { color: rgba(255, 255, 255, .8); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ley-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ley-tabs-wrap { top: 64px; }
  .ley-doc-grid { grid-template-columns: 1fr; }
  .ley-toc { position: static; }
  .ley-cards, .ley-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ley-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ley-cards, .ley-timeline, .ley-principles, .ley-form-grid, .ley-facts { grid-template-columns: 1fr; }
  .ley-facts div:nth-child(odd) { border-right: 0; }
  .ley-footer-grid { grid-template-columns: 1fr; }
  .ley-form { padding: 1.25rem; }
  .ley-help { padding: 1.25rem; }
}
.ley-toc a.ley-toc-contact { display: block; padding: 1rem 0 0; border-radius: 0; background: none; color: #3f8f12; }
.ley-toc a.ley-toc-contact::before { content: none; }
@media (max-width: 960px) {
  .ley-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .ley-toc { display: none; }
  .ley-body { max-width: none; }
}

/* Verificación humana */
.ley-captcha {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f5f7f4;
  border: 1px dashed #c9d6c4;
}
.ley-captcha-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ley-captcha-row input { width: 170px; flex: 0 0 auto; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* Confirmación por correo */
.ley-confirm h3 { margin-top: 0; }
.ley-confirm form { margin: 1rem 0 .75rem; }
.ley-devlink { margin-top: .75rem; padding: .6rem .8rem; border-radius: 10px; background: #fff7e6; border: 1px dashed #f0b44c; color: #7a4b00; font-size: .9rem; }
.ley-devlink a { color: #7a4b00; }

/* ---------- Página de contacto ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.ct-notice { font-size: .85rem; line-height: 1.6; color: #56616a; background: #f5f7f4; border-radius: 12px; padding: .9rem 1rem; margin: 0 0 .75rem; }
.ct-notice a { color: #3f8f12; font-weight: 600; }
.ley-form .ley-check + .ley-check { margin-top: .5rem; }
.ct-submit { flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ct-submit .btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.ct-pow { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: #6b7670; }
.ct-pow-dot { width: 10px; height: 10px; border-radius: 50%; background: #f0b44c; animation: ctPulse 1s ease-in-out infinite; }
.ct-pow.is-ok { color: #2f6e0c; font-weight: 700; }
.ct-pow.is-ok .ct-pow-dot { background: #6cc72b; animation: none; }
@keyframes ctPulse { 50% { opacity: .35; } }
.ct-info { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }
.ct-wa { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: #22c55e; color: #fff; box-shadow: 0 12px 26px rgba(34, 197, 94, .3); transition: transform .2s ease; }
.ct-wa:hover { color: #fff; transform: translateY(-2px); }
.ct-wa svg { width: 36px; height: 36px; flex: 0 0 auto; }
.ct-wa strong { display: block; font-size: 1.05rem; }
.ct-card { padding: 1.4rem; border-radius: 16px; border: 1px solid #e6eae7; background: #fff; }
.ct-card h3 { font-family: var(--font-display); font-size: 1rem; color: #111a1c; margin: 0 0 .3rem; }
.ct-card h3:not(:first-child) { margin-top: 1rem; }
.ct-card p { margin: 0 0 .5rem; color: #46525a; line-height: 1.6; }
.ct-card a { color: #3f8f12; font-weight: 600; }
.ct-map { display: inline-block; margin-top: .25rem; }
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-info { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ct-pow-dot { animation: none; } }
