/* Home premium — portado de pruebas.html (cursor custom removido) */

    /* ==========================================================================
       DESIGN SYSTEM ULTRA-PREMIUM
       ========================================================================== */
    :root {
      --navy-brand: #00549A;
      --navy-deep: #001d3d;
      --navy-dark: #0B2545;
      --navy-mid: #13365f;
      --navy-light: #EBF5FF;
      --navy-accent: #3b82f6;
      --navy-glow: #60a5fa;
      --accent-cyan: #06b6d4;
      --accent-teal: #14b8a6;
      --accent-emerald: #10b981;
      --accent-violet: #8b5cf6;
      --accent-amber: #f59e0b;

      --bg-page: #f8fafc;
      --card-bg: #ffffff;
      --card-border: rgba(0, 84, 154, 0.12);
      --glass-bg: rgba(255,255,255,0.08);
      --glass-border: rgba(255,255,255,0.12);

      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #94a3b8;
      --text-on-dark: #f1f5f9;

      --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
      --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
      --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

      --radius-sm: 12px;
      --radius-md: 20px;
      --radius-lg: 28px;
      --radius-xl: 36px;

      --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-display: 'Montserrat', sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-sans);
      background: var(--bg-page);
      color: var(--text-primary);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      cursor: pointer;
    }

    /* ==========================================================================
       LOADING SCREEN
       ========================================================================== */
    .loader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    .loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .loader-logo {
      width: 150px;
      height: auto;
      animation: loaderPulse 1.5s ease-in-out infinite alternate;
    }

    .loader-bar {
      width: 160px;
      height: 4px;
      background: rgba(0, 84, 154, 0.08);
      border-radius: 10px;
      margin-top: 2rem;
      overflow: hidden;
    }

    .loader-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--navy-brand), var(--navy-glow));
      border-radius: 10px;
      animation: loaderFill 1.8s var(--ease-out-expo) forwards;
    }

    @keyframes loaderPulse {
      0% { transform: scale(0.95); opacity: 0.8; }
      100% { transform: scale(1.05); opacity: 1; }
    }

    @keyframes loaderFill {
      to { width: 100%; }
    }

    /* ==========================================================================
       CURSOR PERSONALIZADO
       ========================================================================== */
    .cursor-dot {
      position: fixed;
      width: 8px;
      height: 8px;
      background: var(--navy-brand);
      border-radius: 50%;
      pointer-events: none;
      z-index: 10000;
      transform: translate(-50%, -50%);
      transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring),
                  background 0.3s ease, opacity 0.3s ease;
    }

    .cursor-ring {
      position: fixed;
      width: 36px;
      height: 36px;
      border: 1.5px solid rgba(0, 84, 154, 0.3);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: width 0.4s var(--ease-spring), height 0.4s var(--ease-spring),
                  border-color 0.3s ease, opacity 0.3s ease;
    }

    .cursor-dot.hovering {
      width: 50px;
      height: 50px;
      opacity: 0.15;
    }

    .cursor-ring.hovering {
      width: 60px;
      height: 60px;
      border-color: rgba(255,255,255,0.8);
    }

    /* ==========================================================================
       SCROLL PROGRESS BAR
       ========================================================================== */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--navy-brand), var(--accent-cyan), var(--accent-violet));
      z-index: 10001;
      width: 0%;
      transition: none;
    }

    /* ==========================================================================
       NOISE TEXTURE OVERLAY
       ========================================================================== */
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9998;
      opacity: 0.025;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 200px 200px;
    }

    /* ==========================================================================
       HERO — COMPACT WITH VIDEO BACKGROUND
       ========================================================================== */
    .hero {
      position: relative;
      min-height: 52vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: #0f172a;
    }

    /* Video de fondo */
    .hero-video {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
    }

    .hero-video video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: blur(4px) brightness(1.2) saturate(0.9);
      transform: scale(1.06); /* evita bordes blancos del blur */
    }

    /* Capa de overlay con gradiente sobre el video */
    .hero-video-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        rgba(104, 104, 104, 0.723) 0%,
        rgba(57, 57, 57, 0.399) 50%,
        rgba(27, 27, 27, 0.244) 100%
      );
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 1;
    }

    /* Orbes de gradiente flotantes */
    .hero-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.50;
      pointer-events: none;
      animation: orbFloat 20s ease-in-out infinite;
      z-index: 2;
    }

    .hero-orb-1 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, rgba(0, 84, 154, 0.5) 0%, transparent 70%);
      top: -10%; left: -10%;
      animation-delay: 0s;
    }

    .hero-orb-2 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
      top: 30%; right: -15%;
      animation-delay: -7s;
    }

    .hero-orb-3 {
      width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
      bottom: -5%; left: 30%;
      animation-delay: -13s;
    }

    @keyframes orbFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      25% { transform: translate(40px, -30px) scale(1.05); }
      50% { transform: translate(-20px, 20px) scale(0.95); }
      75% { transform: translate(30px, 40px) scale(1.03); }
    }

    /* Canvas de partículas con conexiones */
    #constellation-canvas {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 3;
    }

    /* Mesh wave inferior */
    .hero-wave {
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      z-index: 4;
    }

    .hero-wave svg { display: block; width: 100%; }

    /* ---------- NAVBAR ---------- */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 3rem;
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.6s var(--ease-smooth);
      background: rgba(255,255,255,0.72);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border-bottom: 1px solid rgba(15,23,42,0.05);
    }

    .navbar.scrolled {
      background: rgba(255,255,255,0.82);
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      border-bottom: 1px solid rgba(0,0,0,0.04);
      box-shadow: 0 1px 30px rgba(0,0,0,0.04);
    }

    .navbar.scrolled .nav-link { color: var(--navy-dark); fill: var(--navy-dark); }
    .navbar.scrolled .nav-link:hover { color: var(--navy-brand); background: var(--navy-light); }
    .navbar.scrolled .nav-cta { background: var(--navy-brand); color: #fff; border-color: var(--navy-brand); }
    .navbar.scrolled .dd-arrow { fill: var(--navy-dark); }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      cursor: pointer;
    }

    .nav-logo {
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.5s var(--ease-spring);
    }

    .nav-logo img {
      height: 50px;
      object-fit: contain;
      transition: transform 0.5s var(--ease-spring);
    }

    .nav-logo:hover img {
      transform: scale(1.1);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
    }

    .nav-link {
      color: var(--navy-dark);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      padding: 8px 18px;
      border-radius: 10px;
      transition: all 0.35s var(--ease-smooth);
      cursor: pointer;
      position: relative;
    }

    .nav-link::after {
      content: "";
      position: absolute;
      bottom: 2px;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--navy-brand);
      border-radius: 2px;
      transition: all 0.4s var(--ease-spring);
      transform: translateX(-50%);
    }

    .nav-link:hover { color: var(--navy-brand); }
    .nav-link:hover::after { width: 20px; }

    .nav-cta {
      background: var(--navy-brand);
      border: 1px solid var(--navy-brand);
      color: #fff;
      font-weight: 600;
      font-size: 0.85rem;
      padding: 10px 24px;
      border-radius: 12px;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.4s var(--ease-spring);
    }

    .nav-cta:hover { background: var(--navy-accent); border-color: var(--navy-accent); transform: translateY(-2px); }

    /* ==========================================================================
       DROPDOWN MENU — INTEGRADO AL NAVBAR
       ========================================================================== */
    .nav-dropdown {
      position: relative;
    }

    /* Puente invisible de 6px que cubre el gap entre el botón y el panel del submenu
       (margin-top: 6px del nav-submenu). Sin esto, CSS :hover se desactiva en el gap. */
    .nav-dropdown::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      right: 0;
      height: 6px;
    }

    .nav-dropdown .nav-link {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .nav-dropdown .nav-link .dd-arrow {
      width: 12px;
      height: 12px;
      fill: currentColor;
      transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
      flex-shrink: 0;
    }

    /* Submenu container (always light theme by default) */
    .nav-submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(-8px);
      min-width: 200px;
      background: #ffffff;
      backdrop-filter: blur(24px) saturate(200%);
      -webkit-backdrop-filter: blur(24px) saturate(200%);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 12px;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
      z-index: 10;
      list-style: none;
      padding: 6px 0;
      margin-top: 6px;
      box-shadow: 0 16px 48px -8px rgba(0, 84, 154, 0.14),
                  0 4px 12px rgba(0,0,0,0.04);
    }

    /* Show on hover */
    .nav-dropdown:hover .nav-submenu {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown:hover > .nav-link {
      color: #fff;
      background: var(--navy-brand);
      border-radius: 10px 10px 0 0;
    }

    .nav-dropdown:hover > .nav-link::after {
      width: 0;
    }

    .nav-dropdown:hover .dd-arrow {
      transform: rotate(-180deg);
      fill: #fff;
    }

    /* Submenu items */
    .nav-submenu-item {
      width: 100%;
    }

    .nav-submenu-link {
      display: block;
      padding: 8px 20px; /* shrunken vertical padding */
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: color 0.48s cubic-bezier(0.23, 1, 0.32, 1);
      white-space: nowrap;
    }

    /* Gradient sweep from left on hover */
    .nav-submenu-link::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, var(--navy-brand), var(--navy-accent));
      z-index: -1;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-submenu-link:hover {
      color: #fff;
    }

    .nav-submenu-link:hover::before {
      transform: scaleX(1);
      transform-origin: right;
    }

    /* Link con fill completo al hover del dropdown padre */
    .nav-dropdown:hover > .nav-link .link-fill {
      position: absolute;
      inset: 0;
      background: var(--navy-brand);
      z-index: -1;
      transform: scaleX(1);
      transform-origin: right;
      border-radius: inherit;
    }

    /* ---------- SCROLLED STATE (TEMA CLARO) ---------- */
    .navbar.scrolled .nav-dropdown:hover > .nav-link {
      color: #fff;
      background: var(--navy-brand);
    }

    .navbar.scrolled .nav-dropdown:hover > .nav-link .dd-arrow {
      fill: #fff;
    }

    .navbar.scrolled .nav-dropdown:hover > .nav-link::after {
      width: 0;
    }

    /* ---------- HERO CONTENT ---------- */
    .hero-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 2rem 55px;
      position: relative;
      z-index: 5;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--navy-light);
      border: 1px solid rgba(0, 84, 154, 0.12);
      backdrop-filter: blur(16px);
      padding: 10px 24px;
      border-radius: 100px;
      color: var(--navy-brand);
      font-size: 0.82rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(20px);
      letter-spacing: 0.3px;
    }

    .hero-badge.animate { animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards; }

    .badge-dot {
      width: 7px; height: 7px;
      background: var(--accent-emerald);
      border-radius: 50%;
      box-shadow: 0 0 12px var(--accent-emerald);
      animation: pulse 2s ease infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-emerald); }
      50% { opacity: 0.5; box-shadow: 0 0 20px var(--accent-emerald), 0 0 40px rgba(16, 185, 129, 0.2); }
    }

    /* Título con reveal por palabra */
    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(1.9rem, 4.5vw, 3.1rem);
      font-weight: 800;
      color:#ffffff;
      line-height: 1.1;
      letter-spacing: -0.5px;
      max-width: 780px;
      margin-bottom: 0.75rem;
    }

    .hero-title .word {
      display: inline-block;
      opacity: 0;
      transform: translateY(50px) rotateX(-15deg);
      transition: all 0.7s var(--ease-out-expo);
    }

    .hero-title .word.visible {
      opacity: 1;
      transform: translateY(0) rotateX(0);
    }

    .hero-title .highlight {
      background: linear-gradient(135deg, var(--navy-glow), var(--accent-cyan), var(--accent-teal));
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: gradientShift 4s ease infinite;
    }

    @keyframes gradientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .hero-subtitle {
      font-size: 0.98rem;
      color:rgb(219, 219, 219);
      max-width: 540px;
      line-height: 1.65;
      font-weight: 400;
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(20px);
    }

    .hero-subtitle.animate {
      animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.6s forwards;
    }

    .hero-actions {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;
      opacity: 0;
      transform: translateY(20px);
    }

    .hero-actions.animate {
      animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.9s forwards;
    }

    /* Botón magnético primario */
    .btn-magnetic {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      font-size: 0.95rem;
      padding: 16px 36px;
      border-radius: 16px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
      will-change: transform;
    }

    .btn-primary {
      background: #fff;
      color: var(--navy-brand);
      box-shadow: 0 4px 25px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,255,255,0);
    }

    .btn-primary:hover {
      box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.1);
    }

    .btn-primary svg {
      width: 18px; height: 18px;
      transition: transform 0.4s var(--ease-spring);
    }

    .btn-primary:hover svg { transform: translateX(4px); }

    .btn-secondary {
      background: transparent;
      color: rgba(255,255,255,0.9);
      border: 1px solid rgba(255,255,255,0.2);
      backdrop-filter: blur(12px);
    }

    .btn-secondary:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.35);
    }

    /* Stats en hero */
    .hero-stats {
      display: flex;
      gap: 3rem;
      margin-top: 2.5rem;
      opacity: 0;
      transform: translateY(20px);
    }

    .hero-stats.animate {
      animation: fadeSlideUp 0.9s var(--ease-out-expo) 1.2s forwards;
    }

    .stat-item { text-align: center; color: var(--navy-dark); }

    .stat-number {
      font-family: var(--font-display);
      font-size: 2.4rem;
      font-weight: 900;
      letter-spacing: -1.5px;
      line-height: 1;
      margin-bottom: 6px;
      color: var(--navy-brand);
    }

    .stat-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .stat-divider {
      width: 1px;
      height: 40px;
      background: rgba(15, 23, 42, 0.08);
      align-self: center;
    }

    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ==========================================================================
       MARQUEE — CINTA ANIMADA
       ========================================================================== */
    .marquee-strip {
      overflow: hidden;
      white-space: nowrap;
      background: #ffffff;
      border-top: 1px solid rgba(0,0,0,0.05);
      border-bottom: 1px solid rgba(0,0,0,0.05);
      padding: 14px 0;
      position: relative;
      z-index: 4;
    }

    .marquee-track {
      display: inline-flex;
      animation: marqueeScroll 40s linear infinite;
    }

    .marquee-track:hover { animation-play-state: paused; }

    .marquee-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--text-secondary);
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.5px;
      padding: 0 2.5rem;
      cursor: pointer;
    }

    .marquee-item svg {
      width: 14px; height: 14px;
      stroke: var(--navy-brand);
      fill: none;
      stroke-width: 2;
      flex-shrink: 0;
    }

    @keyframes marqueeScroll {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    /* ==========================================================================
       SECCIONES COMUNES
       ========================================================================== */
    .section {
      padding: 2.5rem 2rem;
      max-width: 1240px;
      margin: 0 auto;
    }

    .section-header {
      text-align: left;
      margin-bottom: 1.5rem;
    }

    .section-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--navy-brand);
      margin-bottom: 1rem;
      padding: 5px 14px;
      background: var(--navy-light);
      border-radius: 100px;
    }

    .section-tag svg {
      width: 11px; height: 11px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.35rem, 2.8vw, 1.75rem);
      font-weight: 800;
      color: var(--navy-dark);
      letter-spacing: -0.25px;
      line-height: 1.12;
      margin-bottom: 0.6rem;
    }

    .section-desc {
      color: var(--text-secondary);
      font-size: 0.88rem;
      max-width: 560px;
      margin: 0;
      line-height: 1.7;
    }

    /* ==========================================================================
       LO ÚLTIMO / NOVEDADES SECTION
       ========================================================================== */
    .latest-container {
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 2rem;
      margin-top: 2rem;
      text-align: left;
    }

    .featured-update-card {
      position: relative;
      border: 1px solid rgba(0, 84, 154, 0.08);
      border-radius: var(--radius-lg);
      display: grid;
      grid-template-columns: 2fr 3fr; /* 2/5 and 3/5 width split! */
      height: 420px; /* Fixed height so the card does not grow on hover! */
      overflow: hidden;
      box-shadow: 0 20px 40px -15px rgba(0, 84, 154, 0.05);
      transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
      cursor: pointer;
      background: var(--card-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .featured-update-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 30px 60px -20px rgba(0, 84, 154, 0.1);
      border-color: rgba(0, 84, 154, 0.12);
    }

    /* Columna Izquierda: Imagen de fondo */
    .featured-img-wrap {
      position: relative;
      overflow: hidden;
      background: #f8fafc;
      z-index: 1;
    }

    .featured-img-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center top;
      opacity: 1;
      transition: transform 0.8s var(--ease-smooth);
    }

    .featured-update-card:hover .featured-img-bg {
      transform: scale(1.05);
    }

    /* Columna Derecha: Contenido */
    .featured-content-wrap {
      padding: 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      z-index: 2;
      position: relative;
    }

    .featured-content {
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
      justify-content: center;
    }

    .featured-hover-content {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.5s var(--ease-smooth), opacity 0.4s ease, margin-top 0.4s ease;
    }

    .featured-hover-inner {
      overflow: hidden;
    }

    .featured-update-card:hover .featured-hover-content {
      max-height: 250px;
      opacity: 1;
      margin-top: 1.25rem;
    }

    .featured-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #fee2e2;
      color: #ef4444;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 6px 14px;
      border-radius: 9999px;
      width: fit-content;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 1.25rem;
    }

    .featured-badge span {
      width: 6px; height: 6px;
      background: #ef4444;
      border-radius: 50%;
      box-shadow: 0 0 8px #ef4444;
      animation: pulse 1.5s ease infinite;
    }

    .featured-title {
      font-family: var(--font-display);
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--navy-dark);
      line-height: 1.25;
      margin-bottom: 0;
    }

    .featured-desc {
      color: var(--text-secondary);
      font-size: 1rem;
      line-height: 1.7;
      margin-bottom: 1.75rem;
    }

    .featured-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .featured-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--navy-brand);
      color: #fff;
      font-weight: 700;
      font-size: 0.88rem;
      padding: 12px 24px;
      border-radius: 12px;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.3s var(--ease-spring);
    }

    .featured-btn:hover {
      background: var(--navy-accent);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 84, 154, 0.2);
    }

    .featured-btn svg {
      width: 16px; height: 16px;
      transition: transform 0.3s ease;
      stroke: currentColor;
      fill: none;
    }

    .featured-btn:hover svg {
      transform: translateX(3px);
    }

    .featured-date {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    /* Lista Novedades Rápidas */
    .quick-updates-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .quick-update-item {
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: var(--radius-md);
      padding: 1.75rem;
      transition: all 0.4s var(--ease-spring);
      box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.02);
      text-align: left;
    }

    .quick-update-item:hover {
      transform: translateY(-3px);
      border-color: rgba(0, 84, 154, 0.12);
      box-shadow: 0 15px 35px -12px rgba(0, 84, 154, 0.06);
    }

    .quick-update-tag {
      display: inline-block;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--navy-brand);
      background: var(--navy-light);
      padding: 4px 10px;
      border-radius: 9999px;
      margin-bottom: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .quick-update-item h4 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--navy-dark);
      margin-bottom: 0.5rem;
    }

    .quick-update-item p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.55;
      margin-bottom: 1rem;
    }

    .quick-update-item a {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--navy-brand);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .quick-update-item a:hover {
      color: var(--navy-accent);
    }

    @media (max-width: 768px) {
      .latest-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
      }
      .featured-update-card {
        grid-template-columns: 1fr;
        min-height: auto;
      }
      .featured-img-wrap {
        height: 250px;
        width: 100%;
      }
      .featured-content-wrap {
        padding: 2rem 1.5rem;
      }
      .quick-update-item {
        padding: 1.5rem;
      }
    }

    /* ==========================================================================
       CARDS — MINIMALISTA
       ========================================================================== */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      max-width: 1080px;
      margin-left: auto;
      margin-right: auto;
    }

    .card-wrapper {
      position: relative;
      border-radius: 16px;
      padding: 0;
      background: transparent;
      transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease;
      opacity: 0;
      transform: translateY(30px);
    }

    .card-wrapper.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .card-wrapper::before,
    .card-wrapper::after { display: none; }

    .card-wrapper:hover {
      transform: translateY(-4px);
    }

    .card {
      position: relative;
      background: #ffffff;
      border: 1px solid rgba(0, 84, 154, 0.10);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
      border-radius: 16px;
      padding: 1.25rem 1.2rem 1.1rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
      min-height: 0;
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .card-wrapper:hover .card {
      border-color: rgba(0, 84, 154, 0.22);
      box-shadow: 0 8px 24px -6px rgba(0, 84, 154, 0.10);
    }

    .card-specular { display: none; }

    .card::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--navy-brand);
      border-radius: 16px 16px 0 0;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s var(--ease-out-expo);
    }

    .card-wrapper:hover .card::before {
      transform: scaleX(1);
    }

    .card::after { display: none; }

    .card-bg-img {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      z-index: 0;
      opacity: 0.05;
      transition: opacity 0.4s ease;
    }

    .card-bg-overlay {
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.95);
      z-index: 0;
      transition: background 0.3s ease;
    }

    .card-wrapper:hover .card-bg-img { opacity: 0.10; }
    .card-wrapper:hover .card-bg-overlay { background: rgba(255, 255, 255, 0.92); }

    body.dark-mode .card-bg-img { opacity: 0.08; }
    body.dark-mode .card-bg-overlay { background: rgba(15, 23, 42, 0.95); }

    .card-bg-pattern {
      position: absolute;
      top: -5px; right: -5px;
      width: 120px; height: 120px;
      pointer-events: none;
      z-index: 0;
      opacity: 0.06;
      color: var(--navy-brand);
      transition: opacity 0.4s ease;
    }

    .card-pattern-svg { width: 100%; height: 100%; display: block; }
    .card-wrapper:hover .card-bg-pattern { opacity: 0.12; }
    body.dark-mode .card-bg-pattern { opacity: 0.08; color: var(--navy-glow); }
    body.dark-mode .card-wrapper:hover .card-bg-pattern { opacity: 0.15; }

    .card-top {
      position: relative;
      z-index: 1;
    }

    .card-icon-wrap {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--navy-light);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.75rem;
      position: relative;
      transition: background 0.3s ease;
    }

    .card-icon-wrap::before,
    .card-icon-wrap::after { display: none; }

    .card-wrapper:hover .card-icon-wrap {
      background: rgba(0, 84, 154, 0.12);
    }

    .card-icon-wrap svg {
      width: 18px; height: 18px;
      stroke: var(--navy-brand);
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.3s ease;
    }

    .card-wrapper:hover .card-icon-wrap svg {
      stroke: var(--navy-brand);
    }

    .card-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 750;
      color: var(--navy-dark);
      margin-bottom: 0.35rem;
      letter-spacing: -0.2px;
      line-height: 1.3;
      transition: color 0.3s ease;
    }

    .card-wrapper:hover .card-title {
      color: var(--navy-brand);
    }

    .card-desc {
      color: var(--text-secondary);
      font-size: 0.8rem;
      line-height: 1.55;
      position: relative;
      z-index: 1;
    }

    .card-wrapper:hover .card-desc {
      color: var(--text-primary);
    }

    .card-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--navy-brand);
      font-weight: 650;
      font-size: 0.78rem;
      text-decoration: none;
      margin-top: 0.85rem;
      position: relative;
      z-index: 1;
      cursor: pointer;
      transition: color 0.3s ease, gap 0.3s ease;
    }

    .card-action .arrow {
      display: inline-flex;
      width: 22px; height: 22px;
      border-radius: 50%;
      align-items: center;
      justify-content: center;
      background: transparent;
      transition: all 0.3s var(--ease-smooth);
      flex-shrink: 0;
    }

    .card-action svg {
      width: 12px; height: 12px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.5;
      transition: transform 0.3s ease;
    }

    .card-wrapper:hover .card-action {
      color: var(--navy-accent);
      gap: 8px;
    }

    .card-wrapper:hover .card-action .arrow {
      background: var(--navy-brand);
      color: #fff;
    }

    .card-wrapper:hover .card-action svg {
      transform: translateX(1px);
    }


    /* ==========================================================================
       MICRO-ANIMACIONES SVG
       ========================================================================== */
    .inbox-lid {
      transition: transform 0.7s var(--ease-spring);
      transform-origin: center bottom;
    }
    .card-wrapper:hover .inbox-lid { transform: scaleY(0.85) translateY(2px); }

    .inbox-line {
      stroke-dasharray: 8;
      stroke-dashoffset: 8;
      transition: stroke-dashoffset 0.8s var(--ease-out-expo);
    }
    .card-wrapper:hover .inbox-line { stroke-dashoffset: 0; }

    .doc-line-1, .doc-line-2, .doc-line-3 {
      stroke-dasharray: 20;
      stroke-dashoffset: 0;
      transition: transform 0.7s var(--ease-spring), stroke-dashoffset 0.6s ease;
    }
    .card-wrapper:hover .doc-line-1 { transform: translateX(2px); }
    .card-wrapper:hover .doc-line-2 { transform: translateX(5px); }
    .card-wrapper:hover .doc-line-3 { transform: translateX(3px); stroke-dashoffset: 0; }

    .doc-check {
      stroke-dasharray: 12;
      stroke-dashoffset: 12;
      transition: stroke-dashoffset 0.6s var(--ease-out-expo) 0.2s;
    }
    .card-wrapper:hover .doc-check { stroke-dashoffset: 0; }

    .scale-beam {
      transform-origin: 12px 7px;
      transition: transform 0.9s var(--ease-spring);
    }
    .scale-pan-left, .scale-pan-right {
      transition: transform 0.9s var(--ease-spring);
    }
    .card-wrapper:hover .scale-beam { transform: rotate(8deg); }
    .card-wrapper:hover .scale-pan-left { transform: translateY(2px) translateX(0.6px); }
    .card-wrapper:hover .scale-pan-right { transform: translateY(-2px) translateX(-0.6px); }

    .scale-glow {
      transition: opacity 0.6s ease;
      opacity: 0;
    }
    .card-wrapper:hover .scale-glow { opacity: 0.4; }

    /* ==========================================================================
       COMPETENCIA CARDS — informativas, no son accesos
       ========================================================================== */
    .competencia-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.35rem;
      max-width: 1140px;
      margin-left: auto;
      margin-right: auto;
    }

    .competencia-wrapper-featured {
      grid-column: 1 / -1;
    }

    .competencia-grid .card-wrapper {
      padding: 1px;
    }

    /* Anular el borde gradiente animado en competencia */
    .competencia-grid .card-wrapper::before {
      display: none;
    }

    .competencia-grid .card-wrapper:hover {
      background: rgba(0, 84, 154, 0.10);
    }

    .competencia-grid .card {
      padding: 1.5rem 1.7rem;
      min-height: 160px;
      cursor: default;
      height: 100%;
      background: #ffffff;
      border-left: 3px solid var(--navy-brand);
    }

    .competencia-card-featured {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border-left: 4px solid var(--navy-brand);
    }

    /* Header de la tarjeta de competencia */
    .competencia-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
    }

    .competencia-title-group {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .competencia-tag {
      font-size: 0.65rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      background: rgba(0, 84, 154, 0.08);
      color: var(--navy-brand);
      border: 1px solid rgba(0, 84, 154, 0.18);
    }

    /* Hover sutil informativo */
    .competencia-grid .card-wrapper:hover .card {
      background: #ffffff;
      box-shadow: 0 12px 32px -8px rgba(0, 84, 154, 0.12);
      border-color: var(--navy-accent);
    }

    .competencia-grid .card-wrapper:hover .card::before {
      opacity: 0;
      transform: scaleX(0);
    }

    /* Icono */
    .competencia-grid .card-icon-wrap {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      margin-bottom: 0;
      flex-shrink: 0;
    }

    .competencia-grid .card-wrapper:hover .card-icon-wrap {
      transform: none;
      background: linear-gradient(135deg, var(--navy-light), #dbeafe);
      box-shadow: none;
    }

    .competencia-grid .card-wrapper:hover .card-icon-wrap::before,
    .competencia-grid .card-wrapper:hover .card-icon-wrap::after {
      opacity: 0;
      transform: scale(0.85);
    }

    .competencia-grid .card-wrapper:hover .card-icon-wrap svg {
      transform: none;
    }

    /* Títulos y texto */
    .competencia-grid .card-title {
      font-size: 1.12rem;
      font-weight: 800;
      margin-bottom: 0;
      color: var(--navy-dark);
    }

    .competencia-grid .card-wrapper:hover .card-title {
      transform: none;
      color: var(--navy-brand);
    }

    .competencia-body {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }

    .competencia-grid .card-desc {
      font-size: 0.88rem;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    .competencia-grid .card-desc strong {
      color: var(--navy-dark);
      font-weight: 700;
    }

    .card-desc-highlight {
      margin-top: 0.35rem;
      padding: 0.65rem 0.9rem;
      background: rgba(0, 84, 154, 0.04);
      border-left: 3px solid var(--navy-brand);
      border-radius: 0 8px 8px 0;
      font-size: 0.86rem;
    }

    .competencia-grid .card-wrapper:hover .card-desc {
      transform: none;
    }

    .competencia-grid .card-icon-wrap svg {
      width: 20px; height: 20px;
    }

    @media (max-width: 768px) {
      .competencia-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      .competencia-wrapper-featured {
        grid-column: 1;
      }
      .competencia-grid .card {
        padding: 1.2rem;
      }
    }

    /* ==========================================================================
       SERVICIOS — ACCESO RÁPIDO
       ========================================================================== */
    .services-bg {
      background: linear-gradient(180deg, var(--bg-page) 0%, #f1f5f9 50%, var(--bg-page) 100%);
    }

    /* Divider "Otros accesos" */
    .otros-accesos-divider {
      max-width: 1080px;
      margin: 2rem auto 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .otros-accesos-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--navy-brand), var(--accent-cyan));
      flex-shrink: 0;
    }

    .otros-accesos-label {
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.14em;
      white-space: nowrap;
    }

    .otros-accesos-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--card-border), transparent);
    }

    .quick-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
      max-width: 1080px;
      margin-left: auto;
      margin-right: auto;
    }

    .quick-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 14px;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
      border: 1px solid rgba(0, 84, 154, 0.08);
      box-shadow: 0 2px 8px -2px rgba(0, 52, 105, 0.05);
      border-radius: 16px;
      text-decoration: none;
      color: var(--text-primary);
      cursor: pointer;
      transition: all 0.45s var(--ease-spring);
      opacity: 0;
      transform: translateY(30px);
      position: relative;
      overflow: hidden;
    }

    .quick-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Accent bar izquierda sutil */
    .quick-item::before {
      content: "";
      position: absolute;
      left: 0;
      top: 20%;
      bottom: 20%;
      width: 3px;
      background: linear-gradient(180deg, var(--navy-brand), var(--accent-cyan));
      border-radius: 0 4px 4px 0;
      opacity: 0;
      transform: scaleY(0.5);
      transition: all 0.4s var(--ease-spring);
    }

    .quick-item:hover::before {
      opacity: 1;
      transform: scaleY(1);
    }

    .quick-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px -8px rgba(0, 84, 154, 0.1),
                  0 0 0 1px rgba(0, 84, 154, 0.06);
      border-color: rgba(0, 84, 154, 0.1);
      background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
    }

    .quick-icon {
      width: 40px; height: 40px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--navy-light), rgba(219, 234, 254, 0.5));
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.45s var(--ease-spring);
      position: relative;
      z-index: 1;
      flex-shrink: 0;
    }

    .quick-item:hover .quick-icon {
      background: var(--navy-brand);
      transform: scale(1.08);
      box-shadow: 0 6px 18px -3px rgba(0, 84, 154, 0.3);
    }

    .quick-icon svg {
      width: 18px; height: 18px;
      stroke: var(--navy-brand);
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: all 0.35s ease;
    }

    .quick-item:hover .quick-icon svg { stroke: #fff; }

    .quick-label {
      font-size: 0.8rem;
      font-weight: 650;
      text-align: left;
      color: var(--text-secondary);
      transition: color 0.35s ease;
      position: relative;
      z-index: 1;
      line-height: 1.3;
    }

    .quick-item:hover .quick-label { color: var(--navy-brand); }

    /* ==========================================================================
       MÉTRICAS DE GESTIÓN
       ========================================================================== */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .metric-card {
      background: var(--card-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-md);
      padding: 3rem 2.25rem 2.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px -10px rgba(0, 84, 154, 0.04);
      transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease;
      cursor: pointer;
    }

    .metric-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 84, 154, 0.15);
      box-shadow: 0 20px 40px -15px rgba(0, 84, 154, 0.1);
      background: rgba(255, 255, 255, 0.95);
    }

    .metric-icon-wrap {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      background: var(--navy-light);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 2rem;
      transition: all 0.5s var(--ease-spring);
    }

    .metric-card:hover .metric-icon-wrap {
      transform: scale(1.1) rotate(5deg);
      background: var(--navy-brand);
      box-shadow: 0 8px 20px -4px rgba(0, 84, 154, 0.3);
    }

    .metric-icon-wrap svg {
      width: 26px;
      height: 26px;
      stroke: var(--navy-brand);
      stroke-width: 2;
      fill: none;
      transition: stroke 0.4s ease;
    }

    .metric-card:hover .metric-icon-wrap svg {
      stroke: #ffffff;
    }

    .metric-number-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 0.5rem;
    }

    .metric-value {
      font-family: var(--font-display);
      font-size: 3.4rem;
      font-weight: 950;
      line-height: 1;
      letter-spacing: -2px;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      transition: background 0.4s ease;
    }

    .metric-label {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--navy-dark);
      margin-bottom: 0.5rem;
      letter-spacing: -0.4px;
    }

    .metric-desc {
      color: var(--text-secondary);
      font-size: 0.86rem;
      line-height: 1.65;
    }

    .metric-progress-bar {
      height: 6px;
      width: 100%;
      background: rgba(0, 84, 154, 0.05);
      border-radius: 10px;
      overflow: hidden;
      margin-top: 1.75rem;
    }

    .metric-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 10px;
      transition: width 1.8s var(--ease-out-expo);
    }

    /* Estilos para Gráficos Sutiles SVG */
    .metric-chart-container {
      width: 54px;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .metric-chart-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .metric-chart-svg.sparkline {
      width: 90px;
      height: 40px;
    }

    .theme-amber .metric-chart-container {
      width: 90px;
      height: 40px;
    }

    .circle-fill-emerald, .circle-fill-violet {
      transition: stroke-dasharray 1.8s var(--ease-out-expo);
    }

    .sparkline-line {
      stroke-dasharray: 130;
      stroke-dashoffset: 130;
      transition: stroke-dashoffset 1.8s var(--ease-out-expo);
    }

    .sparkline-fill {
      opacity: 0;
      transition: opacity 1s ease;
    }

    /* ==================== TEMAS DE COLOR PARA MÉTRICAS ==================== */
    
    /* Card 1: Emerald Theme */
    .metric-card.theme-emerald .metric-icon-wrap {
      background: rgba(16, 185, 129, 0.08);
    }
    .metric-card.theme-emerald .metric-icon-wrap svg {
      stroke: var(--accent-emerald);
    }
    .metric-card.theme-emerald:hover .metric-icon-wrap {
      background: var(--accent-emerald);
      box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
    }
    .metric-card.theme-emerald:hover .metric-icon-wrap svg {
      stroke: #ffffff;
    }
    .metric-card.theme-emerald .metric-value {
      background: linear-gradient(135deg, var(--navy-dark), var(--accent-emerald));
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-emerald:hover .metric-value {
      background: linear-gradient(135deg, var(--accent-emerald), #059669);
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-emerald .metric-progress-fill {
      background: linear-gradient(90deg, #34d399, var(--accent-emerald));
    }

    /* Card 2: Amber Theme */
    .metric-card.theme-amber .metric-icon-wrap {
      background: rgba(245, 158, 11, 0.08);
    }
    .metric-card.theme-amber .metric-icon-wrap svg {
      stroke: var(--accent-amber);
    }
    .metric-card.theme-amber:hover .metric-icon-wrap {
      background: var(--accent-amber);
      box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
    }
    .metric-card.theme-amber:hover .metric-icon-wrap svg {
      stroke: #ffffff;
    }
    .metric-card.theme-amber .metric-value {
      background: linear-gradient(135deg, var(--navy-dark), var(--accent-amber));
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-amber:hover .metric-value {
      background: linear-gradient(135deg, var(--accent-amber), #d97706);
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-amber .metric-progress-fill {
      background: linear-gradient(90deg, #fbbf24, var(--accent-amber));
    }

    /* Card 3: Violet Theme */
    .metric-card.theme-violet .metric-icon-wrap {
      background: rgba(139, 92, 246, 0.08);
    }
    .metric-card.theme-violet .metric-icon-wrap svg {
      stroke: var(--accent-violet);
    }
    .metric-card.theme-violet:hover .metric-icon-wrap {
      background: var(--accent-violet);
      box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.4);
    }
    .metric-card.theme-violet:hover .metric-icon-wrap svg {
      stroke: #ffffff;
    }
    .metric-card.theme-violet .metric-value {
      background: linear-gradient(135deg, var(--navy-dark), var(--accent-violet));
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-violet:hover .metric-value {
      background: linear-gradient(135deg, var(--accent-violet), #7c3aed);
      -webkit-background-clip: text;
      background-clip: text;
    }
    .metric-card.theme-violet .metric-progress-fill {
      background: linear-gradient(90deg, #a78bfa, var(--accent-violet));
    }

    /* ==========================================================================
       NOTICIAS
       ========================================================================== */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .news-card {
      background: #ffffff;
      border-radius: var(--radius-md);
      border: 1px solid rgba(0, 84, 154, 0.12);
      box-shadow: 0 10px 30px -8px rgba(0, 52, 105, 0.08);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.6s var(--ease-smooth);
      opacity: 0;
      transform: translateY(30px);
    }

    .news-card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .news-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 50px -10px rgba(0, 84, 154, 0.1);
    }

    .news-img {
      height: 190px;
      background: linear-gradient(135deg, var(--navy-light) 0%, #dbeafe 50%, #e0f2fe 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .news-img::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,0.3) 100%);
    }

    .news-img-icon {
      width: 52px; height: 52px;
      color: var(--navy-brand);
      opacity: 0.2;
      transition: all 0.6s var(--ease-spring);
    }

    .news-card:hover .news-img-icon {
      transform: scale(1.2) rotate(-8deg);
      opacity: 0.35;
    }

    .news-body { padding: 1.75rem; }

    .news-date {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 0.6rem;
    }

    .news-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 800;
      color: var(--navy-dark);
      margin-bottom: 0.6rem;
      letter-spacing: -0.3px;
      line-height: 1.35;
    }

    .news-excerpt {
      color: var(--text-secondary);
      font-size: 0.83rem;
      line-height: 1.65;
    }

    /* ==========================================================================
       CTA BANNER
       ========================================================================== */
    .cta-banner {
      margin: 0 auto 5rem;
      max-width: 1240px;
      padding: 0 2rem;
    }

    .cta-inner {
      background: linear-gradient(135deg, #ebf5ff 0%, #e0f2fe 100%);
      border: 1px solid rgba(0, 84, 154, 0.08);
      border-radius: var(--radius-xl);
      padding: 4.5rem 4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s var(--ease-smooth);
    }

    .cta-inner.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Decoración orbes en el CTA */
    .cta-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      pointer-events: none;
    }

    .cta-orb-1 {
      width: 300px; height: 300px;
      background: rgba(59, 130, 246, 0.08);
      top: -40%; right: 10%;
    }

    .cta-orb-2 {
      width: 200px; height: 200px;
      background: rgba(6, 182, 212, 0.05);
      bottom: -30%; left: 20%;
    }

    .cta-text { position: relative; z-index: 1; }

    .cta-text h3 {
      font-family: var(--font-display);
      font-size: 1.7rem;
      font-weight: 800;
      color: var(--navy-dark);
      letter-spacing: -0.25px;
      margin-bottom: 0.6rem;
    }

    .cta-text p {
      color: var(--text-secondary);
      font-size: 1.05rem;
      max-width: 460px;
      line-height: 1.7;
    }

    .cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--navy-brand);
      color: #fff;
      font-weight: 700;
      font-size: 0.95rem;
      padding: 16px 36px;
      border-radius: 16px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.4s var(--ease-spring);
      flex-shrink: 0;
      box-shadow: 0 4px 15px rgba(0, 84, 154, 0.2);
      position: relative;
      z-index: 1;
    }

    .cta-btn:hover {
      background: var(--navy-accent);
      transform: translateY(-4px) scale(1.04);
      box-shadow: 0 12px 30px rgba(0, 84, 154, 0.3);
    }

    .cta-btn svg {
      width: 18px; height: 18px;
      transition: transform 0.4s var(--ease-spring);
    }

    .cta-btn:hover svg { transform: translateX(4px); }

    /* ==========================================================================
       FOOTER
       ========================================================================== */
    .footer {
      background: #ffffff;
      padding: 4rem 2rem 2.5rem;
      color: var(--text-secondary);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .footer-inner {
      max-width: 1240px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2.2fr 1fr 1fr 1fr;
      gap: 3rem;
    }

    .footer-brand h4 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--navy-dark);
      margin-bottom: 1rem;
    }

    .footer-brand p {
      font-size: 0.88rem;
      line-height: 1.7;
      max-width: 300px;
      color: var(--text-secondary);
    }

    .footer-col h5 {
      color: var(--navy-dark);
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 1.25rem;
    }

    .footer-col a {
      display: block;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.88rem;
      padding: 5px 0;
      transition: all 0.3s var(--ease-smooth);
      cursor: pointer;
    }

    .footer-col a:hover { color: var(--navy-brand); transform: translateX(6px); }

    .footer-bottom {
      max-width: 1240px;
      margin: 3rem auto 0;
      padding-top: 2rem;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    /* ==========================================================================
       SCROLL REVEAL
       ========================================================================== */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.9s var(--ease-out-expo);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ==========================================================================
       HAMBURGER MENU MOBILE
       ========================================================================== */
    .hamburger {
      display: none;
      width: 42px;
      height: 42px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 12px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      padding: 10px;
      transition: all 0.4s var(--ease-spring);
      backdrop-filter: blur(8px);
      position: relative;
      z-index: 110;
    }

    .navbar.scrolled .hamburger {
      background: var(--navy-light);
      border-color: transparent;
    }

    .hamburger span {
      display: block;
      width: 100%;
      height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: all 0.4s var(--ease-spring);
      transform-origin: center;
    }

    .navbar.scrolled .hamburger span { background: var(--navy-dark); }

    .hamburger.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile overlay menu */
    .mobile-menu-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 99;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s ease;
    }

    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 0;
      right: -100%;
      width: 300px;
      max-width: 85vw;
      height: 100vh;
      background: rgba(11, 37, 69, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-left: 1px solid rgba(255, 255, 255, 0.08);
      z-index: 105;
      padding: 90px 1.5rem 2rem;
      transition: right 0.6s var(--ease-out-expo);
      overflow-y: auto;
      box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
    }

    .mobile-menu.active {
      right: 0;
    }

    body.dark-mode .mobile-menu {
      background: rgba(6, 10, 20, 0.95);
      border-left-color: rgba(255, 255, 255, 0.04);
    }

    .mobile-menu-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .mobile-menu-links a {
      display: block;
      padding: 12px 16px;
      color: rgba(255,255,255,0.8);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      border-radius: 12px;
      transition: all 0.3s var(--ease-smooth);
    }

    .mobile-menu-links a:hover {
      background: rgba(255,255,255,0.06);
      color: #fff;
      transform: translateX(4px);
    }

    .mobile-menu-divider {
      height: 1px;
      background: rgba(255,255,255,0.08);
      margin: 12px 16px;
    }

    .mobile-menu-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: rgba(255,255,255,0.3);
      padding: 12px 16px 4px;
    }

    /* Fila de accesibilidad en menú móvil premium */
    .mobile-a11y-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 12px 16px;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.85rem;
      font-weight: 500;
    }

    /* Link Encuesta de Satisfacción en Menú Móvil */
    .mobile-encuesta-link {
      display: flex !important;
      align-items: center;
      gap: 0.6rem;
      color: #38bdf8 !important;
      font-weight: 600 !important;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.25);
    }
    .mobile-encuesta-link svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
    }
    .mobile-encuesta-link:hover {
      background: rgba(56, 189, 248, 0.25) !important;
      color: #fff !important;
    }

    /* Redes Sociales en Menú Móvil */
    .mobile-social-section {
      margin-top: 0.25rem;
    }
    .mobile-social-icons {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      padding: 4px 16px 12px;
    }
    .mobile-social-icons a {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 8px 12px !important;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 10px !important;
      color: rgba(255, 255, 255, 0.9) !important;
      font-size: 0.78rem !important;
      font-weight: 600 !important;
      transition: all 0.25s ease;
    }
    .mobile-social-icons a svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
    }
    .mobile-social-icons a:hover {
      background: rgba(255, 255, 255, 0.18);
      color: #fff !important;
      transform: translateY(-2px);
    }

    /* Footer Premium Redes Sociales */
    .footer-social {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-top: 1.25rem;
    }
    .footer-social a {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(0, 84, 154, 0.08);
      border: 1px solid rgba(0, 84, 154, 0.16);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--navy-brand);
      transition: all 0.25s ease;
    }
    .footer-social a:hover {
      background: var(--navy-brand);
      color: #fff;
      border-color: var(--navy-brand);
      transform: translateY(-2px);
    }
    .footer-social svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
    }

    .mobile-menu-cta {
      display: block;
      margin: 1.5rem 16px 0;
      padding: 14px 24px;
      background: var(--navy-brand);
      color: #fff;
      text-align: center;
      font-weight: 700;
      font-size: 0.9rem;
      border-radius: 14px;
      text-decoration: none;
      transition: all 0.4s var(--ease-spring);
    }

    .mobile-menu-cta:hover {
      background: var(--navy-accent);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       RESPONSIVE
       ========================================================================== */
    /* Nav → hamburguesa antes que la plantilla: los ítems del Tribunal
       (p. ej. "Acceso a la Información Pública") son más largos. */
    @media (max-width: 1024px) {
      .nav-links { display: none; }
      .nav-cta { display: none; }
      .hamburger { display: flex; }
      .mobile-menu-overlay { display: block; }
      .mobile-menu { display: block; }
      .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
      .cards-grid > .card-wrapper:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
    }

    @media (max-width: 768px) {
      body { cursor: auto; }
      .cursor-dot, .cursor-ring { display: none; }

      .navbar { padding: 0 1.5rem; height: 64px; }
      .nav-links { display: none; }
      .nav-cta { display: none; }
      .hamburger { display: flex; }
      .mobile-menu-overlay { display: block; }
      .mobile-menu { display: block; }

      .hero { min-height: 48vh; }
      .hero-content { padding: 95px 1.25rem 40px; }
      .hero-title { font-size: 1.8rem !important; letter-spacing: -1px; }
      .hero-subtitle { font-size: 0.92rem; margin-bottom: 1.25rem; max-width: 100%; }
      .hero-stats { flex-direction: row; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
      .stat-number { font-size: 1.8rem; }
      .stat-label { font-size: 0.65rem; letter-spacing: 1px; }
      .stat-divider { display: none; }
      .hero-badge { font-size: 0.72rem; padding: 8px 16px; margin-bottom: 1.5rem; }
      .hero-actions { gap: 12px; width: 100%; justify-content: center; }
      .btn-magnetic { padding: 12px 24px; font-size: 0.88rem; border-radius: 12px; width: 100%; max-width: 280px; justify-content: center; }

      .hero-orb-1 { width: 250px; height: 250px; }
      .hero-orb-2 { width: 200px; height: 200px; }
      .hero-orb-3 { width: 150px; height: 150px; }

      .section { padding: 2.2rem 1.25rem; }
      .section-header { margin-bottom: 1.5rem; }
      .section-title { font-size: 1.6rem; }
      .section-desc { font-size: 0.92rem; }

      .cards-grid { grid-template-columns: 1fr; gap: 1.1rem; perspective: none; }
      .card { min-height: auto; padding: 1.4rem 1.25rem; border-radius: 18px; }
      .card-wrapper { border-radius: 20px; }
      .cards-grid > .card-wrapper:last-child { grid-column: auto; max-width: 100%; justify-self: auto; }
      .card-wrapper:hover .card { transform: translateY(-3px); }
      .card-icon-wrap { width: 42px; height: 42px; }

      .quick-grid { grid-template-columns: 1fr; gap: 0.6rem; }
      .quick-item { padding: 0.9rem 1.1rem; border-radius: 14px; }
      .quick-icon { width: 36px; height: 36px; border-radius: 10px; }
      .quick-label { font-size: 0.78rem; }

      .news-grid { grid-template-columns: 1fr; }

      .cta-inner { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; border-radius: 20px; }
      .cta-text h3 { font-size: 1.4rem; }
      .cta-text p { max-width: 100%; font-size: 0.92rem; }
      .cta-banner { padding: 0 1rem; margin-bottom: 3rem; }

      .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

      .marquee-strip { display: none; }

      .nav-brand-text { font-size: 0.95rem; }
    }

    @media (max-width: 480px) {
      .hero { min-height: 44vh; }
      .hero-content { padding: 95px 1rem 40px; }
      .hero-title { font-size: 1.5rem !important; }
      .hero-stats { gap: 0.75rem; justify-content: space-around; }
      .stat-number { font-size: 1.3rem; }
      .quick-grid { grid-template-columns: 1fr; }
      .footer-inner { grid-template-columns: 1fr; }
      .mobile-menu { width: 280px; }
    }

    /* ==========================================================================
       MODO OSCURO
       ========================================================================== */
    body.dark-mode {
      --bg-page: #060a14;
      --card-bg: rgba(16, 24, 40, 0.75);
      --card-border: rgba(255,255,255,0.05);
      --text-primary: #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --navy-light: rgba(59, 130, 246, 0.08);
      --navy-dark: #f1f5f9;
    }

    body.dark-mode .navbar.scrolled {
      background: rgba(6, 10, 20, 0.88);
      border-bottom-color: rgba(255,255,255,0.04);
    }
    body.dark-mode .navbar.scrolled .nav-brand-text { color: #fff; }
    body.dark-mode .navbar.scrolled .nav-link { color: rgba(255,255,255,0.5); }
    body.dark-mode .navbar.scrolled .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
    body.dark-mode .navbar.scrolled .nav-cta { background: var(--navy-accent); color: #fff; }

    /* Dropdown dark mode */
    body.dark-mode .nav-submenu {
      background: rgba(10, 14, 26, 0.95);
      border-color: rgba(255,255,255,0.06);
      box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    }
    body.dark-mode .nav-submenu-link {
      color: rgba(255,255,255,0.6);
    }
    body.dark-mode .nav-submenu-link:hover {
      color: #fff;
    }
    body.dark-mode .navbar.scrolled .nav-dropdown:hover > .nav-link {
      background: var(--navy-accent);
      color: #fff;
    }

    body.dark-mode .card-wrapper {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.08));
    }

    body.dark-mode .card {
      background: linear-gradient(168deg, rgba(16, 24, 40, 0.95) 0%, rgba(20, 30, 50, 0.9) 100%);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px -4px rgba(0, 0, 0, 0.3);
    }

    body.dark-mode .card-wrapper:hover .card {
      background: linear-gradient(168deg, rgba(21, 31, 48, 0.95) 0%, rgba(25, 38, 60, 0.9) 100%);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 24px 48px -8px rgba(0,0,0,0.4), 0 0 60px -15px rgba(59, 130, 246, 0.1);
    }

    body.dark-mode .card-action {
      border-top-color: rgba(255, 255, 255, 0.06);
    }

    body.dark-mode .card-specular {
      background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    }

    body.dark-mode .news-card,
    body.dark-mode .quick-item {
      background: rgba(16, 24, 40, 0.6);
      border-color: rgba(255,255,255,0.04);
    }

    body.dark-mode .metric-card {
      background: rgba(16, 24, 40, 0.6);
      border-color: rgba(255, 255, 255, 0.04);
    }

    body.dark-mode .metric-card:hover {
      background: rgba(21, 31, 48, 0.85);
      border-color: rgba(59, 130, 246, 0.2);
    }

    body.dark-mode .metric-progress-bar {
      background: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .metric-card.theme-emerald .metric-icon-wrap {
      background: rgba(16, 185, 129, 0.15);
    }

    body.dark-mode .metric-card.theme-amber .metric-icon-wrap {
      background: rgba(245, 158, 11, 0.15);
    }

    body.dark-mode .metric-card.theme-violet .metric-icon-wrap {
      background: rgba(139, 92, 246, 0.15);
    }

    body.dark-mode .services-bg {
      background: linear-gradient(180deg, var(--bg-page) 0%, #0a1020 50%, var(--bg-page) 100%);
    }

    body.dark-mode .news-img {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    }

    body.dark-mode .featured-update-card {
      background: rgba(16, 24, 40, 0.75);
      border-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .featured-update-card:hover {
      background: rgba(21, 31, 48, 0.85);
      border-color: rgba(59, 130, 246, 0.2);
    }

    body.dark-mode .featured-img-wrap {
      background: #0b2545;
    }

    body.dark-mode .cta-inner { background: #0d1526; }
    body.dark-mode .footer { background: #030610; }
    body.dark-mode .marquee-strip { background: #030610; }

    body.dark-mode .quick-item:hover .quick-icon { background: var(--navy-accent); }
    body.dark-mode .card-icon-wrap { background: rgba(59, 130, 246, 0.08); }
    body.dark-mode .card-wrapper:hover .card-icon-wrap {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08));
    }
  
/* overrides cursor */
html,body{cursor:auto !important;}input,textarea,select{cursor:text !important;}
.cursor-dot,.cursor-ring{display:none !important;}

/* ==========================================================================
   EXTRAS DEL SITIO (WordPress) — secciones propias del Tribunal
   Mismos tokens del design system; sólo se cargan en la portada.
   ========================================================================== */

/* Buscador dentro del hero (reemplaza los botones por la búsqueda real de WP) */
.hero-search { width: 100%; max-width: 620px; margin: 2.2rem auto 0; }
.hero-search-box {
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-search-box svg.hs-ico { width: 22px; height: 22px; color: rgba(255, 255, 255, 0.85); }
.hero-search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  padding: 1.05rem 0.5rem 1.05rem 1.2rem;
  font-family: var(--font-sans); font-size: 1rem; color: #ffffff;
}
.hero-search-input::placeholder { color: rgba(255, 255, 255, 0.65); }
.hero-search-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: .4rem; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--navy-brand), var(--navy-accent));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  padding: 0 1.4rem; border-radius: calc(var(--radius-md) - 8px);
  transition: filter .2s var(--ease-smooth), transform .2s var(--ease-smooth);
}
.hero-search-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hero-search-btn svg { width: 18px; height: 18px; }
@media (max-width: 560px){
  .hero-search-btn span { display: none; }
  .hero-search-btn { padding: 0 1rem; }
}

/* Encabezado de sección con enlace a la derecha (listados) */
.section-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto 2.4rem; padding: 0 1.5rem;
}
.section-eyebrow {
  color: var(--navy-accent); font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .35rem;
}
.section-head-row .section-title { text-align: left; margin: 0; }
.section-head-row .section-desc { text-align: left; margin: .5rem 0 0; max-width: 600px; }
.section-link {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  color: var(--navy-brand); font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: gap .2s var(--ease-smooth), color .2s;
}
.section-link svg { width: 16px; height: 16px; }
.section-link:hover { gap: .7rem; color: var(--navy-accent); }

/* Aviso institucional (editable desde el Personalizador) */
.home-notice {
  background: linear-gradient(90deg, rgba(245,158,11,.12), rgba(245,158,11,.05));
  border-top: 1px solid rgba(245,158,11,.35);
  border-bottom: 1px solid rgba(245,158,11,.35);
  padding: .85rem 1.5rem;
}
.home-notice-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.home-notice-text { display: flex; align-items: center; gap: .85rem; min-width: 0; color: #92400e; font-size: .9rem; }
.home-notice-tag {
  flex: none; background: #fbbf24; color: #422006; font-weight: 800;
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.home-notice-text a { color: #b45309; font-weight: 700; text-decoration: underline; }
.home-notice-close { flex: none; background: transparent; border: 0; color: #b45309; cursor: pointer; padding: .25rem; border-radius: 999px; }
.home-notice-close:hover { background: rgba(245,158,11,.18); }

/* Reconocimientos a la calidad — Fusión en el Hero con estilo Glassmorphic (Opción 1) */
.hero-awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
}
.hero-award-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.hero-award-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
  transition: transform 0.3s var(--ease-spring);
}
.hero-award-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.hero-award-item:hover svg {
  transform: scale(1.1);
}


/* Sesiones del Tribunal (expedientes) */
.sessions-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem;
}
.session-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--card-border);
  border-left: 3px solid var(--navy-accent);
  border-radius: var(--radius-sm); padding: 1.3rem;
  box-shadow: 0 10px 24px -18px rgba(15,23,42,.3);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.session-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(15,23,42,.35); }
.session-card.is-ok { border-left-color: var(--accent-emerald); }
.session-card.is-warn { border-left-color: var(--accent-amber); }
.session-card.is-audit { border-left-color: var(--accent-cyan); }
.session-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.session-exp { font-family: 'SF Mono', ui-monospace, monospace; font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--text-muted); }
.session-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .67rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; border: 1px solid; }
.session-badge i { width: 6px; height: 6px; border-radius: 50%; }
.session-badge.is-ok { background: rgba(16,185,129,.08); color: #047857; border-color: rgba(16,185,129,.3); }
.session-badge.is-ok i { background: var(--accent-emerald); }
.session-badge.is-warn { background: rgba(245,158,11,.08); color: #b45309; border-color: rgba(245,158,11,.3); }
.session-badge.is-warn i { background: var(--accent-amber); }
.session-badge.is-audit { background: rgba(6,182,212,.08); color: #0e7490; border-color: rgba(6,182,212,.3); }
.session-badge.is-audit i { background: var(--accent-cyan); }
.session-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin-bottom: .5rem; }
.session-desc { font-size: .8rem; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.session-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--card-border); }
.session-date { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.session-pdf { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-decoration: none; color: var(--navy-brand); }
.session-pdf svg { width: 13px; height: 13px; }
.session-pdf:hover { color: var(--navy-accent); }

/* Ciudadanía / campañas */
.campaigns-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.campaign-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--card-border);
  border-radius: var(--radius-md); box-shadow: 0 12px 30px -20px rgba(15,23,42,.35);
  transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth);
}
.campaign-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -28px rgba(15,23,42,.45); }
.campaign-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.campaign-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-smooth); }
.campaign-card:hover .campaign-img { transform: scale(1.06); }
.campaign-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,37,69,.55), transparent 60%); }
.campaign-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.campaign-tag { align-self: flex-start; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.campaign-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.campaign-desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.55; }
.campaign-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .85rem; font-weight: 700; color: var(--navy-brand); text-decoration: none; transition: gap .2s var(--ease-smooth); }
.campaign-link svg { width: 15px; height: 15px; }
.campaign-link:hover { gap: .7rem; }

