/* OAJ.CL — Pro redesign (inspired by clean NGO sites like probono.cl)
   Keep existing class names to avoid breaking PHP structure/functionality.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f6f8fb;
  --paper:#ffffff;
  --ink:#0b1220;
  --muted:#516074;
  --line:#e6edf5;

  --primary:#1b4dd8;
  --primary-2:#2a6bff;
  --accent:#16a34a;
  --danger:#dc2626;

  --radius:16px;
  --radius-sm:12px;
  --shadow: 0 14px 40px rgba(11,18,32,.08);
  --shadow-sm: 0 10px 24px rgba(11,18,32,.07);

  --max: 1120px;

  --h1: clamp(34px, 4vw, 52px);
  --h2: clamp(22px, 2.6vw, 30px);
}

*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(27,77,216,.10), transparent 55%),
    radial-gradient(800px 450px at 85% 10%, rgba(22,163,74,.09), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}

/* Accessibility */
.skip{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:18px;top:14px;width:auto;height:auto;
  background:var(--paper);padding:10px 12px;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow);z-index:999;
}

/* Header */
header{
  position:sticky;top:0;z-index:50;
  background: rgba(246,248,251,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(230,237,245,.9);
}
.nav{
  height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:12px;min-width: 220px}
.logo{
  width:44px;height:44px;border-radius:14px;
  background:linear-gradient(135deg, rgba(27,77,216,.95), rgba(42,107,255,.72));
  display:grid;place-items:center;
  box-shadow: 0 12px 26px rgba(27,77,216,.18);
}
.logo svg{width:20px;height:20px;color:#fff}
.brand b{font-size:15px;letter-spacing:.2px}
.brand small{display:block;color:var(--muted);font-weight:600;margin-top:2px}

nav ul{display:flex;gap:6px;list-style:none;margin:0;padding:0;align-items:center}
nav a{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:999px;
  color: rgba(11,18,32,.82);
  font-weight:600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
nav a svg{width:18px;height:18px;opacity:.85}
nav a:hover{
  background: rgba(27,77,216,.06);
  color: rgba(11,18,32,.95);
}
nav a[aria-current="page"]{
  background: rgba(27,77,216,.10);
  color: rgba(11,18,32,.98);
}

.actions{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  letter-spacing:.1px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn svg{width:18px;height:18px}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff;
  box-shadow: 0 16px 32px rgba(27,77,216,.22);
}
.btn.ghost{
  background: rgba(255,255,255,.7);
  border-color: rgba(230,237,245,.95);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover{filter: brightness(0.99)}

.hamburger{
  display:none;
  width:44px;height:44px;border-radius:12px;border:1px solid rgba(230,237,245,.95);
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
}
.hamburger svg{width:20px;height:20px}
.hamburger:active{transform: translateY(1px)}

/* Mobile menu */
.mobile{
  display:none;
  padding:12px 0 18px;
}
.mobile .stack{
  display:flex;flex-direction:column;gap:8px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(230,237,245,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
}
.mobile a{
  padding:12px 12px;border-radius:12px;
  color: rgba(11,18,32,.86);
  font-weight:650;
  display:flex;align-items:center;justify-content:space-between;
}
.mobile a:hover{background: rgba(27,77,216,.06)}
.mobile a span{color: rgba(11,18,32,.35)}
.mobile.show{display:block}

/* Hero */
.hero{padding: 42px 0 10px}
.heroPhoto{
  position:relative;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230,237,245,.9);
  background: url("hero.png") center/cover no-repeat;
  min-height: 420px;
}
.heroPhotoOverlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(11,18,32,.86) 0%, rgba(11,18,32,.72) 45%, rgba(11,18,32,.26) 100%),
    linear-gradient(180deg, rgba(11,18,32,.25), rgba(11,18,32,.55));
}
.heroPhotoGrid{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  padding: 34px;
  align-items: end;
}
.heroPhotoCopy{max-width: 62ch}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  /* ✅ Default (páginas interiores / fondo claro) */
  color: rgba(11,18,32,.92);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(2, 6, 23, .08);
  font-weight:650;
  backdrop-filter: blur(6px);
}
.badge svg{width:18px;height:18px}

/* ✅ Badge sobre el hero oscuro de la portada */
.heroPhotoGrid .badge{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.heroTitle{
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  color: #fff;
}
.heroLead{
  margin:0 0 16px;
  color: rgba(255,255,255,.86);
  line-height: 1.6;
  font-size: 1.05rem;
}
.heroCtas{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.heroCtas .btn.ghost{background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color:#fff; box-shadow:none}
.heroCtas .btn.ghost:hover{background: rgba(255,255,255,.14)}
.trustStrip{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.tsItem{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 14px 14px;
  backdrop-filter: blur(6px);
}
.tsItem .num{
  font-weight:800;
  font-size: 1.35rem;
  color:#fff;
}
.tsItem .sub{color: rgba(255,255,255,.82); margin-top:4px; font-weight:600}

/* Sections */
.section-title{
  font-size: var(--h2);
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}
.lead{color: var(--muted); line-height:1.75; max-width: 70ch; margin: 0 0 18px}

/* Inner page hero typography */
.container.hero h1{
  font-size: var(--h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}

.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, minmax(0,1fr));
  margin-top: 14px;
}
.card{
  grid-column: span 4;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(230,237,245,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px;
}
.card .icon{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(27,77,216,.08);
  border: 1px solid rgba(27,77,216,.12);
  margin-bottom: 10px;
}
.card .icon svg{width:20px;height:20px;color: var(--primary)}
.card b{display:block;margin-bottom:6px}
.card p{margin:0;color: var(--muted); line-height:1.7}

.panel{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(230,237,245,.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 22px 0;
}

.callout{
  background: linear-gradient(135deg, rgba(27,77,216,.10), rgba(22,163,74,.08));
  border: 1px solid rgba(230,237,245,.95);
  border-radius: 22px;
  padding: 18px;
}

/* Steps */
.steps{display:grid;gap:12px;margin-top:12px}
.step{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(230,237,245,.95);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.step b{display:block;margin-bottom:6px}
.step p{margin:0;color:var(--muted);line-height:1.7}

/* Forms */
.form{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(230,237,245,.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,237,245,.95);
  background: rgba(255,255,255,.95);
  outline: none;
  font-size: 1rem;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus{
  border-color: rgba(27,77,216,.35);
  box-shadow: 0 0 0 4px rgba(27,77,216,.10);
}
.form textarea{
  width:100%;
  display:block;
  margin-top: 10px;
  font-size: 16px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,237,245,.95);
  background: rgba(255,255,255,.95);
  outline: none;
  font-family: inherit;
  line-height: 1.55;
  min-height: 190px;
  resize: vertical;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.form textarea:focus{
  border-color: rgba(27,77,216,.35);
  box-shadow: 0 0 0 4px rgba(27,77,216,.10);
}
.form .input.required{
  border-color: rgba(27,77,216,.35);
  box-shadow: 0 0 0 4px rgba(27,77,216,.08);
}
.hint{color: var(--muted); font-size: .92rem; line-height: 1.55}

/* Tipo (Denuncia / Solicitud) */
.typeRow{display:flex;align-items:center;gap:10px;flex-wrap:wrap; margin: 6px 0 8px}
.typeLabel{font-weight:750; color: rgba(11,18,32,.82)}
.typeToggle{display:flex;gap:10px;flex-wrap:wrap}
.typeBtn{
  position: relative;
  display:inline-flex;
  align-items:center;
}
.typeBtn input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.typeBtn span{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230,237,245,.95);
  background: rgba(255,255,255,.78);
  cursor:pointer;
  font-weight:700;
  color: rgba(11,18,32,.78);
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.typeBtn input:checked + span{
  border-color: rgba(27,77,216,.38);
  box-shadow: 0 0 0 4px rgba(27,77,216,.10);
  background: rgba(27,77,216,.06);
  color: rgba(11,18,32,.88);
}
.typeBtn input:focus-visible + span{
  box-shadow: 0 0 0 4px rgba(27,77,216,.14);
}

.alert{
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(230,237,245,.95);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.alert.success{border-color: rgba(22,163,74,.28); background: rgba(22,163,74,.08)}
.alert.warn{border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.06)}
.hr{height:1px;background: rgba(230,237,245,.95); margin: 18px 0}

/* Footer */
.foot{
  margin-top: 36px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(230,237,245,.95);
  color: rgba(11,18,32,.75);
}
.foot .tiny{font-size: .92rem; color: rgba(11,18,32,.62)}
.foot .stack{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.foot a{color: rgba(11,18,32,.78); font-weight:650}
.foot a:hover{color: rgba(11,18,32,.92)}

/* Responsive */
@media (max-width: 980px){
  /* Prevent horizontal overflow on mobile header */
  nav{display:none}
  .container.hero{padding: 28px 0 8px}
  .container.hero .lead{margin: 10px 5px 18px; font-size: 1.02rem}
  .actions{display:none}
  .brand{min-width:0}
  .nav{gap:10px}
  .hamburger{display:inline-grid;place-items:center}

  .heroPhotoGrid{grid-template-columns: 1fr; align-items:start}
  .trustStrip{grid-template-columns: 1fr; }
  .card{grid-column: span 12;}
}
@media (max-width: 520px){
  .nav{height:72px}
  .input, .form textarea{font-size:16px}
  .brand small{display:none}
  .heroPhoto{min-height: 440px}
  .heroPhotoGrid{padding: 18px}
  .badge{border-radius: 16px}
}

.section-soft {
  background: linear-gradient(180deg, #f7f9fc, #ffffff);
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: #0f172a;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.info-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f172a;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.reach-box{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding: 22px 22px;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  max-width: 980px;
}

.reach-box p{
  margin:0;
  color:#334155;
  font-weight: 400;   /* esto mata el “negrita horrible” */
  line-height: 1.7;
  font-size: 18px;
}
