
/* Hero slider and global navigation tokens */
:root{
  --mobile-fab-size: 56px;   
  --mobile-fab-gap: 12px;    
  --chat-fab-gap: 16px;      
  --chat-panel-extra: 64px;  

  /* Corporate palette for interest links */
  --il-cyan: #B2FFFF;
  --il-prim: #000C97;
  --il-sec:  #8297FE;
  --il-white:#FFFFFF;
  --il-black:#000000;
  --il-deep: #021F59;
}

/* stylo de la carpeta template-parts modificando hero principal */
/* Hero slider container, slides, and captions */
.hero-carousel{
  --prim: var(--color-primario, #03178C);
  --sec:  var(--color-secundario, #7E9BF2);
  --bl:   var(--color-blanco, #FFFFFF);

  --nero: #0A0A0A;
  --nero-soft: #1A1A1A;
  --prim-vivid: #0014C4;
  --sec-glow: #9BB5FF;
  --sec-ultra: #C5D4FF;

  --ease-premium: cubic-bezier(.19, .91, .38, .98);
  --ease-elastic: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .18);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .26);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .35);

  --hero-h: clamp(240px, 38vw, 480px);
  --cap-w:  min(680px, 92vw);
  --pad-x:  clamp(14px, 2.8vw, 24px);
  --pad-y:  clamp(10px, 2.2vw, 18px);
  --radius: clamp(12px, 1.6vw, 16px);
  --autoplay: 7500ms;

  position:relative; 
  z-index:1; 
  width:100%;
  height: var(--hero-h);
  margin-top:calc(-1 * var(--subheader-overlap, 50px));
  background: var(--nero);
  overflow:hidden;
}

.hero-track{ position:absolute; inset:0; }
.hero-slide{
  position:absolute; 
  inset:0; 
  opacity:0; 
  transition:opacity .8s var(--ease-premium);
  display:grid; 
  place-items:center;
}
.hero-slide.is-active{ opacity:1; }

.hero-slide img{
  position:absolute; 
  inset:0; 
  width:100%; 
  height:100%;
  object-fit:cover; 
  object-position:center;
  filter:saturate(1.12) contrast(1.08) brightness(.98);
  transform: scale(1.02);
  will-change: transform;
}
.hero-slide.is-active img{ 
  animation: heroKenburns 22s cubic-bezier(.22, .61, .36, 1) both; 
}
@keyframes heroKenburns{
  0%   { transform: scale(1.02); filter:saturate(1.12) contrast(1.08) brightness(.98); }
  50%  { transform: scale(1.08); filter:saturate(1.15) contrast(1.10) brightness(.99); }
  100% { transform: scale(1.11); filter:saturate(1.18) contrast(1.12) brightness(1); }
}

.hero-slide .veil{
  position:absolute; 
  inset:0; 
  z-index:1;
  background:
    radial-gradient(95% 90% at 50% 50%, transparent 0%, rgba(0,0,0,.38) 88%),
    linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 30%),
    linear-gradient(180deg, transparent 75%, rgba(0,0,0,.28) 100%);
  pointer-events:none;
}

.hero-slide .caption{
  position:relative; 
  z-index:3; 
  width:min(1200px, 94vw);
  margin-inline:auto; 
  padding: clamp(8px, 2.5vw, 20px);
  min-height:100%;
  display:flex; 
  align-items:center;
}
.hero-slide.align-left  .caption{ justify-content:flex-start; text-align:left; }
.hero-slide.align-center .caption{ justify-content:center; text-align:center; }
.hero-slide.align-right .caption{ justify-content:flex-end; text-align:right; }


/* Hero caption card, badges, and copy */
.cap-box{
  max-width: var(--cap-w);
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius);
  color: var(--bl);
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(8, 8, 8, .2);
  border:1px solid rgba(255,255,255,.1);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,.06);
  position:relative;
  transform: translateY(12px);
  opacity: 0;
}
.hero-slide.is-active .cap-box{
  animation: capFadeUp .9s var(--ease-premium) .15s both;
}
@keyframes capFadeUp{ 
  from{opacity:0; transform:translateY(18px)} 
  to{opacity:1; transform:translateY(0)} 
}


.ribbon{
  display:inline-block; 
  color: var(--bl); 
  font-weight:700; 
  text-transform:uppercase;
  letter-spacing:.4px; 
  font-size: clamp(9px, 1vw, 10.5px);
  padding:.38rem .75rem; 
  border-radius:999px;
  background: linear-gradient(135deg, var(--prim) 0%, var(--prim-vivid) 100%);
  box-shadow: 0 3px 12px rgba(0, 12, 151, .32), inset 0 1px 0 rgba(255,255,255,.18);
  margin-bottom: clamp(6px, 1.4vh, 10px);
  position:relative; 
  overflow:hidden;
}
.ribbon::after{
  content:""; 
  position:absolute; 
  inset:0; 
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: translateX(-150%); 
  opacity:.5; 
  animation: ribbonShine 4.5s var(--ease-premium) 1.5s infinite;
}
@keyframes ribbonShine{ to{ transform: translateX(170%) } }


.cap-title{
  margin:.3rem 0 .35rem; 
  font-weight:900; 
  line-height:1.12;
  letter-spacing:-.025em;
  font-size: clamp(20px, min(4.2vw, calc(var(--hero-h)/11)), 42px);
  color: var(--bl);
  text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 3px 16px rgba(0,0,0,.35);
  text-wrap: balance; 
  display:-webkit-box; 
  -webkit-box-orient:vertical; 
  -webkit-line-clamp:2; 
  line-clamp:2; 
  overflow:hidden;
}


.cap-desc{
  color: var(--sec-ultra);
  font-weight: 500;
  letter-spacing: .15px;
  opacity: .93;
  font-size: clamp(11.5px, min(1.5vw, calc(var(--hero-h)/28)), 15px);
  line-height:1.55; 
  margin:0 0 clamp(8px, 1.8vh, 12px);
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.25);
  display:-webkit-box; 
  -webkit-box-orient:vertical; 
  -webkit-line-clamp:2; 
  line-clamp:2; 
  overflow:hidden;
}
.cap-desc a{
  color: var(--sec-glow); 
  text-decoration:none; 
  font-weight:600;
  border-bottom: 1.5px solid currentColor;
  transition: all .25s var(--ease-premium);
}
.cap-desc a:hover{ 
  color: var(--bl); 
  text-shadow: 0 0 14px rgba(155,181,255,.55);
}


/* Hero call-to-action buttons */
.cap-actions{
  display:flex; 
  gap: clamp(8px, 1.4vw, 12px); 
  flex-wrap:wrap; 
  justify-content:inherit; 
}

/* Mobile menu should have priority over chatbot interactions */
/* When the mobile menu is open or chatbot is flagged disabled, prevent chat from capturing clicks */
#chatFab[aria-disabled="true"],
.chat-fab.is-disabled,
body.mm-open .chat-fab,
body.mm-open #chatFab,
body.mm-open #chatPanel,
body.mm-open #chatOverlay{
  pointer-events: none !important;
}

/* Footer site-wide views badge */
.foot-bottom .site-views{
  display:inline-flex; align-items:center;
  gap:6px; padding:3px 8px; border-radius:999px;
  font-weight:800; font-size:12.5px;
  color:#021F59; background: rgba(130,151,254,.12);
  border:1px solid rgba(130,151,254,.35);
}
.foot-bottom .site-views__label{ font-weight:700; letter-spacing:.02em; }
.foot-bottom .site-views__count{ font-variant-numeric: tabular-nums; }
.foot-bottom .site-views__icon{ color: var(--color-primary); width:14px; height:14px; }

/* Dots pagination */
.logo-ribbon__dots{ display: flex; gap: 8px; justify-content: center; align-items: center; padding: 10px 6px 0; }
.logo-ribbon__dots .il-dot{ width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--il-sec); background: transparent; opacity: .7; transition: transform .2s, background .2s, opacity .2s, border-color .2s; cursor: pointer; }
.logo-ribbon__dots .il-dot:hover{ transform: scale(1.08); opacity: 1; }
.logo-ribbon__dots .il-dot.is-active{ background: var(--il-sec); border-color: var(--il-prim); opacity: 1; box-shadow: 0 0 0 4px color-mix(in oklab, var(--il-sec) 24%, transparent); }

/* Drag affordance */
.logo-ribbon{ cursor: grab; }
.logo-ribbon.is-dragging{ cursor: grabbing; }

.btn-cta{
  color: var(--bl); 
  background: linear-gradient(135deg, var(--prim) 0%, var(--prim-vivid) 50%, var(--sec) 100%);
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 22px rgba(0, 12, 151, .38), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-cta .btn-icon{
  transition: transform .35s var(--ease-elastic);
}
.btn-cta:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--prim-vivid) 0%, var(--sec) 100%);
  box-shadow: 0 10px 32px rgba(0, 12, 151, .48), 0 0 32px rgba(126, 155, 242, .28);
}
.btn-cta:hover .btn-icon{
  transform: translateX(3px);
}
.btn-cta:active{
  transform: translateY(0);
}

.btn-ghost{
  color: var(--bl); 
  background: rgba(255,255,255,.05);
  border:1.5px solid rgba(255,255,255,.22);
  box-shadow: 0 3px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 6px 26px rgba(0,0,0,.24), 0 0 20px rgba(255,255,255,.12);
}
.btn-ghost:active{
  transform: translateY(0);
}

.btn-cta::before, .btn-ghost::before{
  content:""; 
  position:absolute; 
  inset:0; 
  pointer-events:none;
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
  transform: translateX(-150%); 
  transition: transform .65s var(--ease-premium);
}
.btn-cta:hover::before, .btn-ghost:hover::before{ 
  transform: translateX(170%);
}

.btn-cta:focus-visible{ 
  outline:2px solid var(--sec-glow); 
  outline-offset:3px;
}
.btn-ghost:focus-visible{ 
  outline:2px solid rgba(255,255,255,.55); 
  outline-offset:3px;
}