/* Capacitaciones */
.trainings-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
}
.training-card {
  display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 1.5rem; backdrop-filter: blur(10px);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.training-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(15,23,42,.35); }
.training-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.training-meta { display: flex; align-items: flex-start; gap: .55rem; }
.training-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .35rem; flex: none; }
.training-when { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.training-state { font-size: .68rem; color: var(--text-muted); }
.training-state.is-hot { color: var(--accent-emerald); font-weight: 700; }
.training-dur { flex: none; font-size: .7rem; font-weight: 700; color: var(--navy-brand); background: var(--navy-light); border-radius: 999px; padding: .25rem .6rem; }
.training-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: .55rem; }
.training-desc { font-size: .83rem; color: var(--text-secondary); line-height: 1.55; flex: 1; margin-bottom: 1.1rem; }
.training-btn {
  display: block; text-align: center; text-decoration: none;
  border: 1.5px solid var(--navy-brand); color: var(--navy-brand);
  font-weight: 700; font-size: .85rem; padding: .65rem 1rem; border-radius: var(--radius-sm);
  transition: background .25s var(--ease-smooth), color .25s, transform .2s;
}
.training-btn:hover { background: var(--navy-brand); color: #fff; transform: translateY(-2px); }

/* Modo oscuro para extras */
body.dark-mode .session-card,
body.dark-mode .campaign-card { background: #0d1526; border-color: rgba(255,255,255,.06); }
body.dark-mode .session-title,
body.dark-mode .campaign-title,
body.dark-mode .training-title,
body.dark-mode .award-item h4 { color: #f1f5f9; }
body.dark-mode .award-item,
body.dark-mode .training-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,.06); }

/* ==========================================================================
   TOPBAR (Odoo 1.6) · ENLACES ÚTILES (1.7.4) · ACCESIBILIDAD
   ========================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: rgba(241,245,249,0.88);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  font-size: .8rem;
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; height: 38px; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: .35rem; }
.topbar-right { display: flex; align-items: center; gap: .9rem; }
.topbar-label { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-secondary); font-weight: 700; margin-right: .3rem; }
.topbar-label svg { width: 14px; height: 14px; }
.topbar-btn {
  background: transparent; border: 1px solid transparent; cursor: pointer;
  color: var(--text-secondary); font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; transition: all .2s var(--ease-smooth);
}
.topbar-btn:hover, .topbar-btn.is-on { background: rgba(0,84,154,.10); color: var(--navy-brand); border-color: rgba(0,84,154,.18); }
.topbar-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color .2s; display: inline-flex; align-items: center; gap: .3rem; }
.topbar-link:hover { color: var(--navy-brand); }
.topbar-ingresar { font-weight: 700; color: var(--navy-brand); }
.topbar-ingresar svg { width: 14px; height: 14px; }
.topbar-social { display: inline-flex; align-items: center; gap: .55rem; padding-left: .55rem; border-left: 1px solid rgba(15,23,42,.12); }
.topbar-social a { color: var(--text-muted); display: inline-flex; transition: color .2s, transform .2s; }
.topbar-social a:hover { color: var(--navy-brand); transform: translateY(-1px); }
.topbar-social svg { width: 15px; height: 15px; }

/* El navbar baja para dejar lugar al topbar (ambos fijos, siempre visibles) */
.navbar { top: 38px; }
.scroll-progress { z-index: 102; }

/* Alto contraste (accesibilidad): oscurece textos secundarios */
body.tc-contrast { --text-secondary: #0f172a; --text-muted: #1e293b; }
body.tc-contrast .hero-subtitle,
body.tc-contrast .section-desc,
body.tc-contrast .card-desc,
body.tc-contrast .metric-desc { color: #0f172a; }

/* Enlaces de interés (Odoo 1.7.4) */
.links-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem;
}
.link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; text-decoration: none; color: var(--text-primary);
  font-weight: 600; font-size: .9rem; backdrop-filter: blur(10px);
  transition: transform .25s var(--ease-smooth), box-shadow .25s, border-color .25s, color .25s;
}
.link-item:hover { transform: translateY(-3px); border-color: var(--navy-accent); box-shadow: 0 14px 28px -16px rgba(15,23,42,.28); color: var(--navy-brand); }
.link-name { line-height: 1.3; }
.link-ico { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: color .25s; }
.link-item:hover .link-ico { color: var(--navy-accent); }
body.dark-mode .link-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,.06); color: #e2e8f0; }
body.dark-mode .link-item:hover { color: #fff; }
body.dark-mode .topbar { background: rgba(10,15,26,.88); border-bottom-color: rgba(255,255,255,.06); }

/* En móvil ocultamos el topbar; el navbar vuelve arriba */
@media (max-width: 768px) {
  .topbar { display: none; }
  .navbar { top: 0; }
}

/* Footer: leyenda del Atuel + sello de calidad (Odoo 1.10) */
.footer-motto {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  color: var(--navy-brand); font-family: var(--font-display); font-weight: 700; font-size: .92rem; font-style: italic;
}
.footer-motto svg { width: 18px; height: 18px; flex: none; color: var(--accent-teal); }
.footer-cert { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.footer-cert-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid rgba(0,84,154,.22); border-radius: 999px; padding: .3rem .7rem;
  font-weight: 800; font-size: .78rem; letter-spacing: .03em; color: var(--navy-dark);
}
.footer-cert-badge svg { width: 15px; height: 15px; color: var(--accent-emerald); }
.footer-cert-text { font-size: .78rem; color: var(--text-muted); }
body.dark-mode .footer-motto { color: var(--navy-glow); }
body.dark-mode .footer-cert-badge { border-color: rgba(255,255,255,.25); color: #fff; }
body.dark-mode .footer-cert-text { color: rgba(255,255,255,.65); }

/* ==========================================================================
   NOVEDADES DESTACADAS — cinta de noticias (marquee continuo)
   ========================================================================== */
.news-marquee {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-brand) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px -10px rgba(0, 84, 154, 0.3);
}
/* Degradé de desvanecimiento en los bordes */
.news-marquee::before,
.news-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}
.news-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--navy-brand), transparent);
}
.news-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--navy-dark), transparent);
}
/* Track animado */
.news-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: nmarqScroll 30s linear infinite;
  padding: 1rem 0;
}
.news-marquee:hover .news-marquee-track {
  animation-play-state: paused;
}
@keyframes nmarqScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Separador */
.nmarq-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.6rem;
  padding: 0 1.2rem;
  flex-shrink: 0;
  user-select: none;
}
/* Cada ítem */
.nmarq-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}
.nmarq-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.35);
}
/* Badge */
.nmarq-badge {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nmarq-item.is-red .nmarq-badge {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}
.nmarq-item.is-amber .nmarq-badge {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef08a;
}
.nmarq-item.is-blue .nmarq-badge {
  background: rgba(96, 165, 250, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}
/* Título */
.nmarq-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
/* Descripción */
.nmarq-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
/* CTA flecha */
.nmarq-cta {
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.25s var(--ease-smooth), color 0.25s;
}
.nmarq-item:hover .nmarq-cta {
  color: #fff;
  gap: 0.45rem;
}
.nmarq-cta svg {
  width: 11px;
  height: 11px;
}
/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
  .news-marquee {
    border-radius: var(--radius-sm);
  }
  .news-marquee::before,
  .news-marquee::after {
    width: 40px;
  }
  .nmarq-desc {
    display: none;
  }
  .nmarq-item {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
}



/* ── Switch de Contraste (sol/luna) ─────────────────────────────
   Todos los selectores van bajo .switch para evitar colisiones.
   Keyframes con prefijo tc- para no pisar otros en el proyecto.
   ─────────────────────────────────────────────────────────────── */
.switch {
  font-size: 15px;
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  vertical-align: middle;
  cursor: pointer;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  transition: .4s;
  border-radius: 30px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  border-radius: 50%;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: .4s;
}
.switch .sun svg {
  position: absolute;
  top: 5px;
  left: 28px;
  z-index: 1;
  width: 16px;
  height: 16px;
  animation: tc-rotate 15s linear infinite;
}
.switch .moon svg {
  fill: #73c0fc;
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 1;
  width: 16px;
  height: 16px;
  animation: tc-tilt 5s linear infinite;
}
@keyframes tc-rotate {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
@keyframes tc-tilt {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-10deg); }
  75%  { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}
.switch .input:checked + .slider {
  background-color: #1e293b;
  border-color: #0f172a;
}
.switch .input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #f8fafc;
}

/* ── Navbar en modo oscuro (Home antes de hacer scroll) ─────────────── */
body.dark-mode .navbar:not(.scrolled) {
  background: rgba(6, 10, 20, 0.8) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
}
body.dark-mode .navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
}
body.dark-mode .navbar:not(.scrolled) .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .navbar:not(.scrolled) .dd-arrow {
  fill: rgba(255, 255, 255, 0.7) !important;
  stroke: rgba(255, 255, 255, 0.7) !important;
}

