/* ─── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
  --primary:   #0d5e9a;
  --secondary: #1a87c8;
  --accent:    #00b4d8;
  --dark:      #1a2332;
  --light:     #f0f8ff;
  --gray:      #f8fafc;
  --text:      #374151;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(13,94,154,.12);
  --shadow-lg: 0 8px 40px rgba(13,94,154,.18);
  --transition: .3s ease;
}

/* ─── BASE ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 0;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; color: var(--dark); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; }

/* ─── TOPBAR ─────────────────────────────────────────────────────────────────── */
.topbar {
  background: linear-gradient(90deg, #0a3f6e 0%, var(--primary) 100%);
  color: rgba(255,255,255,.9);
  padding: .45rem 0;
  font-size: .78rem;
  letter-spacing: .01em;
}
.topbar-link {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-link:hover { color: #fff; }
.topbar-label { color: rgba(255,255,255,.5); font-size: .72rem; }
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: .7rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.topbar-social:hover { background: rgba(255,255,255,.28); color: #fff; transform: translateY(-1px); }
.topbar-wa { background: rgba(37,211,102,.25) !important; }
.topbar-wa:hover { background: #25d366 !important; }

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
.main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 24px rgba(13,94,154,.10);
}
.header-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

/* Brand / Logo */
.header-brand { text-decoration: none; padding: .6rem 0; }
.header-logo-wrap { display: flex; align-items: center; gap: .75rem; }
.header-logo-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,94,154,.3);
}
.header-logo-text { display: flex; flex-direction: column; }
.header-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.header-logo-sub {
  font-size: .65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-logo { max-height: 56px; width: auto; }

/* Nav links */
.navbar { padding: 0; }
.navbar-nav { gap: .1rem; }
.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: #374151;
  padding: 1.25rem .7rem !important;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: .7rem; right: .7rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* CTA button in nav */
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: .5rem 1.1rem !important;
  font-weight: 600 !important;
  font-size: .8rem !important;
  margin: .6rem 0;
  transition: box-shadow var(--transition), transform var(--transition) !important;
  box-shadow: 0 4px 14px rgba(13,94,154,.35);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { color: #fff !important; box-shadow: 0 6px 20px rgba(13,94,154,.5); transform: translateY(-1px); }

/* Dropdown */
.header-dropdown {
  border: none;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(13,94,154,.16);
  padding: .5rem 0;
  min-width: 220px;
  border-top: 3px solid var(--primary);
}
@media (min-width: 992px) {
  .header-dropdown.show { animation: dropIn .18s ease; }
}
@keyframes dropIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown-header-item {
  border-bottom: 1px solid #f0f4f8;
  margin-bottom: .25rem;
  padding: .25rem 0;
}
.dropdown-item-parent {
  display: block;
  padding: .45rem 1.2rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dropdown-item {
  font-size: .84rem;
  font-weight: 500;
  padding: .5rem 1.2rem;
  color: #374151;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.dropdown-item-arrow { font-size: .6rem; color: #cbd5e1; transition: color var(--transition), transform var(--transition); }
.dropdown-item:hover { background: #f0f8ff; color: var(--primary); padding-left: 1.5rem; }
.dropdown-item:hover .dropdown-item-arrow { color: var(--primary); transform: translateX(2px); }
.dropdown-item.active { background: var(--light); color: var(--primary); font-weight: 600; }

/* Mobile toggler custom */
.header-toggler {
  border: none;
  padding: .5rem;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.header-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.header-toggler[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.header-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-toggler[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Search bar */
.header-search-form { margin-left: 1rem; }
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-icon {
  position: absolute;
  left: .9rem;
  color: #94a3b8;
  font-size: .8rem;
  pointer-events: none;
}
.header-search-input {
  padding: .45rem .9rem .45rem 2.2rem;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  font-size: .82rem;
  width: 190px;
  background: #f8fafc;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition), width .3s ease, background var(--transition);
  outline: none;
}
.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,94,154,.12);
  background: #fff;
  width: 230px;
}
.header-search-input::placeholder { color: #b0bec5; }

/* Mobile nav collapse */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(13,94,154,.15);
    margin-top: .5rem;
    padding: 1rem;
    border-top: 3px solid var(--primary);
  }
  .navbar-nav .nav-link {
    padding: .65rem .75rem !important;
    border-bottom: 1px solid #f0f4f8;
    color: var(--dark) !important;
    font-size: .9rem !important;
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active { color: var(--primary) !important; background: #f0f8ff; border-radius: 8px; }
  .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }
  .header-dropdown {
    box-shadow: none; border-radius: 0; border-top: none;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    margin: .25rem 0 .5rem .75rem;
    padding: .25rem 0;
  }
  .dropdown-header-item { display: none; }
  .dropdown-item { font-size: .87rem; padding: .45rem 1rem; }
  .nav-cta {
    display: inline-flex !important;
    margin: .5rem .75rem !important;
    border-radius: 50px !important;
    width: auto !important;
  }
  .header-search-form { margin: .75rem 0 0; }
  .header-search-input { width: 100%; border-radius: 10px; padding-left: 2.2rem; }
  .header-search-input:focus { width: 100%; }
}

/* Old classes kept for compatibility */
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family:'Poppins',sans-serif; font-size:1.25rem; font-weight:800; color:var(--primary); }
.logo-sub { font-size:.65rem; color:var(--accent); font-weight:600; letter-spacing:.06em; }
.search-nav-form { display: none; } /* replaced by header-search-form */

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; }
.hero-swiper { width: 100%; height: 92vh; max-height: 720px; min-height: 480px; }
.hero-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
}
/* Payment swiper slide — block layout, auto height */
.payment-swiper .swiper-slide {
  display: block;
  height: auto;
  background: transparent;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 0;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.9);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  padding: .8rem 2rem;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-radius: 50px;
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.btn-hero-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  padding: .8rem 2rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.7);
  font-size: .95rem;
  transition: all var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 50px; }
.swiper-button-prev, .swiper-button-next {
  color: #fff;
  background: rgba(255,255,255,.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem; }
.swiper-pagination-bullet-active { background: #fff; }

/* ─── SECTION COMMON ─────────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: .2rem .9rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--dark);
}
.section-subtitle { font-size: 1rem; max-width: 600px; margin: 0 auto; }
.text-white-75 { color: rgba(255,255,255,.8) !important; }

/* ─── SERVICES ───────────────────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.service-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.service-text  { color: #6b7280; font-size: .9rem; margin-bottom: 1rem; }
.service-link  { font-weight: 600; font-size: .875rem; color: var(--primary); }
.service-link i { font-size: .75rem; margin-left: .25rem; transition: transform var(--transition); }
.service-link:hover i { transform: translateX(4px); }

/* ─── STATS ──────────────────────────────────────────────────────────────────── */
.stats-section { background: linear-gradient(135deg, var(--primary) 0%, #0a4875 100%); }
.stat-item { padding: 1.5rem 1rem; }
.stat-icon { font-size: 2.5rem; opacity: .7; margin-bottom: .75rem; display: block; }
.stat-value { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-suffix { font-size: 1.5rem; font-weight: 700; color: var(--accent); display: inline; }
.stat-label  { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: .25rem; }

/* ─── NEWS ───────────────────────────────────────────────────────────────────── */
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img-wrap { position: relative; overflow: hidden; height: 200px; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-img { transform: scale(1.05); }
.news-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.5);
}
.news-category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--primary);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.news-body  { padding: 1.25rem; }
.news-date  { font-size: .78rem; color: #9ca3af; margin-bottom: .5rem; }
.news-date i { margin-right: .25rem; }
.news-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.4; }
.news-title a { color: var(--dark); }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: .875rem; color: #6b7280; margin-bottom: 1rem; }
.btn-read-more { font-size: .85rem; font-weight: 600; color: var(--primary); }
.btn-read-more i { font-size: .75rem; margin-left: .25rem; transition: transform var(--transition); }
.btn-read-more:hover { color: var(--secondary); }
.btn-read-more:hover i { transform: translateX(4px); }
.category-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-filter {
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
}
.btn-filter:hover, .btn-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── PAYMENTS SLIDER ────────────────────────────────────────────────────────── */
.payments-section { padding: 5rem 0; }
.tag-light { background: rgba(255,255,255,.15) !important; color: rgba(255,255,255,.9) !important; }
.payment-swiper-wrap { position: relative; width: 100%; }
.payment-swiper { width: 100%; overflow: hidden; }
.payment-swiper .swiper-slide { height: auto; }
.payment-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
  user-select: none;
}
a.payment-card { cursor: pointer; }
.payment-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.payment-card-media {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}
.payment-card-media img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}
.payment-card-media i {
  font-size: 2rem;
  color: var(--primary);
  background: rgba(13,94,154,.08);
  width: 68px; height: 68px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-card-name {
  font-weight: 700;
  font-size: .88rem;
  color: #1e293b;
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.payment-card-type {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 20px;
}
.payment-swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: .5rem;
}
.payment-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s;
  flex-shrink: 0;
}
.payment-nav-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.7); }
.payment-nav-btn:disabled { opacity: .3; cursor: default; }
.payment-pagination { display: flex; gap: 5px; align-items: center; }
.payment-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.4); width: 8px; height: 8px; }
.payment-pagination .swiper-pagination-bullet-active { background: #fff; transform: scale(1.3); }
.payment-card-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
  margin-top: .55rem;
}
.payment-method-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .5rem;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--mc, #0d5e9a);
  border: 1.5px solid var(--mc, #0d5e9a);
  white-space: nowrap;
  opacity: .85;
}
.payment-method-badge i { font-size: .6rem; }
/* Responsive — payment cards */
@media (max-width: 575.98px) {
  .payments-section { padding: 3rem 0; }
  .payment-card { padding: 1.25rem .75rem 1rem; }
  .payment-card-media { height: 56px; margin-bottom: .6rem; }
  .payment-card-media img { max-height: 48px; }
  .payment-card-media i { width: 52px; height: 52px; font-size: 1.5rem; }
  .payment-card-name { font-size: .8rem; }
  .payment-method-badge span { display: none; }
  .payment-method-badge { padding: .22rem .35rem; }
  .payment-swiper-controls { gap: .75rem; margin-top: .25rem; }
  .payment-nav-btn { width: 32px; height: 32px; font-size: .75rem; }
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────────── */
.about-img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 4rem;
}
.about-img-placeholder span { font-size: 1.25rem; font-weight: 700; color: rgba(255,255,255,.9); margin-top: .5rem; font-family: 'Poppins', sans-serif; }
.about-features { list-style: none; padding: 0; }
.about-features li { padding: .4rem 0; font-size: .95rem; }
.about-features li i { margin-right: .5rem; }