/* Hero slider dots and arrows */
.hero-controls{
  position:absolute; 
  top:50%; 
  right: clamp(10px, 1.8vw, 16px); 
  transform:translateY(-50%);
  z-index:4; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap: clamp(8px, 1.3vh, 11px);
}
.hero-dot{
  position:relative; 
  width: clamp(8px, 1.1vw, 10px); 
  height: clamp(8px, 1.1vw, 10px); 
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,.55);
  background: transparent;
  cursor:pointer; 
  transition: all .24s var(--ease-premium);
}
.hero-dot:hover{
  background: rgba(255,255,255,.28);
  transform: scale(1.12);
  border-color: rgba(255,255,255,.75);
}
.hero-dot.is-active{
  background: var(--bl); 
  border-color: var(--bl); 
  transform:scale(1.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 3px 10px rgba(255,255,255,.28);
}
.hero-dot::before{
  content:""; 
  position:absolute; 
  left:-3px; 
  right:-3px; 
  bottom:-6px; 
  height:2.5px;
  background: rgba(255,255,255,.18); 
  border-radius:3px; 
  transform-origin:left; 
  transform:scaleX(0);
}
.hero-dot.is-active::before{
  background: linear-gradient(90deg, var(--sec), var(--sec-glow));
  box-shadow: 0 0 8px rgba(126,155,242,.45);
  animation: heroDotProgress var(--autoplay) linear forwards;
}
@keyframes heroDotProgress{ 
  from{transform:scaleX(0)} 
  to{transform:scaleX(1)} 
}
.hero-dot:focus-visible{ 
  outline:2px solid var(--sec-glow); 
  outline-offset:4px; 
}


.hero-arrows{ 
  position:absolute; 
  inset:0; 
  z-index:4; 
  pointer-events:none; 
}
.hero-arrow{
  position:absolute; 
  top:50%; 
  transform:translateY(-50%); 
  pointer-events:auto; 
  cursor:pointer;
  width: clamp(38px, 4.8vw, 46px); 
  height: clamp(38px, 4.8vw, 46px); 
  border-radius: clamp(10px, 1.5vw, 13px);
  border:1.5px solid rgba(255,255,255,.35);
  background: rgba(8, 8, 8, .48);
  backdrop-filter: blur(10px) saturate(140%);
  color: var(--bl); 
  font-size: clamp(26px, 4vw, 34px);
  display:grid; 
  place-items:center;
  transition: all .24s var(--ease-premium);
  opacity:.9; 
  box-shadow: var(--shadow-md);
}
.hero-arrow:hover{
  transform:translateY(-50%) scale(1.1);
  background: rgba(8, 8, 8, .68);
  border-color: rgba(255,255,255,.6);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(255,255,255,.18);
}
.hero-arrow:active{
  transform:translateY(-50%) scale(1.02);
}
.hero-arrow.prev{ left: clamp(12px, 2.2vw, 18px); }
.hero-arrow.next{ right: clamp(50px, 7.5vw, 68px); }


@media (max-width:1200px){
  .hero-carousel{ --hero-h: clamp(220px, 42vw, 440px); }
  .cap-title{ font-size: clamp(19px, 4vw, 38px); }
  .cap-desc{ font-size: clamp(11px, 1.45vw, 14.5px); }
}

@media (max-width:1024px){
  .hero-carousel{ --hero-h: clamp(200px, 46vw, 400px); margin-top:0; }
  .hero-arrow.next{ right: clamp(12px, 2.2vw, 18px); }
  .hero-controls{ right: clamp(8px, 1.5vw, 12px); gap:9px; }
  .cap-box{ max-width: min(640px, 94vw); }
  .btn-cta, .btn-ghost{ 
    padding: .6rem 1.05rem; 
    font-size: clamp(10.5px, 1.25vw, 12.5px); 
  }
}

@media (max-width:820px){
  .hero-carousel{ --hero-h: clamp(180px, 50vw, 360px); }
  
  
  .cap-desc{ display:none; }
  .cap-actions{ display:none; }
  
  .cap-box{ 
    background: rgba(6, 6, 6, .18);
    backdrop-filter: saturate(160%) blur(14px);
    padding: clamp(10px, 3.5vw, 16px) clamp(12px, 4vw, 18px);
  }
  
  .ribbon{
    font-size: clamp(8.5px, 2.4vw, 10px);
    padding: .35rem .68rem;
    margin-bottom: clamp(5px, 1.2vh, 8px);
  }
  
  .cap-title{ 
    margin: 0;
    -webkit-line-clamp:2; 
    line-clamp:2;
    font-size: clamp(17px, 4.8vw, 34px);
    line-height: 1.18;
  }
  
  .hero-arrows{ display:none; }
  .hero-controls{ 
    bottom:14px; 
    top:auto; 
    right:50%; 
    transform:translateX(50%); 
    flex-direction:row; 
    gap:10px; 
  }
}

@media (max-width:640px){
  .hero-carousel{ --hero-h: clamp(160px, 54vw, 320px); }
  
  .cap-box{ 
    padding: clamp(8px, 4vw, 14px) clamp(10px, 4.5vw, 16px);
    background: rgba(5, 5, 5, .15);
  }
  
  .ribbon{
    font-size: clamp(8px, 2.2vw, 9.5px);
    padding: .32rem .6rem;
  }
  
  .cap-title{ 
    font-size: clamp(16px, 5.2vw, 30px);
    -webkit-line-clamp:2; 
    line-clamp:2;
  }
}

@media (max-width:480px){
  .hero-carousel{ --hero-h: clamp(140px, 58vw, 280px); }
  
  .cap-box{
    padding: clamp(7px, 4.2vw, 12px) clamp(9px, 5vw, 14px);
  }
  
  .ribbon{
    font-size: 8px;
    padding: .28rem .55rem;
    margin-bottom: 5px;
  }
  
  .cap-title{ 
    font-size: clamp(15px, 5.5vw, 26px);
  }
  
  .hero-controls{ gap:8px; bottom:12px; }
  .hero-dot{ width:7px; height:7px; }
}

@media (max-height:560px){
  .hero-carousel{ --hero-h: clamp(130px, 55vh, 300px); }
  .cap-title{ font-size: clamp(14px, 4.5vw, 28px); }
  .ribbon{ font-size: 7.5px; padding:.25rem .5rem; }
}


@media (prefers-reduced-motion: reduce){
  .hero-slide, 
  .hero-slide img, 
  .cap-box, 
  .ribbon::after, 
  .hero-dot.is-active::before,
  .btn-cta, 
  .btn-ghost,
  .btn-cta::before,
  .btn-ghost::before,
  .btn-icon{
    transition:none !important; 
    animation:none !important;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){
  .cap-box{
    backdrop-filter: saturate(200%) blur(20px);
  }
  .hero-arrow{
    backdrop-filter: blur(14px) saturate(160%);
  }
}

.hero-carousel{
  
  --cap-alpha: .2;       
  --cap-blur: 4px;
  --cap-border: .06;      

  --veil-center: .16;     
  --veil-top: .08;        
  --veil-bottom: .16;     
}


.hero-carousel .cap-box{
  background: rgba(0,0,0,var(--cap-alpha)) !important;
  backdrop-filter: saturate(140%) blur(var(--cap-blur)) !important;
  -webkit-backdrop-filter: saturate(140%) blur(var(--cap-blur)) !important;
  border-color: rgba(255,255,255,var(--cap-border)) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.05) !important;
}


.hero-carousel .hero-slide .veil{
  background:
    radial-gradient(95% 90% at 50% 50%, transparent 42%, rgba(0,0,0,var(--veil-center)) 88%),
    linear-gradient(180deg, rgba(0,0,0,var(--veil-top)) 0%, transparent 30%),
    linear-gradient(180deg, transparent 76%, rgba(0,0,0,var(--veil-bottom)) 100%) !important;
}


.hero-carousel .hero-arrow{
  background: rgba(10,10,10,.46) !important; 
}

.hero-carousel{
  
  --rib-h: clamp(16px, 2vw, 20px);
  --rib-pad-x: clamp(7px, 1.2vw, 10px);
  --rib-accent-w: 4px;
  --rib-notch: 8px;
  --rib-radius: 0;

  
  --rib-surface-tint: 10%;
  --rib-bg-1: color-mix(in oklch, var(--color-secundario, #7E9BF2) var(--rib-surface-tint), #ffffff);
  --rib-bg-2: color-mix(in oklch, var(--color-primario,   #000C97) calc(var(--rib-surface-tint) - 3%), #F7FAFF);

  --rib-text: #0A1736; 
  --rib-border: color-mix(in oklch, var(--color-primario, #000C97) 18%, #E9EEFF);

  
  --rib-accent-1: var(--color-primario, #000C97);
  --rib-accent-2: color-mix(in oklch, var(--color-secundario, #7E9BF2) 70%, #4E6EDC);

  
  --rib-shadow: 0 8px 18px rgba(8,15,60,.12);
  --rib-inner-hi: 0 1px 0 rgba(255,255,255,.55) inset, 0 0 0 1px rgba(255,255,255,.16) inset;
  --rib-sheen: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.18) 46%, rgba(255,255,255,.10) 54%, transparent 100%) -140% 0/200% 100% no-repeat;
}


.hero-carousel .ribbon{
  display:inline-flex; align-items:center; justify-content:center; gap:.32rem;
  min-height:var(--rib-h);
  padding:.22rem calc(var(--rib-pad-x) + var(--rib-notch)) .22rem calc(var(--rib-pad-x) + var(--rib-accent-w));
  color:var(--rib-text)!important; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  font-size:clamp(.58rem, .9vw, .68rem);
  border-radius:var(--rib-radius)!important; border:1px solid var(--rib-border)!important;
  position:relative; isolation:isolate; text-decoration:none!important;

  
  background:
    var(--rib-sheen),
    linear-gradient(180deg, var(--rib-bg-1), var(--rib-bg-2)),
    repeating-linear-gradient(135deg, rgba(12,20,44,.025) 0 1px, transparent 1px 5px)
    !important;

  
  clip-path: polygon(0 0, calc(100% - var(--rib-notch)) 0, 100% 50%, calc(100% - var(--rib-notch)) 100%, 0 100%);

  box-shadow: var(--rib-shadow), var(--rib-inner-hi) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);

  transition: transform .14s ease, box-shadow .14s ease, background-position .6s ease;
}


.hero-carousel .ribbon::before{
  content:""; position:absolute; left:-1px; top:-1px; bottom:-1px; width:var(--rib-accent-w);
  background: linear-gradient(180deg, var(--rib-accent-1), var(--rib-accent-2));
  z-index:2;
}


.hero-carousel .ribbon::after{
  content:""; position:absolute; right:-1px; top:-1px; bottom:-1px; width:var(--rib-notch);
  background:inherit; clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-right:1px solid var(--rib-border);
  filter: drop-shadow(1px 0 2px rgba(0,0,0,.06));
  z-index:1;
}


.hero-carousel .ribbon:not(.ribbon--static):hover{
  transform:translateY(-1px);
  box-shadow: 0 10px 22px rgba(8,15,60,.16), var(--rib-inner-hi) !important;
  background-position: 140% 0, 0 0, 0 0;
}



.hero-carousel .hero-slide.align-center .ribbon{
  clip-path: inset(0);
  padding:.22rem calc(var(--rib-pad-x) + var(--rib-accent-w)) !important;
}
.hero-carousel .hero-slide.align-center .ribbon::before,
.hero-carousel .hero-slide.align-center .ribbon::after{ display:none; }


.hero-carousel .hero-slide.align-right .ribbon{
  clip-path: polygon(var(--rib-notch) 0, 100% 0, 100% 100%, var(--rib-notch) 100%, 0 50%);
  padding:.22rem calc(var(--rib-pad-x) + var(--rib-accent-w) + var(--rib-notch))
          .22rem var(--rib-pad-x) !important;
}
.hero-carousel .hero-slide.align-right .ribbon::before{
  right:-1px; left:auto; 
}
.hero-carousel .hero-slide.align-right .ribbon::after{
  left:-1px; right:auto; 
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  border-right:none; border-left:1px solid var(--rib-border);
  filter: drop-shadow(-1px 0 2px rgba(0,0,0,.06));
}


@media (prefers-reduced-motion: reduce){
  .hero-carousel .ribbon{ transition:none; }
}
@media (prefers-contrast: high){
  .hero-carousel .ribbon{ border-width:2px !important; }
}


/* Feature cards palette and motion tokens */
:root{
  
  --prim: #03178C;
  --sec:  #293a6d;
  --white:#ffffff;

  
  --overlap: 72px;         
  --card-minw: 220px;      
  --card-minh: 240px;      
  --gap: 20px;             

  
  --fx-glow: .65;          
  --fx-shadow: 1;          
  --fx-sheen: .10;         
  --fx-anim: 1;            

  
  --e1: cubic-bezier(.23,1,.32,1);
  --e2: cubic-bezier(.34,1.56,.64,1);

  
  --sh-1: 0 1px 2px rgba(3,23,140,.05);
  --sh-2: 0 4px 12px rgba(3,23,140,.10);
  --sh-3: 0 12px 30px rgba(3,23,140,.13);
  --sh-4: 0 20px 50px rgba(3,23,140,.10);
}


/* Feature cards layout and decorative background */
.features-section{
  position:relative;
  z-index: 10;
  margin-top: calc(-1 * var(--overlap));
  padding: 28px 20px 44px;
  overflow:hidden;
  background: transparent;
}


.features-section::before,
.features-section::after{
  content:""; position:absolute; border-radius:50%;
  pointer-events:none; z-index:0; filter: blur(48px);
  opacity:.9;
}
.features-section::before{
  width: 420px; height:420px; top:-160px; right:-120px;
  background: radial-gradient(circle,
     rgba(126,155,242,.14), rgba(126,155,242,.05) 45%, transparent 70%);
  animation: float1 20s var(--e1) infinite both;
}
.features-section::after{
  width: 380px; height:380px; bottom:-90px; left:-120px;
  background: radial-gradient(circle,
     rgba(3,23,140,.12), rgba(3,23,140,.04) 45%, transparent 70%);
  animation: float2 18s var(--e1) infinite both;
}

@keyframes float1{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(-18px,14px) scale(1.06)}
}
@keyframes float2{
  0%,100%{transform:translate(0,0) scale(1)}
  50%{transform:translate(16px,-12px) scale(1.07)}
}


.features-grid{
  display:grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(var(--card-minw), 1fr));
  max-width: 1000px; margin: 0 auto; position:relative; z-index:1;
}


.features-grid[data-count="3"]{ grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.features-grid[data-count="2"]{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }


/* Feature card base styling */
.feature-card{
  position:relative; isolation:isolate; overflow:hidden; cursor:pointer;
  min-height: var(--card-minh);
  background: var(--white);
  
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px,
                     100% calc(100% - 8px), calc(100% - 8px) 100%,
                     8px 100%, 0 calc(100% - 8px));
  
  box-shadow:
    calc(var(--fx-shadow) * 1) var(--sh-1),
    calc(var(--fx-shadow) * 1) var(--sh-2),
    calc(var(--fx-shadow) * 1) var(--sh-3),
    calc(var(--fx-shadow) * 1) var(--sh-4),
    inset 0 0 0 1px rgba(126,155,242,.18);
  transition: transform .5s var(--e1), box-shadow .5s var(--e1), filter .5s var(--e1);
  animation: cardEntrance .6s var(--e1) both;
}

.feature-card__link{
  position:relative;
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
  clip-path:inherit;
}
.feature-card__link:focus-visible{ outline:none; }
.feature-card:nth-child(1){ animation-delay: .09s }
.feature-card:nth-child(2){ animation-delay: .16s }
.feature-card:nth-child(3){ animation-delay: .23s }
.feature-card:nth-child(4){ animation-delay: .30s }

@keyframes cardEntrance{
  from{ opacity:0; transform: translateY(36px) scale(.96) }
  to  { opacity:1; transform: translateY(0)  scale(1) }
}


.feature-card::before{
  content:""; position:absolute; inset:-3px; z-index:-1; clip-path:inherit;
  background: linear-gradient(135deg,
     var(--prim) 0%, var(--sec) 25%,
     color-mix(in srgb, var(--sec) 70%, var(--prim) 30%) 50%,
     var(--sec) 75%, var(--prim) 100%);
  background-size: 260% 260%;
  opacity:0; filter: blur(2px);
  animation: gradientFlow 10s linear infinite;
  transition: opacity .45s var(--e1), filter .45s var(--e1);
}
@keyframes gradientFlow{
  0%,100%{background-position:0% 50%}
  50%    {background-position:100% 50%}
}


.feature-card::after{
  content:""; position:absolute; top:0; right:0; width:120px; height:4px;
  background: linear-gradient(90deg, transparent 0%,
     rgba(126,155,242,.4) 15%, var(--sec) 40%, var(--prim) 80%, var(--prim) 100%);
  box-shadow: 0 0 24px rgba(126,155,242,.6), 0 4px 14px rgba(126,155,242,.45);
  transform-origin:right;
  animation: linePulse 3.5s ease-in-out infinite;
  transition: width .4s var(--e1), height .4s var(--e1), box-shadow .4s var(--e1);
}
@keyframes linePulse{
  0%,100%{opacity:.55; transform:scaleX(1)}
  50%    {opacity:1;   transform:scaleX(1.18)}
}


.feature-card__bg{
  position:absolute; inset:0; z-index:1; clip-path:inherit;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  filter: brightness(.9) saturate(.92) contrast(1.05);
  transition: transform .6s var(--e1), filter .6s var(--e1);
}

.feature-card__bg::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(65% 45% at 70% 20%, transparent 0%, rgba(3,23,140,.08) 70%),
    linear-gradient(170deg, transparent 0%, rgba(3,23,140,.12) 35%, rgba(3,23,140,.28) 90%);
}

.feature-card__bg::after{
  content:""; position:absolute; inset:0; z-index:2;
  background: linear-gradient(135deg, transparent 0%,
              rgba(255,255,255,var(--fx-sheen)) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: shine 9s ease-in-out infinite;
}
@keyframes shine{
  0%,10%,90%,100%{transform:translateX(-120%) skewX(-12deg)}
  50%{transform:translateX(210%) skewX(-12deg)}
}


.feature-card__bg:not([style*="background-image"]){
  background:
    repeating-linear-gradient(45deg, transparent, transparent 28px,
      rgba(126,155,242,.03) 28px, rgba(126,155,242,.03) 56px),
    repeating-linear-gradient(-45deg, transparent, transparent 28px,
      rgba(3,23,140,.025) 28px, rgba(3,23,140,.025) 56px),
    radial-gradient(circle at 20% 80%, rgba(126,155,242,.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(3,23,140,.10) 0%, transparent 35%),
    linear-gradient(140deg, #f7f9ff 0%, #f3f6ff 50%, #f7f9ff 100%);
}


.feature-card__wave{
  position:absolute; left:0; right:0; bottom:0; z-index:2; height:44%;
  background:
    radial-gradient(ellipse 30% 70% at 2% 50%, rgba(255,255,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 95% 8%, rgba(255,255,255,.18) 0%, transparent 65%),
    linear-gradient(125deg,
      var(--prim) 0%,
      color-mix(in srgb, var(--prim) 55%, var(--sec) 45%) 22%,
      color-mix(in srgb, var(--prim) 35%, var(--sec) 65%) 45%,
      color-mix(in srgb, var(--prim) 18%, var(--sec) 82%) 68%,
      var(--sec) 88%,
      color-mix(in srgb, var(--sec) 75%, var(--white) 25%) 100%);
  clip-path: polygon(0 62%, 5% 58%, 12% 51%, 20% 45%, 30% 39%, 40% 33%,
                     50% 27%, 60% 21%, 70% 15%, 80% 9%, 90% 4%, 100% 0,
                     100% 100%, 0 100%);
  box-shadow:
    0 -28px 74px rgba(3,23,140,.34) inset,
    0 -12px 36px rgba(126,155,242,.28) inset,
    0 -4px 16px rgba(126,155,242,.34) inset,
    0 2px 0 rgba(255,255,255,.58) inset,
    0 -4px 12px rgba(3,23,140,.14);
  transition: height .55s var(--e1), clip-path .55s var(--e1), background .55s var(--e1);
}

.feature-card__wave::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 108%,
      rgba(255,255,255,.12) 0%, transparent 75%);
  opacity: calc(var(--fx-glow));
  animation: waveRipple 6s ease-in-out infinite;
}
@keyframes waveRipple{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.06)}
}
.feature-card__wave::after{
  content:""; position:absolute; inset:0; opacity:.6;
  background:
    radial-gradient(circle 3px at 15% 25%, rgba(255,255,255,.45), transparent 3.5px),
    radial-gradient(circle 2px at 52% 65%, rgba(255,255,255,.3), transparent 2.6px),
    radial-gradient(circle 1.6px at 80% 80%, rgba(255,255,255,.32), transparent 2.1px);
  animation: particles 9s ease-in-out infinite;
}
@keyframes particles{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-8px) scale(1.08)}
}


.feature-card__content{
  position:relative; z-index:3; min-height: var(--card-minh);
  padding: 18px 16px 22px;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  text-align:center; gap:12px; color:#fff;
}


.feature-card__icon{
  width: 64px; height:64px; display:grid; place-items:center; position:relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,.35), rgba(255,255,255,.12) 60%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 10px 34px rgba(3,23,140,.32),
    0 4px 16px rgba(126,155,242,.28),
    inset 0 2px 4px rgba(255,255,255,.58);
  color: var(--white);
  opacity:0; transform: translateY(18px) scale(.9);
  transition: transform .45s var(--e2), opacity .45s var(--e2);
}
.feature-card__icon::after{
  content:""; position:absolute; inset:-6px; border:2px solid transparent; border-radius:3px;
  background: linear-gradient(135deg, rgba(126,155,242,.45), rgba(3,23,140,.45)) border-box;
  
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity:.6;
}
.feature-card__icon svg{ width:30px; height:30px; filter: drop-shadow(0 4px 10px rgba(3,23,140,.45)); }


.feature-card__title{
  margin:0; padding:0 0 6px; position:relative;
  font-size: clamp(15px, 2.2vw, 17px); font-weight:800; line-height:1.25; letter-spacing:-.02em; color:#fff;
  text-shadow: 0 3px 8px rgba(3,23,140,.45), 0 8px 26px rgba(0,0,0,.35);
  transition: transform .35s var(--e1), text-shadow .35s var(--e1);
}
.feature-card__title::after{
  content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:50%; height:2px;
  background: linear-gradient(90deg, transparent, rgba(126,155,242,.45) 10%, var(--sec) 35%, var(--prim) 70%, transparent);
  box-shadow: 0 0 18px rgba(126,155,242,.6);
  animation: underline 3.2s ease-in-out infinite;
}
@keyframes underline{
  0%,100%{opacity:.8} 50%{opacity:1}
}


.feature-card__description{
  margin:0; padding:0 8px; max-width:28ch;
  font-size:12.5px; line-height:1.55; font-weight:500; letter-spacing:.01em; color: rgba(255,255,255,.97);
  max-height: calc(1.55em * 2); overflow:hidden; position:relative;
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  opacity:0; transform: translateY(14px);
  transition: transform .45s var(--e2) .05s, opacity .45s var(--e2) .05s;
}


.feature-card__cta-icon{
  width:46px; height:46px; display:grid; place-items:center; position:relative;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.3), rgba(255,255,255,.1) 60%);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 8px 26px rgba(3,23,140,.38), inset 0 2px 4px rgba(255,255,255,.6);
  color:#fff;
  opacity:0; transform: translateY(18px) scale(.9);
  transition: transform .45s var(--e2) .08s, opacity .45s var(--e2) .08s;
}
.feature-card__cta-icon::before{
  content:""; position:absolute; inset:-8px; border-radius:50%;
  background: linear-gradient(135deg, var(--sec), var(--prim));
  -webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
  mask: radial-gradient(farthest-side, transparent 58%, #000 60%);
  opacity:.0; transform: scale(.92);
  transition: opacity .3s var(--e1), transform .3s var(--e1);
}
.feature-card__cta-icon svg{ width:20px; height:20px; filter: drop-shadow(0 3px 10px rgba(3,23,140,.45)); transition: transform .3s var(--e1) }


@media (hover:hover) and (pointer:fine){
  .feature-card:hover{
    transform: translateY(-16px) scale(1.03);
    box-shadow:
      0 2px 6px rgba(3,23,140,.08),
      0 8px 20px rgba(3,23,140,.15),
      0 20px 48px rgba(3,23,140,.2),
      inset 0 0 0 2px rgba(126,155,242,.35);
  }
  .feature-card:hover::before{ opacity:1 }
  .feature-card:hover::after{ width:170px; height:5px }
  .feature-card:hover .feature-card__bg{ transform: scale(1.18); filter: brightness(.66) saturate(1.28) contrast(1.15) }
  .feature-card:hover .feature-card__wave{ height:100%; clip-path:none }
  .feature-card:hover .feature-card__icon,
  .feature-card:hover .feature-card__description,
  .feature-card:hover .feature-card__cta-icon{ opacity:1; transform: translateY(0) scale(1) }
  .feature-card:hover .feature-card__cta-icon::before{ opacity:1; transform: scale(1.05) }
  .feature-card:hover .feature-card__cta-icon svg{ transform: translateX(4px) }
}


.feature-card:focus-within{
  outline: 4px solid var(--sec); outline-offset: 8px;
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(3,23,140,.28), 0 0 0 10px rgba(126,155,242,.22);
}
.feature-card:focus-within .feature-card__icon,
.feature-card:focus-within .feature-card__description,
.feature-card:focus-within .feature-card__cta-icon{ opacity:1; transform: translateY(0) }


@media (max-width: 1024px){
  :root{ --card-minw: 210px; --gap: 18px }
  .features-section{ margin-top: calc(-1 * 64px); padding: 26px 18px 40px }
}
@media (max-width: 768px){
  :root{ --card-minw: 200px; --gap: 16px }
  .features-section{ margin-top: calc(-1 * 58px); padding: 22px 16px 36px }
  .features-section::before, .features-section::after{ width:320px; height:320px }
  
  .feature-card{ transition: transform .45s var(--e1) }
}
@media (max-width: 600px){
  
  .features-grid{ grid-template-columns: 1fr; max-width: 360px; gap: 14px }
  .features-section{ margin-top: calc(-1 * 52px); padding: 20px 14px 32px }
  .feature-card{ min-height: 230px }
  .feature-card__wave{ height: 38%; clip-path: polygon(0 64%, 12% 56%, 30% 45%, 50% 34%, 70% 24%, 100% 10%, 100% 100%, 0 100%) }
  
  .feature-card__bg{ transform: scale(1.04) }
}
@media (max-width: 480px){
  :root{ --card-minw: 100% }
  .features-section{ padding: 18px 12px 28px }
  .feature-card__icon{ width:56px; height:56px }
  .feature-card__icon svg{ width:26px; height:26px }
  .feature-card__cta-icon{ width:42px; height:42px }
}


@media (prefers-reduced-motion: reduce){
  :root{ --fx-anim: 0 }
  *,*::before,*::after{ animation: none !important; transition:none !important }
}

@media (prefers-contrast: high){
  .feature-card{ box-shadow: 0 0 0 4px var(--prim); border: 3px solid var(--prim) }
  .feature-card__title{ color: var(--prim); background:#fff; padding:6px 10px; text-shadow:none }
  .feature-card:hover .feature-card__title,
  .feature-card:focus-within .feature-card__title{ color:#fff; background:var(--prim) }
  .feature-card__icon, .feature-card__cta-icon{ border: 3px solid #fff }
}


@media print{
  .features-section{ margin-top:0; padding:20px 0; background:#fff }
  .features-section::before, .features-section::after{ display:none }
  .feature-card{ break-inside:avoid; box-shadow:none; border:2px solid var(--prim) }
  .feature-card::before, .feature-card::after, .feature-card__bg, .feature-card__wave{ display:none }
  .feature-card__title{ color: var(--prim); text-shadow:none }
  .feature-card__icon, .feature-card__description, .feature-card__cta-icon{ opacity:1; transform:none }
}


.feature-card[data-loading="true"]{ pointer-events:none; opacity:.75 }
.feature-card[data-loading="true"]::before{
  opacity:1;
  background: linear-gradient(90deg, transparent 0%, rgba(126,155,242,.45) 50%, transparent 100%);
  background-size:200% 100%; animation: loadingShimmer 1.6s ease-in-out infinite;
}
@keyframes loadingShimmer{ from{background-position:-200% 0} to{background-position:200% 0} }
.feature-card[aria-disabled="true"]{ opacity:.5; pointer-events:none; filter: grayscale(.5) }
.feature-card.active{ box-shadow: 0 0 0 4px var(--prim), 0 0 0 8px rgba(126,155,242,.35), 0 18px 56px rgba(3,23,140,.22) }
.feature-card.active::before{ opacity:1 }


.feature-card{ contain: layout style paint; content-visibility:auto; will-change: transform, box-shadow; transform: translateZ(0) }
.feature-card__bg{ will-change: transform, filter; backface-visibility:hidden; transform: translateZ(0) }
.feature-card__wave{ will-change: height, clip-path, background; transform: translateZ(0) }
.feature-card__icon, .feature-card__description, .feature-card__cta-icon{ will-change: opacity, transform }
/* === PATCH RESPONSIVO: forzar salto de línea y evitar solapes === */
/* 1) Asegura que el grid y las tarjetas puedan encoger sin overflow */
.features-grid,
.feature-card{
  min-width: 0;
}

/* 2) Tablet: 2 columnas como máximo, incluso si hay data-count */
@media (max-width: 1024px){
  .features-grid{
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
  .features-grid[data-count="3"],
  .features-grid[data-count="2"]{
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

/* 3) Móvil: 1 columna a ancho completo (quita max-width estrecho) */
@media (max-width: 640px){
  .features-grid{
    grid-template-columns: 1fr !important;
    max-width: 100% !important;  /* sobrescribe el 360px para usar todo el ancho */
    gap: 14px;                   /* mantiene respiración sin solape */
  }
  .features-grid[data-count="3"],
  .features-grid[data-count="2"]{
    grid-template-columns: 1fr !important;
  }
}

/* 4) Evita que la sección se solape con el bloque superior en pantallas pequeñas */
@media (max-width: 768px){
  .features-section{
    margin-top: 0 !important;  /* desactiva el overlap en móvil/tablet */
  }
}

/* 5) En móviles muy estrechos, limita “sangrados” de sombras/ondas */
@media (max-width: 480px){
  .feature-card{
    contain: paint layout; /* acota efectos dentro de cada tarjeta */
  }
}


.hub{ padding: 10px 0 26px; }
.hub .wrap{ align-items:flex-start; }
.hub-layout{ --aside:290px; --gap:24px; display:grid; width:100%; gap:var(--gap); grid-template-columns: var(--aside) 1fr; align-items:start; }
@media (max-width:1024px){ .hub-layout{ grid-template-columns:1fr; } }


.hub-aside{ position:sticky; top:96px; align-self:start; }
@media (max-width:1024px){ .hub-aside{ position:static } }
.hub-quick{ display:grid; gap:12px; background:#fff; border:1px solid #e9eef0; border-radius:16px; padding:14px; box-shadow:0 10px 26px rgba(0,0,0,.06); }
.hub-qtitle{ font-weight:900; font-size:14px; color:#493c99; letter-spacing:.2px; display:flex; align-items:center; gap:8px; margin:2px 0 6px; }
.hub-qtitle::before{ content:""; width:8px; height:8px; border-radius:2px; background:linear-gradient(90deg,var(--vio),var(--teal),var(--or)); }
.hub-qrail{ display:grid; grid-template-columns:1fr; gap:10px; }
.hub-qitem{ display:grid; grid-template-columns:56px 1fr; gap:10px; align-items:center; text-decoration:none; padding:8px; border-radius:12px; border:1px solid #eef3f6; background:linear-gradient(180deg,#fff,#fafcff); transition:transform .12s, box-shadow .12s, border-color .12s; }
.hub-qitem:hover{ transform:translateY(-1px); box-shadow:0 8px 18px rgba(90,78,166,.12); border-color:#e3e9fb; }
.hub-qitem img{ height:56px; width:auto; display:block }
.hub-qitem b{ font-size:13px; color:#0b3a39; }
.hub-qitem small{ font-size:12px; color:#506a69 }
@media (max-width:1024px){ .hub-quick{ overflow:auto; } .hub-qrail{ grid-auto-flow:column; grid-auto-columns:minmax(220px, 1fr); } }


/* Institutional hub cards and feed */
.hub-main{ width:100%; }
.hub-sec{ margin: 28px 0; }
.hub-head{ display:flex; align-items:center; gap:12px; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.hub-head .title-ltra{ font-size:22px; }
.hub-more{ text-decoration:none; font-weight:900; font-size:13px; color:#0b6d6b; }
.hub-sub{ width:100%; margin-top:-6px; font-size:13px; color:#566a78 }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ --b:rgba(90,78,166,.18); border:1px solid var(--b); background:linear-gradient(180deg,#fff,rgba(90,78,166,.06)); color:#493c99; font-weight:800; font-size:12px; padding:6px 10px; border-radius:999px; text-decoration:none; }
.chip.is-on{ background:linear-gradient(90deg,var(--vio),var(--teal)); color:#fff; border-color:transparent; }


.hub-card{ background:#fff; border:1px solid #e9eef0; border-radius:14px; padding:12px; box-shadow:0 10px 26px rgba(0,0,0,.06); display:grid; gap:8px; position:relative; overflow:hidden; }
.hub-card figure{ margin:0; border-radius:10px; overflow:hidden; }
.hub-card img{ width:100%; height:160px; object-fit:cover; display:block; transition:transform .18s ease; }
.hub-card:hover img{ transform:scale(1.02); }
.hub-card .cat{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:900; letter-spacing:.3px; text-transform:uppercase; color:#fff; background:linear-gradient(90deg,var(--vio),var(--teal),var(--or)); padding:5px 9px; border-radius:999px; width:max-content; box-shadow:0 6px 14px rgba(90,78,166,.18); }
.hub-card .ttl{ font-size:16px; font-weight:900; color:#0a2b2a; margin:0; line-height:1.25; }
.hub-card .sum{ font-size:13px; color:#415b5a; margin:0; }
.hub-card .act{ display:flex; gap:10px; flex-wrap:wrap }
.hub-btn{ background:linear-gradient(90deg,var(--vio),var(--teal)); color:#fff; border-radius:10px; padding:9px 12px; font-size:12.5px; font-weight:900; text-decoration:none; box-shadow:0 8px 18px rgba(9,161,158,.18); }
.hub-link{ color:var(--or); font-weight:900; font-size:12px; text-decoration:none; }
.hub-card .flag{ position:absolute; top:10px; right:-38px; transform:rotate(35deg); background:linear-gradient(90deg,var(--or),#ffb182); color:#fff; font-weight:900; font-size:11px; padding:6px 56px; box-shadow:0 8px 18px rgba(250,134,61,.26); }


.hub-grid-cards{ display:grid; gap:14px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width:1024px){ .hub-grid-cards{ grid-template-columns: repeat(2, minmax(0,1fr)) } }
@media (max-width:720px){ .hub-grid-cards{ grid-template-columns: 1fr } }
.hub-card.job .meta{ display:flex; gap:10px; align-items:center; font-size:12px; color:#375b5a; flex-wrap:wrap; }
.badge{ display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:999px; font-weight:900; font-size:11px; background:linear-gradient(90deg, #e9e6ff, #e1fff7); color:#493c99; border:1px solid #dcdcf6; }
.badge.open{ background:linear-gradient(90deg, rgba(250,134,61,.12), rgba(9,161,158,.12)); border-color:#ffd7bf; color:#a55328; }
.deadline{ font-weight:900; color:#0b3a39; }
.meta svg{ width:14px; height:14px; }


.hub-feed{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.hub-feed li{
  display:grid; grid-template-columns: 130px 1fr auto; gap:12px; align-items:center;
  background:#fff; border:1px solid #e9eef0; border-radius:12px; padding:12px 14px;
  box-shadow:0 8px 22px rgba(0,0,0,.06); position:relative;
}
.hub-feed li::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; border-radius:12px 0 0 12px; background:linear-gradient(180deg,var(--vio),var(--teal)); }
.hub-feed time{ display:inline-flex; align-items:center; gap:8px; font-weight:900; color:#0a2b2a; background:#f4f7ff; border:1px solid #e2e6ff; border-radius:10px; padding:6px 10px; width:max-content; }
.hub-feed a{ text-decoration:none; color:#0b3a39; font-weight:800 }
.hub-feed .go{ color:var(--or); font-weight:900; text-decoration:none; }

/* Visit us section palette and spacing */
:root{
  --navy:#000C97;
  --accent:#8297FE;
  --white:#FFFFFF;

  --celeste-25:#FAFBFF;
  --celeste-50:#F4F7FF;
  --celeste-100:#EEF3FF;

  --g-900:#0F172A; --g-800:#1E293B; --g-700:#334155;
  --g-600:#475569; --g-500:#64748B; --g-300:#CBD5E1; --g-200:#E2E8F0;

  --r-sm:14px; --r-md:16px;
  --sh-sm:0 2px 7px rgba(15,23,42,.06);
  --sh-md:0 12px 28px rgba(15,23,42,.12);

  --ease:cubic-bezier(.2,.6,.2,1);
}

.visit-section{
  --gap: clamp(20px, 3.5vw, 40px);
  padding: clamp(36px, 6vw, 60px) 0;
  background: linear-gradient(135deg, var(--celeste-25) 0%, var(--celeste-50) 100%);
  position:relative; overflow:hidden;
}

.visit-container{ max-width:1200px; margin:0 auto; padding:0 20px; position:relative; z-index:1; }


.visit-grid{
  display:grid;
  grid-template-columns: clamp(320px, 34vw, 420px) 1fr;
  gap: var(--gap);
  align-items: stretch;     
}


.visit-header{ margin-bottom: 4px; }
.visit-kicker{
  margin:0 0 6px; font: 800 11px/1.2 "Inter",system-ui,sans-serif;
  letter-spacing:.12em; text-transform:uppercase;
  color: color-mix(in srgb, var(--g-800) 75%, var(--g-500));
}
.visit-title{
  margin:0 0 6px;
  font: 900 clamp(22px, 2.4vw, 28px)/1.16 "Inter",system-ui,sans-serif;
  color: var(--g-900);
  background: linear-gradient(90deg, var(--g-900), var(--navy) 70%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip:text;
}
.visit-subtitle{
  margin:0; font: 600 14px/1.5 "Inter",system-ui,sans-serif; color: var(--g-500);
}


.visit-info-panel{ display:flex; flex-direction:column; gap: 16px; }
.visit-card{
  background:#fff; border:1px solid var(--g-200); border-radius: var(--r-sm);
  padding: 18px; box-shadow: var(--sh-sm);
  transition: box-shadow .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.visit-card:hover{ transform: translateY(-2px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--g-200)); }

.card-header{ display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; }
.card-icon{
  width:42px; height:42px; border-radius:12px;
  display:grid; place-items:center; color:#fff; flex-shrink:0;
  background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--accent) 30%, var(--navy)));
  box-shadow: 0 6px 16px rgba(0,12,151,.18);
}
.card-icon svg{ width:20px; height:20px; }
.card-title{ margin:0; font: 800 16px/1.2 "Inter",system-ui,sans-serif; color: var(--g-900); }
.card-desc{ margin:2px 0 0; font: 600 13px/1.35 "Inter",system-ui,sans-serif; color: var(--g-500); }


.schedule-grid{ display:flex; flex-direction:column; gap:10px; }
.schedule-item{
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:12px; padding:6px 0;
}
.day{ font: 700 14px/1.2 "Inter",system-ui,sans-serif; color: var(--g-700); }
.dots{ height:1px; background: linear-gradient(90deg, transparent, var(--g-200) 20%, var(--g-200) 80%, transparent); }
.time{ font: 800 14px/1.2 "Inter",system-ui,sans-serif; color: var(--navy); text-align:right; }
.time.closed{ color:#EF4444; font-weight:700; }


.address-info{ display:flex; flex-direction:column; gap:4px; }
.address-line{ margin:0; font: 600 14px/1.4 "Inter",system-ui,sans-serif; color: var(--g-700); }
.address-note{ margin:4px 0 0; font: 600 12px/1.3 "Inter",system-ui,sans-serif; color: var(--g-500); font-style: italic; }


.visit-note{
  display:flex; align-items:flex-start; gap:8px;
  margin-top: 2px; padding: 10px 14px;
  background: var(--celeste-100); border:1px solid var(--g-200); border-radius: 10px;
  font: 600 12px/1.4 "Inter",system-ui,sans-serif; color: var(--g-600);
}
.visit-note svg{ color: var(--accent); flex-shrink:0; margin-top: 1px; }


.visit-map-container{ height: 100%; min-height: 460px; }
.map-wrapper{
  position: relative; width:100%; height:100%;
  border-radius: var(--r-md); overflow:hidden;
  border:1px solid var(--g-200); box-shadow: 0 8px 28px rgba(2,31,89,.12);
}
.map-wrapper iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
  filter: grayscale(.05) saturate(1.1) contrast(1.05);
  transition: filter .25s var(--ease);
}
.map-wrapper:hover iframe{ filter: grayscale(0) saturate(1.2) contrast(1.1); }


.map-pin{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:2; pointer-events:none; }
.pin-icon{
  width:24px; height:24px; background: var(--navy);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 16px rgba(0,12,151,.3);
  position:relative;
}
.pin-icon::after{ content:""; position:absolute; inset:0; margin:auto; width:12px; height:12px; background:#fff; border-radius:50%; top:6px; left:6px; }
.map-pulse{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:40px; height:40px; border:2px solid var(--navy); border-radius:50%;
  animation: mapPulse 2s ease-out infinite; pointer-events:none; z-index:1;
}
@keyframes mapPulse{
  0%{ transform:translate(-50%,-50%) scale(.8); opacity:1; }
  100%{ transform:translate(-50%,-50%) scale(1.4); opacity:0; }
}


.whatsapp-fab{
  position:absolute; right:20px; bottom:20px; z-index:3;
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius: 999px;
  background:#25D366; color:#fff; font: 800 13px/1 "Inter",system-ui,sans-serif;
  text-decoration:none; box-shadow:0 8px 24px rgba(37,211,102,.3);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-fab:hover{ transform: translateY(-2px) scale(1.03); box-shadow:0 12px 32px rgba(37,211,102,.4); }
.wa-icon{ width:18px; height:18px; display:grid; place-items:center; }


@media (max-width:1024px){
  .visit-section{ background: linear-gradient(135deg, var(--celeste-25) 0%, var(--celeste-50) 100%); }
  .visit-grid{ grid-template-columns: 1fr; }
  .visit-map-container{ order:-1; min-height: 380px; }
}
@media (max-width:768px){
  .visit-section{ background: linear-gradient(135deg, var(--celeste-25) 0%, var(--celeste-50) 100%); }
  .visit-container{ padding: 0 16px; }
  .schedule-item{ grid-template-columns: 1fr; gap:4px; }
  .dots{ display:none; }
  .whatsapp-fab{ right:16px; bottom:16px; padding:9px 12px; }
}


@media (prefers-reduced-motion: reduce){
  .map-pulse, .visit-card, .whatsapp-fab{ animation:none !important; transition:none !important; transform:none !important; }
}





/* Footer and chatbot palette */
:root{
  
  --color-primary: #000C97;
  --color-deep:    #021F59;
  --color-accent:  #8297FE;
  --color-cyan:    #B2FFFF;
  --color-white:   #FFFFFF;
  --color-ink-900: #E7EEF6;
  --color-ink-700: #C7D3E0;
  --color-ink-500: #9FB0B6;

  
  --line-soft: rgba(255,255,255,.12);
  --chip-bd:   rgba(178,255,255,.28);

  
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(2,31,89,.18);
  --shadow-md: 0 14px 36px rgba(0,12,151,.28);

  
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  
  --chat-fab-gap: 8px;
  --mobile-fab-size: 52px;
  --mobile-fab-gap: 10px;
  --chat-panel-extra: 8px;
}


.site-footer{ 
  position: relative; overflow: hidden;
  color: var(--color-ink-900);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  
  background:
    radial-gradient(1200px 280px at 25% -10%, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent),
    radial-gradient(1200px 260px at 75% -8%,  color-mix(in srgb, var(--color-cyan)   16%, transparent), transparent),
    linear-gradient(135deg, #0B1021 0%, #0D1533 52%, #0E1A48 100%);
}

.site-footer::before{
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 20%, var(--color-cyan) 50%, var(--color-accent) 80%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--color-accent) 28%, transparent);
}


.foot-top{ 
  height: 4px;
  background: linear-gradient(90deg, var(--color-deep), var(--color-primary) 45%, var(--color-accent));
}


.foot-wrap{ 
  max-width: 1280px; margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) 24px clamp(20px, 3vw, 28px);
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1.35fr 1fr 1fr; 
  position: relative; z-index: 2;
}
@media (max-width: 980px){ .foot-wrap{ grid-template-columns: 1fr 1fr; gap: 40px; padding-inline: 20px; } }
@media (max-width: 620px){ .foot-wrap{ grid-template-columns: 1fr; gap: 32px; padding-inline: 18px; } }

.foot{ position: relative; }


.foot h4{ 
  margin: 0 0 16px; padding-bottom: 10px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  font-size: clamp(14px, 2.2vw, 16px);
  display:flex; align-items:center; gap: 10px; position:relative;
}
.foot h4::before{
  content:""; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 6px 16px rgba(0,12,151,.35);
}
.foot h4::after{
  content:""; position:absolute; bottom:0; left: 34px; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), transparent);
  border-radius: 1px; opacity: .85;
}


.foot p{ 
  margin: 0 0 14px; font-size: 14.5px; line-height: 1.6;
  color: var(--color-ink-700); font-weight: 500;
}
.foot p:last-child{ margin-bottom: 0; }

.foot p strong{
  color: #fff; font-weight: 800; font-size: 14px; min-width: 80px;
  display: inline-flex; gap: 8px; align-items: center;
}


.foot a{ 
  color: color-mix(in srgb, var(--color-cyan) 60%, var(--color-white));
  text-decoration: none; font-weight: 700; border-radius: 6px; padding: 1px 2px;
  transition: color .15s ease, background .15s ease, text-shadow .15s ease;
}
.foot a:hover{
  color:#fff; background: rgba(130,151,254,.12);
  text-shadow: 0 0 10px rgba(130,151,254,.35);
}


.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap: 10px; }
.foot li a{ 
  display:flex; align-items:center; gap: 12px;
  color: var(--color-ink-900); font-weight: 600; font-size: 15px; 
  padding: 8px 0; border-radius: 8px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.foot li a::before{
  content:""; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: rgba(178,255,255,.12);
  border: 1px solid rgba(178,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.foot li a[href*="convocatorias"]::before,
.foot li a[href*="comunicados"]::before,
.foot li a[href*="tramites"]::before,
.foot li a[href*="campus"]::before,
.foot li a[href*="mesa"]::before{
  
  background: rgba(130,151,254,.14);
  border-color: rgba(130,151,254,.3);
}
.foot li a:hover{ 
  color:#fff; transform: translateX(6px);
  background: rgba(255,255,255,.04);
}


.newsletter{ display:grid; gap: 12px; margin-top: 16px; }
.newsletter input{
  padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(9,14,30,.75);
  color: #EAF6F6; outline: 0; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 14px; font-weight: 500;
}
.newsletter input:focus{
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent);
  background: rgba(9,14,30,.92);
}
.newsletter button{
  padding: 12px 14px; border-radius: var(--radius-md); border: 0; cursor: pointer;
  font-weight: 800; font-size: 13.5px; letter-spacing:.04em; text-transform: uppercase;
  color:#fff; background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.newsletter button:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); filter: brightness(1.04); }


.foot-bottom{ 
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  color: var(--color-ink-500); 
  font-size: 14px; font-weight: 600;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
  padding: 18px 24px;
}
@media (max-width: 620px){
  .foot-bottom{ flex-direction: column; text-align: center; gap: 14px; padding: 16px 20px; }
}


.foot-social{ display:flex; gap: 12px; }
.foot-social a{ 
  width: 42px; height: 42px; border-radius: 12px; display:grid; place-items:center;
  color:#E8F2FF; text-decoration:none; position:relative; overflow:hidden;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.foot-social a::before{
  content:""; position:absolute; inset:auto; width:0; height:0; border-radius:50%;
  background: radial-gradient(circle at center, var(--color-accent), var(--color-primary));
  transform: translateZ(0); transition: width .35s ease, height .35s ease, opacity .35s ease;
  opacity:.7;
}
.foot-social a:hover{ transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,.22); }
.foot-social a:hover::before{ width:140%; height:140%; }
.foot-social a svg{ width:20px; height:20px; z-index:1; transition: transform .2s ease; }
.foot-social a:hover svg{ transform: scale(1.06); }


.foot a:focus-visible,
.foot-social a:focus-visible,
.newsletter input:focus-visible,
.newsletter button:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
  outline-offset: 2px;
}


.chat-fab{
  position: fixed; right: 18px; bottom: 18px; z-index: 99999;
  width: 56px; height: 56px; border: 0; border-radius: 18px; cursor: pointer;
  color:#fff; display:grid; place-items:center;
  background: linear-gradient(160deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.chat-fab:hover{ transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.chat-fab:focus{ outline: 2px solid var(--color-accent); outline-offset: 2px; }

.chat-panel{
  position: fixed; right: 18px; bottom: 84px; z-index: 99998;
  width: min(92vw, 380px); height: 480px; border-radius: 18px; overflow: hidden;
  background:#ffffff; border: 1px solid #e8ecf0; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.95); opacity: 0; pointer-events: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  display:grid; grid-template-rows: auto 1fr auto;
}
.chat-panel.open{ transform: translateY(0) scale(1); opacity:1; pointer-events:auto; }

.chat-head{
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color:#fff; font-weight: 800; letter-spacing:.3px;
  padding: 16px 18px; display:flex; align-items:center; justify-content:space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.chat-title-section{ flex:1; }
.chat-title-section strong{ display:block; font-size: 14px; }
.chat-status{ font-size: 11px; opacity: .85; font-weight: 600; margin-top: 2px; }

.chat-close-btn{
  background: none; border: none; color: #fff; cursor: pointer; padding: 4px; border-radius: 6px;
  display:flex; align-items:center; justify-content:center; transition: background-color .2s;
}
.chat-close-btn:hover{ background: rgba(255,255,255,.12); }

.chat-body{
  padding: 16px; overflow-y:auto; display:flex; flex-direction:column; gap: 10px;
  background: linear-gradient(180deg, #fbfeff 0%, #f8fcff 100%); max-height: 340px;
}
.chat-body::-webkit-scrollbar{ width:6px; }
.chat-body::-webkit-scrollbar-track{ background:#f1f1f1; border-radius:3px; }
.chat-body::-webkit-scrollbar-thumb{ background:#c1c1c1; border-radius:3px; }
.chat-body::-webkit-scrollbar-thumb:hover{ background:#a8a8a8; }

.chat-welcome-msg{ display:flex; align-items:flex-start; gap: 12px; margin-bottom: 6px; }
.welcome-avatar{ font-size:20px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; background:#eef6ff; border-radius:50%; flex-shrink:0; }
.welcome-content{
  flex:1; background: linear-gradient(135deg, #eef3ff 0%, #e3eaff 100%);
  border: 1px solid #d7e2ff; padding: 12px 16px; border-radius: 18px; border-bottom-left-radius: 6px;
}

.chat-msg{ max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.4; position: relative;
  animation: message-appear .3s ease-out; }
@keyframes message-appear{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform: translateY(0); } }
.chat-msg.bot{ background: linear-gradient(135deg, #eef3ff 0%, #e3eaff 100%); border:1px solid #d7e2ff; align-self:flex-start; border-bottom-left-radius: 6px; }
.chat-msg.you{ background: linear-gradient(135deg, #7b94c6 0%, #bcd5e5 100%); border:1px solid #408dcb; align-self:flex-end; border-bottom-right-radius: 6px; text-align:right; }

.chat-msg a{ color:#0066cc; text-decoration:none; font-weight:700; border-bottom:1px solid rgba(0,102,204,.3); transition: color .2s, border-color .2s; }
.chat-msg a:hover{ color:#004499; border-bottom-color:#004499; }

.typing-indicator{ opacity:.7; animation: pulse 2s infinite; }
.typing-indicator span{ width:8px; height:8px; border-radius:50%; background:#666; display:inline-block; margin:0 2px; animation: typing-bounce 1.4s infinite ease-in-out; }
.typing-indicator span:nth-child(1){ animation-delay:-.32s; } .typing-indicator span:nth-child(2){ animation-delay:-.16s; }
@keyframes typing-bounce{ 0%,80%,100%{ transform: scale(.8); opacity:.5; } 40%{ transform: scale(1); opacity:1; } }
@keyframes pulse{ 0%,100%{ opacity:.7; } 50%{ opacity:1; } }

.chat-input-container{ border-top:1px solid #eef2f6; background:#fff; }
.chat-input{ padding: 14px 16px; margin:0; }
.input-wrapper{ display:flex; gap: 8px; align-items:center; }
.chat-input input{
  flex:1; border:2px solid #e1e8ed; border-radius: 20px; padding: 10px 16px; outline:0; font-size:14px;
  transition: border-color .2s, background .2s; background:#fafbfc;
}
.chat-input input:focus{ border-color: var(--color-accent); background:#fff; }
.chat-input input::placeholder{ color:#8b9db5; }

.send-btn{
  border:0; border-radius: 20px; padding: 10px 12px; font-weight:800; color:#fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  cursor:pointer; transition: transform .15s, filter .15s;
}
.send-btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.send-btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

.chat-suggestions{ display:flex; gap: 8px; flex-wrap:wrap; margin-top: 8px; }
.suggestion-btn{
  background:#f8fafc; border:1px solid #e2e8f0; border-radius: 16px; padding: 6px 12px; font-size: 12px; cursor:pointer;
  transition: transform .15s, background .15s; white-space: nowrap;
}
.suggestion-btn:hover{ background:#e2e8f0; transform: translateY(-1px); }

.chat-notification{ position:absolute; top:-4px; right:-4px; width:12px; height:12px; background:#ef4444; border-radius:50%; animation:pulse 2s infinite; display:none; }

.chat-overlay{ position:fixed; inset:0; background: rgba(0,0,0,.5); z-index: 99997; opacity:0; pointer-events:none; transition: opacity .2s; }
.chat-overlay.show{ opacity:1; pointer-events:auto; }


@media (max-width: 820px){
  .chat-fab{ right: 16px; bottom: 16px; }
  .chat-panel{ right: 16px; bottom: 78px; width: calc(100vw - 32px); height: 70vh; max-height: 520px; }
}
@media (max-width: 480px){
  .chat-msg{ font-size: 13px; padding: 10px 14px; }
}


@media (max-width:1024px){
  :root{ --safe-bottom: env(safe-area-inset-bottom, 0px); }
  body:has(#mobileMenu) .chat-fab{
    bottom: calc(var(--safe-bottom) + var(--chat-fab-gap) + var(--mobile-fab-size) + var(--mobile-fab-gap));
  }
  body:has(#mobileMenu) .chat-panel{
    bottom: calc(var(--safe-bottom) + var(--chat-fab-gap) + var(--mobile-fab-size) + var(--mobile-fab-gap) + var(--chat-panel-extra));
  }
  .chat-fab, .chat-panel, .chat-overlay{ transition: opacity .18s ease, transform .18s ease; }
  body:has(#mobileMenu.open) .chat-fab,
  body:has(#mobileMenu.open) .chat-panel,
  body:has(#mobileMenu.open) .chat-overlay{
    opacity:0; pointer-events:none; transform: translateY(10px) scale(.98); z-index:-1;
    transition: opacity .15s ease, transform .15s ease, z-index 0s .15s;
  }
}


@media (prefers-reduced-motion: reduce){
  .foot-social a, .foot li a, .foot a, .newsletter button,
  .chat-panel, .chat-fab, .chat-msg, .typing-indicator span{
    transition:none !important; animation:none !important;
  }
}


@supports not (color: color-mix(in srgb, #000 50%, #fff)){
  .foot a{ color: #B2FFFF; }
}

.foot-views{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(178,255,255,.08);
  border: 1px solid rgba(178,255,255,.28);
  color: #E8F2FF; font-weight: 800; font-size: 13.5px;
  line-height: 1; transform: translateZ(0);
}
.foot-views:hover{
  background: rgba(130,151,254,.14);
  border-color: rgba(130,151,254,.35);
}


.breadcrumbs {
  font-size: 13px;
  color: #566a78;
  margin: 0 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e9eef0;
}

.breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 8px;
  color: #dde6ec;
}

.breadcrumbs .current {
  font-weight: 800;
  color: var(--ink);
}


.single-post-content,
.single-convocatoria-content,
.single-comunicado-content,


.single-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f4f6;
}

.single-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}

.single-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #566a78;
}

.single-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-meta svg {
  width: 16px;
  height: 16px;
}

.single-content {
  font-size: 16px;
  line-height: 1.7;
  color: #2a3237;
}

.single-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 32px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.single-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 12px;
}

.single-content p {
  margin: 0 0 16px;
}

.single-content ul, .single-content ol {
  margin: 16px 0;
  padding-left: 20px;
}

.single-content li {
  margin: 8px 0;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-content blockquote {
  background: linear-gradient(180deg, #f8fffe, #fff);
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #415b5a;
}


.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #e9eef0;
}

.nav-post {
  flex: 1;
  max-width: 48%;
}

.nav-post a {
  display: block;
  padding: 16px;
  background: #f8fffe;
  border: 1px solid #e9eef0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-post a:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 161, 158, 0.1);
}

.nav-post .nav-label {
  font-size: 12px;
  font-weight: 800;
  color: #566a78;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.nav-post .nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}


.internal-sidebar {
  background: #fff;
  border: 1px solid #e9eef0;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h4 {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f4f6;
}

.related-posts {
  display: grid;
  gap: 12px;
}

.related-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f0f4f6;
  transition: all 0.15s ease;
}

.related-post:hover {
  border-color: var(--teal);
  background: #f8fffe;
}

.related-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-post-content {
  flex: 1;
  min-width: 0;
}

.related-post-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-date {
  font-size: 11px;
  color: #566a78;
  font-weight: 600;
}


.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9eef0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(9, 161, 158, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(90deg, var(--teal), #00b7b1);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(9, 161, 158, 0.28);
}


.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: linear-gradient(180deg, #f0fff4, #e6fffa);
  color: #0b5d44;
  border: 1px solid #9ae6b4;
}

.alert-warning {
  background: linear-gradient(180deg, #fffaf0, #fef6e7);
  color: #975a16;
  border: 1px solid #fbd38d;
}

.alert-error {
  background: linear-gradient(180deg, #fff5f5, #fed7d7);
  color: #c53030;
  border: 1px solid #fc8181;
}

.alert-info {
  background: linear-gradient(180deg, #f7fafc, #edf2f7);
  color: #2d3748;
  border: 1px solid #cbd5e0;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.content-table th,
.content-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e9eef0;
}

.content-table th {
  background: linear-gradient(180deg, #f8fffe, #f0f9f9);
  font-weight: 800;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.content-table tbody tr:hover {
  background: #f8fffe;
}

.content-table tbody tr:last-child td {
  border-bottom: 0;
}


@media (max-width: 768px) {
  .single-post-content,
  .single-convocatoria-content,
  .single-comunicado-content,
  
  .post-navigation {
    flex-direction: column;
  }
  
  .nav-post {
    max-width: 100%;
  }
  
  .single-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .content-table {
    font-size: 14px;
  }
  
  .content-table th,
  .content-table td {
    padding: 8px 12px;
  }
}


@media (prefers-reduced-motion: no-preference) {
  .hub-card,
  .fcard,
  .hub-qitem,
  .popular-card,
  .comunicado-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .btn-cta,
  .btn-ghost,
  .hub-btn,
  .btn-primary,
  .btn-submit {
    transition: all 0.15s ease;
  }
}

/* ===========================================================
 * CONVOCATORIAS ARCHIVE - DISEÑO PREMIUM
 * Paleta: #B2FFFF, #000C97, #8297FE, #FFFFFF, Negro, #021F59
 * =========================================================== */

* {
  box-sizing: border-box;
}

/* ============= CONTENEDOR PRINCIPAL ============= */
.convocatorias-archive {
  padding: clamp(48px, 6vw, 78px) 0 clamp(48px, 5vw, 72px);
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 52%, #f1f5ff 100%);
  position: relative;
}

/* ============= PANEL ============= */
.convocatorias-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 50%, #f8faff 100%);
  border-radius: 26px;
  border: 1.5px solid rgba(130, 151, 254, 0.25);
  box-shadow:
    0 24px 56px rgba(0, 12, 151, 0.12),
    0 8px 28px rgba(2, 31, 89, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: clamp(28px, 4.8vw, 44px);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.convocatorias-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(178, 255, 255, 0.08), rgba(130, 151, 254, 0.08));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ============= HEADER ============= */
.convocatorias-archive__header {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(24px, 3.5vw, 32px);
  text-align: left;
}

.convocatorias-archive__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 900;
  color: #FFFFFF;
  background: linear-gradient(135deg, #000C97 0%, #021F59 100%);
  border: 1.5px solid rgba(130, 151, 254, 0.35);
  padding: 10px 18px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 12, 151, 0.25);
  transition: all 0.3s ease;
}

.convocatorias-archive__badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 12, 151, 0.35);
}

.convocatorias-archive__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  color: #021F59;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #021F59 0%, #000C97 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.convocatorias-archive__summary {
  max-width: 820px;
  font-size: 16.5px;
  line-height: 1.8;
  color: #475569;
  font-weight: 500;
}

/* ============= TABLA WRAPPER ============= */
.convocatorias-table__wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border: 1.5px solid rgba(130, 151, 254, 0.25);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 28px);
  overflow-x: auto;
  box-shadow: 0 12px 32px rgba(0, 12, 151, 0.08);
}

/* ============= TABLA ============= */
.convocatorias-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  color: #1f2933;
}

/* Encabezados */
.convocatorias-table thead th {
  background: linear-gradient(135deg, rgba(130, 151, 254, 0.18) 0%, rgba(0, 12, 151, 0.12) 100%);
  color: #021F59;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 16px 18px;
  border-bottom: 2px solid rgba(130, 151, 254, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Filas */
.convocatorias-table tbody tr {
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.320, 1);
  border-bottom: 1px solid rgba(130, 151, 254, 0.15);
}

.convocatorias-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 255, 0.9);
}

.convocatorias-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(130, 151, 254, 0.12), rgba(178, 255, 255, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 12, 151, 0.15);
}

/* Celdas */
.convocatorias-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(130, 151, 254, 0.12);
  vertical-align: middle;
}

/* Links en tabla */
.convocatorias-table td a.convocatorias-table__link {
  font-weight: 800;
  color: #021F59;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #021F59, #000C97);
  background-size: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.convocatorias-table td a.convocatorias-table__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #000C97, #8297FE);
  transition: width 0.3s ease;
}

.convocatorias-table td a.convocatorias-table__link:hover::after {
  width: 100%;
}

/* Fechas */
.convocatorias-table__date {
  display: block;
  font-weight: 800;
  color: #021F59;
}

.convocatorias-table__date-range {
  display: block;
  margin-top: 6px;
  color: #8297FE;
  font-size: 12px;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* ============= CHIPS DE ESTADO ============= */
.convocatoria-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
}

.convocatoria-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.convocatoria-chip::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-chip 2s infinite;
}

/* Programado - Amarillo */
.convocatoria-chip--programado {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(241, 196, 15, 0.15));
  color: #C17817;
  border: 1.5px solid rgba(241, 196, 15, 0.4);
}

.convocatoria-chip--programado::after {
  background: #F5A623;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
}

/* En Proceso - Rojo */
.convocatoria-chip--en_proceso {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  color: #DC2626;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.convocatoria-chip--en_proceso::after {
  background: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

/* Culminado - Verde */
.convocatoria-chip--culminado {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.15));
  color: #16A34A;
  border: 1.5px solid rgba(34, 197, 94, 0.4);
}

.convocatoria-chip--culminado::after {
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: none;
}

@keyframes pulse-chip {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

/* ============= DOCUMENTOS ============= */
.convocatorias-table__doc {
  text-align: center;
  width: 120px;
}

.convocatorias-table__doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow:
    0 12px 28px rgba(239, 68, 68, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.convocatorias-table__doc-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.convocatorias-table__doc-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  position: relative;
  z-index: 2;
}

.convocatorias-table__doc-link:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 16px 36px rgba(239, 68, 68, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.convocatorias-table__doc-link:hover::before {
  opacity: 1;
}

.convocatorias-table__doc-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(203, 213, 225, 0.1));
  color: #94A3B8;
  font-weight: 900;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  font-size: 18px;
}

/* ============= ESTADO VACÍO ============= */
.convocatorias-empty {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 64px 16px;
  color: #475569;
  text-align: center;
}

.convocatorias-empty svg {
  width: 96px;
  height: 96px;
  color: #8297FE;
  opacity: 0.8;
  filter: drop-shadow(0 8px 16px rgba(130, 151, 254, 0.2));
}

/* ============= DATATABLE CUSTOM ============= */
.convocatorias-table__wrap .dataTables_wrapper {
  display: grid;
  gap: 20px;
}

.convocatorias-table__wrap .dataTables_length,
.convocatorias-table__wrap .dataTables_filter,
.convocatorias-table__wrap .dataTables_paginate,
.convocatorias-table__wrap .dataTables_info {
  color: #334155;
  font-weight: 700;
}

/* Selects e Inputs */
.convocatorias-table__wrap .dataTables_length select,
.convocatorias-table__wrap .dataTables_filter input {
  border: 1.5px solid rgba(130, 151, 254, 0.25);
  border-radius: 14px;
  padding: 8px 14px;
  font-weight: 700;
  color: #021F59;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  font-size: 14px;
}

.convocatorias-table__wrap .dataTables_filter input::placeholder {
  color: #8297FE;
}

.convocatorias-table__wrap .dataTables_filter input:focus,
.convocatorias-table__wrap .dataTables_length select:focus {
  outline: none;
  border-color: #8297FE;
  box-shadow:
    0 0 0 4px rgba(130, 151, 254, 0.25),
    0 4px 12px rgba(0, 12, 151, 0.15);
  background: #FFFFFF;
}

/* Paginación */
.convocatorias-table__wrap .dataTables_paginate .paginate_button {
  border-radius: 12px !important;
  border: 1.5px solid transparent !important;
  padding: 8px 14px !important;
  margin: 0 5px !important;
  background: linear-gradient(135deg, rgba(2, 31, 89, 0.08), rgba(130, 151, 254, 0.06)) !important;
  color: #021F59 !important;
  font-weight: 800;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.convocatorias-table__wrap .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #000C97 0%, #021F59 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 28px rgba(0, 12, 151, 0.3) !important;
  border-color: rgba(130, 151, 254, 0.4) !important;
}

.convocatorias-table__wrap .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, rgba(2, 31, 89, 0.16), rgba(130, 151, 254, 0.12)) !important;
  color: #021F59 !important;
  transform: translateY(-1px);
}

.convocatorias-table__wrap .dataTables_paginate .paginate_button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

/* ============= FILAS DESTACADAS ============= */
.convocatorias-table__row.is-highlight,
.convocatorias-table__row.is-highlighted {
  background: linear-gradient(90deg, rgba(130, 151, 254, 0.2), rgba(178, 255, 255, 0.1)) !important;
  position: relative;
  box-shadow: 0 12px 32px rgba(130, 151, 254, 0.2) !important;
  border-left: 4px solid #000C97 !important;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 1024px) {
  .convocatorias-table {
    font-size: 14px;
  }

  .convocatorias-table thead th,
  .convocatorias-table td {
    padding: 14px 14px;
  }

  .convocatorias-archive__title {
    font-size: clamp(24px, 4vw, 38px);
  }
}

@media (max-width: 768px) {
  .convocatorias-panel {
    border-radius: 20px;
    padding: 22px;
  }

  .convocatorias-table__wrap {
    padding: 16px 12px;
  }

  .convocatorias-table {
    font-size: 13px;
  }

  .convocatorias-table thead th,
  .convocatorias-table td {
    padding: 12px 10px;
  }

  .convocatorias-table__doc,
  .convocatorias-table__doc-link,
  .convocatorias-table__doc-empty {
    width: auto;
  }

  .convocatoria-chip {
    min-width: 110px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .convocatorias-archive__header {
    text-align: center;
  }

  .convocatorias-archive__badge {
    margin-inline: auto;
  }

  .convocatorias-archive__title {
    font-size: clamp(20px, 3.5vw, 28px);
  }

  .convocatorias-archive__summary {
    text-align: left;
    font-size: 15px;
  }

  .convocatorias-table {
    font-size: 12px;
  }

  .convocatorias-table thead th,
  .convocatorias-table td {
    padding: 10px 8px;
  }

  .convocatoria-chip {
    min-width: 100px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .convocatorias-table__doc-link,
  .convocatorias-table__doc-empty {
    width: 40px;
    height: 40px;
  }

  .convocatorias-table__doc-link svg {
    width: 20px;
    height: 20px;
  }

  .convocatorias-empty {
    padding: 48px 12px;
  }

  .convocatorias-empty svg {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .spin-cinta .track {
    animation: none;
  }
  
  .visit-pulse {
    animation: none;
  }
}


.hub-btn:focus-visible,
.btn-cta:focus-visible,
.btn-ghost:focus-visible,
.btn-primary:focus-visible,
.btn-submit:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}


.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #e9eef0;
  border-top: 2px solid var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* stylo de la carpeta front-page.php refinando módulos del hub principal */
.hub-main .hub-sec {
  --color-primario: #000C97;
  --color-secundario: #8297FE;
  --color-blanco: #FFFFFF;
  --color-fondo: #FAFBFF;
  --color-fondo-claro: #F4F7FF;
  --color-borde: rgba(2, 31, 89, 0.12);
  
  --card-bg: #ffffff;
  --card-br: 16px;
  --accent: #8297FE;
  --primary: #000C97;
  --text-dark: #0F172A;
  --light-blue: #EEF3FF;
  --soft-blue: #F8FAFF;
  --deep-blue: #021F59;
  border-radius: 20px;
  padding: clamp(28px, 3vw, 36px);
  margin: clamp(20px, 3vw, 32px) 0;
  border: 1px solid var(--color-borde);
  box-shadow: 
    0 8px 32px rgba(2, 31, 89, .06),
    0 4px 16px rgba(2, 31, 89, .04),
    0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}


.hub-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, 
      rgba(0, 12, 151, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(circle at 80% 60%, 
      rgba(130, 151, 254, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hub-sec:hover::before {
  opacity: 0.8;
}


.hub-sec::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #B2FFFF 20%,
    #8297FE 40%,
    #000C97 60%,
    #8297FE 80%,
    #B2FFFF 100%,
    transparent 100%
  );
  opacity: .7;
  border-radius: 0 0 2px 2px;
}


.hub-sec .hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: clamp(24px, 3vw, 32px);
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(2, 31, 89, 0.1);
}

.hub-sec .hub-head::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg,
    #000C97 0%,
    #8297FE 50%,
    #B2FFFF 100%
  );
  border-radius: 1px;
}

.hub-sec .hub-head .title-ltra {
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg,
    #000C97 0%,
    #021F59 50%,
    #000C97 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  line-height: 1.3;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}


.hub-sec .hub-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #000C97;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--color-blanco);
  border: 1.5px solid rgba(0, 12, 151, 0.15);
  box-shadow: 
    0 2px 8px rgba(2, 31, 89, .08),
    0 1px 4px rgba(2, 31, 89, .05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.hub-sec .hub-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.5s ease;
}

.hub-sec .hub-more span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000C97;
  transition: color 0.25s ease;
}

.hub-sec .hub-more:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 16px rgba(2, 31, 89, .12),
    0 2px 8px rgba(2, 31, 89, .08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 12, 151, 0.25);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
}

.hub-sec .hub-more:hover::before {
  left: 100%;
}

.hub-sec .hub-more:hover span {
  color: #021F59;
}

.hub-sec .hub-more:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(2, 31, 89, .08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


.hub-sec .hub-more span::after {
  content: "→";
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.hub-sec .hub-more:hover span::after {
  transform: translateX(2px);
}


.hub-sec .hub-more:focus-visible {
  outline: 2px solid #8297FE;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(130, 151, 254, 0.1);
}


@media (max-width: 768px) {
  .hub-sec .hub-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  
  .hub-sec .hub-head::before {
    width: 80px;
  }
  
  .hub-sec .hub-more {
    align-self: flex-start;
  }
}


.hub-sec:hover {
  box-shadow: 
    0 12px 40px rgba(2, 31, 89, .08),
    0 6px 20px rgba(2, 31, 89, .05),
    0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  border-color: rgba(2, 31, 89, 0.18);
}

/* ============================================================================
   CONVOCATORIAS - DISEÑO MEJORADO Y CONSISTENTE (RESPONSIVE & NARROWED)
   UGEL El Collao - Paleta: #B2FFFF, #000C97, #8297FE, #FFFFFF, #021F59
   ============================================================================ */

/* Variables principales */
:root {
  --conv-primary: #000C97;
  --conv-primary-dark: #021F59;
  --conv-accent: #8297FE;
  --conv-cyan: #B2FFFF;
  --conv-white: #FFFFFF;

  --conv-shadow-sm: 0 2px 8px rgba(2, 31, 89, 0.06);
  --conv-shadow-md: 0 8px 24px rgba(2, 31, 89, 0.12);
  --conv-shadow-lg: 0 12px 36px rgba(2, 31, 89, 0.18);

  --conv-radius: 16px;
  --conv-transition: all 0.35s cubic-bezier(0.23, 1, 0.320, 1);

  /* Alturas mínimas por breakpoint (compactas en móvil) */
  --card-minh-desktop: 280px;
  --card-minh-tablet:  270px;
  --card-minh-mob-md:  240px;  /* 481-767 */
  --card-minh-mob-sm:  220px;  /* ≤480 */
}

/* ============================================================================
   CONTENEDOR PRINCIPAL (tope de ancho + centrado)
   ============================================================================ */

.conv-preview {
  display: grid;
  /* Columnas más angostas y adaptables */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2.8vw, 24px);

  /* Limitar “lo ancho” del bloque y centrar */
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 28px);

  padding-block: 0;
  list-style: none;
}

/* Opcional: tope algo mayor en pantallas enormes */
@media (min-width: 1536px) {
  .conv-preview { width: min(100%, 1280px); }
}

/* Evitar overflow horizontal en layouts estrechos */
body, .conv-preview { overflow-x: clip; }

/* ============================================================================
   TARJETA PRINCIPAL
   ============================================================================ */

.conv-preview__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: var(--card-minh-desktop);
  padding: 20px;
  border-radius: var(--conv-radius);

  background: linear-gradient(135deg, var(--conv-white) 0%, #FAFBFF 50%, #F3F6FF 100%);
  border: 1.5px solid rgba(130, 151, 254, 0.2);
  box-shadow: var(--conv-shadow-md);

  transition: var(--conv-transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Brillo decorativo superior */
.conv-preview__item::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,255,255,.4), transparent);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.conv-preview__item:hover::before { opacity: 1; }

.conv-preview__item:hover {
  transform: translateY(-6px);
  border-color: rgba(130,151,254,0.35);
  box-shadow: var(--conv-shadow-lg);
  background: linear-gradient(135deg, var(--conv-white) 0%, #FCFDFF 50%, #F8FAFF 100%);
}

/* Badge índice */
.conv-preview__index {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--conv-white);
  background: linear-gradient(135deg, var(--conv-primary) 0%, var(--conv-primary-dark) 100%);
  border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 4px 12px rgba(0,12,151,0.25);
  z-index: 2;
}

/* ============================================================================
   SECCIÓN PRINCIPAL (TÍTULO Y TIPO)
   ============================================================================ */

.conv-preview__main {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; flex: 1; position: relative; z-index: 1;
}

.conv-preview__title {
  margin: 0;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--conv-primary-dark);

  display: -webkit-box;
  -webkit-line-clamp: 5; /* desktop/tablet: 5 líneas */
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;

  transition: color .3s ease;
}
.conv-preview__title a { color: inherit; text-decoration: none; transition: color .3s ease; }
.conv-preview__title a:hover {
  color: var(--conv-primary);
  text-decoration: underline;
  text-decoration-color: var(--conv-accent);
  text-underline-offset: 3px;
}
.conv-preview__title a:focus-visible {
  outline: 2px solid var(--conv-accent); outline-offset: 2px; border-radius: 2px;
}

/* Tipo */
.conv-preview__type {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  color: var(--conv-accent);
  letter-spacing: .3px;
  text-transform: capitalize;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .85;
}

/* ============================================================================
   META (ESTADO + FECHA)
   ============================================================================ */

.conv-preview__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* Status */
.conv-preview__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  padding: 8px 14px; border-radius: 999px; border: 1.2px solid; backdrop-filter: blur(10px);
  flex-shrink: 0; transition: var(--conv-transition);
}
.conv-preview__status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  animation: convocatoria-pulse 2s infinite; flex-shrink: 0;
}
@keyframes convocatoria-pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.2); }
}
.conv-preview__status--programado {
  background: rgba(241,196,15,.12); color:#C17817; border-color: rgba(241,196,15,.3);
}
.conv-preview__status--programado::before { background:#F5A623; box-shadow:0 0 10px rgba(245,166,35,.6); }

.conv-preview__status--en_proceso {
  background: linear-gradient(135deg, rgba(0,12,151,.12), rgba(178,255,255,.08));
  color: var(--conv-primary); border-color: rgba(0,12,151,.25); font-weight: 900;
}
.conv-preview__status--en_proceso::before { background: var(--conv-primary); box-shadow:0 0 12px rgba(0,12,151,.8); }

.conv-preview__status--culminado {
  background: rgba(178,255,255,.15); color: var(--conv-primary-dark); border-color: rgba(178,255,255,.35);
}
.conv-preview__status--culminado::before { background: var(--conv-cyan); box-shadow:0 0 10px rgba(178,255,255,.7); animation:none; }

/* Fecha (se reposiciona en actions para desktop/tablet) */
.conv-preview__date {
  font-size: 13px; font-weight: 700; color: #475569; letter-spacing: .2px;
  word-break: break-word; overflow: visible; text-overflow: clip;
  max-width: 140px; line-height: 1.2;
}

/* ============================================================================
   ACCIONES (BOTÓN + FECHA A LA DERECHA EN DESKTOP/TABLET)
   ============================================================================ */

.conv-preview__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; position: relative; z-index: 1; margin-top: 8px;
}

.conv-preview__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 12px; height: auto; min-height: 44px;
  background: linear-gradient(135deg, var(--conv-primary) 0%, var(--conv-primary-dark) 100%);
  color: var(--conv-white); font-weight: 900; font-size: 13px; text-decoration: none;
  border: 1.2px solid rgba(178,255,255,.2);
  box-shadow: var(--conv-shadow-md); cursor: pointer; transition: var(--conv-transition);
  position: relative; overflow: hidden; white-space: nowrap; flex-shrink: 0;
}
.conv-preview__link::before {
  content: ""; position: absolute; inset: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.conv-preview__link::after { content:"→"; font-size:14px; font-weight:900; transition: transform .3s ease; }
.conv-preview__link:hover {
  transform: translateY(-2px); box-shadow: var(--conv-shadow-lg);
  border-color: rgba(178,255,255,.35);
  background: linear-gradient(135deg, var(--conv-primary-dark) 0%, var(--conv-primary) 100%);
}
.conv-preview__link:hover::before { left: 100%; }
.conv-preview__link:hover::after  { transform: translateX(4px); }
.conv-preview__link:active        { transform: translateY(0); box-shadow: var(--conv-shadow-md); }
.conv-preview__link:focus-visible { outline: 2px solid var(--conv-accent); outline-offset: 2px; }

/* ============================================================================
   DESKTOP (1024px+): tarjetas angostas y centradas en el contenedor limitado
   ============================================================================ */

@media (min-width: 1024px) {
  /* Más columnas, cada una nunca se vuelve gigante */
  .conv-preview {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(16px, 2.2vw, 22px);
  }
  .conv-preview__item   { min-height: var(--card-minh-desktop); padding: 20px; }
  .conv-preview__title  { -webkit-line-clamp: 5; line-clamp: 5; font-size: clamp(14px, 1.8vw, 16px); }
  .conv-preview__actions{ justify-content: space-between; }
  .conv-preview__date   { font-size: 12px; text-align: right; max-width: 130px; }
}

/* ============================================================================
   TABLET (768px - 1023px)
   ============================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .conv-preview {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
  }
  .conv-preview__item  { min-height: var(--card-minh-tablet); padding: 18px; }
  .conv-preview__title { -webkit-line-clamp: 5; line-clamp: 5; font-size: clamp(13px, 2vw, 15px); }
  .conv-preview__link  { padding: 10px 18px; font-size: 12px; min-height: 40px; }
  .conv-preview__date  { font-size: 11px; max-width: 120px; }
}

/* ============================================================================
   MÓVIL MEDIO (481px - 767px) — COMPACTO REAL
   ============================================================================ */

@media (min-width: 481px) and (max-width: 767px) {
  .conv-preview {
    grid-template-columns: 1fr;                 /* una sola columna, ancho completo del contenedor */
    width: min(100%, 620px);                    /* evita tarjetas excesivamente anchas */
    padding-inline: clamp(10px, 5vw, 18px);     /* más compacto en lateral */
    gap: clamp(12px, 3vw, 16px);
  }

  .conv-preview__item {
    min-height: var(--card-minh-mob-md);
    padding: 16px;
    gap: 10px;
    border-radius: 14px;
  }

  .conv-preview__index { font-size: 9px; padding: 5px 10px; top: 10px; right: 10px; }

  /* Título: 4 líneas sin crecer la card */
  .conv-preview__title {
    -webkit-line-clamp: 4; line-clamp: 4;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.25;
  }
  .conv-preview__type  { font-size: 11px; }

  .conv-preview__meta  { gap: 8px; }
  .conv-preview__status{
    font-size: 9.5px; padding: 6px 10px; letter-spacing: .5px;
  }
  .conv-preview__status::before{ width: 6px; height: 6px; }

  /* Botón arriba y fecha debajo (centrada) */
  .conv-preview__actions{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 6px;
  }
  .conv-preview__link{
    padding: 10px 14px;
    font-size: 12px;
    min-height: 38px;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
  .conv-preview__date{
    font-size: 11.5px;
    max-width: 100%;
    text-align: center;
    opacity: .95;
  }
}

/* ============================================================================
   MÓVIL PEQUEÑO (≤480px) — AÚN MÁS REDUCIDO
   ============================================================================ */

@media (max-width: 480px) {
  .conv-preview {
    grid-template-columns: 1fr;
    width: 100%;                                /* usa todo el ancho, con padding propio */
    padding-inline: clamp(8px, 4vw, 14px);
    gap: clamp(10px, 3vw, 14px);
  }

  .conv-preview__item {
    min-height: var(--card-minh-mob-sm);
    padding: 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .conv-preview__index { font-size: 8px; padding: 4px 8px; top: 8px; right: 8px; }

  .conv-preview__main  { gap: 6px; }
  .conv-preview__title {
    -webkit-line-clamp: 4; line-clamp: 4;
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.22;
    letter-spacing: -0.01em;
  }
  .conv-preview__type   { font-size: 10px; }

  .conv-preview__meta   { gap: 6px; flex-wrap: wrap; }
  .conv-preview__status { font-size: 9px; padding: 5px 9px; }
  .conv-preview__status::before{ width: 6px; height: 6px; }

  .conv-preview__actions{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 4px;
  }
  .conv-preview__link{
    padding: 9px 12px; font-size: 11px; min-height: 36px;
    width: 100%; justify-content: center; border-radius: 10px;
  }
  .conv-preview__date{
    font-size: 10.5px; max-width: 100%; line-height: 1.15; text-align: center;
  }
}

/* ============================================================================
   ANIMACIONES & ACCESIBILIDAD
   ============================================================================ */

@keyframes fadeInUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform:none;} }
.conv-preview__item { animation: fadeInUp .5s cubic-bezier(0.23,1,0.320,1) both; }
.conv-preview__item:nth-child(1){ animation-delay: .10s; }
.conv-preview__item:nth-child(2){ animation-delay: .15s; }
.conv-preview__item:nth-child(3){ animation-delay: .20s; }
.conv-preview__item:nth-child(4){ animation-delay: .25s; }
.conv-preview__item:nth-child(5){ animation-delay: .30s; }
.conv-preview__item:nth-child(6){ animation-delay: .35s; }

@media (prefers-reduced-motion: reduce){
  .conv-preview__item, .conv-preview__title a, .conv-preview__link {
    animation: none !important; transition: none !important;
  }
}
@media (prefers-contrast: high){
  .conv-preview__item { border-width: 2px; border-color: var(--conv-primary); }
  .conv-preview__title{ color: var(--conv-primary-dark); }
  .conv-preview__link { border-width: 2px; }
}

/* Comunicados list palette and spacings */
:root {
  --primary-light: #B2FFFF;
  --primary-medium: #8297FE;
  --primary-dark: #000C97;
  --primary-darker: #021F59;
  --white: #FFFFFF;
  --black: #000000;
  --gray-light: #FAFBFF;
  --gray-medium: #64748B;
  --gray-dark: #475569;
  --shadow-light: rgba(2, 31, 89, 0.07);
  --shadow-medium: rgba(2, 31, 89, 0.12);
  --border-light: rgba(130, 151, 254, 0.12);
  --border-medium: rgba(130, 151, 254, 0.25);
  --radius-small: 12px;
  --radius-medium: 14px;
  --radius-large: 18px;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.45s cubic-bezier(0.23, 1, 0.320, 1);
  --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  --font-primary: "Inter", "Segoe UI", system-ui, sans-serif;
}


* {
  box-sizing: border-box;
}


.comm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 20px);
  position: relative;
  z-index: 1;
}


.comm-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr auto;
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
  
  background: linear-gradient(135deg, 
    var(--white) 0%,
    var(--gray-light) 45%,
    #F4F7FF 100%
  );
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  
  box-shadow: 
    0 10px 32px var(--shadow-light),
    0 4px 16px rgba(2, 31, 89, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  
  transition: all var(--transition-medium);
  overflow: hidden;
  min-height: clamp(140px, 20vw, 180px);
  backdrop-filter: blur(10px);
}


.comm-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, 
    var(--primary-light) 0%,
    var(--primary-medium) 25%,
    var(--primary-dark) 50%,
    var(--primary-darker) 75%,
    var(--primary-dark) 100%
  );
  opacity: 0.35;
  transition: all var(--transition-medium);
  border-radius: 1px 0 0 1px;
  box-shadow: 0 0 16px rgba(178, 255, 255, 0.25);
}


.comm-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
    transparent,
    rgba(178, 255, 255, 0.12),
    rgba(130, 151, 254, 0.06),
    transparent
  );
  transform: rotate(45deg);
  transition: all var(--transition-slow);
  opacity: 0;
}


.comm-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 18px 48px var(--shadow-medium),
    0 8px 24px rgba(130, 151, 254, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1.5px rgba(178, 255, 255, 0.15);
  border-color: var(--border-medium);
  background: linear-gradient(135deg, 
    var(--white) 0%,
    #FCFDFF 40%,
    #F8FAFF 100%
  );
}

.comm-item:hover::before {
  opacity: 0.7;
  width: 5px;
  box-shadow: 0 0 24px rgba(178, 255, 255, 0.4);
}

.comm-item:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(25%, 25%);
}


.comm-item.noimg {
  grid-template-columns: 1fr auto;
  padding-left: clamp(24px, 3vw, 32px);
}

.comm-item.noimg::before {
  width: 4px;
  opacity: 0.4;
}

.comm-item.noimg:hover::before {
  opacity: 0.75;
  width: 5px;
}


.comm-thumb {
  width: 100%;
  height: clamp(120px, 18vw, 160px);
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, 
    #E8EDFF 0%,
    #DDE8FF 100%
  );
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(130, 151, 254, 0.15);
  box-shadow: 
    0 8px 24px rgba(2, 31, 89, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: all var(--transition-medium);
}

.comm-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0, 12, 151, 0.03),
    rgba(130, 151, 254, 0.015),
    rgba(178, 255, 255, 0.008)
  );
  z-index: 1;
  transition: all var(--transition-medium);
  border-radius: inherit;
}

.comm-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-medium);
  border-radius: inherit;
}

.comm-item:hover .comm-thumb {
  transform: scale(1.04);
  box-shadow: 
    0 12px 36px rgba(2, 31, 89, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(130, 151, 254, 0.3);
}

.comm-item:hover .comm-thumb::before {
  background: linear-gradient(135deg,
    rgba(0, 12, 151, 0.06),
    rgba(130, 151, 254, 0.03),
    rgba(178, 255, 255, 0.015)
  );
}

.comm-item:hover .comm-thumb::after {
  opacity: 1;
}

.comm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all var(--transition-slow);
  filter: saturate(1.06) contrast(1.06) brightness(1.01);
}

.comm-item:hover .comm-thumb img {
  transform: scale(1.10);
  filter: saturate(1.12) contrast(1.10) brightness(1.05);
}


.comm-body {
  min-width: 0;
  display: grid;
  gap: clamp(8px, 1.5vw, 12px);
  align-content: center;
  position: relative;
  z-index: 2;
  flex: 1;
}


.comm-meta {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.comm-date {
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, 
    rgba(178, 255, 255, 0.12),
    rgba(130, 151, 254, 0.08)
  );
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
  border-radius: var(--radius-small);
  border: 0.8px solid rgba(130, 151, 254, 0.25);
  backdrop-filter: blur(6px);
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(2, 31, 89, 0.04);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.comm-date:hover {
  background: linear-gradient(135deg, 
    rgba(178, 255, 255, 0.2),
    rgba(130, 151, 254, 0.12)
  );
  border-color: rgba(130, 151, 254, 0.4);
  transform: translateY(-1px);
}

.comm-category {
  font-size: clamp(9px, 1.5vw, 11px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-darker);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 14px);
  border-radius: var(--radius-small);
  border: 0.8px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 3px 10px rgba(2, 31, 89, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.comm-category:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 5px 14px rgba(2, 31, 89, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


.comm-title {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary-darker);
  letter-spacing: -0.02em;
  font-family: var(--font-primary);
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  max-height: calc(1.35em * 4);
  transition: all var(--transition-fast);
  min-height: calc(1.35em * 2);
}

.comm-title a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.comm-title a:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.comm-excerpt {
  margin: 0;
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1.55;
  color: #0F4A7F;
  font-weight: 500;
  letter-spacing: 0.15px;
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.55em * 2);
  transition: color var(--transition-fast);
}

.comm-item:hover .comm-excerpt {
  color: var(--primary-dark);
}


.comm-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 14px);
  justify-self: end;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.comm-actions .hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 8px);
  padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 26px);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
  background: linear-gradient(135deg, 
    var(--primary-dark) 0%,
    var(--primary-darker) 50%,
    var(--primary-dark) 100%
  );
  border: 1.2px solid rgba(130, 151, 254, 0.35);
  border-radius: var(--radius-small);
  box-shadow: 
    0 6px 18px rgba(2, 31, 89, 0.14),
    0 2px 8px rgba(2, 31, 89, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
  letter-spacing: 0.25px;
  min-width: max-content;
}

.comm-actions .hub-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transition: left var(--transition-slow);
}

.comm-actions .hub-btn span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 6px);
  transition: all var(--transition-fast);
}

.comm-actions .hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(2, 31, 89, 0.22),
    0 6px 18px rgba(130, 151, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border-color: rgba(178, 255, 255, 0.5);
  background: linear-gradient(135deg, 
    var(--primary-darker) 0%,
    var(--primary-dark) 50%,
    var(--primary-darker) 100%
  );
}

.comm-actions .hub-btn:hover::before {
  left: 100%;
}

.comm-actions .hub-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 12px rgba(2, 31, 89, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.08);
}


@media (max-width: 1024px) {
  .comm-item {
    grid-template-columns: minmax(140px, 180px) 1fr auto;
    min-height: clamp(130px, 18vw, 160px);
  }
  
  .comm-thumb {
    height: clamp(110px, 16vw, 140px);
  }
}


@media (max-width: 768px) {
  .comm-item {
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 16px);
    text-align: center;
    min-height: auto;
    padding: clamp(16px, 3vw, 20px);
  }
  
  .comm-thumb {
    height: clamp(120px, 25vw, 160px);
    justify-self: center;
    max-width: 100%;
    width: 100%;
  }
  
  .comm-meta {
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
  }
  
  .comm-actions {
    justify-self: center;
    gap: clamp(8px, 2vw, 12px);
    margin-top: clamp(4px, 1vw, 8px);
  }
  
  .comm-item.noimg {
    grid-template-columns: 1fr;
    padding: clamp(16px, 3vw, 20px);
  }

  .comm-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.35em * 3);
  }
}


@media (max-width: 480px) {
  .comm-list {
    gap: clamp(12px, 3vw, 16px);
  }

  .comm-item {
    padding: clamp(14px, 3vw, 18px);
    border-radius: 16px;
    gap: clamp(10px, 2vw, 14px);
  }
  
  .comm-thumb {
    height: clamp(100px, 22vw, 140px);
  }
  
  .comm-actions .hub-btn {
    padding: clamp(8px, 2vw, 10px) clamp(16px, 3vw, 22px);
    width: 100%;
    justify-content: center;
  }

  .comm-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.35em * 3);
    font-size: clamp(14px, 4vw, 16px);
  }

  .comm-meta {
    gap: clamp(4px, 1vw, 8px);
  }

  .comm-date,
  .comm-category {
    font-size: clamp(8px, 2vw, 10px);
    padding: clamp(3px, 1vw, 5px) clamp(8px, 2vw, 12px);
  }
}


@media (max-width: 360px) {
  .comm-item {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .comm-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: calc(1.35em * 2);
    font-size: 14px;
  }
  
  .comm-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .comm-actions .hub-btn {
    width: 100%;
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.comm-item {
  animation: fadeInUp var(--transition-slow) both;
}

.comm-item:nth-child(1) { animation-delay: 0.08s; }
.comm-item:nth-child(2) { animation-delay: 0.16s; }
.comm-item:nth-child(3) { animation-delay: 0.24s; }
.comm-item:nth-child(4) { animation-delay: 0.32s; }
.comm-item:nth-child(5) { animation-delay: 0.40s; }


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


@media (max-width: 768px) {
  .comm-item {
    transform: translateZ(0);
    will-change: transform;
  }
}


.comm-thumb img {
  aspect-ratio: 16/9;
}



/* Chatbot floating button palette */
:root{
  --navy:   #000C97;
  --deep:   #021F59;
  --accent: #8297FE;
  --cyan:   #B2FFFF;
  --white:  #FFFFFF;
  --ink:    #0E1A48;
}


.chat-fab{
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 1000;
  border: 0;
  cursor: pointer;

  width: 64px;
  height: 64px;
  border-radius: 20px;

  
  background: linear-gradient(160deg, var(--navy), var(--deep) 55%, var(--accent));
  box-shadow:
    0 10px 28px rgba(2, 31, 89, 0.35),
    0 4px 12px rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;

  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease, background .25s ease;
  animation: bot-float 3.2s ease-in-out infinite;
}

@keyframes bot-float {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-6px) }
}

.chat-fab:hover{
  transform: translateY(-6px) scale(1.04);
  filter: brightness(1.03);
  box-shadow:
    0 14px 36px rgba(2,31,89,.45),
    0 6px 18px rgba(0,0,0,.22);
  background: linear-gradient(150deg, var(--deep), var(--navy) 45%, var(--accent));
}

.chat-fab:active{
  transform: translateY(-2px) scale(.97);
}

.chat-fab:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--cyan) 55%, transparent);
  outline-offset: 3px;
}


.chat-fab[aria-expanded="true"]{
  box-shadow:
    0 10px 34px rgba(130,151,254,.45),
    0 6px 18px rgba(0,0,0,.24);
  background: linear-gradient(160deg, var(--navy), var(--accent));
}


.robot-container{
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
  transform: translateY(-2px);
}


.robot-antenna{
  position: absolute; top: -8px;
  width: 3px; height: 12px;
  background: linear-gradient(180deg, #fff, #E8EEF7);
  border-radius: 2px 2px 0 0;
}
.antenna-light{
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan), var(--accent));
  box-shadow: 0 0 12px rgba(178,255,255,.85);
  animation: antenna-pulse 2s ease-in-out infinite;
}
@keyframes antenna-pulse {
  0%,100% { opacity: 1;   box-shadow: 0 0 12px rgba(178,255,255,.85) }
  50%     { opacity: .65; box-shadow: 0 0 8px rgba(130,151,254,.55) }
}


.robot-body{ display: grid; gap: 4px; place-items: center; }


.robot-head{
  width: 44px; height: 36px;
  background: linear-gradient(145deg, #ffffff 0%, #F6FAFF 50%, #E6ECF7 100%);
  border: 2.5px solid #D4DAE6;
  border-radius: 50% 50% 44% 44%;
  position: relative;
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,.9),
    inset 0 -2px 4px rgba(0,0,0,.05),
    0 4px 10px rgba(0,0,0,.08);
}


.robot-eyes{ position: absolute; top: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.robot-eye{
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan) 0%, var(--accent) 55%, var(--deep) 100%);
  box-shadow:
    0 0 8px rgba(130,151,254,.7),
    inset 0 1px 2px rgba(255,255,255,.6);
  animation: eye-blink 4.4s ease-in-out infinite;
}
.robot-eye.right{ animation-delay: .25s; }
@keyframes eye-blink{
  0%, 93%, 100% { transform: scaleY(1) }
  96%           { transform: scaleY(.1) }
}


.robot-mouth{
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 4px; border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #95A2B5, #6B7A90);
  animation: mouth-chill 5s ease-in-out infinite;
}
@keyframes mouth-chill { 0%,80%,100%{ transform: translateX(-50%) scaleX(1) } 40%{ transform: translateX(-50%) scaleX(1.18) } }


.robot-torso{
  width: 36px; height: 24px; border-radius: 50% 50% 28% 28%;
  background: linear-gradient(145deg, #ffffff 0%, #F2F6FF 100%);
  border: 2px solid #D4DAE6;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.65), 0 2px 8px rgba(0,0,0,.05);
}


.chest-panel{
  position: absolute; inset: 0; margin: auto; width: 16px; height: 8px;
  border-radius: 6px; display: grid; place-items: center;
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.55);
}
.panel-light{
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan), var(--accent));
  box-shadow: 0 0 8px rgba(178,255,255,.7);
  animation: panel-pulse 2.2s ease-in-out infinite;
}
@keyframes panel-pulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.18); opacity:.7 } }