/* ── Header en modo alto contraste ─────────────────────────────────── */
body.high-contrast #main-header {
  background: #000 !important;
  border-bottom: 2px solid #fff !important;
}
body.high-contrast #main-header .nav-link,
body.high-contrast #main-header button,
body.high-contrast #main-header span,
body.high-contrast #main-header a {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
}
body.high-contrast #main-header .nav-link:hover,
body.high-contrast #main-header button:hover,
body.high-contrast #main-header a:hover {
  color: #ff0 !important;
  text-decoration: underline !important;
}

/* Puente invisible: cubre el hueco de 8px entre el botón y el panel del dropdown
   para que el cursor no "caiga" fuera del área de hover al desplazarse hacia abajo. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* ==========================================================================
   BANNERS DESTACADOS — Grilla Estilo TCU
   ========================================================================== */
.featured-banners-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  box-sizing: border-box;
}

.fb-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 16px;
  text-decoration: none;
  min-height: 180px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  z-index: 1;
}

.fb-card:hover {
  transform: translateY(-6px);
}

/* Patrón sutil de fondo */
.fb-card-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 1;
}

/* Cuerpo de la tarjeta */
.fb-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  z-index: 2;
  position: relative;
}

.fb-card-badge {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.fb-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  line-height: 1.25;
}

