    /* ══════════════════════════════════════════════════════════════
   COMPONENTES PERSONALIZADOS — Alcaldía Bolivariana de Tucupita
   ══════════════════════════════════════════════════════════════ */

/* ─── Reset SVG: evitar que se estiren al tamaño del contenedor ─── */
svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ─── Header Premium ─── */
.header-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s var(--transition-smooth);
}

/* ─── Topbar Premium ─── */
.topbar-premium {
  position: relative;
  background: linear-gradient(135deg, #0088C7 0%, #00ADCD 40%, #0099CC 70%, #0088C7 100%);
  background-size: 200% 200%;
  animation: topbarGradient 8s ease infinite;
  padding: 0.5rem 0;
  overflow: hidden;
}

.topbar-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.08) 50%, transparent 100%);
  animation: topbarShimmer 6s ease-in-out infinite;
}

@keyframes topbarGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes topbarShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ─── Botones Redes Sociales Topbar ─── */
.topbar-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.topbar-social::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  background: var(--social-color, #0088ce);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.topbar-social:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.topbar-social:hover::before {
  opacity: 1;
}

.topbar-social svg {
  position: relative;
  z-index: 1;
}

/* ─── Botón Theme Topbar ─── */
.topbar-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.topbar-theme-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-premium.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

html.dark .header-premium.scrolled {
  background-color: rgba(15, 23, 42, 0.98);
}

.header-premium .nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.3s var(--transition-smooth);
}

html.dark .header-premium .nav-link {
  color: #e2e8f0;
}

.header-premium .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0.125rem;
  background-color: #00ADCD;
  transition: all 0.3s var(--transition-smooth);
  border-radius: 9999px;
}

.header-premium .nav-link:hover::after,
.header-premium .nav-link.active::after {
  width: 80%;
}

.header-premium .nav-link.active {
  color: #00ADCD;
}

html.dark .header-premium .nav-link.active {
  color: #7dd3fc;
}

/* ─── Botón CTA con gradiente premium ─── */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00ADCD, #0088C7, #006699);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px -3px rgba(0, 173, 205, 0.3);
  transition: all 0.3s var(--transition-smooth);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--transition-smooth);
}

.btn-cta:hover::before {
  transform: translateX(100%);
}

.btn-cta:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 173, 205, 0.4);
  transform: translateY(-0.125rem);
}

.btn-cta:active {
  transform: translateY(0) scale(0.97);
}

/* ─── Botón Atención al Ciudadano ─── */
.btn-ciudadano {
  position: relative;
  isolation: isolate;
}

.btn-ciudadano::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #fdc300, #e50051, #00adcd, #fdc300);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(4px);
}

.btn-ciudadano:hover::before {
  opacity: 0.6;
}

.btn-ciudadano::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(253, 195, 0, 0.1), rgba(229, 0, 81, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-ciudadano:hover::after {
  opacity: 1;
}

/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 173, 205, 0.12) 0%,
    transparent 40%,
    rgba(215, 25, 32, 0.08) 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 136, 199, 0.85) 0%,
    rgba(0, 136, 199, 0.4) 50%,
    rgba(0, 136, 199, 0.2) 100%
  );
}

/* ─── Tarjetas con efecto 3D ─── */
.card-3d {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
  transition: all 0.5s var(--transition-smooth);
  transform-style: preserve-3d;
  perspective: 1000px;
}

html.dark .card-3d {
  background-color: #1e293b;
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 12px 40px rgba(0, 173, 205, 0.1);
}

.card-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: linear-gradient(to right, #00ADCD, #E50051, #FDC300);
  opacity: 0;
  transition: opacity 0.3s var(--transition-smooth);
}

.card-3d:hover::before {
  opacity: 1;
}

/* ─── Sección con patrón decorativo ─── */
.section-pattern {
  position: relative;
  overflow: hidden;
}

.section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 50%, #00ADCD 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, #E50051 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, #FDC300 0%, transparent 50%);
}

/* ─── Línea de tiempo ─── */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 0.125rem;
  background: linear-gradient(to bottom, #00ADCD, #E50051, #FDC300);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: #00ADCD;
  border: 4px solid #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html.dark .timeline-dot {
  border-color: #0f172a;
}

/* ─── Badge con brillo ─── */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 173, 205, 0.2);
  background: linear-gradient(135deg, rgba(0, 173, 205, 0.12), rgba(253, 195, 0, 0.06));
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00ADCD;
  box-shadow: 0 2px 8px rgba(0, 173, 205, 0.08);
  transition: all 0.3s ease;
}

.badge-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 173, 205, 0.15);
}

html.dark .badge-premium {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(125, 211, 252, 0.06);
}