.robot-arm{
  position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(145deg, #fff, #F1F5FB);
  border: 1.6px solid #D4DAE6;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.08);
}
.robot-arm.left { left: -7px;  animation: arm-wave-l 4.2s ease-in-out infinite; }
.robot-arm.right{ right: -7px; animation: arm-wave-r 4.2s ease-in-out infinite .9s; }

@keyframes arm-wave-l { 0%,86%,100%{ transform: translateY(0) rotate(0) } 16%,70%{ transform: translateY(-2px) rotate(-14deg) } }
@keyframes arm-wave-r { 0%,86%,100%{ transform: translateY(0) rotate(0) } 16%,70%{ transform: translateY(-2px) rotate(14deg) } }


.robot-legs{ display:flex; gap: 4px; margin-top: 2px; }
.robot-leg{
  width: 6px; height: 8px; border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #fff, #F1F5FB);
  border: 1px solid #D4DAE6;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.05);
  animation: leg-bounce 2.6s ease-in-out infinite alternate;
}
.robot-leg.right{ animation-delay: .25s; }
@keyframes leg-bounce { 0%{ transform: scaleY(1) } 100%{ transform: scaleY(.86) } }


.robot-shadow{
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 6px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.12) 0%, transparent 70%);
  animation: shadow-soft 3.2s ease-in-out infinite;
}
@keyframes shadow-soft { 0%,100%{ transform: translateX(-50%) scale(1); opacity:.12 } 50%{ transform: translateX(-50%) scale(1.08); opacity:.07 } }