.fb-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  opacity: 0.9;
}

.fb-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: auto;
  transition: gap 0.25s ease;
}

.fb-card:hover .fb-card-cta {
  gap: 0.5rem;
}

.fb-card-cta svg {
  width: 12px;
  height: 12px;
}

/* Gráfico ilustrativo a la derecha */
.fb-card-graphic {
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1.2rem;
  z-index: 2;
  pointer-events: none;
}

.fb-card-graphic svg {
  width: 64px;
  height: 64px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-card:hover .fb-card-graphic svg {
  transform: scale(1.1) rotate(2deg);
}

/* --- Variantes de Color (Coral/Rojo) --- */
.fb-card-coral {
  background: linear-gradient(135deg, #e05e50 0%, #c33c2f 100%);
  box-shadow: 0 8px 24px rgba(224, 94, 80, 0.2);
}
.fb-card-coral:hover {
  box-shadow: 0 16px 36px rgba(224, 94, 80, 0.35);
}
.fb-card-coral .fb-card-title,
.fb-card-coral .fb-card-desc,
.fb-card-coral .fb-card-cta {
  color: #ffffff;
}
.fb-card-coral .fb-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- Variantes de Color (Gold/Amarillo) --- */
.fb-card-gold {
  background: linear-gradient(135deg, #f5be18 0%, #dda20c 100%);
  box-shadow: 0 8px 24px rgba(245, 190, 24, 0.2);
}
.fb-card-gold:hover {
  box-shadow: 0 16px 36px rgba(245, 190, 24, 0.35);
}
.fb-card-gold .fb-card-title,
.fb-card-gold .fb-card-cta {
  color: #0f172a;
}
.fb-card-gold .fb-card-desc {
  color: #334155;
}
.fb-card-gold .fb-card-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.fb-card-gold .fb-card-graphic svg {
  /* Hacer que los trazos de SVG se pinten de color oscuro en el fondo amarillo */
}
.fb-card-gold .fb-card-graphic svg path,
.fb-card-gold .fb-card-graphic svg circle {
  stroke: #0f172a;
}

/* --- Variantes de Color (Light/Blanco) --- */
.fb-card-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}
.fb-card-light:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.fb-card-light .fb-card-title,
.fb-card-light .fb-card-cta {
  color: var(--navy-brand, #00549a);
}
.fb-card-light .fb-card-desc {
  color: #475569;
}
.fb-card-light .fb-card-badge {
  background: rgba(0, 84, 154, 0.08);
  color: var(--navy-brand, #00549a);
}
.fb-card-light .fb-card-pattern {
  background-image: radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0);
  opacity: 0.15;
}

/* --- Modo Oscuro (Dark Mode) --- */
body.dark-mode .fb-card-light {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
body.dark-mode .fb-card-light:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
body.dark-mode .fb-card-light .fb-card-title,
body.dark-mode .fb-card-light .fb-card-cta {
  color: #38bdf8;
}
body.dark-mode .fb-card-light .fb-card-desc {
  color: #94a3b8;
}
body.dark-mode .fb-card-light .fb-card-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
body.dark-mode .fb-card-light .fb-card-graphic svg rect,
body.dark-mode .fb-card-light .fb-card-graphic svg line {
  stroke: #38bdf8;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .featured-banners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fb-card {
    min-height: auto;
  }
}

/* ==========================================================================
   HERO CON IMAGEN Y FILTRO AZUL + NAVBAR TRANSPARENTE
   ========================================================================== */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: saturate(1.1) brightness(0.95);
}

.hero-blue-overlay {
  position: absolute;
  inset: 0;
  /* Degradado azul marino semitransparente premium */
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(0, 45, 98, 0.70) 50%,
    rgba(0, 84, 154, 0.60) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
}

/* --- Fusión del Navbar/Topbar con la Imagen --- */
/* Cuando el scroll está arriba en la Home */
body.home:not(.is-scrolled) .topbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.home:not(.is-scrolled) .topbar-label,
body.home:not(.is-scrolled) .topbar-btn,
body.home:not(.is-scrolled) .topbar-link {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
body.home:not(.is-scrolled) .topbar-social {
  border-left-color: rgba(255, 255, 255, 0.2) !important;
}
body.home:not(.is-scrolled) .topbar-social a {
  color: rgba(255, 255, 255, 0.8) !important;
}
body.home:not(.is-scrolled) .topbar-social a:hover {
  color: #ffffff !important;
}
body.home:not(.is-scrolled) .topbar-ingresar {
  color: #ffffff !important;
}

body.home:not(.is-scrolled) .navbar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.home:not(.is-scrolled) .navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
body.home:not(.is-scrolled) .navbar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
body.home:not(.is-scrolled) .navbar .dd-arrow {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
body.home:not(.is-scrolled) .navbar .hamburger span {
  background: #ffffff !important;
}
body.home:not(.is-scrolled) .navbar .nav-logo img {
  filter: brightness(0) invert(1);
}

/* --- Animaciones e Iconos Minimalistas en el Topbar --- */
.topbar svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s, fill 0.3s;
}

.topbar-label:hover svg,
.topbar-btn:hover svg,
.topbar-link:hover svg,
.topbar-social a:hover svg {
  transform: translateY(-2px) scale(1.12);
}

/* --- Grilla del Universo de Control (4 y 4) --- */
@media (min-width: 992px) {
  .udec-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 992px) and (min-width: 640px) {
  .udec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Carrusel de Novedades (Lo Último) --- */
.news-carousel-container {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  height: clamp(148px, 13vw, 175px);
  overflow: hidden;
  border-radius: 20px;
  z-index: 10;
  box-shadow:
    0 2px 6px rgba(11, 37, 69, 0.08),
    0 18px 44px -18px rgba(11, 37, 69, 0.35);
}

.news-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  z-index: 1;
}

.news-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* El lift del fb-card no aplica dentro del carrusel (rompe con overflow hidden) */
.news-carousel-slide.fb-card:hover {
  transform: none;
}

/* Capa de foto con Ken Burns sutil al activarse el slide */
.ncs-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1);
}

.news-carousel-slide.active .ncs-media {
  animation: ncsKenburns 8s ease-out forwards;
}

@keyframes ncsKenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.07); }
}