/* ─── PAGE HERO MINI ─────────────────────────────────────────────────────────── */
.page-hero-mini {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4875 100%);
  padding: 3rem 0 2rem;
  margin-bottom: 0;
}
.page-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}
.breadcrumb { background: transparent; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.75); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ─── PAGE CONTENT ───────────────────────────────────────────────────────────── */
.page-content h2 { color: var(--primary); font-size: 1.5rem; margin-top: 2rem; }
.page-content h3 { color: var(--dark); font-size: 1.2rem; margin-top: 1.5rem; }
.page-content p  { color: var(--text); }
.page-content ul, .page-content ol { color: var(--text); padding-left: 1.5rem; }
.page-content li { margin-bottom: .3rem; }

/* ─── ARTICLE ────────────────────────────────────────────────────────────────── */
.article-full { font-size: 1rem; line-height: 1.85; }
.article-image { width: 100%; max-height: 450px; object-fit: cover; }
.article-meta  { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.article-content h2 { color: var(--primary); margin-top: 1.75rem; }
.article-content h3 { color: var(--dark); margin-top: 1.25rem; }
.article-content p { color: var(--text); }
.article-content img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1rem 0; }
.article-share .btn { border-radius: 50px; }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────────── */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sidebar-title {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  border-bottom: 2px solid var(--light);
  padding-bottom: .75rem;
  margin-bottom: 1rem;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid #f3f4f6; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a {
  display: block;
  padding: .5rem 0;
  color: var(--text);
  font-size: .9rem;
  transition: all var(--transition);
}
.sidebar-list li a:hover, .sidebar-list li.active a { color: var(--primary); padding-left: .5rem; }
.sidebar-news-item { border-bottom: 1px solid #f3f4f6; padding: .75rem 0; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-date { font-size: .75rem; color: #9ca3af; }
.sidebar-news-link { font-size: .875rem; color: var(--dark); font-weight: 500; line-height: 1.4; display: block; }
.sidebar-news-link:hover { color: var(--primary); }
.contact-box { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.contact-box .sidebar-title { color: rgba(255,255,255,.7) !important; border-color: rgba(255,255,255,.2) !important; }
.contact-box p { color: rgba(255,255,255,.9); font-size: .9rem; margin-bottom: .5rem; }
.contact-box p i { margin-right: .5rem; }
.contact-box a { color: rgba(255,255,255,.9); }
.contact-box a:hover { color: #fff; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #0a4875; border-color: #0a4875; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-whatsapp { background: #25d366; color: #fff; border: none; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

/* ─── GALLERY ────────────────────────────────────────────────────────────────── */
.gallery-img { height: 180px; object-fit: cover; width: 100%; transition: transform var(--transition), opacity var(--transition); }
.gallery-img:hover { transform: scale(1.04); opacity: .9; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); margin-top: 0; }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-logo-text span { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-logo { max-height: 60px; filter: brightness(0) invert(1); }
.footer-tagline { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-heading { font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: all var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: .25rem; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .875rem; }
.footer-contact li i { color: var(--accent); margin-top: .15rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ─── BACK TO TOP ────────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13,94,154,.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }

/* ─── PAGE LOADER ────────────────────────────────────────────────────────────── */
#pageLoader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0a3f6e 60%, var(--dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .55s ease .1s, visibility .55s ease .1s;
}
#pageLoader.hide { opacity: 0; visibility: hidden; }
.loader-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  animation: loaderPulse 1.8s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.loader-icon-circle {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  border: 2px solid rgba(255,255,255,.25);
}
.loader-site-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}
.loader-site-sub { color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.loader-bar-wrap {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fff);
  border-radius: 4px;
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBar {
  0%   { width: 0%; margin-left: 0%; }
  50%  { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}

/* ─── FLOATING SOCIAL SIDEBAR ────────────────────────────────────────────────── */
.social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.social-float-btn {
  display: flex;
  align-items: center;
  padding: .7rem .8rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px 0 0 8px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  transform: translateX(calc(100% - 42px));
  white-space: nowrap;
  box-shadow: -3px 2px 10px rgba(0,0,0,.25);
  overflow: hidden;
  min-width: 130px;
}
.social-float-btn:hover {
  transform: translateX(0) !important;
  box-shadow: -5px 2px 18px rgba(0,0,0,.35);
}
.social-float-btn i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: .55rem;
}
.social-float-btn span { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.social-float-btn.fb  { background: #1877f2; }
.social-float-btn.tw  { background: #1da1f2; }
.social-float-btn.x   { background: #14171a; }
.social-float-btn.ig  { background: linear-gradient(135deg,#405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d,#f56040,#f77737,#fcaf45); }
.social-float-btn.yt  { background: #ff0000; }
.social-float-btn.wa  { background: #25d366; }
.social-float-btn.tk  { background: #010101; }
.social-float-btn.li  { background: #0a66c2; }

/* Staggered entrance from right */
.social-float-btn { opacity: 0; animation: socialSlideIn .5s ease forwards; }
.social-float-btn:nth-child(1) { animation-delay: .3s; }
.social-float-btn:nth-child(2) { animation-delay: .45s; }
.social-float-btn:nth-child(3) { animation-delay: .6s; }
.social-float-btn:nth-child(4) { animation-delay: .75s; }
.social-float-btn:nth-child(5) { animation-delay: .9s; }
.social-float-btn:nth-child(6) { animation-delay: 1.05s; }
.social-float-btn:nth-child(7) { animation-delay: 1.2s; }
@keyframes socialSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(calc(100% - 42px)); }
}
.social-float-btn:hover { animation: none; }
@media (max-width: 575.98px) {
  .social-float { display: none; }
}

/* ─── SECTION / CONTENT ANIMATIONS ──────────────────────────────────────────── */
.section-header { position: relative; }
/* Animated underline on section titles */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .65s ease .25s;
}
.aos-animate .section-title::after,
.section-header .section-title::after { width: 60px; }

/* Card hover lift */
.service-card, .news-card, .stat-item {
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.news-card:hover    { transform: translateY(-4px); }

/* Pulse on stat icons */
.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: .5rem;
  display: inline-block;
  transition: transform .3s ease;
}
.stat-item:hover .stat-icon { transform: scale(1.18) rotate(-5deg); }

/* ─── BUSCADOR ───────────────────────────────────────────────────────────────── */

/* Formulario en el navbar */
.search-nav-input {
  border-radius: 20px 0 0 20px !important;
  border: 1.5px solid #d1dde8;
  min-width: 150px;
  font-size: .85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-nav-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,94,154,.15);
}
.btn-search-nav {
  border-radius: 0 20px 20px 0 !important;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .35rem .75rem;
  transition: background var(--transition);
}
.btn-search-nav:hover { background: var(--secondary); color: #fff; }

/* Formulario principal en buscar.php */
.search-main-form .input-group {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid #d1dde8;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-main-form .input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,94,154,.12);
}
.search-main-form .input-group-text,
.search-main-form .form-control {
  border: none !important;
  box-shadow: none !important;
}
.search-main-form .form-control { font-size: 1.1rem; }

/* Resultado individual */
.search-results { display: flex; flex-direction: column; gap: .75rem; }
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1.5px solid #e8eef5;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.search-result-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(3px);
  color: var(--text);
}
.sri-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem;
}
.sri-body { flex: 1; min-width: 0; }
.sri-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .25rem; }
.sri-badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: .2em .6em; border-radius: 4px; letter-spacing: .04em;
}
.sri-date { font-size: .78rem; color: #94a3b8; }
.sri-title {
  font-size: 1rem; font-weight: 600; margin: 0 0 .25rem;
  color: var(--dark);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.search-result-item:hover .sri-title { color: var(--primary); }
.sri-snippet { font-size: .88rem; color: #64748b; margin: 0; line-height: 1.5; }
.sri-arrow { color: #cbd5e1; margin-top: .25rem; flex-shrink: 0; transition: color var(--transition); }
.search-result-item:hover .sri-arrow { color: var(--primary); }

/* Término resaltado */
mark.search-mark {
  background: #fef08a;
  color: #92400e;
  padding: 0 .15em;
  border-radius: 3px;
  font-weight: 600;
}

/* ─── LANDING — SERVICE CARDS enhanced ───────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  background-image: linear-gradient(#fff,#fff),
                    linear-gradient(90deg, var(--primary), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.service-card:hover { transform: translateY(-8px); }
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  font-size: 2rem;
}

/* ─── LANDING — STATS enhanced ───────────────────────────────────────────────── */
.stats-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #073f6e 100%) !important;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.stat-value {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-suffix {
  font-size: 1.75rem;
  font-weight: 700;
  -webkit-text-fill-color: var(--accent);
  display: inline;
}
.stat-icon {
  font-size: 2rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .6rem;
}

/* ─── LANDING — ABOUT section enhanced ───────────────────────────────────────── */
.about-img-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 20px 60px rgba(13,94,154,.3);
}
.about-features li {
  padding: .5rem 0;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.about-features li:last-child { border-bottom: none; }
.about-features li i { font-size: 1rem; }

/* ─── LANDING — HERO decorative ──────────────────────────────────────────────── */
.hero-section { position: relative; }
.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  bottom: 15%; right: 5%;
  width: 250px; height: 250px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
  z-index: 1;
  pointer-events: none;
}
.hero-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  top: 10%; left: 3%;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 20px solid rgba(255,255,255,.06);
  z-index: 1;
  pointer-events: none;
}

/* ─── LANDING — NEWS section enhanced ────────────────────────────────────────── */
.news-img-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.news-card { border: none; }
.news-body { border-top: 3px solid transparent;
  background-image: linear-gradient(#fff,#fff),
                    linear-gradient(90deg, var(--primary), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box; }

/* ─── TRANSPARENCY / LOTAIP — Document section ────────────────────────────────── */
.transparency-docs { }
.transparency-docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8eef5;
  margin-bottom: 1.5rem;
}
.transparency-docs-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}
.year-tabs { gap: .4rem; }
.year-tabs .nav-link {
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  padding: .35rem .9rem;
  color: var(--text);
  border: 1.5px solid #e2e8f0;
  background: #fff;
  transition: all var(--transition);
}
.year-tabs .nav-link:hover { border-color: var(--primary); color: var(--primary); }
.year-tabs .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.year-tabs .nav-link .badge {
  font-size: .7rem;
  padding: .15em .45em;
  border-radius: 50px;
}
.year-tabs .nav-link.active .badge { background: rgba(255,255,255,.25) !important; color: #fff !important; }

/* Document card */
.doc-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1.5px solid #e8eef5;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.doc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(13,94,154,.12);
  transform: translateY(-2px);
  color: var(--text);
}
.doc-card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: #f0f7ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-top: .1rem;
}
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card:hover .doc-card-title { color: var(--primary); }
.doc-card-desc {
  font-size: .78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card-meta { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.doc-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .2em .55em;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.doc-badge-link { background: #dbeafe; color: #1d4ed8; }
.doc-badge-file { background: #dcfce7; color: #15803d; }
.doc-badge-pdf  { background: #fee2e2; color: #dc2626; }
.doc-badge-word { background: #dbeafe; color: #2563eb; }
.doc-badge-excel{ background: #dcfce7; color: #16a34a; }
.doc-size { font-size: .68rem; color: #94a3b8; }
.doc-card-arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: .85rem;
  margin-top: .25rem;
  transition: color var(--transition), transform var(--transition);
}
.doc-card:hover .doc-card-arrow { color: var(--primary); transform: translateY(-1px); }

/* Empty state docs */
.docs-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.docs-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ─── POPUP / AVISO FLOTANTE ─────────────────────────────────────────────────── */
.popup-modal-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  border: none;
}
.popup-modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 0;
  padding: 1rem 1.5rem;
}
.popup-modal-header .modal-title { color: #fff; font-weight: 700; }
.popup-modal-header .btn-close-white { filter: invert(1) grayscale(1) brightness(2); }
.popup-close-btn {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.popup-close-btn:hover { background: rgba(0,0,0,.8); transform: scale(1.1); }
.popup-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.popup-html-body { min-height: 80px; }

/* Forzar modo claro en el popup independientemente del dark mode del SO */
.popup-modal-content {
  color-scheme: light;
  background: #ffffff;
  color: #1a2332;
}
.popup-html-body {
  color: #374151;
  background: #ffffff;
}
@media (prefers-color-scheme: dark) {
  #sitePopupModal .modal-content { background: #ffffff !important; color: #1a2332 !important; }
  #sitePopupModal .modal-body    { background: #ffffff !important; }
  #sitePopupModal .popup-html-body { color: #374151 !important; }
  #sitePopupModal .popup-modal-header { background: linear-gradient(135deg,#0d5e9a,#1a87c8) !important; }
}

/* ─── PAGE HERO MINI — enhanced ─────────────────────────────────────────────── */
.page-hero-mini {
  background: linear-gradient(135deg, #0a3f6e 0%, var(--primary) 45%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 2.5rem;
}
.page-hero-mini::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 55px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.page-hero-mini::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 36px;
  background: #fff;
  clip-path: ellipse(52% 100% at 50% 100%);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-swiper { height: 65vh; min-height: 350px; }
  .hero-title { font-size: 1.75rem; }
  .navbar-collapse { padding: 1rem 0; border-top: 1px solid #eee; margin-top: .5rem; }
  .navbar-nav .nav-link::after { display: none; }
}
@media (max-width: 575.98px) {
  .hero-swiper { height: 55vh; }
  .hero-buttons .btn { padding: .6rem 1.4rem; font-size: .85rem; }
}