/* ─── Separador decorativo ─── */
.separator-gradient {
  height: 0.375rem;
  width: 100%;
  max-width: 8rem;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    var(--grad-from, #00ADCD) 0%,
    var(--grad-mid1, #FDC300) 25%,
    var(--grad-mid2, #E50051) 50%,
    var(--grad-mid1, #FDC300) 75%,
    var(--grad-to, #00ADCD) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ─── Grid de instituciones — Tarjetas más grandes y profesionales ─── */
.instituto-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.85rem 1.4rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  height: auto;
  min-height: 56px;
  width: auto;
  min-width: 130px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  flex-shrink: 0;
  gap: 0.75rem;
}

html.dark .instituto-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.instituto-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(0, 173, 205, 0.06), rgba(229, 0, 81, 0.03) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instituto-card:hover::before {
  opacity: 1;
}

.instituto-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ADCD, #FDC300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.instituto-card:hover::after {
  transform: scaleX(1);
}

.instituto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 173, 205, 0.12);
  border-color: rgba(0, 173, 205, 0.2);
}

html.dark .instituto-card:hover {
  box-shadow: 0 8px 25px rgba(0, 173, 205, 0.08);
  border-color: rgba(0, 173, 205, 0.15);
}

.instituto-card .icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  background: rgba(0, 173, 205, 0.12);
  color: #00ADCD;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.instituto-card:hover .icon-wrapper {
  background: linear-gradient(135deg, #00adcd, #0088c7);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 173, 205, 0.2);
  transform: scale(1.08);
}

/* ─── Nombre siempre visible ─── */
.instituto-card h3 {
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 700;
  transition: color 0.3s ease;
  line-height: 1.2;
}

html.dark .instituto-card h3 {
  color: #e2e8f0;
}

.instituto-card:hover h3 {
  color: #00ADCD;
}

html.dark .instituto-card:hover h3 {
  color: #5eead4;
}

.instituto-card p {
  color: #4b5563;
  font-size: 0.55rem;
  font-weight: 500;
  transition: color 0.3s ease;
  line-height: 1.2;
}

html.dark .instituto-card p {
  color: #94a3b8;
}

.instituto-card:hover p {
  color: #374151;
}

html.dark .instituto-card:hover p {
  color: #cbd5e1;
}

/* ─── Botón de flecha del carrusel ─── */
.instituto-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: white;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
}

html.dark .instituto-arrow {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.instituto-arrow:hover {
  background: #00adcd;
  border-color: #00adcd;
  color: white;
  box-shadow: 0 6px 16px rgba(0, 173, 205, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.instituto-arrow-left {
  left: -0.75rem;
}

.instituto-arrow-right {
  right: -0.75rem;
}

/* ─── Botón "Ver todos" ─── */
.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #00adcd, #0088c7);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 173, 205, 0.2);
  border: none;
  cursor: pointer;
}

.btn-ver-todos:hover {
  box-shadow: 0 8px 20px rgba(0, 173, 205, 0.3);
  transform: translateY(-1px);
}

.btn-ver-todos:active {
  transform: translateY(0) scale(0.97);
}

/* ─── Footer Premium ─── */
.footer-premium {
  position: relative;
  overflow: hidden;
}

.footer-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 173, 205, 0.05) 0%,
    transparent 50%,
    rgba(215, 25, 32, 0.05) 100%
  );
}

.footer-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 173, 205, 0.3), rgba(253, 195, 0, 0.3), transparent);
}

.footer-premium .footer-link {
  color: #4b5563;
  transition: all 0.3s var(--transition-smooth);
  text-decoration: none;
}

html.dark .footer-premium .footer-link {
  color: #94a3b8;
}

.footer-premium .footer-link:hover {
  color: #00ADCD;
  transform: translateX(0.25rem);
}

html.dark .footer-premium .footer-link:hover {
  color: #7dd3fc;
}

.footer-premium .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-premium .footer-social-link:hover {
  background: var(--social-color, #00ADCD);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ─── Efemérides Ticker ─── */
.efemerides-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.625rem;
  background: rgba(0, 173, 205, 0.06);
  border: 1px solid rgba(0, 173, 205, 0.1);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.efemerides-card:hover {
  background: rgba(0, 173, 205, 0.1);
  border-color: rgba(0, 173, 205, 0.2);
  transform: translateY(-1px);
}

html.dark .efemerides-card {
  background: rgba(125, 211, 252, 0.06);
  border-color: rgba(125, 211, 252, 0.1);
}

html.dark .efemerides-card:hover {
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.2);
}

.efemerides-card .efemerides-date {
  font-size: 0.65rem;
  font-weight: 700;
  color: #00ADCD;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

html.dark .efemerides-card .efemerides-date {
  color: #7dd3fc;
}

.efemerides-card .efemerides-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4b5563;
}

html.dark .efemerides-card .efemerides-text {
  color: #94a3b8;
}

/* ─── Noticias Grid ─── */
.news-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .news-card {
  background-color: #1e293b;
}

.news-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 173, 205, 0.15);
  transform: translateY(-6px);
}