/* Entrada escalonada del contenido al activarse el slide */
.news-carousel-slide .fb-card-badge,
.news-carousel-slide .fb-card-title,
.news-carousel-slide .fb-card-desc,
.news-carousel-slide .fb-card-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth),
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              box-shadow 0.3s ease, gap 0.25s ease;
}

.news-carousel-slide.active .fb-card-badge { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.news-carousel-slide.active .fb-card-title { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.news-carousel-slide.active .fb-card-desc  { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.news-carousel-slide.active .fb-card-cta   { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* El hover del CTA no debe pelear con la transición de entrada */
.news-carousel-slide.active .fb-card-cta:hover,
.news-carousel-slide.active .fb-card-cta:focus-visible {
  transform: translateY(-2px);
  transition-delay: 0s;
}

/* Overlay de legibilidad sobre la foto: oscuro a la izquierda, se disuelve a la derecha */
.news-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 22, 44, 0.86) 0%, rgba(5, 22, 44, 0.6) 42%, rgba(5, 22, 44, 0.14) 76%, rgba(5, 22, 44, 0) 100%);
  pointer-events: none;
}

/* ── Variante flat minimalista (sin foto): degradé institucional + ícono de línea ── */
.news-carousel-slide.ncs-flat::after {
  display: none;
}

/* Paleta del documento de observaciones: #6367f0 (violeta) y #ef9e20 (amarillo/ámbar) */
.news-carousel-slide.ncs-flat-violet {
  background: linear-gradient(118deg, #262866 0%, #4b4fd6 58%, #6367f0 120%);
}

.news-carousel-slide.ncs-flat-amber {
  background: linear-gradient(118deg, #7a4a08 0%, #d9820e 58%, #ef9e20 120%);
}

.news-carousel-slide.ncs-flat .fb-card-title,
.news-carousel-slide.ncs-flat .fb-card-desc {
  text-shadow: none;
}

/* Foto integrada a la derecha: se funde con el degradé mediante máscara */
.ncs-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, #000 65%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, #000 65%);
}

/* Velo del color del slide sobre la foto, para integrarla a la paleta */
.ncs-photo::after {
  content: '';
  position: absolute;
  inset: 0;
}

.ncs-flat-violet .ncs-photo::after {
  background: linear-gradient(90deg, rgba(38, 40, 102, 0.5) 0%, rgba(38, 40, 102, 0.18) 100%);
}

.ncs-flat-amber .ncs-photo::after {
  background: linear-gradient(90deg, rgba(122, 74, 8, 0.5) 0%, rgba(122, 74, 8, 0.18) 100%);
}

/* Ken Burns sutil al activarse el slide */
.news-carousel-slide.active .ncs-photo {
  animation: ncsKenburns 8s ease-out forwards;
}

/* Variante para banners con foto clara: velo blanco y tipografía navy */
.news-carousel-slide.fb-on-light::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 42%, rgba(255, 255, 255, 0.15) 76%, rgba(255, 255, 255, 0) 100%);
}

