/* ADNG Revista Digital — estilos compartidos (kiosco, visor, formularios) */
:root {
  --brand: #1C3553;
  --accent: #91732B;
  --ink: #16202c;
  --muted: #5b6776;
  --line: #e3e7ec;
  --bg: #f4f6f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 32, 52, .12);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.accent:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.wa svg { stroke: #1faa59; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* Modal de contacto */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 18, 30, .6); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card);
  border-radius: 20px; padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.modal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal h2 { margin: 4px 40px 6px 0; font-size: 22px; color: var(--brand); }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lead-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea { font: 400 15px var(--font); padding: 11px 12px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.lead-form textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--muted) !important; }
.check input { width: 18px !important; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check.small { font-size: 13px; }
.hp { position: absolute; left: -5000px; }
.form-error { background: #fdecec; color: #9b1c1c; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.modal.acc .only-cot { display: none; }
.lead-ok { text-align: center; padding: 18px 0 4px; }
.lead-ok h3 { margin: 12px 0 4px; font-size: 22px; color: var(--brand); }
.lead-ok p { color: var(--muted); margin: 0 0 18px; }
.ok-badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, white); color: var(--accent); animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.ok-badge svg { width: 34px; height: 34px; stroke-width: 2.4; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #0e1b2b; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 80; box-shadow: var(--shadow); animation: rise .2s ease; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------------- Kiosco ---------------- */
.kiosk { background: var(--bg); min-height: 100vh; }
.k-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black)); }
.k-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border: 2px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.k-nav { max-width: 1180px; margin: 0 auto; padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.k-nav img { height: 44px; width: auto; }
.k-nav .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.k-nav .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.k-hero-in { max-width: 1180px; margin: 0 auto; padding: 56px 20px 72px; position: relative; z-index: 1; }
.k-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 60%, white); font-weight: 700; margin-bottom: 14px; }
.k-hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px; max-width: 760px; letter-spacing: -.01em; }
.k-hero p { font-size: clamp(15px, 2vw, 18px); max-width: 640px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.55; }
.k-main { max-width: 1180px; margin: -36px auto 0; padding: 0 20px 64px; position: relative; z-index: 2; }
.k-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; box-shadow: 0 2px 8px rgba(16,32,52,.06); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.k-feature { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 36px; align-items: center; background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 36px; text-decoration: none; }
.k-feature .cover { aspect-ratio: var(--ratio, .707); }
.k-feature h2 { font-size: clamp(22px, 3vw, 32px); margin: 8px 0 10px; color: var(--brand); }
.k-feature p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.k-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.k-meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
.k-card { text-decoration: none; display: block; }
.cover { position: relative; border-radius: 6px 12px 12px 6px; overflow: hidden; background: #dfe4ea; aspect-ratio: var(--ratio, .707);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px rgba(16,32,52,.18); transform: perspective(900px) rotateY(0deg); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 60%, transparent); z-index: 1; }
.k-card:hover .cover, .k-feature:hover .cover { transform: perspective(900px) rotateY(-10deg) translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 24px 44px rgba(16,32,52,.26); }
.k-card h3 { font-size: 16px; margin: 14px 0 4px; color: var(--ink); line-height: 1.3; }
.k-card .k-meta { margin: 0; font-size: 12px; }
.k-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.k-foot { border-top: 1px solid var(--line); padding: 26px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.k-foot a { color: var(--brand); }
.empty-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; background: var(--brand); color: #fff; }
.empty-state p { color: rgba(255,255,255,.8); margin: 0 0 16px; }
.empty-logo { height: 54px; width: auto; margin-bottom: 18px; }

@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 18px 18px; }
  .k-feature { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .k-feature .cover { max-width: 240px; margin: 0 auto; }
  .k-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .k-nav img { height: 36px; }
  .k-nav .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