.news-card .news-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image {
  transform: scale(1.08);
}

.news-card .news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-overlay {
  opacity: 1;
}

/* ─── Noticias — Badge de categoría ─── */
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.news-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ─── Noticias — Sidebar cards ─── */
.news-sidebar-card {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

html.dark .news-sidebar-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(51, 65, 85, 0.5);
}

.news-sidebar-card:hover {
  box-shadow: 0 8px 24px rgba(0, 173, 205, 0.08);
  border-color: rgba(0, 173, 205, 0.15);
}

/* ─── Noticias — Comunicado item ─── */
.news-comunicado-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.news-comunicado-item:hover {
  background: rgba(0, 173, 205, 0.04);
}

html.dark .news-comunicado-item:hover {
  background: rgba(125, 211, 252, 0.04);
}

.news-comunicado-item .comunicado-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  margin-top: 0.375rem;
  flex-shrink: 0;
  background: #00ADCD;
  animation: pulseGlow 2s ease-in-out infinite;
}

html.dark .news-comunicado-item .comunicado-dot {
  background: #7dd3fc;
}

/* ─── Noticias — Link "Ver más" ─── */
.news-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #00ADCD;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-link-more:hover {
  gap: 0.625rem;
  color: #0088C7;
}

html.dark .news-link-more {
  color: #7dd3fc;
}

html.dark .news-link-more:hover {
  color: #38bdf8;
}

/* ─── Noticias — CTA Banner ─── */
.news-cta-banner {
  background: linear-gradient(135deg, #00ADCD, #0088C7);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 173, 205, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.news-cta-banner:hover {
  box-shadow: 0 8px 28px rgba(0, 173, 205, 0.3);
  transform: translateY(-2px);
}

/* ─── Botón flotante de WhatsApp ─── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #22c55e;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s var(--transition-smooth);
  animation: pulseGlow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #16a34a;
  box-shadow: 0 12px 24px -8px rgba(34, 197, 94, 0.3);
  transform: scale(1.1);
}

/* ─── Estadísticas / Contadores ─── */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

html.dark .stat-card {
  background-color: #1e293b;
  border-color: #334155;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(to right, #00ADCD, #E50051);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html.dark .stat-label {
  color: #94a3b8;
}

/* ─── Testimonios / Citas ─── */
.testimonial-card {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

html.dark .testimonial-card {
  background-color: #1e293b;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-size: 3.75rem;
  color: rgba(0, 173, 205, 0.2);
  font-family: Georgia, serif;
}

/* ══════════════════════════════════════════════════════════════
   NUEVOS COMPONENTES INTERACTIVOS
   ══════════════════════════════════════════════════════════════ */

/* ─── Barra de progreso de lectura ─── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #00ADCD, #E50051, #FDC300);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 173, 205, 0.4);
}

/* ─── Botón scroll-to-top ─── */
#scroll-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #00ADCD, #0088C7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 173, 205, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--transition-smooth);
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 173, 205, 0.4);
}

/* ─── Toast notifications ─── */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 24rem;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  animation: toastIn 0.4s var(--transition-smooth) forwards;
  position: relative;
  overflow: hidden;
}

