/* ═══════════════════════════════════════════
       TOKENS
    ═══════════════════════════════════════════ */
    :root {
      --navy-dark:   #0D1B35;
      --navy-900:    #1A3260;
      --navy-800:    #22437E;
      --navy-700:    #3D6AB5;
      --navy-600:    #5A85C8;
      --navy-400:    #1A3260;
      --navy-200:    #3D5A8A;
      --navy-100:    #1A3260;
      --navy-50:     #EBF0F8;

      --orange-600:  #C94E00;
      --orange-500:  #E86A00;
      --orange-400:  #F77F00;
      --orange-100:  #FDE8CB;
      --orange-50:   #FEF4E7;

      --neutral-50:  #F5F6F8;
      --neutral-100: #E8EAEE;
      --neutral-200: #CBD5E1;
      --neutral-500: #64748B;
      --neutral-800: #1E293B;

      --c-bg:      #F0F4FA;
      --c-surface: #FFFFFF;
      --c-card:    #FFFFFF;
      --c-border:  #C8D8EE;
      --c-text:    #0D1B35;
      --c-muted:   #3D5A8A;
      --c-accent:  #E86A00;
      --c-accent2: #F77F00;

      --font-display: 'Playfair Display', Georgia, serif;
      --font-body:    'Outfit', sans-serif;
      --radius:       16px;
      --radius-sm:    10px;
      --shadow:       0 4px 24px rgba(26,50,96,.10);
      --shadow-lg:    0 12px 40px rgba(26,50,96,.16);
    }

    /* ═══════════════════════════════════════════
       BASE
    ═══════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ═══════════════════════════════════════════
       SECTION
    ═══════════════════════════════════════════ */
    .resena {
      background: var(--c-bg);
      font-family: var(--font-body);
      color: var(--c-text);
      padding: 90px 20px 110px;
      position: relative;
      overflow: hidden;
    }

    /* subtle diagonal stripe pattern */
    .resena::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 60px,
        rgba(26,50,96,.03) 60px,
        rgba(26,50,96,.03) 61px
      );
      pointer-events: none;
    }

    /* orange glow top-right */
    .resena::after {
      content: '';
      position: absolute;
      top: -120px;
      right: -120px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(232,106,0,.10) 0%, transparent 70%);
      pointer-events: none;
    }

    .resena__inner {
      max-width: 1020px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* ═══════════════════════════════════════════
       HEADER
    ═══════════════════════════════════════════ */
    .resena__head {
      text-align: center;
      margin-bottom: 64px;
    }

    .resena__pretag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--c-accent);
      margin-bottom: 20px;
    }

    .resena__pretag::before,
    .resena__pretag::after {
      content: '';
      display: block;
      width: 28px;
      height: 1.5px;
      background: var(--c-accent);
    }

    .resena__title {
      font-family: var(--font-display);
      font-size: clamp(30px, 5vw, 52px);
      font-weight: 700;
      line-height: 1.15;
      color: var(--c-text);
      margin-bottom: 14px;
    }

    .resena__title span {
      color: var(--c-accent);
      font-style: italic;
    }

    .resena__subtitle {
      font-size: 15px;
      color: var(--c-muted);
      font-weight: 300;
      letter-spacing: .02em;
    }

    /* ═══════════════════════════════════════════
       STATS BAR
    ═══════════════════════════════════════════ */
    .resena__stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 80px;
    }

    @media (max-width: 700px) {
      .resena__stats { grid-template-columns: repeat(2, 1fr); }
    }

    .stat-card {
      background: var(--c-surface);
      border: 1px solid var(--c-border);
      border-radius: var(--radius-sm);
      padding: 22px 16px 18px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .stat-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
    }

    .stat-card--idex {
      border-color: var(--orange-500);
      background: linear-gradient(135deg, #EEF4FF 60%, rgba(232,106,0,.10));
    }

    .stat-card--idex .stat-card__n {
      font-size: 26px;
      letter-spacing: .06em;
    }

    .stat-card--idex::after {
      background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
      height: 4px;
    }

    .stat-card__n {
      font-family: var(--font-display);
      font-size: 32px;
      font-weight: 700;
      color: var(--c-accent);
      display: block;
      line-height: 1;
    }

    .stat-card__l {
      font-size: 12px;
      color: var(--c-muted);
      margin-top: 6px;
      line-height: 1.4;
      font-weight: 400;
    }

    /* ═══════════════════════════════════════════
       TIMELINE SPINE
    ═══════════════════════════════════════════ */
    .tl {
      position: relative;
    }

    .tl__spine {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom,
        transparent 0%,
        #94B0D8 5%,
        #94B0D8 95%,
        transparent 100%
      );
      transform: translateX(-50%);
    }

    /* ═══════════════════════════════════════════
       PHASE LABEL
    ═══════════════════════════════════════════ */
    .tl-phase {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 64px 0 40px;
      position: relative;
      z-index: 2;
    }

    .tl-phase__line {
      flex: 1;
      height: 1px;
      background: var(--c-border);
    }

    .tl-phase__pill {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 7px 18px;
      border-radius: 20px;
      white-space: nowrap;
      border: 1px solid;
    }

    .pill--sal { background: #FEF4E7; color: #C94E00; border-color: rgba(200,80,0,.35); }
    .pill--enc { background: #EBF0F8; color: #1A3260; border-color: rgba(26,50,96,.35); }
    .pill--mod { background: #FEF4E7; color: #C94E00; border-color: rgba(200,80,0,.35); }
    .pill--exp { background: #EBF0F8; color: #1A3260; border-color: rgba(26,50,96,.35); }
    .pill--idex {
      background: linear-gradient(90deg, rgba(232,93,4,.2), rgba(247,127,0,.2));
      color: var(--orange-400);
      border-color: var(--orange-500);
      font-size: 11px;
      padding: 8px 22px;
      box-shadow: 0 0 12px rgba(232,106,0,.15);
    }

    /* ═══════════════════════════════════════════
       ROW (alternating left / right)
    ═══════════════════════════════════════════ */
    .tl-row {
      display: grid;
      grid-template-columns: 1fr 56px 1fr;
      align-items: start;
      margin-bottom: 36px;
      position: relative;
    }

    .tl-row:last-child { margin-bottom: 0; }

    /* left cell */
    .tl-row__left  { padding-right: 28px; }
    /* right cell */
    .tl-row__right { padding-left: 28px; }

    /* when card is on the left, right is empty; and vice versa */
    .tl-row__left.is-empty,
    .tl-row__right.is-empty { /* just empty space */ }

    /* ═══════════════════════════════════════════
       NODE (center dot)
    ═══════════════════════════════════════════ */
    .tl-node {
      display: flex;
      justify-content: center;
      padding-top: 12px;
      position: relative;
      z-index: 3;
    }

    .tl-dot {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--c-bg);
      border: 2.5px solid #3D6AB5;
      transition: transform .3s, border-color .3s;
    }

    .tl-dot--key {
      width: 22px;
      height: 22px;
      background: var(--c-accent);
      border-color: var(--c-accent);
      box-shadow: 0 0 0 6px rgba(232,106,0,.18);
    }

    /* ═══════════════════════════════════════════
       YEAR BADGE
    ═══════════════════════════════════════════ */
    .tl-year {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .07em;
      color: var(--c-accent);
      border: 1px solid rgba(232,106,0,.45);
      background: #FEF4E7;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 10px;
    }

    /* ═══════════════════════════════════════════
       CARD
    ═══════════════════════════════════════════ */
    .tl-card {
      background: var(--c-card);
      border: 1px solid var(--c-border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
      box-shadow: var(--shadow);
    }

    .tl-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: #3D6AB5;
    }

    /* ── image zone ── */
    .tl-card__media {
      position: relative;
      width: 100%;
      height: 160px;
      overflow: hidden;
      background: #D8E6F5;
      }

    .tl-card__media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .4s ease;
    }

    .tl-card:hover .tl-card__media img {
      transform: scale(1.04);
    }

    /* ── left accent strip ── */
    .tl-card__body {
      padding: 16px 18px 18px;
      border-left: 3px solid #E86A00;
    }

    .tl-row__right .tl-card__body {
      border-left: none;
      border-right: 3px solid #3D6AB5;
    }

    .tl-card__title {
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 700;
      color: var(--c-text);
      margin-bottom: 7px;
      line-height: 1.35;
    }

    .tl-card__text {
      font-size: 13px;
      color: var(--c-muted);
      line-height: 1.65;
      font-weight: 300;
    }

    .tl-card__norm {
      margin-top: 10px;
      font-size: 11px;
      color: var(--orange-400);
      opacity: .85;
      font-style: italic;
    }

    /* ═══════════════════════════════════════════
       CONNECTOR LINES (left/right side)
    ═══════════════════════════════════════════ */
    .tl-node::before {
      content: '';
      position: absolute;
      top: 19px;
      height: 1px;
      width: 28px;
      background: var(--c-border);
    }

    /* line goes left when card is on the right */
    .tl-row--card-right .tl-node::before {
      right: 100%;
      left: auto;
    }

    /* line goes right when card is on the left */
    .tl-row--card-left .tl-node::before {
      left: 100%;
      right: auto;
    }

    /* ═══════════════════════════════════════════
       REVEAL ANIMATION
    ═══════════════════════════════════════════ */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .6s ease, transform .6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE
    ═══════════════════════════════════════════ */
    @media (max-width: 680px) {
      .tl__spine  { left: 18px; }
      .tl-node::before { display: none; }

      .tl-row {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto;
      }

      .tl-row__left.is-empty,
      .tl-row__right.is-empty { display: none; }

      .tl-row__left:not(.is-empty),
      .tl-row__right:not(.is-empty) {
        grid-column: 2 / 3;
        padding: 0;
      }

      .tl-node {
        grid-column: 1 / 2;
        grid-row: 1;
      }

      .tl-row__right .tl-card__body {
        border-right: none;
        border-left: 3px solid var(--navy-400);
      }

      .tl-phase { margin-left: 40px; }
    }
    /* ═══════════════════════════════════════════
       IDEX FEATURED CARD
    ═══════════════════════════════════════════ */
    .tl-card--featured {
      border-color: var(--orange-500);
      box-shadow: 0 4px 32px rgba(232,106,0,.12);
    }

    .tl-card--featured:hover {
      border-color: var(--orange-400);
      box-shadow: 0 12px 48px rgba(232,106,0,.2);
    }

    .tl-card--featured .tl-card__body {
      border-left-color: #E86A00;
    }

    .tl-card__badge-idex {
      position: absolute;
      top: 12px;
      right: 12px;
      background: var(--orange-500);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .12em;
      padding: 5px 12px;
      border-radius: 6px;
      font-family: var(--font-body);
    }

    .tl-card__programs {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid #D8E6F5;
    }

    .tl-card__programs-title {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--orange-400);
      margin-bottom: 10px;
    }

    .tl-card__programs-list {
      list-style: none;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px 12px;
    }

    .tl-card__programs-list li {
      font-size: 12px;
      color: var(--navy-200);
      line-height: 1.4;
      padding-left: 14px;
      position: relative;
    }

    .tl-card__programs-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 6px;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--orange-500);
    }

    .tl-dot--idex {
      width: 26px;
      height: 26px;
      background: var(--orange-500);
      border-color: var(--orange-400);
      box-shadow: 0 0 0 7px rgba(232,106,0,.15), 0 0 18px rgba(232,106,0,.25);
    }

    @media (max-width: 500px) {
      .tl-card__programs-list { grid-template-columns: 1fr; }
    }