/* ── Texto del banner (fila: texto a la izquierda, CTA a la derecha) ── */
.news-carousel-slide .fb-card-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem clamp(2.1rem, 5.5vw, 4.4rem);
}

.ncs-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-carousel-slide .fb-card-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.1em;
}

.news-carousel-slide .fb-card-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 12px rgba(5, 22, 44, 0.35);
}

.news-carousel-slide .fb-card-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(5, 22, 44, 0.3);
}

.news-carousel-slide.fb-on-light .fb-card-badge {
  background: rgba(11, 37, 69, 0.08);
  border-color: rgba(11, 37, 69, 0.22);
  color: var(--navy-dark);
}

.news-carousel-slide.fb-on-light .fb-card-title {
  color: var(--navy-dark);
  text-shadow: none;
}

.news-carousel-slide.fb-on-light .fb-card-desc {
  color: rgba(11, 37, 69, 0.8);
  text-shadow: none;
}

/* ── Botón de acceso del banner (columna derecha) ── */
.news-carousel-slide .fb-card-cta {
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  transition: opacity 0.6s var(--ease-smooth), background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.35s var(--ease-smooth),
              box-shadow 0.3s ease, gap 0.25s ease;
}

.news-carousel-slide .fb-card-cta svg {
  transition: transform 0.25s ease;
}