html.dark .toast {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast.toast-out {
  animation: toastOut 0.3s var(--transition-smooth) forwards;
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 2px 2px 0;
}

.toast.toast-info::before    { background: #00ADCD; }
.toast.toast-success::before { background: #22c55e; }
.toast.toast-error::before   { background: #ef4444; }
.toast.toast-warning::before { background: #f59e0b; }

.toast-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.toast.toast-info .toast-icon    { color: #00ADCD; }
.toast.toast-success .toast-icon { color: #22c55e; }
.toast.toast-error .toast-icon   { color: #ef4444; }
.toast.toast-warning .toast-icon { color: #f59e0b; }

.toast-content {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #374151;
}

html.dark .toast-content {
  color: #e2e8f0;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  line-height: 1;
}

.toast-close:hover {
  color: #374151;
  background: #f3f4f6;
}

html.dark .toast-close:hover {
  color: #e2e8f0;
  background: #334155;
}

/* ─── Ripple effect ─── */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear forwards;
  pointer-events: none;
}

/* ─── Tabs interactivos ─── */
.tab-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
  border-radius: 0.5rem 0.5rem 0 0;
}

html.dark .tab-btn {
  color: #94a3b8;
}

.tab-btn:hover {
  color: #00ADCD;
  background: rgba(0, 173, 205, 0.05);
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
  color: #00ADCD;
  background: rgba(0, 173, 205, 0.08);
}

html.dark .tab-btn.active,
html.dark .tab-btn[aria-selected="true"] {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
}

.tab-btn.active::after,
.tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00ADCD;
  border-radius: 1px 1px 0 0;
}

html.dark .tab-btn.active::after,
html.dark .tab-btn[aria-selected="true"]::after {
  background: #7dd3fc;
}

.tab-content {
  animation: tabFadeIn 0.4s var(--transition-smooth) forwards;
}

.tab-content.hidden {
  display: none;
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

html.dark .faq-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(51, 65, 85, 0.5);
}

.faq-item:hover {
  border-color: rgba(0, 173, 205, 0.2);
  box-shadow: 0 4px 16px rgba(0, 173, 205, 0.06);
}

html.dark .faq-item:hover {
  border-color: rgba(125, 211, 252, 0.15);
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.04);
}

.faq-item.active {
  border-color: rgba(0, 173, 205, 0.3);
  box-shadow: 0 4px 20px rgba(0, 173, 205, 0.08);
}

html.dark .faq-item.active {
  border-color: rgba(125, 211, 252, 0.2);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.04);
}

.faq-question {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  border: none;
  transition: all 0.3s var(--transition-smooth);
  padding: 1.25rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

html.dark .faq-question {
  color: #e2e8f0;
}

.faq-question:hover {
  color: #00ADCD;
}

.faq-question[aria-expanded="true"] {
  color: #00ADCD;
}

html.dark .faq-question[aria-expanded="true"] {
  color: #7dd3fc;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #9ca3af;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 173, 205, 0.06);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: #00ADCD;
  background: rgba(0, 173, 205, 0.12);
}

html.dark .faq-question[aria-expanded="true"] .faq-icon {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

.faq-answer {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #6b7280;
  padding: 0 1.5rem;
}

html.dark .faq-answer {
  color: #94a3b8;
}

.faq-answer.open {
  max-height: 500px !important;
  padding: 0 1.5rem 1.5rem;
}

/* ─── Lightbox ─── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  opacity: 1;
  visibility: visible;
}

#lightbox-content {
  max-width: 64rem;
  max-height: 80vh;
  margin: 0 1rem;
  position: relative;
  animation: lightboxIn 0.3s var(--transition-smooth) forwards;
}

#lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  position: absolute;
  bottom: -3rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-weight: 500;
}

#lightbox-close,
#lightbox-prev,
#lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: all 0.3s var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  z-index: 1;
}

#lightbox-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

#lightbox-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

#lightbox-prev:hover,
#lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ─── Weather widget ─── */
.weather-card {
  position: relative;
  overflow: hidden;
}

.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 173, 205, 0.03), transparent 50%);
  pointer-events: none;
}

/* ─── Countdown timer ─── */
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 173, 205, 0.05);
  min-width: 4rem;
}

html.dark .countdown-item {
  background: rgba(125, 211, 252, 0.08);
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00ADCD;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

html.dark .countdown-value {
  color: #7dd3fc;
}

.countdown-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

html.dark .countdown-label {
  color: #94a3b8;
}

/* ─── Gallery hover effects ─── */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 173, 205, 0.1), rgba(253, 195, 0, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 173, 205, 0.12);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay-text {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay-text {
  transform: translateY(0);
}

.gallery-item .gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.gallery-item:hover .gallery-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* ─── Institution Popups ─── */
.institucion-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.institucion-popup.open {
  opacity: 1;
  visibility: visible;
}

.institucion-popup .popup-card {
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  max-width: 28rem;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .institucion-popup .popup-card {
  background: #1e293b;
  border-color: rgba(71, 85, 105, 0.5);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.institucion-popup.open .popup-card {
  transform: scale(1) translateY(0);
}

.institucion-popup .popup-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
}

html.dark .institucion-popup .popup-header {
  background: #1e293b;
  border-color: rgba(71, 85, 105, 0.5);
}

.institucion-popup .popup-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.25s ease;
}

.institucion-popup .popup-close:hover {
  background: rgba(229, 0, 81, 0.1);
  color: #E50051;
  transform: rotate(90deg);
}

html.dark .institucion-popup .popup-close {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

html.dark .institucion-popup .popup-close:hover {
  background: rgba(229, 0, 81, 0.15);
  color: #fca5a5;
}

.institucion-popup .popup-stat-card {
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.institucion-popup .popup-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html.dark .institucion-popup .popup-stat-card {
  border-color: rgba(71, 85, 105, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   CLASES UTILITARIAS PERSONALIZADAS — Colores institucionales
   ══════════════════════════════════════════════════════════════
   NOTA: Tailwind CSS v4 CDN (@tailwindcss/browser@4) NO procesa
   directivas @theme desde bloques <style> inline. Por eso
   definimos aquí todas las clases con valores hardcodeados.
   ══════════════════════════════════════════════════════════════ */

/* ─── AZUL REY (#00ADCD) ─── */
.bg-azul-rey { background-color: #00ADCD; }
.text-azul-rey { color: #00ADCD; }
.from-azul-rey { --tw-gradient-from: #00ADCD; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,173,205,0)); }
.via-azul-rey { --tw-gradient-via: #00ADCD; --tw-gradient-stops: var(--tw-gradient-from), #00ADCD, var(--tw-gradient-to, rgba(0,173,205,0)); }
.to-azul-rey { --tw-gradient-to: #00ADCD; }
.border-azul-rey\/20 { border-color: rgba(0, 173, 205, 0.2); }
.bg-azul-rey\/5 { background-color: rgba(0, 173, 205, 0.05); }
.bg-azul-rey\/10 { background-color: rgba(0, 173, 205, 0.1); }
.bg-azul-rey\/20 { background-color: rgba(0, 173, 205, 0.2); }
.shadow-azul-rey\/10 { box-shadow: 0 10px 15px -3px rgba(0, 173, 205, 0.1), 0 4px 6px -4px rgba(0, 173, 205, 0.1); }
.shadow-azul-rey\/20 { box-shadow: 0 10px 15px -3px rgba(0, 173, 205, 0.2), 0 4px 6px -4px rgba(0, 173, 205, 0.2); }
.hover\:bg-azul-rey\/5:hover { background-color: rgba(0, 173, 205, 0.05); }
.hover\:text-azul-rey:hover { color: #00ADCD; }
.hover\:shadow-azul-rey\/20:hover { box-shadow: 0 10px 15px -3px rgba(0, 173, 205, 0.2), 0 4px 6px -4px rgba(0, 173, 205, 0.2); }
.from-azul-rey\/30 { --tw-gradient-from: rgba(0,173,205,0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,173,205,0)); }
.via-azul-rey\/85 { --tw-gradient-via: rgba(0,173,205,0.85); --tw-gradient-stops: var(--tw-gradient-from), rgba(0,173,205,0.85), var(--tw-gradient-to, rgba(0,173,205,0)); }
.via-azul-rey\/90 { --tw-gradient-via: rgba(0,173,205,0.9); --tw-gradient-stops: var(--tw-gradient-from), rgba(0,173,205,0.9), var(--tw-gradient-to, rgba(0,173,205,0)); }

/* ─── AZUL PROFUNDO (#0088C7) ─── */
.bg-azul-profundo { background-color: #0088C7; }
.text-azul-profundo { color: #0088C7; }
.from-azul-profundo { --tw-gradient-from: #0088C7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,136,199,0)); }
.via-azul-profundo { --tw-gradient-via: #0088C7; --tw-gradient-stops: var(--tw-gradient-from), #0088C7, var(--tw-gradient-to, rgba(0,136,199,0)); }
.to-azul-profundo { --tw-gradient-to: #0088C7; }
.from-azul-profundo\/60 { --tw-gradient-from: rgba(0,136,199,0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,136,199,0)); }
.from-azul-profundo\/95 { --tw-gradient-from: rgba(0,136,199,0.95); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,136,199,0)); }
.to-azul-profundo\/95 { --tw-gradient-to: rgba(0,136,199,0.95); }

/* ─── VERDE SELVA / ROJO (#E50051) ─── */
.bg-verde-selva { background-color: #E50051; }
.text-verde-selva { color: #E50051; }
.from-verde-selva { --tw-gradient-from: #E50051; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(229,0,81,0)); }
.to-verde-selva { --tw-gradient-to: #E50051; }
.bg-verde-selva\/10 { background-color: rgba(229, 0, 81, 0.1); }
.bg-verde-selva\/20 { background-color: rgba(229, 0, 81, 0.2); }
.shadow-verde-selva\/20 { box-shadow: 0 10px 15px -3px rgba(229, 0, 81, 0.2), 0 4px 6px -4px rgba(229, 0, 81, 0.2); }
.from-verde-selva\/30 { --tw-gradient-from: rgba(229,0,81,0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(229,0,81,0)); }

/* ─── DORADO (#FDC300) ─── */
.bg-dorado { background-color: #FDC300; }
.text-dorado { color: #FDC300; }
.from-dorado { --tw-gradient-from: #FDC300; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253,195,0,0)); }
.to-dorado { --tw-gradient-to: #FDC300; }
.bg-dorado\/10 { background-color: rgba(253, 195, 0, 0.1); }
.bg-dorado\/20 { background-color: rgba(253, 195, 0, 0.2); }
.shadow-dorado\/20 { box-shadow: 0 10px 15px -3px rgba(253, 195, 0, 0.2), 0 4px 6px -4px rgba(253, 195, 0, 0.2); }
.from-dorado\/30 { --tw-gradient-from: rgba(253,195,0,0.3); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253,195,0,0)); }

/* ─── DORADO CLARO (#FDC300) ─── */
.bg-dorado-claro { background-color: #FDC300; }
.text-dorado-claro { color: #FDC300; }
.from-dorado-claro { --tw-gradient-from: #FDC300; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(253,195,0,0)); }
.hover\:text-dorado-claro:hover { color: #FDC300; }

/* ─── BLANCO ROTO (#f8f6f0) ─── */
.bg-blanco-roto { background-color: #f8f6f0; }
.text-blanco-roto { color: #f8f6f0; }

/* ─── GRADIENTES MIXTOS USADOS EN LA PLANTILLA ─── */

/* from-azul-profundo via-azul-rey to-azul-profundo */
.bg-gradient-to-r.from-azul-profundo.via-azul-rey.to-azul-profundo,
.bg-gradient-to-br.from-azul-profundo.via-azul-rey.to-azul-profundo {
  background-image: linear-gradient(to right, #0088C7, #00ADCD, #0088C7);
}

/* from-azul-profundo/95 via-azul-rey/85 to-azul-profundo/95 */
.bg-gradient-to-r.from-azul-profundo\/95.via-azul-rey\/85.to-azul-profundo\/95 {
  background-image: linear-gradient(to right, rgba(0,136,199,0.95), rgba(0,173,205,0.85), rgba(0,136,199,0.95));
}

/* from-azul-rey/30 to-azul-profundo/30 */
.bg-gradient-to-br.from-azul-rey\/30.to-azul-profundo\/30 {
  background-image: linear-gradient(to bottom right, rgba(0,173,205,0.3), rgba(0,136,199,0.3));
}

/* from-verde-selva/30 to-red-700/30 */
.bg-gradient-to-br.from-verde-selva\/30.to-red-700\/30 {
  background-image: linear-gradient(to bottom right, rgba(229,0,81,0.3), rgba(185,28,28,0.3));
}

/* from-dorado/30 to-amber-600/30 */
.bg-gradient-to-br.from-dorado\/30.to-amber-600\/30 {
  background-image: linear-gradient(to bottom right, rgba(253,195,0,0.3), rgba(217,119,6,0.3));
}

/* from-dorado-claro to-amber-300 */
.bg-gradient-to-br.from-dorado-claro.to-amber-300 {
  background-image: linear-gradient(to bottom right, #FDC300, #fcd34d);
}

/* from-azul-profundo/60 via-azul-rey/90 to-azul-profundo/60 */
.bg-gradient-to-r.from-azul-profundo\/60.via-azul-rey\/90.to-azul-profundo\/60 {
  background-image: linear-gradient(to right, rgba(0,136,199,0.6), rgba(0,173,205,0.9), rgba(0,136,199,0.6));
}

/* ─── SOPORTE PARA dark: ─── */
html.dark .bg-azul-rey { background-color: #00ADCD; }
html.dark .text-azul-rey { color: #7dd3fc; }
html.dark .bg-azul-profundo { background-color: #0088C7; }
html.dark .text-azul-profundo { color: #94a3b8; }
html.dark .bg-verde-selva { background-color: #E50051; }
html.dark .text-verde-selva { color: #fca5a5; }
html.dark .bg-dorado { background-color: #FDC300; }
html.dark .text-dorado { color: #fde68a; }
html.dark .bg-dorado-claro { background-color: #FDC300; }
html.dark .text-dorado-claro { color: #fef3c7; }

/* ─── Modo oscuro ajustes adicionales ─── */
html.dark .card-3d,
html.dark .instituto-card,
html.dark .news-card,
html.dark .stat-card,
html.dark .testimonial-card {
  background-color: #1e293b;
  border-color: #334155;
}

html.dark .badge-premium {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(125, 211, 252, 0.1);
}

/* ─── Nav Link Premium ─── */
.header-premium .nav-link-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  border-radius: 0.625rem;
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
  text-shadow: none;
  letter-spacing: 0.01em;
}

html.dark .header-premium .nav-link-premium {
  color: #f8fafc;
  text-shadow: none;
}

.header-premium .nav-link-premium:hover,
.header-premium .nav-link-premium.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

html.dark .header-premium .nav-link-premium:hover,
html.dark .header-premium .nav-link-premium.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

.header-premium .nav-link-premium .chevron {
  transition: transform 0.3s var(--transition-smooth);
}

.header-premium .nav-link-premium:hover .chevron,
.header-premium .nav-dropdown-premium.group:hover .nav-link-premium .chevron {
  transform: rotate(180deg);
}

/* ─── Dropdown Premium ─── */
.header-premium .nav-dropdown-premium .dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.3s var(--transition-smooth);
  z-index: 60;
}

.header-premium .nav-dropdown-premium.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-premium .nav-dropdown-premium .dropdown-inner {
  width: 18rem;
  border-radius: 1rem;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 173, 205, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem;
  overflow: hidden;
}

html.dark .header-premium .nav-dropdown-premium .dropdown-inner {
  background: #1e293b;
  border-color: rgba(71, 85, 105, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.header-premium .nav-dropdown-premium .dropdown-header {
  padding: 0.5rem 0.75rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00ADCD;
}

html.dark .header-premium .nav-dropdown-premium .dropdown-header {
  color: #7dd3fc;
}

.header-premium .nav-dropdown-premium .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s var(--transition-smooth);
  cursor: pointer;
}

.header-premium .nav-dropdown-premium .dropdown-item:hover {
  background: rgba(0, 173, 205, 0.06);
}

html.dark .header-premium .nav-dropdown-premium .dropdown-item:hover {
  background: rgba(125, 211, 252, 0.08);
}

.header-premium .nav-dropdown-premium .dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition-smooth);
}

.header-premium .nav-dropdown-premium .dropdown-item:hover .dropdown-icon {
  transform: scale(1.1);
}

.header-premium .nav-dropdown-premium .dropdown-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-premium .nav-dropdown-premium .dropdown-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

html.dark .header-premium .nav-dropdown-premium .dropdown-title {
  color: #f8fafc;
}

.header-premium .nav-dropdown-premium .dropdown-desc {
  font-size: 0.6875rem;
  color: #4b5563;
  line-height: 1.2;
}

html.dark .header-premium .nav-dropdown-premium .dropdown-desc {
  color: #cbd5e1;
}

/* ─── Mobile Nav Premium ─── */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  transition: all 0.25s var(--transition-smooth);
}

html.dark .mobile-nav-link {
  color: #f1f5f9;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(0, 173, 205, 0.12);
  color: #00ADCD;
}

html.dark .mobile-nav-link:hover,
html.dark .mobile-nav-link.active {
  background: rgba(125, 211, 252, 0.15);
  color: #7dd3fc;
}

.mobile-accordion {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9fafb;
}

html.dark .mobile-accordion {
  background: #1e293b;
}

.mobile-accordion-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  text-align: left;
  transition: all 0.25s var(--transition-smooth);
}

html.dark .mobile-accordion-btn {
  color: #f1f5f9;
}

.mobile-accordion-btn:hover {
  background: rgba(0, 173, 205, 0.08);
}

.mobile-accordion-btn .chevron {
  transition: transform 0.3s var(--transition-smooth);
}

.mobile-accordion-btn.active .chevron {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition-smooth);
}

.mobile-accordion-content.open {
  max-height: 300px;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem 0.625rem 2.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s var(--transition-smooth);
}

/* ══════════════════════════════════════════════════════════════
   ENMARCADO ELEGANTE DE MÓDULOS — Bordes decorativos
   ══════════════════════════════════════════════════════════════ */

/* ─── Marco Elegante para cada sección ─── */
.section-frame {
  position: relative;
  border-radius: 1.5rem;
  padding: 0.25rem;
  background: linear-gradient(
    135deg,
    rgba(0,173,205,0.15) 0%,
    rgba(0,136,199,0.08) 25%,
    rgba(253,195,0,0.06) 50%,
    rgba(0,136,199,0.08) 75%,
    rgba(0,173,205,0.15) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 0 0 1px rgba(0,173,205,0.08), 0 8px 32px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s var(--transition-smooth);
}

html.dark .section-frame {
  background: linear-gradient(
    135deg,
    rgba(125,211,252,0.12) 0%,
    rgba(125,211,252,0.06) 25%,
    rgba(253,195,0,0.04) 50%,
    rgba(125,211,252,0.06) 75%,
    rgba(125,211,252,0.12) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 0 0 1px rgba(125,211,252,0.08), 0 8px 32px rgba(0,0,0,0.15);
}

.section-frame:hover {
  box-shadow: 0 0 0 1px rgba(0,173,205,0.15), 0 12px 48px rgba(0,173,205,0.06);
}

html.dark .section-frame:hover {
  box-shadow: 0 0 0 1px rgba(125,211,252,0.15), 0 12px 48px rgba(0,0,0,0.20);
}

/* Contenido interno del marco — fondo transparente para ver el fondo de la sección */
.section-frame-inner {
  position: relative;
  border-radius: calc(1.5rem - 2px);
  background: transparent;
  padding: 2rem;
  overflow: hidden;
}

/* ─── Esquinas decorativas (SVG corners) ─── */
.section-frame-corner {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-color: #00ADCD;
  opacity: 0.4;
  transition: opacity 0.3s var(--transition-smooth);
}

html.dark .section-frame-corner {
  border-color: #7dd3fc;
}

.section-frame:hover .section-frame-corner {
  opacity: 0.8;
}

.section-frame-corner--tl {
  top: 0.5rem;
  left: 0.5rem;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 0.25rem 0 0 0;
}

.section-frame-corner--tr {
  top: 0.5rem;
  right: 0.5rem;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0.25rem 0 0;
}

.section-frame-corner--bl {
  bottom: 0.5rem;
  left: 0.5rem;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 0.25rem;
}

.section-frame-corner--br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0 0.25rem 0;
}

/* ─── Línea decorativa superior con brillo ─── */
.section-frame-glow {
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,173,205,0.3) 20%,
    rgba(253,195,0,0.5) 50%,
    rgba(0,173,205,0.3) 80%,
    transparent 100%
  );
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
}

html.dark .section-frame-glow {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125,211,252,0.3) 20%,
    rgba(253,195,0,0.4) 50%,
    rgba(125,211,252,0.3) 80%,
    transparent 100%
  );
}

.section-frame:hover .section-frame-glow {
  opacity: 1;
}

/* ─── Variante: Marco sutil (sin gradiente de borde, solo sombra) ─── */
.section-frame-subtle {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(0,173,205,0.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02), 0 4px 24px rgba(0,0,0,0.03);
  transition: all 0.4s var(--transition-smooth);
  overflow: hidden;
}

html.dark .section-frame-subtle {
  border-color: rgba(125,211,252,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 4px 24px rgba(0,0,0,0.10);
}

.section-frame-subtle:hover {
  border-color: rgba(0,173,205,0.20);
  box-shadow: 0 0 0 1px rgba(0,173,205,0.05), 0 8px 32px rgba(0,173,205,0.04);
}

html.dark .section-frame-subtle:hover {
  border-color: rgba(125,211,252,0.20);
  box-shadow: 0 0 0 1px rgba(125,211,252,0.05), 0 8px 32px rgba(0,0,0,0.15);
}

/* ─── Badge de sección enmarcada ─── */
.section-frame-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 1rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, #00ADCD, #0088C7);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,173,205,0.25);
  z-index: 5;
}

html.dark .section-frame-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 2px 8px rgba(2,132,199,0.30);
}

/* ─── Variante Hero: Marco especial para el Hero del Alcalde ─── */
.section-frame-hero {
  position: relative;
  border-radius: 2rem;
  padding: 0.375rem;
  background: conic-gradient(
    from 0deg,
    rgba(0,173,205,0.20),
    rgba(0,136,199,0.10),
    rgba(253,195,0,0.15),
    rgba(0,136,199,0.10),
    rgba(0,173,205,0.20)
  );
  animation: rotateHue 10s linear infinite;
  box-shadow: 0 0 0 1px rgba(0,173,205,0.06), 0 16px 48px rgba(0,0,0,0.04);
}

html.dark .section-frame-hero {
  background: conic-gradient(
    from 0deg,
    rgba(125,211,252,0.15),
    rgba(125,211,252,0.06),
    rgba(253,195,0,0.10),
    rgba(125,211,252,0.06),
    rgba(125,211,252,0.15)
  );
  box-shadow: 0 0 0 1px rgba(125,211,252,0.06), 0 16px 48px rgba(0,0,0,0.15);
}

@keyframes rotateHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.section-frame-hero-inner {
  position: relative;
  border-radius: calc(2rem - 3px);
  background: transparent;
  overflow: hidden;
}

/* ─── Variante: Marco para sección oscura (Contacto) ─── */
.section-frame-dark {
  position: relative;
  border-radius: 1.5rem;
  padding: 0.25rem;
  background: linear-gradient(
    135deg,
    rgba(253,195,0,0.20) 0%,
    rgba(255,179,0,0.10) 50%,
    rgba(253,195,0,0.20) 100%
  );
  box-shadow: 0 0 0 1px rgba(253,195,0,0.10), 0 8px 32px rgba(0,0,0,0.10);
}

.section-frame-dark-inner {
  position: relative;
  border-radius: calc(1.5rem - 2px);
  background: transparent;
  overflow: hidden;
}

/* ─── Animación de respiración para marcos ─── */
@keyframes framePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.section-frame-pulse {
  animation: framePulse 4s ease-in-out infinite;
}

html.dark .mobile-sub-link {
  color: #cbd5e1;
}

.mobile-sub-link:hover {
  color: #00ADCD;
  background: rgba(0, 173, 205, 0.08);
}

html.dark .mobile-sub-link:hover {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

/* ═══ MARCA DE AGUA FANTASMA — Watermark tipo ghost ═══ */
@keyframes ghostFadeIn {
  0% { opacity: 0; }
  100% { opacity: 0.06; }
}

@keyframes ghostFadeInDark {
  0% { opacity: 0; }
  100% { opacity: 0.04; }
}