/*===============whatsapp==================*/
:root{
        --jae-wa-green: #25D366;
        --jae-wa-green-dark: #1ebe5d;
        --jae-wa-white: #ffffff;
        --jae-wa-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
        --jae-wa-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.26);
        --jae-wa-size: 45px;
        --jae-wa-radius: 999px;
        --jae-wa-zindex: 9998;
        --jae-wa-offset-x: 22px;
        --jae-wa-offset-y: 22px;
        --jae-wa-tooltip-bg: #1A3260;
        --jae-wa-tooltip-color: #ffffff;
    }

    .jae-wa-float-wrap,
    .jae-wa-float-wrap *{
        box-sizing: border-box;
    }

    .jae-wa-float-wrap{
        position: fixed;
        right: var(--jae-wa-offset-x);
        bottom: var(--jae-wa-offset-y);
        z-index: var(--jae-wa-zindex);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .jae-wa-tooltip{
        opacity: 0;
        visibility: hidden;
        transform: translateX(8px);
        transition: all .25s ease;
        background: var(--jae-wa-tooltip-bg);
        color: var(--jae-wa-tooltip-color);
        padding: 10px 14px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: var(--jae-wa-shadow);
        pointer-events: none;
    }

    .jae-wa-float-wrap:hover .jae-wa-tooltip{
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .jae-wa-button{
        width: var(--jae-wa-size);
        height: var(--jae-wa-size);
        min-width: var(--jae-wa-size);
        border-radius: var(--jae-wa-radius);
        background: linear-gradient(135deg, var(--jae-wa-green), var(--jae-wa-green-dark));
        color: var(--jae-wa-white);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: var(--jae-wa-shadow);
        transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
        border: 2px solid rgba(255,255,255,.92);
        position: relative;
        overflow: hidden;
    }

    .jae-wa-button::before{
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 35%);
        pointer-events: none;
    }

    .jae-wa-button:hover{
        transform: translateY(-3px) scale(1.04);
        box-shadow: var(--jae-wa-shadow-hover);
        filter: saturate(1.05);
    }

    .jae-wa-button:active{
        transform: scale(.97);
    }

    .jae-wa-button i{
        font-size: 20px;
        line-height: 1;
        position: relative;
        z-index: 2;
    }

    .jae-wa-pulse{
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid rgba(37, 211, 102, 0.45);
        animation: jaeWaPulse 2s infinite;
        pointer-events: none;
    }

    @keyframes jaeWaPulse{
        0%{
            transform: scale(1);
            opacity: .9;
        }
        70%{
            transform: scale(1.35);
            opacity: 0;
        }
        100%{
            transform: scale(1.35);
            opacity: 0;
        }
    }

    @media (max-width: 768px){
        :root{
            --jae-wa-size: 41px;
            --jae-wa-offset-x: 16px;
            --jae-wa-offset-y: 16px;
        }

        .jae-wa-tooltip{
            display: none;
        }

        .jae-wa-button i{
            font-size: 18px;
        }
    }

    .jae-featured-trigger-wrap{
        position: fixed;
        right: var(--jae-wa-offset-x);
        bottom: calc(var(--jae-wa-offset-y) + var(--jae-wa-size) + 14px);
        z-index: var(--jae-wa-zindex);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .jae-featured-trigger-wrap,
    .jae-featured-trigger-wrap *{
        box-sizing: border-box;
    }

    .jae-featured-trigger-tooltip{
        opacity: 0;
        visibility: hidden;
        transform: translateX(8px);
        transition: all .25s ease;
        padding: 9px 13px;
        border-radius: 13px;
        color: #fff;
        background: #1A3260;
        box-shadow: var(--jae-wa-shadow);
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        pointer-events: none;
    }

    .jae-featured-trigger-wrap:hover .jae-featured-trigger-tooltip,
    .jae-featured-trigger-wrap:focus-within .jae-featured-trigger-tooltip{
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .jae-featured-trigger{
        position: relative;
        width: var(--jae-wa-size);
        height: var(--jae-wa-size);
        min-width: var(--jae-wa-size);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid rgba(255,255,255,.94);
        color: #ffe06a;
        background:
            radial-gradient(circle at 30% 22%, rgba(255,255,255,.28), transparent 30%),
            linear-gradient(145deg, #3568c5 0%, #244b8f 42%, #1A3260 100%);
        box-shadow:
            0 10px 26px rgba(26, 50, 96, .28),
            0 0 0 0 rgba(247, 189, 0, 0);
        cursor: pointer;
        transition: transform .25s ease, box-shadow .25s ease;
        animation: jaeFeaturedGlow 2.8s ease-in-out infinite;
    }

    .jae-featured-trigger::after{
        content: "";
        position: absolute;
        top: -35%;
        left: -65%;
        width: 34%;
        height: 170%;
        opacity: .65;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
        transform: rotate(24deg);
        animation: jaeFeaturedShine 3.4s ease-in-out infinite;
    }

    .jae-featured-trigger:hover{
        transform: translateY(-2px) scale(1.05);
        color: #fff1a8;
        box-shadow:
            0 15px 32px rgba(26, 50, 96, .36),
            0 0 18px rgba(247, 189, 0, .38);
    }

    .jae-featured-trigger i{
        position: relative;
        z-index: 2;
        font-size: 20px;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
    }

    @keyframes jaeFeaturedGlow{
        0%, 100%{
            box-shadow:
                0 10px 26px rgba(26, 50, 96, .28),
                0 0 0 0 rgba(247, 189, 0, 0);
        }
        50%{
            box-shadow:
                0 13px 30px rgba(26, 50, 96, .34),
                0 0 17px 3px rgba(247, 189, 0, .24);
        }
    }

    @keyframes jaeFeaturedShine{
        0%, 58%{
            left: -65%;
            opacity: 0;
        }
        68%{
            opacity: .65;
        }
        82%, 100%{
            left: 135%;
            opacity: 0;
        }
    }

    @media (max-width: 768px){
        .jae-featured-trigger-wrap{
            bottom: calc(var(--jae-wa-offset-y) + var(--jae-wa-size) + 12px);
        }

        .jae-featured-trigger-tooltip{
            display: none;
        }

        .jae-featured-trigger{
            width: var(--jae-wa-size);
            height: var(--jae-wa-size);
            min-width: var(--jae-wa-size);
        }

        .jae-featured-trigger i{
            font-size: 18px;
        }
    }

    @media (prefers-reduced-motion: reduce){
        .jae-featured-trigger,
        .jae-featured-trigger::after{
            animation: none;
        }
    }

/* popup */
:root {
    --jaecom-primary: #1A3260;
    --jaecom-primary-2: #244b8f;
    --jaecom-secondary: #f7bd00;
    --jaecom-secondary-2: #ffd84a;
    --jaecom-white: #ffffff;
    --jaecom-dark: #0f172a;
    --jaecom-text: #475569;
    --jaecom-muted: #94a3b8;
    --jaecom-border: rgba(26, 50, 96, 0.10);
    --jaecom-shadow: 0 30px 80px rgba(2, 8, 23, 0.30);
    --jaecom-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
    --jaecom-overlay: rgba(6, 14, 30, 0.68);
    --jaecom-radius-xl: 20px;
    --jaecom-radius-lg: 14px;
    --jaecom-radius-md: 12px;
    --jaecom-transition: all 0.28s ease;
    --jaecom-zindex: 99999;
}

.jaecom-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--jaecom-zindex);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--jaecom-overlay);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: var(--jaecom-transition);
}

.jaecom-modal-overlay.jaecom-is-active {
    opacity: 1;
    visibility: visible;
}

.jaecom-modal-box {
    position: relative;
    width: min(1100px, 100%);
    height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--jaecom-radius-xl);
    box-shadow: var(--jaecom-shadow);
    overflow: hidden;
    transform: translateY(18px) scale(0.985);
    transition: var(--jaecom-transition);
}