.news-carousel-slide .fb-card-cta:hover,
.news-carousel-slide .fb-card-cta:focus-visible {
  background: #ffffff;
  color: var(--navy-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 22, 44, 0.28);
}

.news-carousel-slide .fb-card-cta:hover svg {
  transform: translateX(3px);
}

.news-carousel-slide.fb-on-light .fb-card-cta {
  background: var(--navy-brand);
  border-color: var(--navy-brand);
  color: #fff;
}

.news-carousel-slide.fb-on-light .fb-card-cta:hover,
.news-carousel-slide.fb-on-light .fb-card-cta:focus-visible {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.35);
}

/* ── Flechas de navegación (glass) ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.12), 0 4px 14px rgba(5, 22, 44, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  z-index: 11;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.25s ease, color 0.25s ease,
              transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(5, 22, 44, 0.4));
}

.carousel-arrow-prev { left: 16px; }
.carousel-arrow-next { right: 16px; }

.news-carousel-container:hover .carousel-arrow,
.news-carousel-container:focus-within .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: #ffffff;
  color: var(--navy-dark);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(5, 22, 44, 0.35);
}

.carousel-arrow:hover svg,
.carousel-arrow:focus-visible svg {
  filter: none;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* ── Barra de progreso del autoplay ── */
.carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 11;
}

