/* JURIDICA Group - style.css actualizado para SEO local y corrección de hero */
:root{
      --primary:#151b3c;
      --primary-2:#11193d;
      --accent:#ff5a3c;
      --bg:#f3f4f8;
      --card:#ffffff;
      --text:#12192f;
      --muted:#5f677a;
      --border:#dbe2ee;
      --border-soft:#e7ebf3;
      --shadow:0 18px 46px rgba(21,27,60,.08);
      --shadow-soft:0 10px 30px rgba(21,27,60,.06);
      --radius:18px;
      --radius-lg:28px;
      --maxw:1180px;
    }

    html{ scroll-behavior:smooth; }

    body{
      background:
        radial-gradient(circle at top left, rgba(255,90,60,.06), transparent 20%),
        radial-gradient(circle at top right, rgba(21,27,60,.06), transparent 18%),
        var(--bg);
      color: var(--text);
      font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }

    .wrapper{
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 0 16px 48px;
    }

    /* ===== Header actualizado ===== */
    .page > header{
      position: sticky;
      top: 0;
      z-index: 4000;
      isolation: isolate;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(226,232,240,.85);
    }

    .page > header .header-inner{
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 12px 16px;
      display:flex;
      align-items:center;
      justify-content:center !important;
      gap:42px !important;
      flex-wrap:nowrap;
      position: relative;
    }

    .page > header .logo{
      display:flex;
      align-items:center;
      gap:12px;
      flex:0 0 auto !important;
      min-width:0;
      white-space:nowrap;
      text-decoration:none;
    }

    .page > header .logo img{
      width:38px;
      height:38px;
      object-fit:contain;
      flex:0 0 auto;
    }

    .page > header .logo-text{
      display:block;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
      max-width: 62vw;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .18em;
      color: #1b2445;
      text-transform: uppercase;
    }

    .page > header nav{
      display:flex;
      align-items:center;
      gap:18px;
      flex-wrap:nowrap;
      white-space:nowrap;
      flex:0 0 auto;
    }

    .page > header nav a{
      flex:0 0 auto;
      text-decoration:none;
      color:#111827;
      font-size:13px;
      font-weight:650;
      letter-spacing:.01em;
      transition: color .18s ease, opacity .18s ease;
    }

    .page > header nav a:hover{
      color:var(--primary);
      opacity:1;
    }

    .page > header nav .diplomado-link{
      color:var(--accent);
      font-weight:850;
    }

    .page > header nav a.active{
      color: var(--accent);
      border-bottom: 2px solid var(--accent);
      padding-bottom: 4px;
    }

    .launch-badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      min-height:30px;
      padding:7px 12px;
      border:1px solid rgba(255,90,60,.32);
      border-radius:999px;
      background:linear-gradient(135deg, rgba(21,27,60,.96), rgba(36,51,110,.96));
      color:#fff;
      box-shadow:0 10px 24px rgba(21,27,60,.14);
      font-size:11px;
      line-height:1.2;
      font-weight:900;
      letter-spacing:.08em;
      text-transform:uppercase;
      text-align:center;
      white-space:normal;
    }

    .launch-badge::before{
      content:"";
      width:7px;
      height:7px;
      margin-right:8px;
      border-radius:999px;
      background:var(--accent);
      box-shadow:0 0 0 4px rgba(255,90,60,.18);
      flex:0 0 auto;
    }

    .footer-links .launch-badge{
      min-height:28px;
      padding:6px 11px;
      font-size:10.5px;
      box-shadow:none;
    }

    .menu .launch-badge,
    .launch-badge-menu{
      width:100%;
      justify-content:flex-start;
      border-radius:8px;
      padding:10px 12px;
      color:#fff !important;
      -webkit-text-fill-color:#fff;
    }

    .footer-links a.active{
      color: var(--accent);
      border-bottom: 2px solid var(--accent);
      padding-bottom: 4px;
    }

    .page > header .nav-cta{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:10px 14px;
      border-radius:999px;
      border:1px solid rgba(21,27,60,.12);
      background:#fff;
      box-shadow:0 8px 22px rgba(21,27,60,.06);
    }

    .page > header .nav-cta .dot{
      width:8px;
      height:8px;
      border-radius:999px;
      background:#27c26c;
      box-shadow:0 0 0 5px rgba(39,194,108,.12);
      flex:0 0 auto;
    }

    .nav-overlay{
      display:none;
      position: fixed;
      inset: 0;
      background: transparent;
      z-index: 4500;
      pointer-events: none;
      -webkit-tap-highlight-color: transparent;
    }

    .page > header.nav-open ~ .nav-overlay{
      display:block;
    }

    @media (max-width: 960px){
      .page > header .nav-toggle{
        display:flex !important;
        width:40px;
        height:40px;
        border-radius:999px;
        border:1px solid rgba(148,163,184,.7);
        background: rgba(255,255,255,.92);
        align-items:center;
        justify-content:center;
        flex-direction:column;
        gap:4px;
        padding:0;
        cursor:pointer;
        position: relative;
        z-index: 8000;
        -webkit-tap-highlight-color: transparent;
      }

      .page > header .nav-toggle span{
        width:18px;
        height:2px;
        border-radius:999px;
        background:#151b3c;
        display:block;
        transition: transform .18s ease, opacity .18s ease;
      }

      .page > header.nav-open .nav-toggle span:nth-child(1){transform:translateY(4px) rotate(45deg);}
      .page > header.nav-open .nav-toggle span:nth-child(2){opacity:0;}
      .page > header.nav-open .nav-toggle span:nth-child(3){transform:translateY(-4px) rotate(-45deg);}

      .page > header .logo-text{
        max-width: 55vw;
        font-size: .68rem;
        letter-spacing: .12em;
      }

      .page > header nav{
        display:none !important;
        position:absolute;
        top: calc(100% + 10px);
        right: 16px;
        background:#fff;
        border:1px solid rgba(229,231,235,.9);
        border-radius: 18px;
        padding: 14px 14px;
        box-shadow: 0 18px 40px rgba(15,23,42,.16);
        flex-direction:column;
        align-items:flex-start;
        gap: 12px;
        z-index: 7000 !important;
        min-width: 250px;
        white-space: normal;
        pointer-events: auto;
      }

      .page > header.nav-open nav{
        display:flex !important;
      }

      .page > header nav a{
        color:#111827;
        pointer-events: auto;
        font-size:14px;
      }

      .page > header nav .launch-badge{
        width:100%;
        justify-content:flex-start;
        border-radius:12px;
        padding:10px 12px;
      }

      .page > header .nav-cta{
        width:100%;
        justify-content:flex-start;
      }
    }

    /* ===== Hero facelift ===== */
    .hero{
      display:grid;
      grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
      gap: 34px;
      align-items:center;
      padding: 34px 0 18px;
    }

    .pill{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding:8px 14px;
      border-radius:999px;
      border:1px solid #b8c1d0;
      background: rgba(255,255,255,.6);
      color:#5d6678;
      font-size:13px;
      line-height:1;
      margin-bottom:18px;
      box-shadow:0 8px 18px rgba(21,27,60,.04);
    }

    .pill .dot{
      width:10px;
      height:10px;
      border-radius:999px;
      background:var(--accent);
      flex:0 0 auto;
      box-shadow:0 0 0 6px rgba(255,90,60,.10);
    }

    .hero-title{
      margin:0 0 18px;
      font-size: clamp(2.7rem, 5vw, 4.35rem);
      line-height:.96;
      letter-spacing:-.05em;
      color: var(--primary);
      max-width: 760px;
    }

    .highlight{
      color: var(--accent);
    }

    .hero-subtitle{
      margin:0 0 28px;
      color: var(--muted);
      line-height:1.78;
      font-size: clamp(1rem, 1.2vw, 1.08rem);
      max-width: 760px;
    }

    .hero-actions{
      display:flex;
      flex-wrap:wrap;
      gap:14px;
      margin-bottom:24px;
    }

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:56px;
      padding:0 26px;
      border-radius:999px;
      text-decoration:none;
      font-weight:750;
      font-size:15px;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
      cursor:pointer;
    }

    .btn:hover{
      transform: translateY(-1px);
    }

    .btn-primary{
      background: var(--accent);
      color: #fff;
      box-shadow: 0 12px 24px rgba(255,90,60,.24);
      border:1px solid var(--accent);
    }

    .btn-outline{
      background: rgba(255,255,255,.7);
      color: var(--primary);
      border:1px solid #aeb7c8;
      box-shadow:0 8px 20px rgba(21,27,60,.04);
    }

    .hero-badges{
      display:flex;
      flex-direction:column;
      gap:10px;
      max-width: 760px;
    }

    .hero-badge{
      display:inline-flex;
      align-items:center;
      min-height:32px;
      width: fit-content;
      max-width: 100%;
      border:1px dashed #b8c1d0;
      color:#647084;
      border-radius:999px;
      padding:0 14px;
      font-size:13px;
      line-height:1.35;
      background: rgba(255,255,255,.45);
    }

    .hero-card{
      background: linear-gradient(180deg, #11193d 0%, #111835 100%);
      color:#fff;
      border-radius: 28px;
      padding: 30px 28px 24px;
      box-shadow: 0 24px 60px rgba(21,27,60,.18);
      position:relative;
      overflow:hidden;
    }

    .hero-card::before{
      content:"";
      position:absolute;
      width:180px;
      height:180px;
      border-radius:50%;
      top:-70px;
      right:-60px;
      background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
      pointer-events:none;
    }

    .hero-card-header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-bottom:18px;
    }

    .hero-card-title{
      font-size: 17px;
      font-weight: 700;
      color: #fff;
    }

    .hero-card-pill{
      border:1px solid rgba(255,255,255,.25);
      border-radius:999px;
      padding:7px 12px;
      color:#fff;
      font-size:13px;
      white-space:nowrap;
      background:rgba(255,255,255,.04);
    }

    .metrics{
      display:grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap:14px;
      margin-bottom:18px;
    }

    .metric{
      border:1px solid rgba(255,255,255,.18);
      border-radius:18px;
      padding:16px 16px 14px;
      background: rgba(8,14,35,.18);
      backdrop-filter: blur(6px);
    }

    .metric-value{
      font-size: 17px;
      font-weight: 800;
      line-height:1.1;
      margin-bottom:4px;
      color:#fff;
    }

    .metric-label{
      color: rgba(255,255,255,.72);
      font-size: 13px;
      line-height:1.28;
    }

    .hero-card-list{
      display:flex;
      flex-direction:column;
      gap:8px;
      margin-top:8px;
    }

    .hero-card-list span{
      position:relative;
      display:block;
      padding-left:16px;
      color: rgba(255,255,255,.88);
      line-height:1.45;
    }

    .hero-card-list span::before{
      content:"";
      position:absolute;
      left:0;
      top:.55em;
      width:7px;
      height:7px;
      border-radius:999px;
      background: var(--accent);
      transform: translateY(-50%);
    }

    /* ===== Secciones ===== */
    .section-header{
      margin-bottom: 16px;
    }

    .section-title{
      position: relative;
      display: inline-block;
      margin: 0 0 10px;
      font-size: clamp(1.35rem, 2vw, 1.9rem);
      line-height:1.14;
      color: var(--primary);
      font-weight: 800;
      letter-spacing: -.03em;
      padding-bottom: 12px;
    }

    .section-title::after{
      content:"";
      position:absolute;
      left:0;
      bottom:0;
      width:72px;
      height:4px;
      border-radius:999px;
      background: linear-gradient(90deg, var(--accent), #ff8e76);
    }

    .section-subtitle{
      margin:0;
      color: var(--muted);
      line-height:1.72;
      max-width: 980px;
      font-size: 15px;
    }

    .cards-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap:16px;
    }

    .card{
      position:relative;
      display:block;
      background:linear-gradient(180deg,#fff 0%, #fcfcfe 100%);
      border:1px solid rgba(229,231,235,.95);
      border-radius:20px;
      overflow:hidden;
      padding:18px 18px 16px;
      box-shadow: 0 10px 26px rgba(17,24,39,.06);
      transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    }

    .card::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:4px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      opacity:.14;
      transition: opacity .14s ease;
    }

    .card:hover{
      transform: translateY(-3px);
      border-color: rgba(203,213,225,.95);
      box-shadow: 0 18px 40px rgba(15,23,42,.10);
    }

    .card:hover::before{
      opacity:.9;
    }

    .card-label{
      display:inline-flex;
      align-items:center;
      min-height:28px;
      border-radius:999px;
      padding:0 12px;
      background: rgba(255,90,60,.09);
      color: var(--accent);
      font-size: 12px;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-weight:800;
      margin-bottom:12px;
    }

    .card-title{
      font-size: 18px;
      line-height:1.24;
      font-weight:800;
      color: var(--primary);
      margin-bottom:10px;
      letter-spacing:-.02em;
    }

    .card-text{
      color: var(--muted);
      font-size: 14.8px;
      line-height:1.72;
      margin:0;
    }

    /* ===== Instagram section ===== */
    .ig-section{
      margin-top:36px;
      padding:24px 0 0;
    }

    .ig-bar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      flex-wrap:wrap;
      margin: 12px 0 16px;
    }

    .ig-note{
      color:#6b7280;
      font-size:13px;
    }

    .ig-grid{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap:16px;
    }

    @media (min-width: 680px){
      .ig-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .ig-card{
      display:block;
      background:#fff;
      border:1px solid rgba(229,231,235,.9);
      border-radius:18px;
      overflow:hidden;
      box-shadow: 0 10px 26px rgba(17,24,39,.06);
      text-decoration:none;
      color:inherit;
      transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
    }

    .ig-card:hover{
      transform: translateY(-2px);
      border-color: rgba(203,213,225,.95);
      box-shadow: 0 18px 40px rgba(15,23,42,.10);
    }

    .ig-thumb{
      width:100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display:block;
      background:#f3f4f6;
    }

    .ig-meta{
      padding:12px 12px 13px;
    }

    .ig-cap{
      margin:0 0 6px;
      font-size:13px;
      line-height:1.4;
      color:#111827;
      display:-webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow:hidden;
    }

    .ig-date{
      margin:0;
      font-size:12px;
      color:#6b7280;
    }


    /* ===== SEO local integrado sin romper diseño ===== */
    .seo-content{
      margin-top: 42px;
    }

    .seo-grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap:16px;
      margin-top:18px;
    }

    .seo-card,
    .faq-block{
      background:linear-gradient(180deg,#fff 0%, #fcfcfe 100%);
      border:1px solid rgba(229,231,235,.95);
      border-radius:20px;
      box-shadow: 0 10px 26px rgba(17,24,39,.06);
    }

    .seo-card{
      padding:20px 20px 18px;
    }

    .seo-card h3{
      margin:0 0 10px;
      color:var(--primary);
      font-size:18px;
      line-height:1.25;
      letter-spacing:-.02em;
    }

    .seo-card p{
      margin:0;
      color:var(--muted);
      font-size:14.8px;
      line-height:1.72;
    }

    .faq-block{
      margin-top:18px;
      padding:22px 22px 16px;
    }

    .faq-block h2{
      margin:0 0 14px;
      color:var(--primary);
      font-size:clamp(1.25rem, 2vw, 1.7rem);
      letter-spacing:-.03em;
    }

    .faq-block details{
      border-top:1px solid rgba(229,231,235,.95);
      padding:14px 0;
    }

    .faq-block details:first-of-type{
      border-top:0;
    }

    .faq-block summary{
      cursor:pointer;
      color:var(--primary);
      font-weight:800;
      line-height:1.35;
    }

    .faq-block p{
      margin:10px 0 0;
      color:var(--muted);
      line-height:1.72;
      font-size:14.8px;
    }

    @media (max-width: 1024px){
      .hero{
        grid-template-columns:1fr;
      }
      .cards-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }
      .seo-grid{
        grid-template-columns:1fr;
      }
    }

    @media (max-width: 720px){
      .cards-grid{
        grid-template-columns:1fr;
      }
      .metrics{
        grid-template-columns:1fr;
      }
      .hero{
        gap:24px;
        padding-top:24px;
      }
      .hero-title{
        font-size: clamp(2.1rem, 8vw, 3rem);
      }
      .hero-actions{
        flex-direction:column;
        align-items:stretch;
      }
      .btn{
        width:100%;
      }
      .hero-badge{
        width:100%;
        border-radius:16px;
        padding:10px 12px;
      }
      .hero-card{
        padding:22px 18px 18px;
        border-radius:22px;
      }
    }


