/* =========================
   Dictamen UDG â€” Landing UI
   ========================= */

   :root{
    --bg: #ffffff;
    --bg-alt: #fbfbfd;
    --text: #0b1220;
    --muted: #5b6475;
    --muted-2: #788197;
    --card: #f3f5f9;
    --card-2: #f6f7fb;
    --border: #e6e9f0;
    --border-strong: #d7dbe6;
  
    --brand: #b0121b;         /* rojo */
    --brand-ink: #8f0f16;
    --accent: #f2c14e;        /* amarillo (sutil) */
  
    --radius: 14px;
    --shadow: 0 10px 25px rgba(15, 23, 42, .06);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, .06);
  
    --max: 1120px;
  }
  
  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.65;
  }
  
  a{ color: inherit; }
  a.inline-link{
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(176,18,27,.25);
  }
  a.inline-link:hover{ border-bottom-color: rgba(176,18,27,.6); }
  
  .container{
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
  }
  
  .skip-link{
    position: absolute;
    left: -999px;
    top: 12px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 10px;
    z-index: 1000;
  }
  .skip-link:focus{ left: 12px; }
  
  /* Topbar */
  .topbar{
    border-top: 2px solid var(--brand);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
  }
  .topbar__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap; /* allow after-state to occupy next row */
  }
  .topbar__label{
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 600;
    color: var(--muted);
  }
  
  /* Countdown */
  .countdown{
    display: flex;
    align-items: baseline;
    gap: 28px;
  }
  .countdown__item{
    text-align: center;
    min-width: 62px;
  }
  .countdown__value{
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
  }
  .countdown__unit{
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
    margin-top: 2px;
  }
  
  /* Sections */
  .section{
    padding: 72px 0;
  }
  .section--alt{
    background: var(--bg-alt);
    border-top: 1px solid rgba(230,233,240,.6);
    border-bottom: 1px solid rgba(230,233,240,.6);
  }
  .section--compact{
    padding: 56px 0 72px;
  }
  
  .section-head{
    text-align: center;
    margin-bottom: 28px;
  }
  .section-title{
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 3.1vw, 36px);
    line-height: 1.1;
    margin: 0 0 8px;
    font-weight: 600;
  }
  .section-subtitle{
    margin: 0;
    color: var(--muted);
    font-size: 15px;
  }
  .kicker{
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--muted-2);
  }
  
  /* Hero */
  .hero{
    padding-top: 64px;
  }
  .hero__inner{
    text-align: center;
  }
  .hero__title{
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.02;
  }
  .hero__title--primary{
    display: block;
    font-size: clamp(42px, 5.2vw, 60px);
    font-weight: 600;
  }
  .hero__title--secondary{
    display: block;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 500;
  }
  .hero__subtitle{
    margin: 0 auto 22px;
    max-width: 740px;
    color: var(--muted);
    font-size: 15px;
  }
  .hero__actions{
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  /* Divider */
  .section-divider{
    width: 120px;
    height: 2px;
    margin: 46px auto 0;
    background: linear-gradient(90deg, transparent, rgba(176,18,27,.35), transparent);
    border-radius: 999px;
  }
  
  /* Buttons */
  .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
    user-select: none;
  }
  .btn:focus-visible{
    outline: 3px solid rgba(242,193,78,.45);
    outline-offset: 2px;
  }
  .btn--primary{
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
    border-color: rgba(176,18,27,.35);
  }
  .btn--primary:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: var(--brand-ink);
  }
  .btn--ghost{
    background: #fff;
    color: var(--text);
    border-color: var(--border-strong);
  }
  .btn--ghost:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  .btn--full{ width: 100%; }
  
  /* Timeline */
  .timeline{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
  }
  .timeline__item{
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 14px;
    align-items: start;
  }
  .timeline__dot{
    width: 8px;
    height: 8px;
    margin-top: 18px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(176,18,27,.12);
  }
  .timeline__card{
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .timeline__date{
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 11px;
    letter-spacing: .08em;
    font-weight: 700;
  }
  .timeline__title{
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
  }
  .timeline__desc{
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  
  .source-card{
    margin-top: 14px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
  }
  .source-card__label{ color: var(--muted); margin-right: 6px; }
  .source-card__link{
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(176,18,27,.25);
  }
  .source-card__link:hover{ border-bottom-color: rgba(176,18,27,.6); }
  
  /* Steps */
  .steps{
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
  }
  .step{
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .step__num{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(176,18,27,.65);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    background: #fff;
    flex: 0 0 auto;
  }
  .step__title{
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
  }
  .step__desc{
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  
  .cta-card{
    margin: 22px auto 0;
    max-width: 860px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .04);
  }
  .cta-card__kicker{
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
  }
  
  /* Grid helpers */
  .grid-2{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    align-items: start;
  }
  .grid-3{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    align-items: start;
  }
  
  /* Checklist cards */
  .check-card{
    background: var(--card-2);
    border: 1px solid var(--border);
    border-top: 2px solid rgba(176,18,27,.55);
    border-radius: var(--radius);
    padding: 18px;
  }
  .check-card__title{
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
  }
  .check-list{
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
  }
  .check-list li{ margin: 6px 0; }
  
  /* Info list */
  .info-list{
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
  }
  .info-item{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: start;
  }
  .info-item__icon{
    width: 34px;
    height: 34px;
    color: rgba(11,18,32,.55);
  }
  .info-item__icon svg{
    width: 34px;
    height: 34px;
  }
  .info-item__title{
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
  }
  .info-item__text{
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  
  /* Scenario cards */
  .scenario-card{
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
  }
  .scenario-card__title{
    margin: 8px 0 10px;
    font-size: 14px;
    font-weight: 700;
  }
  .scenario-list{
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
  }
  .scenario-list li{ margin: 6px 0; }
  
  .pill{
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    border: 1px solid transparent;
  }
  .pill--success{
    background: #e9f7ef;
    border-color: #bfe8cf;
    color: #1a6b3b;
  }
  .pill--neutral{
    background: #eef2f7;
    border-color: #d9e0ea;
    color: #3b465a;
  }
  .pill--warn{
    background: #fff3e1;
    border-color: #ffd9a6;
    color: #7a4a00;
  }
  
  .notice{
    margin-top: 18px;
    background: #f7f7fb;
    border: 1px solid var(--border);
    border-top: 2px solid rgba(176,18,27,.55);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 13px;
  }
  .notice strong{ color: var(--brand); line-height: 1; }
  
  /* Links card */
  .links-card{
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .04);
  }
  .links-card__title{
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
  }
  .links-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
  }
  .links-list a{
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
  }
  .links-list a:hover{ text-decoration: underline; }
  
  /* Form 
  .micro{
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
  }
  .form-card{
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid var(--text);
    border-radius: 12px;
    padding: 18px;
    display: grid;
    gap: 10px;
  }
  .form-card input{
    width: 100%;
    padding: 12px 12px;
    border-radius: 8px;
    border: 2px solid var(--text);
    font-size: 13px;
    outline: none;
  }
  .form-card input:focus{
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(242,193,78,.35);
  }
  .form-note{
    margin: 0;
    min-height: 18px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }*/
  
  /* Footer */
  .footer{
    background: var(--bg-alt);
    color: var(--text);
    padding: 28px 0 34px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
  }
  .footer__inner{
    display: grid;
    gap: 18px;
  }
  .footer__col{
    max-width: 760px;
  }
  .footer__title{
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
  }
  .footer__text{
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
  }
  .footer__bottom{
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
  }
  .footer__meta{
    margin: 0;
    font-size: 12px;
    color: var(--muted);
  }
  
  /* Utilities */
  
  .sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  
  /* =========================
     Responsive hardening
     ========================= */
  
  .countdown{
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 18px;
  }
  .countdown__item{
    min-width: 56px;
  }
  
  /* Evita que el layout se â€œsalgaâ€ en pantallas angostas */
  .timeline__card,
  .check-card,
  .scenario-card,
  .links-card,
  .form-card,
  .cta-card{
    max-width: 100%;
  }
  
  @media (max-width: 980px){
    .container{ width: min(var(--max), calc(100% - 32px)); }
  
    .topbar__inner{
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .countdown{
      width: 100%;
      justify-content: flex-start;
    }
  
    .grid-3{ grid-template-columns: 1fr; }
    .grid-2{ grid-template-columns: 1fr; }
  
    .hero{ padding-top: 54px; }
    .section{ padding: 56px 0; }
  }
  
  @media (max-width: 560px){
    .container{ width: calc(100% - 24px); }
  
    /* Countdown compacto: 2 columnas x 2 filas */
    .countdown{
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 12px;
    }
    .countdown__item{
      min-width: 0;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: #fff;
    }
    .countdown__value{ font-size: 18px; }
    .countdown__unit{ font-size: 10px; }
  
    .hero__actions{
      flex-direction: column;
      align-items: stretch;
    }
    .btn{ width: 100%; }
  
    .timeline__item{
      grid-template-columns: 10px 1fr;
      gap: 12px;
    }
    .timeline__card{ padding: 14px; }
  
    .form-card{ padding: 14px; }
  }
  
  @media (max-width: 380px){
    /* Pantallas ultra pequeÃ±as: countdown en 1 columna */
    .countdown{
      grid-template-columns: 1fr;
    }
  }
  
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .btn{ transition: none; }
  }
  
  /* =========================
     Countdown "published" state
     ========================= */
  
  .topbar__after{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  
  .topbar__afterText{
    font-size: 13px;
    color: var(--muted);
  }
  .topbar__afterText strong{
    color: var(--text);
  }
  
  .topbar__afterActions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .mini-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(176,18,27,.35);
    background: rgba(176,18,27,.92);
    color: #fff;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
  }
  .mini-btn:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: var(--brand-ink);
  }
  .mini-btn:focus-visible{
    outline: 3px solid rgba(242,193,78,.45);
    outline-offset: 2px;
  }
  
  .mini-btn--ghost{
    background: #fff;
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: none;
  }
  .mini-btn--ghost:hover{
    box-shadow: var(--shadow-sm);
    background: #fff;
  }
  
  /* Responsive: en mÃ³vil apila texto + botones */
  @media (max-width: 560px){
    .topbar__after{
      flex-direction: column;
      align-items: flex-start;
    }
    .topbar__afterActions{
      width: 100%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    .mini-btn{
      width: 100%;
    }
  }