.carousel-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), #ffffff);
  border-radius: 0 3px 3px 0;
}

.carousel-progress-fill.is-running {
  animation: carouselProgress 6.5s linear forwards;
}

.news-carousel-container:hover .carousel-progress-fill {
  animation-play-state: paused;
}

@keyframes carouselProgress {
  from { width: 0; }
  to   { width: 100%; }
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.25), 0 1px 3px rgba(5, 22, 44, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.15);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
  transform: none;
}

/* Variación de color de los puntitos cuando está activo el slide amarillo */
.news-carousel-slide.fb-card-gold.active ~ .carousel-dots .carousel-dot {
  background: rgba(15, 23, 42, 0.25);
}
.news-carousel-slide.fb-card-gold.active ~ .carousel-dots .carousel-dot.active {
  background: var(--navy-dark, #0b2545);
}

@media (max-width: 640px) {
  .news-carousel-container {
    height: auto;
    min-height: 190px;
    border-radius: 16px;
  }
  .news-carousel-slide {
    position: relative;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .news-carousel-slide.active {
    display: flex;
  }
  /* En pantallas chicas el CTA vuelve a apilarse debajo del texto */
  .news-carousel-slide .fb-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 1.4rem 2.4rem;
  }
  .news-carousel-slide .fb-card-cta {
    align-self: flex-start;
  }
  .news-carousel-slide .fb-card-title {
    font-size: 1.2rem;
  }
  .news-carousel-slide .fb-card-desc {
    font-size: 0.83rem;
    margin-bottom: 0.9rem;
  }
  /* La foto integrada pasa a fondo sutil detrás del texto */
  .ncs-photo {
    width: 100%;
    opacity: 0.3;
  }
  /* En touch no hay hover: las flechas viven siempre visibles y más chicas */
  .carousel-arrow {
    opacity: 1;
    width: 34px;
    height: 34px;
  }
  .carousel-arrow-prev { left: 10px; }
  .carousel-arrow-next { right: 10px; }
  .carousel-dots {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Hechos y Cifras: tarjeta horizontal ultra-compacta con íconos temáticos --- */
.metrics-minimal-euca {
  padding: 2.5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.metrics-euca-container {
  max-width: 1240px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0, 84, 154, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -8px rgba(0, 52, 105, 0.08);
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.metrics-euca-grid {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.metric-euca-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-light, #EBF5FF);
  color: var(--navy-brand, #00549A);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-spring);
}

.metric-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.metric-euca-item:hover .metric-icon-wrap {
  background: var(--navy-brand, #00549A);
  color: #ffffff;
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 6px 16px -4px rgba(0, 84, 154, 0.3);
}

.metric-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.metric-euca-val {
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-brand, #00549A);
  letter-spacing: -0.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-euca-label {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #475569);
  margin-top: 0.2rem;
  line-height: 1.25;
}

.metric-euca-divider {
  width: 1px;
  height: 44px;
  background: rgba(0, 84, 154, 0.12);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .metrics-euca-container {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .metrics-euca-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .metric-euca-divider {
    display: none;
  }
}

/* --- Selector de Idiomas en el Topbar --- */
.lang-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  user-select: none;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

body.home:not(.is-scrolled) .lang-dropdown-trigger {
  color: #ffffff;
}

body.home.is-scrolled .lang-dropdown-trigger,
body:not(.home) .lang-dropdown-trigger {
  color: var(--text-primary, #1e293b);
}

.lang-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.home.is-scrolled .lang-dropdown-trigger:hover,
body:not(.home) .lang-dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang-flag-svg {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: block;
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  padding: 6px;
}

.lang-dropdown-trigger:hover .lang-dropdown-menu,
.lang-dropdown-trigger:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-primary, #1e293b) !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.lang-dropdown-item:hover {
  background: #f1f5f9;
  color: #00549A !important;
}

.lang-dropdown-item.active {
  background: #00549A;
  color: #ffffff !important;
}

.lang-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}

.lang-dropdown-trigger:hover .lang-arrow {
  transform: rotate(180deg);
}