.chat-fab:hover .robot-head{
  background: linear-gradient(145deg, #ffffff 0%, #F8FBFF 55%, #EAF1FF 100%);
  border-color: #C9D2E6;
}
.chat-fab:hover .robot-torso{
  background: linear-gradient(145deg, #ffffff 0%, #F3F7FF 100%);
  border-color: #C9D2E6;
}
.chat-fab:hover .robot-eye{ box-shadow: 0 0 10px rgba(130,151,254,1), inset 0 1px 2px rgba(255,255,255,.7); }


.chat-notification{
  position: absolute; top: 6px; right: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--white);
  background: linear-gradient(135deg, #EF4444, #DC2626);
  transform: scale(0); opacity: 0;
  box-shadow: 0 2px 8px rgba(239,68,68,.45);
  transition: transform .25s ease, opacity .25s ease;
}
.chat-notification.show{
  transform: scale(1); opacity: 1;
  animation: notif-ring 2.2s ease-in-out infinite;
}
@keyframes notif-ring { 0%,100%{ box-shadow: 0 0 0 0 rgba(239,68,68,.65) } 50%{ box-shadow: 0 0 0 10px rgba(239,68,68,0) } }


@media (max-width: 768px){
  .chat-fab{ right: 20px; bottom: 28px; width: 60px; height: 60px; }
  .robot-container{ transform: translateY(-1px); }
  .robot-head{ width: 40px; height: 32px; }
  .robot-torso{ width: 32px; height: 20px; }
}


@media (prefers-reduced-motion: reduce){
  .chat-fab, .robot-container *, .chat-notification{ animation: none !important; transition: none !important; }
}
/* ===== Enlaces de Interés — Corporativo, formal (sin gradientes) ===== */
.interest-links{
  --c-white:#FFFFFF; --c-black:#000000;
  --c-deep:#021F59; --c-navy:#000C97; --c-accent:#8297FE;
  --c-ink:#0B1220; --c-muted:#374151; --c-border:#E5E7EB; --c-border-ink: rgba(0,12,151,.12);
  --container-w:1200px; --logo-h:96px; --logo-pad-x:12px;
  --sh-card:0 5px 16px rgba(2,31,89,.06); --sh-card-hover:0 10px 26px rgba(2,31,89,.12);
  --ease-premium:cubic-bezier(.2,.8,.2,1);

  background:#FFF;
  padding:clamp(10px,3vw,28px) 0;
  padding-top:calc(clamp(10px,3vw,28px) + env(safe-area-inset-top));
  padding-bottom:calc(clamp(10px,3vw,28px) + env(safe-area-inset-bottom));
}
.interest-links__container{ max-width:var(--container-w); margin:0 auto; padding:0 clamp(10px,2.5vw,18px); }
.interest-links__grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(12px,2.6vw,24px); align-items:center; }

/* Header derecho */
.interest-links__header{ text-align:right; }
.interest-links__title{
  margin:0 0 .35rem 0; font:900 clamp(18px,2.8vw,30px)/1.15 "Inter",system-ui,sans-serif;
  letter-spacing:-.015em; color:var(--c-ink);
  display:inline-block; padding-bottom:.28rem; border-bottom:3px solid var(--c-navy);
}
.interest-links__subtitle{ margin:.2rem 0 0; font:600 clamp(11px,1.4vw,13.5px)/1.5 "Inter",system-ui,sans-serif; color:var(--c-muted); }

/* ===== Cinta infinita ===== */
.interest-links__media{ position:relative; min-width:0; display:flex; align-items:center; }

.logo-ribbon{
  background:#FFF; border:1px solid var(--c-border); border-radius:12px;
  overflow:hidden; box-shadow:var(--sh-card);
  touch-action:pan-y; -webkit-tap-highlight-color:transparent;
  cursor:grab; user-select:none; flex:1; position:relative;

  /* respiración lateral (fuera de la pista) */
  padding-inline: clamp(40px, 5vw, 56px);
}
.logo-ribbon:active{ cursor:grabbing; }

/* Pista: flex, sin transform (animamos scrollLeft del contenedor) */
.logo-ribbon__track{
  display:flex; align-items:center;
  gap:clamp(12px, 2.4vw, 20px);
  padding:0; will-change:auto;
}

/* Items: solo logos */
.logo-item{
  display:flex; align-items:center; justify-content:center;
  min-width:200px; padding:0 var(--logo-pad-x);
  flex-shrink:0; gap:0; transition:transform .16s var(--ease-premium);
}
.logo-item:hover{ transform:translateY(-1px); }

/* Sin marco extra */
.logo-frame{ display:contents !important; }

/* Logo */
.logo-ribbon__link{ display:inline-flex; align-items:center; justify-content:center; outline:none; border-radius:8px; padding:0; }
.logo-ribbon__link:focus-visible{ outline:3px solid var(--c-navy); outline-offset:2px; }
.logo-ribbon__link img{
  display:block; max-height:var(--logo-h); max-width:clamp(150px, 22vw, 228px);
  width:auto; height:auto; object-fit:contain; object-position:center;
  transition:transform .16s var(--ease-premium), filter .16s var(--ease-premium), border-color .16s var(--ease-premium);
  border:1px solid transparent;
}
.logo-item:hover .logo-ribbon__link img{ transform:scale(1.035); filter:saturate(1.03) contrast(1.02); border-color:var(--c-border-ink); }

/* Quitar cualquier UI residual de puntos/flechas */
.logo-pagination,.logo-dots,.logo__dots,.dots,.pagination,.logo-ribbon__dots,.logo-ribbon__nav{ display:none !important; }

/* Responsivo */
@media (max-width:992px){
  .interest-links__grid{ grid-template-columns:1fr; align-items:start; }
  .interest-links__header{ text-align:center; order:-1; }
}
.btn-cta,.btn-ghost{
  display:inline-flex; 
  align-items:center; 
  gap: clamp(5px, .9vw, 8px); 
  cursor:pointer; 
  text-decoration:none;
  font-weight:700; 
  letter-spacing:.35px;
  padding: clamp(.55rem, 1.5vw, .72rem) clamp(.95rem, 2.2vw, 1.25rem); 
  border-radius: clamp(10px, 1.4vw, 14px);
  font-size: clamp(11px, 1.3vw, 13px);
  transition: all .28s var(--ease-premium);
  position:relative; 
  overflow:hidden;
  text-transform:uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
/* Reordenar Accesos de Preferencia en móvil:
   primero el contenido (.hub-main) y luego el aside (.hub-aside) */
@media (max-width: 1024px) {
  .hub-layout {
    display: flex;          /* solo en móvil */
    flex-direction: column; /* se apilan en columna */
  }

  .hub-main {
    order: 1;               /* contenido primero */
  }

  .hub-aside {
    order: 2;               /* accesos de preferencia abajo */
  }
}
/* ====== Archivo UGEL: meta + paginador elegante ====== */

.archive-page .arch-board {
  margin-top: 1.5rem;
}

/* Texto "Mostrando X–Y de Z resultados" */
.archive-page .arch-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--g-600, #64748b);
}

/* Contenedor del paginador */
.archive-page .pager {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.archive-page .pager-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Botones de página */
.archive-page .pager-item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Estado hover (páginas normales) */
.archive-page .pager-item .page-numbers:hover:not(.current) {
  background: rgba(130, 151, 254, 0.06);
  border-color: rgba(130, 151, 254, 0.8);
  color: #000c97;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Página actual */
.archive-page .pager-item .page-numbers.current {
  background: linear-gradient(135deg, #000c97, #8297fe);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  cursor: default;
}

/* Prev / Next un poco más anchos */
.archive-page .pager-item .page-numbers.prev,
.archive-page .pager-item .page-numbers.next {
  padding-inline: 1.1rem;
  font-weight: 600;
}

/* Estado deshabilitado (cuando WordPress lo imprime como span) */
.archive-page .pager-item span.page-numbers {
  cursor: default;
}

/* Focus accesible */
.archive-page .pager-item .page-numbers:focus-visible {
  outline: 2px solid #000c97;
  outline-offset: 2px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(130, 151, 254, 0.7);
}

/* Responsive: en móviles permitir scroll horizontal si hay muchas páginas */
@media (max-width: 640px) {
  .archive-page .pager {
    justify-content: flex-start;
  }

  .archive-page .pager-rail {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .archive-page .pager-rail::-webkit-scrollbar {
    height: 6px;
  }
  
  .archive-page .pager-rail::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
  }
  
  .archive-page .pager-rail::-webkit-scrollbar-track {
    background: transparent;
  }
}

