/* =========================
   CODELCAUCA - Simuladores
   Colores corporativos:
   Azul:  #051B8B / #254DC6
   Verde: #41B04A / #67C035
   ========================= */

:root{
  --blue-900:#051B8B;
  --blue-700:#254DC6;
  --green-700:#41B04A;
  --green-500:#67C035;

  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 12px 30px rgba(2, 6, 23, .10);

  --ring: rgba(37, 77, 198, .35);
  --radius: 18px;
  --radius-sm: 12px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"]{
  --bg: #081028;
  --surface: rgba(255,255,255,.06);
  --text: #eef2ff;
  --muted: rgba(238,242,255,.70);
  --border: rgba(255,255,255,.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, .35);
  --ring: rgba(103, 192, 53, .35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(37,77,198,.22), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(103,192,53,.18), transparent 55%),
    var(--bg);
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto;height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:var(--surface);
  outline:2px solid var(--blue-700);
  z-index:9999;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar__left,
.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar{
  display:flex;
  justify-content:space-between;
  padding:12px 16px;
}

/* Layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px 8px;
}

.hero{
  padding:18px 0 10px;
}
.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  font-weight:650;
  color: color-mix(in srgb, var(--blue-700) 70%, var(--text));
}
.hero__title{
  margin:12px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height:1.1;
  letter-spacing:-.02em;
}
.hero__subtitle{
  margin:0;
  max-width:70ch;
  color:var(--muted);
  font-size: 16px;
  line-height:1.6;
}

/* Grid cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  margin:18px 0 14px;
}

.card{
  grid-column: span 12;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  overflow:hidden;
  position:relative;
}

@media (min-width: 860px){
  .card{ grid-column: span 6; }
}

.card::before{
  content:"";
  position:absolute;
  inset:-2px -2px auto -2px;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-700), var(--green-500));
  opacity:.9;
}

.card--cdat .card__icon{ background: rgba(37,77,198,.12); }
.card--ap .card__icon{ background: rgba(103,192,53,.14); }

.card__icon{
  width:44px; height:44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
  font-size:22px;
}

.card__title{
  margin:12px 0 8px;
  font-size:18px;
  letter-spacing:.02em;
}
.card__text{
  margin:0 0 12px;
  color: var(--muted);
  line-height:1.6;
}

.card__list{
  margin:0 0 16px;
  padding:0 0 0 18px;
  color: var(--muted);
}
.card__list li{ margin:6px 0; }

/* Buttons */
.btn{
  appearance:none;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding:10px 12px;
  font-weight:650;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn--ghost{
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.btn--primary{
  border-color: color-mix(in srgb, var(--blue-700) 40%, var(--border));
  background: linear-gradient(135deg, var(--blue-700), var(--green-700));
  color: white;
  padding:11px 14px;
}
.btn--primary:hover{
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-700) 85%, #ffffff), color-mix(in srgb, var(--green-700) 85%, #ffffff));
}

.btn--icon{
  padding:10px 12px;
}
.btn__icon{ width:22px; text-align:center; }
.btn__text{ min-width:38px; }

/* Note */
.note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding:12px 12px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  margin: 14px 0 26px;
}
.note__dot{
  width:10px; height:10px;
  border-radius: 50%;
  background: var(--green-500);
  margin-top:6px;
  flex:0 0 auto;
}
.note__text{
  margin:0;
  color: var(--muted);
  line-height:1.5;
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding:16px;
}
.footer__inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}
.footer__link{
  color: inherit;
  text-decoration:none;
  border-bottom:1px dotted transparent;
}
.footer__link:hover{
  border-bottom-color: currentColor;
}
.footer__sep{ opacity:.6; }
