:root {
      --ipep-blue: #173E7C;
      --ipep-dark: #071B3A;
      --ipep-red: #D71920;
      --white: #FFFFFF;
      --soft: #F5F8FC;
      --line: #E4EAF3;
      --text: #0F172A;
      --muted: #5B667A;
      --cyan: #1EC7E6;
      --shadow: 0 26px 70px rgba(7, 27, 58, 0.16);
      --radius: 24px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
    html { scroll-behavior: smooth; }
    body { background: var(--white); color: var(--text); line-height: 1.6; }
    a { text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container { width: 94%; max-width: 1220px; margin: auto; }

    .topbar {
      background: var(--ipep-dark);
      color: #DCE7F7;
      padding: 8px 0;
      font-size: 13px;
    }

    .topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,.97);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }

    .nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 18px; }
    .brand img { height: 64px; width: auto; object-fit: contain; }

    nav { display: flex; align-items: center; gap: 17px; font-size: 13px; font-weight: 800; }
    nav a { color: var(--ipep-dark); text-transform: uppercase; letter-spacing: .2px; white-space: nowrap; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 14px 21px; border-radius: 10px; font-weight: 900; border: none;
      cursor: pointer; transition: .2s ease; text-align: center;
    }

    .btn:hover { transform: translateY(-2px); }
    .btn-red { background: var(--ipep-red); color: #fff !important; box-shadow: 0 16px 30px rgba(215,25,32,.22); }
    .btn-blue { background: var(--ipep-dark); color: #fff !important; box-shadow: 0 16px 30px rgba(7,27,58,.20); }
    .btn-outline { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.55); color: #fff !important; }

    .hero { padding: 28px 0 46px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FE 100%); }

    .hero-panel {
      min-height: 590px; border-radius: 28px; overflow: hidden; position: relative; box-shadow: var(--shadow);
      background:
        linear-gradient(90deg, rgba(7,27,58,.98) 0%, rgba(7,27,58,.90) 42%, rgba(7,27,58,.18) 78%),
        url("../assets/img/ia-para-tomada-de-decisao-em-negocios.jpg") center right / cover no-repeat;
      color: #fff; padding: 58px 64px; display: flex; align-items: center;
    }

    .hero-copy { max-width: 700px; }
    .eyebrow { color: #FF343C; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }

    h1 {
      font-size: clamp(44px, 6vw, 78px); line-height: .96; letter-spacing: -2.5px;
      text-transform: uppercase; margin-bottom: 18px;
    }

    h1 span { color: #2F80ED; display: block; }
    .hero-sub { font-size: 23px; max-width: 620px; color: #F1F5F9; margin-bottom: 30px; }
    .hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 32px; }
    .fact { display: flex; align-items: center; gap: 10px; color: #E8F1FF; font-weight: 800; font-size: 14px; }
    .fact-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(30,199,230,.75); color: var(--cyan); }
    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

    .section { padding: 82px 0; }
    .section.soft { background: var(--soft); }

    .section-title { max-width: 880px; margin: 0 auto 44px; text-align: center; }
    .section-title h2 {
      font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: var(--ipep-blue);
      text-transform: uppercase; margin-bottom: 10px; letter-spacing: -.7px;
    }
    .section-title p { color: var(--muted); font-size: 18px; }

    .split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 34px; align-items: center; }
    .split.reverse { grid-template-columns: 1.08fr .92fr; }
    .split.reverse .content { order: 2; }
    .split.reverse .visual { order: 1; }

    .visual {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      background: #071B3A;
      display: block;
    }

    .visual img {
      width: 100%;
      height: auto;
      object-fit: contain;
      object-position: center;
      background: #071B3A;
      display: block;
    }

    .visual.photo img {
      aspect-ratio: 16 / 10;
      object-fit: cover;
    }

    .visual.full img {
      aspect-ratio: auto;
      object-fit: contain;
    }

    .content h2 {
      font-size: clamp(30px, 4vw, 44px); line-height: 1.12; color: var(--ipep-blue);
      margin-bottom: 16px; letter-spacing: -.8px; text-transform: uppercase;
    }
    .content p { color: var(--muted); font-size: 18px; margin-bottom: 16px; }
    .content ul { padding-left: 20px; color: var(--muted); margin: 16px 0 22px; }

    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

    .card {
      background: #fff; border: 1px solid var(--line); border-radius: 20px;
      padding: 28px; box-shadow: 0 16px 36px rgba(7,27,58,.06);
    }

    .card h3 { color: var(--ipep-blue); font-size: 22px; margin-bottom: 10px; }
    .card p, .card li { color: var(--muted); }
    .card ul { padding-left: 20px; margin-top: 12px; }

    .module-number {
      width: 42px; height: 42px; border-radius: 50%; background: var(--ipep-blue); color: #fff;
      display: grid; place-items: center; font-weight: 900; margin-bottom: 16px;
    }

    .icon-line {
      display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
      background: #fff; border: 1px solid var(--line); border-radius: 22px;
      padding: 28px 18px; box-shadow: 0 14px 34px rgba(7,27,58,.06);
    }

    .icon-box {
      text-align: center; padding: 4px 14px; min-height: 128px;
      display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    }

    .icon-modern { width: 44px; height: 44px; color: var(--ipep-blue); margin-bottom: 12px; display:flex; align-items:center; justify-content:center; }
    .icon-modern svg { width: 44px; height: 44px; }
    .icon-box h4 { color: var(--ipep-blue); text-transform: uppercase; font-size: 12px; line-height: 1.25; margin-bottom: 8px; font-weight: 900; }
    .icon-box p { color: var(--muted); font-size: 13px; line-height: 1.45; }

    .ecosystem-list { display: grid; gap: 15px; margin-top: 18px; }
    .ai-item {
      background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
      display: flex; gap: 15px; align-items: center; box-shadow: 0 12px 30px rgba(7,27,58,.06);
    }
    .ai-logo {
      width: 56px; height: 56px; border-radius: 16px; background: #EAF1FA;
      color: var(--ipep-blue); display: grid; place-items: center; font-weight: 950; flex: 0 0 auto;
    }
    .note { color: var(--muted); font-size: 13px; margin-top: 12px; }

    .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .before { border-top: 6px solid #98A2B3; }
    .after { border-top: 6px solid var(--ipep-red); }

    .chat-box { background: var(--ipep-dark); color: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
    .chat-bubble { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; margin: 16px 0; color: #E7EEF8; }
    /* Chat com a IA do Programa */
    .ai-chat { margin: 16px 0 0; }
    .ai-chat-messages { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 4px 2px; scroll-behavior: smooth; }
    .ai-chat-messages::-webkit-scrollbar { width: 6px; }
    .ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 999px; }
    .ai-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
    .ai-msg.agent { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: #E7EEF8; align-self: flex-start; border-bottom-left-radius: 6px; }
    .ai-msg.user { background: var(--ipep-red); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
    .ai-chat-typing { display: flex; gap: 5px; padding: 12px 16px 2px; }
    .ai-chat-typing span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); animation: aiTyping 1.2s infinite ease-in-out; }
    .ai-chat-typing span:nth-child(2) { animation-delay: .18s; }
    .ai-chat-typing span:nth-child(3) { animation-delay: .36s; }
    @keyframes aiTyping { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-5px); opacity: 1; } }
    .ai-chat-form { display: flex; gap: 10px; background: #fff; border-radius: 14px; padding: 10px; margin-top: 14px; }
    .ai-chat-form input { flex: 1; border: none; outline: none; padding: 12px; font-size: 15px; background: transparent; }
    .ai-chat-form button { background: var(--ipep-red); color: #fff; border: none; border-radius: 10px; padding: 12px 18px; font-weight: 900; cursor: pointer; }
    .ai-chat-form button:disabled { opacity: .55; cursor: default; }

    .price-card.featured { border: 2px solid rgba(215,25,32,.55); transform: translateY(-8px); }
    .tag { display: inline-block; background: rgba(215,25,32,.08); color: var(--ipep-red); padding: 7px 11px; border-radius: 999px; font-weight: 900; font-size: 13px; margin-bottom: 12px; }
    .price { font-size: 38px; font-weight: 950; color: var(--ipep-blue); margin: 10px 0; }
    .price-card.crossed .price { position: relative; display: inline-block; color: #9AA4B5; }
    .price-card.crossed .price::before, .price-card.crossed .price::after { content: ""; position: absolute; left: 50%; top: 50%; width: 105%; height: 3.5px; background: var(--ipep-red); border-radius: 2px; pointer-events: none; }
    .price-card.crossed .price::before { transform: translate(-50%, -50%) rotate(14deg); }
    .price-card.crossed .price::after { transform: translate(-50%, -50%) rotate(-14deg); }

    .form-card { max-width: 760px; margin: auto; }
    .form-card input { width: 100%; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 15px; }
    .form-card button { width: 100%; font-size: 16px; }

    .final-cta {
      background:
        linear-gradient(90deg, rgba(7,27,58,.96), rgba(7,27,58,.66)),
        url("../assets/img/final-cta-bg.jpg") center / cover no-repeat;
      color: #fff; padding: 92px 0; text-align: center;
    }

    .final-cta h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; max-width: 900px; margin: 0 auto 18px; text-transform: uppercase; }
    .final-cta p { max-width: 760px; margin: 0 auto 26px; color: #E7EEF8; font-size: 19px; }

    footer { background: var(--ipep-dark); color: #DCE7F7; padding: 42px 0; font-size: 14px; }
    .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
    footer h4 { color: #fff; margin-bottom: 10px; text-transform: uppercase; font-size: 13px; }
    footer a { color: #fff; }
    .footer-logo { height: 74px; width: auto; margin-bottom: 14px; background:white; border-radius:12px; padding:8px; }

    @media (max-width: 1060px) {
      nav a:not(.btn) { display: none; }
      .icon-line { grid-template-columns: repeat(2, 1fr); gap: 18px; }
      .split, .split.reverse, .grid-3, .grid-2, .comparison, .footer-grid { grid-template-columns: 1fr; }
      .split.reverse .content, .split.reverse .visual { order: initial; }
      .price-card.featured { transform: none; }
    }

    @media (max-width: 620px) {
      .topbar .container, .nav { flex-direction: column; align-items: flex-start; }
      .brand img { height: 56px; }
      .hero-panel { min-height: 650px; padding: 34px 22px; background-position: center; }
      .btn, .hero-actions a { width: 100%; }
      .icon-line { grid-template-columns: 1fr; }
    }
  
    .fact div { display:flex; flex-direction:column; gap:2px; }
    .fact strong { color:#fff; font-size:15px; line-height:1.15; font-weight:900; }
    .fact span:not(.fact-icon) { color:#DCEBFF; font-size:14px; line-height:1.2; font-weight:700; }

    .grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

    .target-card { border-top:5px solid var(--ipep-blue); }
    .pre-card { border-top:5px solid var(--ipep-red); }

    .benefit-card {
      background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px;
      box-shadow:0 14px 32px rgba(7,27,58,.06);
    }
    .benefit-card strong { display:block; color:var(--ipep-blue); font-size:18px; margin-bottom:6px; }
    .benefit-card span { color:var(--muted); font-size:15px; }

    .partner-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:18px; margin-top:26px; }
    .partner-card {
      background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px 18px;
      text-align:center; box-shadow:0 14px 32px rgba(7,27,58,.06);
    }
    .partner-logo {
      width:64px; height:64px; border-radius:18px; background:#EAF1FA; color:var(--ipep-blue);
      display:grid; place-items:center; font-weight:950; font-size:19px; margin:0 auto 14px;
    }
    .partner-card h3 { color:var(--ipep-blue); font-size:18px; margin-bottom:6px; }
    .partner-card p { color:var(--muted); font-size:14px; }
    .partner-note { color:var(--muted); font-size:13px; text-align:center; margin-top:16px; }
@media (max-width:1060px) {
      .grid-4,.partner-grid { grid-template-columns:1fr; }
    }

  
    .faculty-highlight {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin: -12px 0 34px;
    }

    .faculty-metric {
      background: #FFFFFF;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 22px;
      text-align: center;
      box-shadow: 0 14px 32px rgba(7,27,58,.06);
    }

    .faculty-metric strong {
      display: block;
      color: var(--ipep-blue);
      font-size: 34px;
      line-height: 1;
      margin-bottom: 6px;
    }

    .faculty-metric span {
      color: var(--muted);
      font-weight: 800;
      font-size: 14px;
    }

    .faculty-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .faculty-card {
      background: #FFFFFF;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      box-shadow: 0 16px 36px rgba(7,27,58,.06);
      position: relative;
      overflow: hidden;
    }

    .faculty-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 5px;
      background: linear-gradient(90deg, var(--ipep-blue), #2F80ED, var(--ipep-red));
    }

    .faculty-card.coordinator {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #FFFFFF 0%, #F5F8FC 100%);
      border: 2px solid rgba(23,62,124,.18);
    }

    .faculty-card h3 {
      color: var(--ipep-blue);
      font-size: 24px;
      margin-bottom: 12px;
    }

    .faculty-card p {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
    }

    .faculty-tag {
      display: inline-block;
      background: rgba(23,62,124,.08);
      color: var(--ipep-blue);
      border-radius: 999px;
      padding: 7px 12px;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .guest-title {
      margin-top: 58px;
      margin-bottom: 30px;
    }

    .guest-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .faculty-card.guest::before {
      background: linear-gradient(90deg, var(--ipep-red), #2F80ED);
    }

    @media (max-width: 1060px) {
      .faculty-highlight,
      .faculty-grid,
      .guest-grid {
        grid-template-columns: 1fr;
      }

      .faculty-card.coordinator {
        grid-column: auto;
      }
    }

  
    /* --- CORPO DOCENTE INTERATIVO DEFINITIVO --- */
    .docentes-clean-title {
      margin-bottom: 34px;
    }

    .docentes-clean-title h2 {
      font-size: clamp(30px, 4vw, 42px);
    }

    .docentes-clean-title p {
      max-width: 720px;
      margin: 0 auto;
      font-size: 17px;
    }

    .faculty-interactive-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .faculty-interactive-grid.guest {
      grid-template-columns: repeat(2, 1fr);
      max-width: 860px;
      margin: 0 auto;
    }

    .teacher-card {
      position: relative;
      min-height: 250px;
      background: #FFFFFF;
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 28px;
      text-align: left;
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 16px 36px rgba(7,27,58,.06);
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
      color: var(--text);
      appearance: none;
      font: inherit;
    }

    .teacher-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 5px;
      background: linear-gradient(90deg, var(--ipep-blue), #2F80ED, var(--ipep-red));
    }

    .teacher-card:hover,
    .teacher-card:focus,
    .teacher-card.active {
      transform: translateY(-4px);
      box-shadow: 0 24px 54px rgba(7,27,58,.14);
      border-color: rgba(23,62,124,.28);
      outline: none;
    }

    .teacher-role {
      display: inline-block;
      border-radius: 999px;
      padding: 7px 12px;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      margin-bottom: 16px;
      line-height: 1.2;
    }

    .role-coordinator { background: rgba(7,27,58,.10); color: var(--ipep-dark); }
    .role-phd { background: rgba(179,132,0,.14); color: #8A5A00; }
    .role-doctoral { background: rgba(23,62,124,.10); color: var(--ipep-blue); }
    .role-master { background: rgba(215,25,32,.09); color: var(--ipep-red); }
    .role-guest { background: rgba(15,23,42,.08); color: #334155; }

    .teacher-card strong {
      display: block;
      color: var(--ipep-blue);
      font-size: 24px;
      line-height: 1.2;
      margin-bottom: 10px;
    }

    .teacher-card small {
      display: block;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .teacher-bio {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(7,27,58,.98), rgba(23,62,124,.97));
      color: #FFFFFF;
      padding: 28px;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity .25s ease, transform .25s ease;
      overflow-y: auto;
      font-size: 15px;
      line-height: 1.62;
      border-radius: 22px;
      z-index: 5;
    }

    .teacher-bio h3 {
      color: #FFFFFF;
      font-size: 21px;
      line-height: 1.2;
      margin-bottom: 8px;
    }

    .teacher-bio span {
      display: inline-block;
      color: #DCEBFF;
      font-weight: 900;
      font-size: 12px;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .teacher-bio p {
      color: #E7EEF8;
      margin: 0;
    }

    .teacher-card:hover .teacher-bio,
    .teacher-card:focus .teacher-bio,
    .teacher-card.active .teacher-bio {
      opacity: 1;
      transform: translateY(0);
    }

    .guest-title {
      margin-top: 58px;
      margin-bottom: 30px;
    }

    .guest-card::before {
      background: linear-gradient(90deg, var(--ipep-red), #2F80ED);
    }

    @media (max-width: 1060px) {
      .faculty-interactive-grid,
      .faculty-interactive-grid.guest {
        grid-template-columns: 1fr;
        max-width: none;
      }

      .teacher-card {
        min-height: 230px;
      }
    }

  
    /* --- SEÇÃO TECNOLOGIAS LÍDERES --- */
    .technologies-section {
      background: #F5F8FC;
    }

    .technology-visual-card {
      max-width: 1120px;
      margin: 0 auto 28px;
      background: #071B3A;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 26px 70px rgba(7,27,58,.18);
      border: 1px solid rgba(7,27,58,.10);
    }

    .technology-visual-card img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
      background: #071B3A;
    }

    .technology-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 28px;
    }

    .technology-card {
      background: #FFFFFF;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 22px;
      box-shadow: 0 14px 32px rgba(7,27,58,.06);
    }

    .technology-card strong {
      display: block;
      color: var(--ipep-blue);
      font-size: 18px;
      margin-bottom: 7px;
    }

    .technology-card span {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.5;
    }

    @media (max-width: 1060px) {
      .technology-grid {
        grid-template-columns: 1fr;
      }
    }

  
    /* --- X VERMELHO SOBRE O VALOR OFICIAL --- */
    .official-price-x .old-price {
      position: relative;
      display: inline-block;
      padding: 6px 14px;
      line-height: 1.05;
    }

    .official-price-x .old-price::before,
    .official-price-x .old-price::after {
      content: "";
      position: absolute;
      left: 4%;
      top: 50%;
      width: 92%;
      height: 3px;
      background: #D71920;
      border-radius: 999px;
      transform-origin: center;
      z-index: 5;
      pointer-events: none;
    }

    .official-price-x .old-price::before {
      transform: rotate(16deg);
    }

    .official-price-x .old-price::after {
      transform: rotate(-16deg);
    }