/* ======================================================
   SEO integrado JURIDICA Group
   Mantiene el contenido SEO dentro del mismo lenguaje visual:
   cards, hover, chips y acordeones.
   ====================================================== */

.seo-integrated{
  margin: 2.8rem 0 0;
}

.seo-integrated .section-header{
  margin-bottom: 1.05rem;
}

.seo-integrated .section-title{
  position: relative;
  display: inline-block;
  margin: 0 0 .55rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.14;
  color: var(--primary, #151b3c);
  font-weight: 800;
  letter-spacing: -.03em;
  padding-bottom: 12px;
}

.seo-integrated .section-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:72px;
  height:4px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--accent, #ff5a3c), #ff8e76);
}

.seo-integrated .section-subtitle{
  margin:0;
  color: var(--muted, #5f677a);
  line-height:1.72;
  max-width: 980px;
  font-size: 15px;
}

.seo-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:1.15rem;
}

.seo-card{
  position:relative;
  display:block;
  background:linear-gradient(180deg,#fff 0%, #fcfcfe 100%);
  border:1px solid rgba(229,231,235,.95);
  border-radius:20px;
  overflow:hidden;
  padding:18px 18px 16px;
  box-shadow: 0 10px 26px rgba(17,24,39,.06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.seo-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: linear-gradient(90deg, var(--primary, #151b3c), var(--accent, #ff5a3c));
  opacity:.14;
  transition: opacity .14s ease;
}

.seo-card:hover{
  transform: translateY(-3px);
  border-color: rgba(203,213,225,.95);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}

.seo-card:hover::before{
  opacity:.9;
}

.seo-card-label{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border-radius:999px;
  padding:0 12px;
  background: rgba(255,90,60,.09);
  color: var(--accent, #ff5a3c);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight:800;
  margin-bottom:12px;
}

.seo-card-title{
  font-size: 18px;
  line-height:1.24;
  font-weight:800;
  color: var(--primary, #151b3c);
  margin-bottom:10px;
  letter-spacing:-.02em;
}

.seo-card-text{
  color: var(--muted, #5f677a);
  font-size: 14.7px;
  line-height:1.68;
  margin:0;
}

.seo-accordion{
  display:grid;
  gap:10px;
  margin-top:1.2rem;
}

.seo-accordion details{
  background:linear-gradient(180deg,#fff,#fbfbfd);
  border:1px solid rgba(229,231,235,.95);
  border-radius:18px;
  box-shadow:0 8px 22px rgba(17,24,39,.045);
  overflow:hidden;
  transition:box-shadow .14s ease, border-color .14s ease;
}

.seo-accordion details[open]{
  border-color:rgba(203,213,225,.95);
  box-shadow:0 14px 30px rgba(15,23,42,.08);
}

.seo-accordion summary{
  cursor:pointer;
  list-style:none;
  padding:15px 18px;
  color:var(--primary,#151b3c);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.seo-accordion summary::-webkit-details-marker{
  display:none;
}

.seo-accordion summary::after{
  content:"+";
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,90,60,.09);
  color:var(--accent,#ff5a3c);
  font-weight:900;
}

.seo-accordion details[open] summary::after{
  content:"–";
}

.seo-accordion p{
  margin:0;
  padding:0 18px 16px;
  color:var(--muted,#5f677a);
  font-size:14.6px;
  line-height:1.68;
}

.seo-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1.05rem;
}

.seo-chip{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 .78rem;
  border-radius:999px;
  color:#647084;
  background:rgba(255,255,255,.55);
  border:1px dashed #b8c1d0;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
}

@media(max-width:1024px){
  .seo-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:720px){
  .seo-card-grid{grid-template-columns:1fr;}
  .seo-integrated{margin-top:2rem;}
}




.idoneidad-strip{
      display:grid;
      grid-template-columns:minmax(0,1fr) 170px;
      gap:24px;
      align-items:center;
      padding:24px 30px;
      border-radius:22px;
      background:linear-gradient(135deg,#081632,#13275d);
      border:1px solid rgba(255,255,255,.12);
      box-shadow:var(--soft);
      color:#fff;
      overflow:hidden;
    }

    .idoneidad-badge{
      display:inline-flex;
      align-items:center;
      padding:7px 13px;
      border-radius:999px;
      background:rgba(255,90,60,.13);
      color:#ffb09f;
      font-size:12px;
      font-weight:900;
      letter-spacing:.12em;
      text-transform:uppercase;
      margin-bottom:12px;
    }

    .idoneidad-strip h2{
      color:#fff;
      margin-bottom:12px;
    }

    .idoneidad-strip p{
      max-width:640px;
      color:rgba(255,255,255,.78);
      margin:0;
    }

    .idoneidad-strip-qr{
      width:150px;
      justify-self:end;
      padding:10px;
      border-radius:22px;
      background:#fff;
      border:1px solid rgba(255,255,255,.35);
      box-shadow:0 14px 34px rgba(0,0,0,.22);
      transition:transform .18s ease, box-shadow .18s ease;
      cursor:pointer;
      -webkit-tap-highlight-color:transparent;
    }

    .idoneidad-strip-qr:hover,
    .idoneidad-strip-qr:focus-within{
      transform:translateY(-6px) scale(1.04);
      box-shadow:0 24px 54px rgba(0,0,0,.30);
    }

    .idoneidad-strip-qr:active{
      transform:translateY(-3px) scale(1.02);
      box-shadow:0 20px 46px rgba(0,0,0,.28);
    }

    .idoneidad-strip-qr img{
      width:100%;
      height:auto;
      display:block;
      border-radius:16px;
    }

    @media(max-width:720px){
      .idoneidad-strip{
        grid-template-columns:1fr;
        text-align:center;
        padding:24px 20px;
      }

      .idoneidad-strip p{
        margin:0 auto;
      }

      .idoneidad-strip-qr{
        width:145px;
        margin:0 auto;
        justify-self:center;
      }
    }


/* ===== Public site dashboard refresh ===== */
:root{
  --dash-primary:#151b3c;
  --dash-accent:#ff5a3c;
  --dash-bg:#f4f7fb;
  --dash-card:#ffffff;
  --dash-text:#0f172a;
  --dash-muted:#64748b;
  --dash-border:#dbe3ee;
  --dash-soft:#f8fafc;
  --dash-radius:22px;
  --dash-shadow:0 18px 48px rgba(15,23,42,.09);
  --dash-shadow-soft:0 10px 24px rgba(15,23,42,.045);
}

html{background:var(--dash-bg) !important;}
body{
  color:var(--dash-text) !important;
  background:
    radial-gradient(circle at 8% 10%, rgba(255,90,60,.10), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(21,27,60,.10), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #edf2f7 48%, #f7f8fb 100%) !important;
}

.wrapper,
.container,
.footer-inner{
  max-width:1180px !important;
}

.btn,
button:not(.nav-toggle),
input[type="submit"],
input[type="button"]{
  border-color:var(--dash-border) !important;
  border-radius:12px !important;
  box-shadow:0 8px 18px rgba(15,23,42,.04) !important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

.btn:hover,
button:not(.nav-toggle):hover,
input[type="submit"]:hover,
input[type="button"]:hover{
  transform:translateY(-1px) !important;
  border-color:#cbd5e1 !important;
  box-shadow:0 12px 24px rgba(15,23,42,.08) !important;
}

.btn-primary,
.btn.primary,
button.primary,
input[type="submit"]{
  color:#fff !important;
  border-color:transparent !important;
  background:linear-gradient(135deg, var(--dash-primary), #26366f) !important;
}

.btn-outline,
.btn.secondary,
.btn:not(.btn-primary):not(.primary),
button:not(.nav-toggle):not(.primary):not([type="submit"]){
  color:var(--dash-primary) !important;
  background:#fff !important;
}

.hero,
.hero-section,
.contact-hero,
.service-hero,
.cid-hero{
  padding-top:32px !important;
}

.hero-card,
.card,
.service-card,
.contact-card,
.info-card,
.feature-card,
.trust-card,
.faq-item,
.panel,
.box,
.metric,
.ig-card,
.tool-card,
.case-card,
.cta-box,
.cta-card,
form,
.contact-form,
.contact-info,
.map-card,
.office-card{
  position:relative !important;
  border-color:var(--dash-border) !important;
  background:rgba(255,255,255,.90) !important;
  border-radius:var(--dash-radius) !important;
  box-shadow:var(--dash-shadow) !important;
  backdrop-filter:blur(10px) !important;
  -webkit-backdrop-filter:blur(10px) !important;
}

.card,
.service-card,
.contact-card,
.info-card,
.feature-card,
.trust-card,
.faq-item,
.panel,
.box,
.ig-card,
.tool-card,
.case-card,
.cta-box,
.cta-card,
.contact-form,
.contact-info,
.map-card,
.office-card{
  overflow:hidden !important;
}

.card::before,
.service-card::before,
.contact-card::before,
.info-card::before,
.feature-card::before,
.trust-card::before,
.faq-item::before,
.panel::before,
.box::before,
.tool-card::before,
.case-card::before,
.cta-box::before,
.cta-card::before,
.contact-form::before,
.contact-info::before,
.office-card::before{
  content:"" !important;
  position:absolute !important;
  inset:14px auto 14px 0 !important;
  width:4px !important;
  border-radius:999px !important;
  background:var(--dash-accent) !important;
  opacity:1 !important;
}

.hero-card{
  color:var(--dash-text) !important;
  background:rgba(255,255,255,.92) !important;
}

.hero-card-title,
.hero-card .metric-value,
.metric-value,
h1,
.hero-title,
.section-title,
.card-title,
.service-title,
.contact-title,
.feature-title,
.faq-question,
.cta-title{
  color:var(--dash-primary) !important;
  letter-spacing:0 !important;
}

.hero-subtitle,
.section-subtitle,
.card-text,
.service-text,
.contact-text,
.feature-text,
.metric-label,
.hero-card-list span,
.muted,
p,
li{
  color:var(--dash-muted) !important;
  line-height:1.6 !important;
}

.highlight,
.accent,
main a:not(.btn):not(.logo):not(.nav-cta){
  color:var(--dash-accent) !important;
}

.pill,
.hero-badge,
.hero-card-pill,
.badge,
.tag,
.chip,
.card-label{
  border-color:var(--dash-border) !important;
  background:#fff !important;
  color:var(--dash-muted) !important;
  border-radius:999px !important;
  box-shadow:0 6px 16px rgba(15,23,42,.04) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select{
  border-color:var(--dash-border) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--dash-text) !important;
  transition:border-color .18s ease, box-shadow .18s ease !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus,
select:focus{
  outline:none !important;
  border-color:rgba(255,90,60,.70) !important;
  box-shadow:0 0 0 4px rgba(255,90,60,.12) !important;
}

table,
.table,
.table-wrap,
.gridWrap{
  border-color:var(--dash-border) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:var(--dash-shadow-soft) !important;
}

th{
  color:var(--dash-muted) !important;
  background:#f8fafc !important;
  letter-spacing:.06em !important;
}

td{border-color:#e2e8f0 !important;}

.cards-grid,
.services-grid,
.features-grid,
.contact-grid,
.grid,
.metrics,
.ig-grid{
  gap:14px !important;
}

section,
.public-section{
  scroll-margin-top:88px !important;
}

footer,
.site-footer{
  background:rgba(255,255,255,.92) !important;
  border-top:1px solid rgba(226,232,240,.85) !important;
  color:var(--dash-muted) !important;
  box-shadow:0 -10px 30px rgba(15,23,42,.035) !important;
}

footer a,
.footer-links a{
  color:var(--dash-primary) !important;
}

@media (max-width:720px){
  .hero,
  .cards-grid,
  .services-grid,
  .features-grid,
  .contact-grid,
  .grid,
  .metrics,
  .ig-grid{
    grid-template-columns:1fr !important;
  }
  .wrapper{padding-left:14px !important;padding-right:14px !important;}
  .btn,
  button:not(.nav-toggle),
  input[type="submit"]{width:100% !important;}
}


.public-tools-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:18px;
}
.public-tool-card{
  min-height:154px;
}
.public-tool-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.public-tool-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--dash-border,#dbe3ee);
  border-radius:999px;
  padding:5px 9px;
  background:#fff;
  color:var(--dash-muted,#64748b);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.public-tool-status::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}
.public-tool-status.pending::before{
  background:#f59e0b;
  box-shadow:0 0 0 4px rgba(245,158,11,.13);
}
.public-tool-title{
  color:var(--dash-primary,#151b3c);
  font-size:16px;
  font-weight:900;
  line-height:1.22;
  margin-bottom:8px;
}
.public-tool-text{
  color:var(--dash-muted,#64748b);
  font-size:13px;
  line-height:1.55;
  margin:0;
}


/* Ajuste movil global inspirado en diplomado.html */
*,
*::before,
*::after{
  box-sizing:border-box;
}

img,
video,
canvas,
svg,
iframe{
  max-width:100%;
}

@media (max-width:720px){
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
  }

  body{
    font-size:16px!important;
    line-height:1.55!important;
  }

  .page,
  main,
  .wrapper,
  .container,
  .articles-main,
  .article-shell,
  .footer-inner{
    width:100%!important;
    max-width:100%!important;
  }

  .wrapper,
  .container,
  .articles-main,
  .article-shell,
  .footer-inner{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .page > header .header-inner{
    width:100%!important;
    max-width:100%!important;
    padding:9px 12px!important;
    justify-content:space-between!important;
    gap:10px!important;
  }

  .page > header .logo{
    min-width:0!important;
    max-width:calc(100% - 54px)!important;
  }

  .page > header .logo img{
    width:34px!important;
    height:34px!important;
  }

  .page > header .logo-text{
    max-width:100%!important;
    font-size:10px!important;
    letter-spacing:.08em!important;
  }

  .page > header nav{
    right:12px!important;
    left:12px!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 24px)!important;
  }

  .hero,
  .hero-section,
  .contact-hero,
  .service-hero,
  .cid-hero,
  .library-hero{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
    gap:16px!important;
    padding-top:26px!important;
    padding-bottom:22px!important;
  }

  h1,
  .hero-title{
    font-size:clamp(34px,9vw,42px)!important;
    line-height:1.02!important;
    letter-spacing:0!important;
    overflow-wrap:anywhere;
  }

  h2,
  .section-title{
    font-size:clamp(24px,7vw,30px)!important;
    line-height:1.12!important;
    letter-spacing:0!important;
    overflow-wrap:anywhere;
  }

  h3,
  .card-title,
  .service-title,
  .feature-title,
  .contact-title{
    font-size:clamp(19px,5.4vw,23px)!important;
    line-height:1.18!important;
    overflow-wrap:anywhere;
  }

  p,
  li,
  .hero-subtitle,
  .section-subtitle,
  .card-text,
  .service-text,
  .feature-text,
  .contact-text{
    font-size:15.5px!important;
    line-height:1.55!important;
    overflow-wrap:anywhere;
  }

  .hero-actions,
  .cta-actions,
  .actions,
  .contact-actions,
  .button-row{
    width:100%!important;
    max-width:100%!important;
    gap:9px!important;
  }

  .btn,
  button:not(.nav-toggle),
  input[type="submit"],
  input[type="button"]{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    padding:11px 14px!important;
    border-radius:8px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.25!important;
    font-size:15px!important;
  }

  .pill,
  .hero-badge,
  .badge,
  .tag,
  .chip,
  .filter,
  .launch-badge,
  .whatsapp-pill{
    max-width:100%!important;
    width:auto!important;
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.3!important;
  }

  .hero-badge,
  .whatsapp-pill{
    width:100%!important;
    justify-content:center!important;
  }

  .card,
  .hero-card,
  .service-card,
  .contact-card,
  .info-card,
  .feature-card,
  .trust-card,
  .faq-item,
  .panel,
  .box,
  .ig-card,
  .tool-card,
  .case-card,
  .cta-box,
  .cta-card,
  .contact-form,
  .contact-info,
  .map-card,
  .office-card,
  form{
    width:100%!important;
    max-width:100%!important;
    padding:18px!important;
    border-radius:14px!important;
  }

  .cards-grid,
  .services-grid,
  .features-grid,
  .contact-grid,
  .grid,
  .metrics,
  .ig-grid,
  .seo-card-grid,
  .public-tools-list,
  .article-grid{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .media-frame,
  .image-frame,
  .mockup-frame,
  .screenshot-frame,
  .dashboard-frame,
  .tool-preview,
  figure{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow:hidden!important;
  }

  .media-frame img,
  .image-frame img,
  .mockup-frame img,
  .screenshot-frame img,
  .dashboard-frame img,
  .tool-preview img,
  figure img{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }

  table,
  .table,
  .table-wrap,
  .gridWrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
  }

  section,
  .public-section{
    padding-left:0!important;
    padding-right:0!important;
    scroll-margin-top:72px!important;
  }

  .footer-inner,
  .footer-links{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:10px!important;
  }
}


/* Normalizacion final movil: sin margen nativo ni pildoras cortadas */
html,
body{
  margin:0!important;
  padding:0;
}

@media (max-width:720px){
  .whatsapp-pill{
    margin-left:0!important;
    margin-right:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
}


/* Escala tipografica global uniforme */
:root{
  --type-body:16px;
  --type-small:14px;
  --type-eyebrow:12px;
  --type-h1:clamp(44px,5vw,72px);
  --type-h2:clamp(30px,3vw,44px);
  --type-h3:clamp(21px,2vw,28px);
  --type-lead:18px;
  --type-line:1.6;
  --type-heading-line:1.08;
}

body{
  font-size:var(--type-body)!important;
  line-height:var(--type-line)!important;
  letter-spacing:0!important;
}

h1,
.hero-title,
.article-hero h1,
.library-hero h1{
  font-size:var(--type-h1)!important;
  line-height:var(--type-heading-line)!important;
  letter-spacing:0!important;
}

h2,
.section-title,
.contact-title,
.service-title,
.cta-title,
.article-body h2,
.section-head h2{
  font-size:var(--type-h2)!important;
  line-height:1.12!important;
  letter-spacing:0!important;
}

h3,
.card-title,
.feature-title,
.hero-card-title,
.faq-question,
.public-tool-title{
  font-size:var(--type-h3)!important;
  line-height:1.18!important;
  letter-spacing:0!important;
}

p,
li,
dd,
dt,
label,
input,
textarea,
select,
.card-text,
.service-text,
.contact-text,
.feature-text,
.section-subtitle,
.hero-subtitle,
.article-body p,
.content p,
.content li{
  font-size:var(--type-body)!important;
  line-height:var(--type-line)!important;
  letter-spacing:0!important;
}

.lead,
.hero-copy .lead,
.deck{
  font-size:var(--type-lead)!important;
  line-height:1.58!important;
}

.eyebrow,
.meta,
.card-label,
.badge,
.tag,
.chip,
.filter,
.hero-badge,
.hero-card-pill,
.public-tool-status,
.read{
  font-size:var(--type-small)!important;
  line-height:1.35!important;
  letter-spacing:.04em!important;
}

.btn,
button,
input[type="submit"],
input[type="button"]{
  font-size:15.5px!important;
  line-height:1.25!important;
  letter-spacing:0!important;
}

@media (max-width:720px){
  :root{
    --type-body:16px;
    --type-small:13px;
    --type-eyebrow:12px;
    --type-h1:clamp(34px,9vw,42px);
    --type-h2:clamp(25px,7vw,31px);
    --type-h3:clamp(20px,5.6vw,24px);
    --type-lead:16.5px;
    --type-line:1.55;
    --type-heading-line:1.08;
  }

  .eyebrow,
  .meta,
  .card-label,
  .badge,
  .tag,
  .chip,
  .filter,
  .hero-badge,
  .hero-card-pill,
  .public-tool-status,
  .read{
    font-size:13px!important;
    line-height:1.3!important;
  }

  .btn,
  button,
  input[type="submit"],
  input[type="button"]{
    font-size:15.5px!important;
  }
}


/* Escala tipografica final basada en perfil.html */
:root{
  --site-body:15px;
  --site-small:13px;
  --site-h1:clamp(40px,4.8vw,68px);
  --site-h2:clamp(26px,2.4vw,32px);
  --site-h3:clamp(18px,1.7vw,22px);
  --site-lead:16px;
  --site-line:1.72;
}

body{
  font-size:var(--site-body)!important;
  line-height:var(--site-line)!important;
}

h1,
.hero-title,
.article-hero h1,
.library-hero h1{
  font-size:var(--site-h1)!important;
  line-height:1.02!important;
  letter-spacing:0!important;
}

h2,
.section-title,
.contact-title,
.service-title,
.cta-title,
.article-body h2,
.section-head h2,
.faq-block h2{
  font-size:var(--site-h2)!important;
  line-height:1.14!important;
  letter-spacing:0!important;
}

h3,
.card-title,
.service-card h3,
.service-title,
.feature-title,
.hero-card-title,
.faq-question,
.public-tool-title,
.seo-card h3{
  font-size:var(--site-h3)!important;
  line-height:1.22!important;
  letter-spacing:0!important;
}

p,
li,
dd,
dt,
label,
input,
textarea,
select,
.card-text,
.service-text,
.contact-text,
.feature-text,
.section-subtitle,
.hero-subtitle,
.article-body p,
.content p,
.content li,
.public-tool-text{
  font-size:var(--site-body)!important;
  line-height:var(--site-line)!important;
  letter-spacing:0!important;
}

.lead,
.hero-copy .lead,
.deck{
  font-size:var(--site-lead)!important;
  line-height:1.7!important;
}

.eyebrow,
.meta,
.card-label,
.badge,
.tag,
.chip,
.filter,
.hero-badge,
.hero-card-pill,
.public-tool-status,
.read{
  font-size:var(--site-small)!important;
  line-height:1.35!important;
  letter-spacing:.04em!important;
}

.btn,
button,
input[type="submit"],
input[type="button"]{
  font-size:14px!important;
  line-height:1.25!important;
}

@media (max-width:720px){
  :root{
    --site-body:15px;
    --site-small:12.5px;
    --site-h1:clamp(34px,9vw,40px);
    --site-h2:clamp(24px,7vw,28px);
    --site-h3:clamp(18px,5.5vw,22px);
    --site-lead:15.5px;
    --site-line:1.58;
  }

  .btn,
  button,
  input[type="submit"],
  input[type="button"]{
    font-size:14.5px!important;
  }
}


/* Boton flotante WhatsApp compacto */
.whatsapp-pill{
  width:auto!important;
  max-width:calc(100vw - 32px)!important;
  min-width:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:10px 14px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
}
.whatsapp-pill .wa-icon{
  flex:0 0 24px!important;
  width:24px!important;
  height:24px!important;
}
.whatsapp-pill .wa-text{
  font-size:14px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
@media (max-width:720px){
  .whatsapp-pill{
    right:14px!important;
    bottom:14px!important;
    width:auto!important;
    max-width:calc(100vw - 28px)!important;
    padding:10px 12px!important;
  }
  .whatsapp-pill .wa-text{
    font-size:13.5px!important;
  }
}


/* Ajustes especificos solicitados */
@media (min-width:1024px){
  .hero-shell .hero,
  .hero-shell ~ .container,
  .hero-shell ~ .public-tools-section{
    max-width:1320px!important;
  }
  .hero-shell + .container,
  main > .container{
    width:min(1320px,calc(100% - 36px));
  }
}

@media (max-width:720px){
  main .wrapper{
    padding-top:14px!important;
    padding-bottom:36px!important;
  }
  main .hero{
    padding-top:22px!important;
    padding-bottom:18px!important;
    gap:16px!important;
  }
  main section,
  main .section-clean,
  main .seo-content,
  main .ig-section,
  main .public-tools-section{
    margin-top:28px!important;
  }
  main .section-header{
    margin-bottom:14px!important;
  }
  main .hero-card,
  main .card,
  main .seo-card,
  main .faq-block,
  main .public-tool-card{
    padding:16px!important;
  }
}

.diplomado-page > header .logo-strip,
.diplomado-page > header .institution-strip{
  display:none!important;
}
.diplomado-main > .institution-strip{
  display:block!important;
  position:relative!important;
  z-index:1!important;
  margin:0!important;
  border-top:0!important;
}


/* Ajuste movil final: escala cotidiana y footer horizontal */
@media (max-width:720px){
  :root{
    --site-body:13.2px;
    --site-small:11.4px;
    --site-h1:clamp(28px,8vw,34px);
    --site-h2:clamp(21px,6vw,24px);
    --site-h3:clamp(15.8px,4.8vw,18px);
    --site-lead:13.8px;
    --site-line:1.52;
  }

  body{
    font-size:var(--site-body)!important;
    line-height:var(--site-line)!important;
  }

  .wrapper,
  .container,
  .articles-main,
  .article-shell,
  .footer-inner{
    padding-left:18px!important;
    padding-right:18px!important;
  }

  h1,
  .hero-title,
  .article-hero h1,
  .library-hero h1{
    font-size:var(--site-h1)!important;
    line-height:1.04!important;
  }

  h2,
  .section-title,
  .contact-title,
  .service-title,
  .cta-title,
  .article-body h2,
  .section-head h2,
  .faq-block h2{
    font-size:var(--site-h2)!important;
    line-height:1.16!important;
  }

  h3,
  .card-title,
  .service-card h3,
  .feature-title,
  .hero-card-title,
  .faq-question,
  .public-tool-title,
  .seo-card h3{
    font-size:var(--site-h3)!important;
    line-height:1.22!important;
  }

  p,
  li,
  dd,
  dt,
  label,
  input,
  textarea,
  select,
  .card-text,
  .service-text,
  .contact-text,
  .feature-text,
  .section-subtitle,
  .hero-subtitle,
  .article-body p,
  .content p,
  .content li,
  .public-tool-text{
    font-size:var(--site-body)!important;
    line-height:var(--site-line)!important;
  }

  .lead,
  .hero-copy .lead,
  .deck{
    font-size:var(--site-lead)!important;
    line-height:1.55!important;
  }

  .eyebrow,
  .meta,
  .card-label,
  .badge,
  .tag,
  .chip,
  .filter,
  .hero-badge,
  .hero-card-pill,
  .public-tool-status,
  .read{
    font-size:var(--site-small)!important;
    line-height:1.28!important;
  }

  .btn,
  button:not(.nav-toggle),
  input[type="submit"],
  input[type="button"]{
    min-height:40px!important;
    padding:10px 12px!important;
    font-size:13.2px!important;
    line-height:1.22!important;
  }

  main .hero,
  .hero-section,
  .contact-hero,
  .service-hero,
  .cid-hero,
  .library-hero{
    padding-top:20px!important;
    padding-bottom:18px!important;
    gap:14px!important;
  }

  main section,
  main .section-clean,
  main .seo-content,
  main .ig-section,
  main .public-tools-section,
  section,
  .public-section{
    margin-top:24px!important;
  }

  main .section-header,
  .section-header{
    margin-bottom:12px!important;
  }

  main .hero-card,
  main .card,
  main .seo-card,
  main .faq-block,
  main .public-tool-card,
  .card,
  .service-card,
  .contact-card,
  .info-card,
  .feature-card,
  .trust-card,
  .faq-item,
  .panel,
  .box,
  .ig-card,
  .tool-card,
  .case-card,
  .cta-box,
  .cta-card,
  .contact-form,
  .contact-info,
  .map-card,
  .office-card,
  form{
    padding:14px!important;
    border-radius:12px!important;
  }

  footer,
  .site-footer{
    padding-left:0!important;
    padding-right:0!important;
  }

  .footer-inner{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    overflow:hidden!important;
  }

  .footer-inner > div:first-child{
    flex:0 1 42%!important;
    min-width:0!important;
    font-size:10.8px!important;
    line-height:1.35!important;
  }

  .footer-links{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding-bottom:4px!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }

  .footer-links::-webkit-scrollbar{
    display:none!important;
  }

  .footer-links a,
  .footer-links a:visited{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:11.4px!important;
    line-height:1.25!important;
  }
}

@media (max-width:390px){
  .footer-inner > div:first-child{
    flex-basis:38%!important;
    font-size:10.2px!important;
  }
  .footer-links{
    gap:10px!important;
  }
}

html[data-theme="dark"]{
  color-scheme: dark;
  --primary:#8ea2ff;
  --primary-2:#b7c3ff;
  --accent:#ff755f;
  --bg:#0f1424;
  --card:#171d2d;
  --text:#edf2ff;
  --muted:#aeb8ce;
  --border:#30394d;
  --border-soft:#252d3e;
  --shadow:0 18px 46px rgba(0,0,0,.34);
  --shadow-soft:0 10px 30px rgba(0,0,0,.26);
  --dash-card:#171d2d;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left, rgba(255,117,95,.12), transparent 22%),
    radial-gradient(circle at top right, rgba(142,162,255,.12), transparent 20%),
    var(--bg) !important;
  color:var(--text) !important;
}

html[data-theme="dark"] .page > header,
html[data-theme="dark"] header,
html[data-theme="dark"] .site-header{
  background:rgba(17,23,38,.92) !important;
  border-color:rgba(64,76,102,.86) !important;
}

html[data-theme="dark"] .page > header .logo-text,
html[data-theme="dark"] .page > header nav a,
html[data-theme="dark"] .page > header nav a:visited,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .tool .name,
html[data-theme="dark"] .kpi .box .v,
html[data-theme="dark"] .casebar .v,
html[data-theme="dark"] .buy-product-name{
  color:var(--text) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd,
html[data-theme="dark"] label,
html[data-theme="dark"] .content,
html[data-theme="dark"] .article-shell,
html[data-theme="dark"] .deck,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .sub,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tool .desc,
html[data-theme="dark"] .tool-tag,
html[data-theme="dark"] .tool-price-chip .plan,
html[data-theme="dark"] .input-wrap label{
  color:var(--muted) !important;
}

html[data-theme="dark"] a{
  color:#9eb0ff;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .faq-block,
html[data-theme="dark"] .public-tool-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .trust-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .box,
html[data-theme="dark"] .ig-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .cta-box,
html[data-theme="dark"] .cta-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .office-card,
html[data-theme="dark"] form,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .main,
html[data-theme="dark"] .tool,
html[data-theme="dark"] .kpi .box,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .profile-edit-card,
html[data-theme="dark"] .inline-card,
html[data-theme="dark"] .casebar,
html[data-theme="dark"] .buy-modal-card,
html[data-theme="dark"] .buy-product-box,
html[data-theme="dark"] .buy-summary,
html[data-theme="dark"] .buy-pay-box,
html[data-theme="dark"] .meta-box,
html[data-theme="dark"] .toc,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .doc-grid figure{
  background:var(--card) !important;
  border-color:var(--border) !important;
  color:var(--text) !important;
  box-shadow:var(--shadow-soft);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .table,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td,
html[data-theme="dark"] code{
  background:#111827 !important;
  border-color:var(--border) !important;
  color:var(--text) !important;
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .page > header .nav-cta,
html[data-theme="dark"] .page > header .nav-toggle,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .tool-price-chip,
html[data-theme="dark"] .tool-tag{
  background:#141b2b !important;
  border-color:var(--border) !important;
  color:var(--text) !important;
}

html[data-theme="dark"] .btn.primary,
html[data-theme="dark"] .btn.accent,
html[data-theme="dark"] .launch-badge{
  color:#fff !important;
}

html[data-theme="dark"] .sidebar .menu a,
html[data-theme="dark"] .sidebar .menu a:visited,
html[data-theme="dark"] .sidebar .menu a:hover,
html[data-theme="dark"] .sidebar .menu a.active{
  color:var(--text) !important;
}

html[data-theme="dark"] .sidebar .menu a.active,
html[data-theme="dark"] .view-subnav .btn.is-active{
  background:#26304a !important;
}

html[data-theme="dark"] .hr,
html[data-theme="dark"] .tool .row:last-child,
html[data-theme="dark"] .buy-modal-head,
html[data-theme="dark"] .buy-modal-foot{
  border-color:var(--border) !important;
}

.theme-toggle{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:9500;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 12px 8px 8px;
  border:1px solid rgba(148,163,184,.45);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#111827;
  box-shadow:0 16px 38px rgba(15,23,42,.18);
  font:800 12px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  cursor:pointer;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.theme-toggle__track{
  position:relative;
  width:40px;
  height:24px;
  border-radius:999px;
  background:#dbe3f0;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
}

.theme-toggle__thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 7px rgba(15,23,42,.28);
  transition:transform .18s ease, background .18s ease;
}

html[data-theme="dark"] .theme-toggle{
  background:rgba(20,27,43,.94);
  border-color:var(--border);
  color:var(--text);
  box-shadow:0 16px 38px rgba(0,0,0,.38);
}

html[data-theme="dark"] .theme-toggle__track{
  background:var(--accent);
}

html[data-theme="dark"] .theme-toggle__thumb{
  transform:translateX(16px);
  background:#101827;
}

@media (max-width:640px){
  .theme-toggle{
    left:12px;
    bottom:12px;
    min-height:38px;
    padding:7px 10px 7px 7px;
  }
  .theme-toggle__label{
    max-width:52px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .page,
html[data-theme="dark"] main,
html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .wrap,
html[data-theme="dark"] .login-main,
html[data-theme="dark"] .article-shell,
html[data-theme="dark"] .public-section,
html[data-theme="dark"] .section-clean,
html[data-theme="dark"] .seo-content,
html[data-theme="dark"] .ig-section,
html[data-theme="dark"] .public-tools-section,
html[data-theme="dark"] section{
  background-color:var(--bg) !important;
}

html[data-theme="dark"] .page,
html[data-theme="dark"] main,
html[data-theme="dark"] .login-main{
  background:
    radial-gradient(circle at top left, rgba(255,117,95,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(142,162,255,.10), transparent 22%),
    var(--bg) !important;
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .page *,
html[data-theme="dark"] .header-inner,
html[data-theme="dark"] .header-inner *,
html[data-theme="dark"] nav,
html[data-theme="dark"] nav *,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar *,
html[data-theme="dark"] .dashboard-layout,
html[data-theme="dark"] .dashboard-layout *{
  border-color:var(--border,#30394d);
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .header-inner,
html[data-theme="dark"] nav,
html[data-theme="dark"] .logo,
html[data-theme="dark"] .logo-text,
html[data-theme="dark"] .sidebar .menu a,
html[data-theme="dark"] .sidebar .menu a:visited,
html[data-theme="dark"] .sidebar .menu a:hover,
html[data-theme="dark"] .sidebar .menu a.active,
html[data-theme="dark"] nav a,
html[data-theme="dark"] nav a:visited,
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] nav a.active{
  color:var(--text,#edf2ff) !important;
}

html[data-theme="dark"] .sidebar .menu a.active,
html[data-theme="dark"] nav a.active{
  background:#26304a !important;
  color:#fff !important;
}


/* Final public contrast policy: dark = white, white = dark, orange = dark. */
html[data-theme="dark"] .diplomado-page .price-card,
html[data-theme="dark"] .diplomado-page .price-card :not(.faculty-pay):not(.faculty-pay *),
html[data-theme="dark"] .diplomado-page #herramientas,
html[data-theme="dark"] .diplomado-page #herramientas :not(.btn):not(button){
  color:#13213a !important;
  -webkit-text-fill-color:#13213a !important;
}

html[data-theme="dark"] .diplomado-page .faculty-pay,
html[data-theme="dark"] .diplomado-page .faculty-pay *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}

html[data-theme="dark"] .btn.orange,
html[data-theme="dark"] .btn.orange *,
html[data-theme="dark"] a.btn.orange,
html[data-theme="dark"] a.btn.orange *,
html[data-theme="dark"] .btn.accent,
html[data-theme="dark"] .btn.accent *,
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .nav-cta *{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}


/* Final orange surfaces: orange background must use dark text. */
html[data-theme="dark"] :is(.btn.orange,a.btn.orange,.btn.accent,a.btn.accent,.nav-cta,.btn-panel-orange){
  background:#ff755f !important;
  background-image:linear-gradient(135deg,#ff755f,#ff9a6f) !important;
  border-color:#ff755f !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
html[data-theme="dark"] :is(.btn.orange,a.btn.orange,.btn.accent,a.btn.accent,.nav-cta,.btn-panel-orange) *{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}

/* Mobile usability layer - public CID site */
html, body{max-width:100%;overflow-x:hidden;}
img, video, iframe, canvas, svg{max-width:100%;height:auto;}
*, *::before, *::after{box-sizing:border-box;}
.wrapper, .wrap, main, section, .card, .panel, .box, .hero, .article-shell{min-width:0;}

@media (max-width: 760px){
  body{font-size:15px;}
  .wrapper, .wrap{width:100% !important;max-width:100% !important;padding-left:12px !important;padding-right:12px !important;}
  .page > header .header-inner{justify-content:space-between !important;gap:10px !important;padding:10px 12px !important;}
  .page > header .logo-text{max-width:58vw !important;font-size:10px !important;letter-spacing:.08em !important;}
  .page > header nav{max-width:calc(100vw - 24px) !important;right:12px !important;left:12px !important;width:auto !important;}
  .page > header nav a{min-height:40px !important;display:flex !important;align-items:center !important;white-space:normal !important;}
  h1{font-size:clamp(28px, 9vw, 44px) !important;line-height:1.05 !important;overflow-wrap:anywhere !important;}
  h2{font-size:clamp(22px, 7vw, 34px) !important;line-height:1.12 !important;overflow-wrap:anywhere !important;}
  h3{font-size:clamp(18px, 5vw, 24px) !important;line-height:1.18 !important;}
  p, li{font-size:15px !important;line-height:1.6 !important;}
  .hero, .hero-section, .public-section, .section-clean, .seo-content, .ig-section, .public-tools-section{padding-left:0 !important;padding-right:0 !important;overflow:hidden !important;}
  .hero-grid, .grid, .cards, .features, .services-grid, .article-grid, .contact-grid, .pricing-grid, .summary-grid{display:grid !important;grid-template-columns:1fr !important;gap:14px !important;}
  .card, .service-card, .price-card, .feature-card, .article-card{width:100% !important;max-width:100% !important;border-radius:16px !important;padding:16px !important;overflow:hidden !important;}
  .actions, .cta-row, .button-row, .form-row{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;width:100% !important;}
  .btn, button, a.btn, input[type="submit"]{width:100% !important;min-height:44px !important;white-space:normal !important;text-align:center !important;line-height:1.2 !important;}
  input:not([type="checkbox"]):not([type="radio"]), select, textarea{width:100% !important;min-width:0 !important;font-size:16px !important;}
  table{display:block !important;width:100% !important;max-width:100% !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch !important;white-space:nowrap !important;}
  th, td{white-space:normal !important;min-width:120px !important;overflow-wrap:anywhere !important;}
  .theme-toggle{left:10px !important;bottom:10px !important;}
}

@media (max-width: 420px){
  .wrapper, .wrap{padding-left:10px !important;padding-right:10px !important;}
  .page > header .logo img{width:34px !important;height:34px !important;}
  .page > header .logo-text{max-width:52vw !important;}
  .card, .service-card, .price-card, .feature-card, .article-card{padding:14px !important;}
}

/* Mobile overflow fixes after global layer */
@media (max-width:760px){
  .theme-toggle{
    width:auto !important;
    min-width:0 !important;
    max-width:150px !important;
    right:auto !important;
  }
  .theme-toggle__label{max-width:64px !important;}
  .metrics{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    overflow:visible !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .metric{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:1 1 auto !important;
    transform:none !important;
  }
  .metric-value,.metric-label{max-width:100% !important;overflow-wrap:anywhere !important;}
  .cards-grid:not(.cases-carousel){
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    overflow:visible !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .cards-grid:not(.cases-carousel) > article,
  .cards-grid:not(.cases-carousel) > .card{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:1 1 auto !important;
  }
  .cases-carousel,
  .section-block .cards-grid,
  main .cards-grid.cases-carousel{
    display:flex !important;
    grid-template-columns:none !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x proximity !important;
    padding:2px 12px 12px !important;
    margin-left:-12px !important;
    margin-right:-12px !important;
  }
  .cases-carousel > article,
  .section-block .cards-grid > article,
  .section-block .cards-grid > .card{
    flex:0 0 82% !important;
    min-width:240px !important;
    max-width:310px !important;
    scroll-snap-align:start !important;
  }
}

@media (max-width:420px){
  .cases-carousel > article,
  .section-block .cards-grid > article,
  .section-block .cards-grid > .card{flex-basis:88% !important;min-width:230px !important;}
}
