@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

:root{
  --bg: #1EA498;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.58);
  --border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.35);

  --accent: #1EA498;   /* verde/teal */
  --accent-2: #144E9D; /* azul */
  --focus: 0 0 0 3px rgba(74,163,255,.35);

  --radius: 18px;
  --radius-sm: 12px;

  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(35,199,167,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(74,163,255,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 95%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
}

a{ color: var(--accent-2); text-decoration: none; }
a:hover{ text-decoration: none; }
a:focus-visible{ outline:none; box-shadow: var(--focus); border-radius: 8px; }

.container{
  max-width: var(--max);
  padding: 0 18px;
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top: 12px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(20, 78, 157, .86), rgba(20, 78, 157, .55));
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.brand-mark{
  width: 14px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(35,199,167,.22);
}
.brand-name{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand-subtitle{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.header-actions{ display:flex; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(35,199,167,.18);
  background: linear-gradient(180deg, rgba(35,199,167,.20), rgba(35,199,167,.08));
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover{ text-decoration:none; filter: brightness(1.03); }
.btn:focus-visible{ outline:none; box-shadow: var(--focus); }

.btn-ghost{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
}

.layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 18px 0 48px;
}

.toc-card{
  position: sticky;
  top: 88px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}

.toc-title{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.toc ol{ margin: 0; padding-left: 18px; }
.toc li{ margin: 6px 0; }
.toc a{ color: var(--text); text-decoration: none; }
.toc a:hover{ color: var(--accent); text-decoration: none; }

.toc-note{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.content{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero{
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

h1,h2,h3{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  line-height: 1.22;
  margin: 0 0 10px;
}
h1{ font-size: clamp(24px, 2.4vw, 34px); }
h2{ font-size: clamp(18px, 1.8vw, 24px); margin-top: 18px; }
h3{ font-size: 16.5px; color: rgba(255,255,255,.9); margin-top: 14px; }

.lead{
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 68ch;
}

.doc p{ margin: 10px 0; color: rgba(255,255,255,.88); }
.doc ul{ margin: 10px 0 12px; padding-left: 22px; }
.doc li{ margin: 6px 0; color: rgba(255,255,255,.88); }

.section{ padding-top: 2px; }

.callout{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74,163,255,.22);
  background: linear-gradient(180deg, rgba(74,163,255,.12), rgba(74,163,255,.06));
  color: rgba(255,255,255,.92);
}
.callout strong{ color: #d7f1ff; }

.toc-inline{
  margin: 10px 0 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.toc-inline ul{ margin: 0; padding-left: 18px; }
.toc-inline li{ margin: 6px 0; }

.toc-mobile{
  display:none;
  margin: 12px 0 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 10px 12px;
}
.toc-mobile summary{
  cursor: pointer;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.toc-mobile ol{ margin: 10px 0 0; padding-left: 18px; }
.toc-mobile li{ margin: 6px 0; }
.toc-mobile a{ color: var(--text); }

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(20, 78, 157, .7);
  padding: 16px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-title{
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-weight: 700;
}
.footer-sep{ color: var(--muted-2); margin: 0 8px; }
.footer-muted{ color: var(--muted); }
.footer-inner a { color: #fff !important; }

/* Extras específicos para Estándares EASI (manteniendo estética original) */
.meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
  font-weight: 600;
}

.steps{
  margin: 10px 0 12px;
  padding-left: 22px;
}
.steps li{
  margin: 8px 0;
  color: rgba(255,255,255,.88);
}

.contact-card{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(35,199,167,.22);
  background: linear-gradient(180deg, rgba(35,199,167,.10), rgba(35,199,167,.05));
}

.meta-note{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .toc{ display:none; }
  .toc-mobile{ display:block; }
  .content{ padding: 18px; }
}

@media print{
  body{ background: #fff; color: #111; }
  .site-header, .toc, .site-footer, .btn, .toc-mobile { display:none !important; }
  .content{ box-shadow:none; border:none; background: #fff; padding: 0; }
  a{ color: #111; text-decoration: underline; }
}