.jaecom-modal-overlay.jaecom-is-active .jaecom-modal-box {
    transform: translateY(0) scale(1);
}

.jaecom-btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(2, 8, 23, 0.18);
    transition: var(--jaecom-transition);
}

.jaecom-btn-close:hover {
    background: rgba(247, 189, 0, 0.95);
    color: var(--jaecom-dark);
    transform: scale(1.06) rotate(90deg);
}

.jaecom-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 12px 18px;
    background:
        linear-gradient(135deg, rgba(26, 50, 96, 0.98), rgba(36, 75, 143, 0.96));
    color: var(--jaecom-white);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 72px;
}

.jaecom-header-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 189, 0, 0.16);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--jaecom-secondary);
    font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.jaecom-header-content {
    min-width: 0;
    padding-right: 44px;
}

.jaecom-title {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: var(--jaecom-white);
}

.jaecom-subtitle {
    margin: 0;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.3;
}

.jaecom-body {
    flex: 1;
    padding: 8px 10px 6px 10px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
    min-height: 0;
}

.jaecom-pdf-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #e2e8f0;
    border: 1px solid rgba(26, 50, 96, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.jaecom-pdf-frame {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    background: #fff;
}

.jaecom-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 12px 12px 12px;
    background: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(26, 50, 96, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.jaecom-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: var(--jaecom-transition);
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.jaecom-btn i {
    font-size: 0.92rem;
}

.jaecom-btn-primary {
    color: #1b1b1b;
    background: linear-gradient(135deg, var(--jaecom-secondary), var(--jaecom-secondary-2));
    box-shadow:
        0 10px 24px rgba(247, 189, 0, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

.jaecom-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(247, 189, 0, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.45);
}

.jaecom-btn-secondary {
    color: var(--jaecom-primary);
    background: rgba(26, 50, 96, 0.06);
    border-color: rgba(26, 50, 96, 0.10);
    box-shadow: var(--jaecom-shadow-soft);
}

.jaecom-btn-secondary:hover {
    background: rgba(26, 50, 96, 0.10);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

body.jaecom-body-lock {
    overflow: hidden;
}

@media (max-width: 991px) {
    .jaecom-modal-box {
        width: 100%;
        height: min(94vh, 900px);
    }

    .jaecom-header {
        padding: 12px 14px 10px 14px;
    }

    .jaecom-body {
        padding: 6px 8px 4px 8px;
    }

    .jaecom-footer {
        padding: 9px 10px 10px 10px;
    }
}

@media (max-width: 768px) {
    .jaecom-modal-overlay {
        padding: 8px;
    }

    .jaecom-modal-box {
        height: 95vh;
        border-radius: 16px;
    }

    .jaecom-header {
        gap: 10px;
        min-height: auto;
    }

    .jaecom-header-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .jaecom-header-content {
        padding-right: 38px;
    }

    .jaecom-title {
        font-size: 0.98rem;
    }

    .jaecom-subtitle {
        font-size: 0.80rem;
    }

    .jaecom-body {
        padding: 6px;
    }

    .jaecom-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
    }

    .jaecom-btn {
        width: 100%;
        min-height: 44px;
    }

    .jaecom-btn-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .jaecom-subtitle {
        display: none;
    }
}

/* Estado seguro para servicios todavía no configurados en Voyager. */
.services__card[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.68;
}

.services__card[aria-disabled="true"]:hover {
    transform: none;
}

.carousel-empty {
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

/* Listado público de noticias. */
.news-page {
    min-height: 60vh;
    padding-top: clamp(3rem, 7vw, 6rem);
}

.legal-page {
    min-height: 60vh;
    padding: clamp(3rem, 7vw, 6rem) 0;
    background: #f8fafc;
}

.legal-page__content {
    max-width: 56rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid rgba(26, 50, 96, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(26, 50, 96, 0.08);
    color: #334155;
    line-height: 1.75;
}

.legal-page__content h1,
.legal-page__content h2 {
    color: #1a3260;
}

.legal-page__content h1 {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.legal-page__content h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.news-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-page__grid .news__card-img-wrap:empty {
    min-height: 13rem;
    background: linear-gradient(135deg, rgba(26, 50, 96, 0.12), rgba(247, 189, 0, 0.18));
}

.news-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.news-page__pagination a,
.news-page__pagination span {
    padding: 0.65rem 1rem;
    border: 1px solid rgba(26, 50, 96, 0.15);
    border-radius: 0.65rem;
    color: #1a3260;
    text-decoration: none;
}

.news-page__pagination a:hover {
    color: #fff;
    background: #1a3260;
}

.news-page__pagination span[aria-disabled="true"] {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .news-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-page__grid {
        grid-template-columns: 1fr;
    }

    .news-page__pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
