/*
Theme Name: KMF Kinesiología
Theme URI: https://kmf.cl
Author: KMF Kinesiología
Description: Tema personalizado para el blog de KMF Kinesiología — integrado con el diseño del sitio principal.
Version: 1.0
Text Domain: kmf-theme
*/
/* ═══════════════════════════════════════════
   KMF Kinesiología — CSS Compartido
   Edita este archivo para cambios globales
   de estilo que afectan todas las páginas.
═══════════════════════════════════════════ */

:root {
    --azul:        #38BDF8;
    --azul-dark:   #0EA5E9;
    --base:        #0E4D72;
    --base-deep:   #083652;
    --base-mid:    #1a6494;
    --crema:       #FBF8F3;
    --crema-dark:  #F0EBE1;
    --azul-claro:  #F5F9FC;
    --text-dark:   #0E4D72;
    --text-muted:  #6B7280;
    --white:       #FFFFFF;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--crema); color: var(--text-dark); overflow-x: hidden; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(14,77,114,0.97); backdrop-filter: blur(14px);
    padding: 0 2rem; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(56,189,248,0.15);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.2); }
  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-logo img { height: 38px; width: auto; display: block; transition: opacity 0.2s; }
  .nav-logo:hover img { opacity: 0.85; }
  .nav-links { display: flex; list-style: none; gap: 0.2rem; align-items: center; }
  .nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.82rem; font-weight: 500; padding: 0.45rem 0.7rem; border-radius: 6px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
  .nav-links a:hover { color: var(--white); background: rgba(56,189,248,0.12); }
  .nav-links .cta-nav { background: var(--azul); color: var(--base); font-weight: 700; padding: 0.45rem 1rem; border-radius: 6px; margin-left: 0.5rem; }
  .nav-links .cta-nav:hover { background: var(--azul-dark); color: var(--white); }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

  /* ── BASE ── */
  section { position: relative; }
  .container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
  .section-label { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--azul-dark); margin-bottom: 0.75rem; }
  .section-label.light { color: var(--azul); }
  .section-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: var(--base); margin-bottom: 1.25rem; }
  .section-title.light { color: var(--white); }
  .section-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 560px; }
  .section-sub.light { color: rgba(255,255,255,0.65); }
  .section-header { text-align: center; margin-bottom: 3.5rem; }

  /* ── BOTONES ── */
  .btn-primary { background: var(--azul); color: var(--base); font-weight: 700; font-size: 0.9rem; padding: 0.85rem 1.75rem; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.2s, transform 0.15s; }
  .btn-primary:hover { background: var(--azul-dark); color: var(--white); transform: translateY(-2px); }
  .btn-ghost { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); font-weight: 500; font-size: 0.9rem; padding: 0.85rem 1.75rem; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: border-color 0.2s, background 0.2s; }
  .btn-ghost:hover { border-color: var(--azul); background: rgba(56,189,248,0.1); }
  .btn-dark { background: var(--base); color: var(--white); font-weight: 700; font-size: 0.95rem; padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.2s, transform 0.15s; }
  .btn-dark:hover { background: var(--base-deep); transform: translateY(-2px); }

  /* ── WAVE ── */
  .wave-divider { line-height: 0; overflow: hidden; }
  .wave-divider svg { display: block; width: 100%; }

  /* ══ HERO ══ */
  #inicio {
    min-height: 100vh;
    background:
      linear-gradient(to right, rgba(8,54,82,0.96) 0%, rgba(8,54,82,0.90) 38%, rgba(8,54,82,0.50) 65%, rgba(8,54,82,0.0) 100%),
      url('img/portada.jpg') right center / cover no-repeat;
    display: flex; align-items: center; padding-top: 68px; overflow: hidden;
  }
  .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0 4rem; }
  .hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .badge { background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3); color: var(--azul); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.3rem 0.75rem; border-radius: 100px; text-transform: uppercase; }
  .hero-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; color: var(--white); margin-bottom: 1.5rem; }
  .hero-title em { font-style: italic; color: var(--azul); }
  .hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 2rem; max-width: 480px; }
  .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
  .hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
  .stat-num { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 2rem; color: var(--white); line-height: 1; }
  .stat-num span { color: var(--azul); }
  .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }

  .hero-visual { display: flex; justify-content: center; align-items: center; }
  .hero-card-main { background: linear-gradient(145deg, rgba(56,189,248,0.12) 0%, rgba(255,255,255,0.04) 100%); border: 1px solid rgba(56,189,248,0.2); border-radius: 24px; padding: 2rem; width: 100%; max-width: 400px; position: relative; }
  .hero-body-svg { width: 100%; height: 320px; }
  .floating-chip { position: absolute; background: var(--white); border-radius: 12px; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--base); box-shadow: 0 8px 32px rgba(0,0,0,0.15); white-space: nowrap; }
  .chip-dot { width: 8px; height: 8px; border-radius: 50%; }
  .chip1 { top: -1rem; right: -1.5rem; }
  .chip2 { bottom: 1rem; left: -2rem; }
  .floating-chip-inline { display:inline-flex; align-items:center; gap:0.5rem; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); border-radius:100px; padding:0.35rem 0.85rem; font-size:0.78rem; font-weight:600; color:rgba(255,255,255,0.85); }

  /* ══ EQUIPO ══ */
  #equipo { padding: 6rem 0; background: var(--white); }
  .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
  .team-card { border-radius: 16px; overflow: hidden; background: var(--azul-claro); border: 1px solid #dbeafe; transition: transform 0.25s, box-shadow 0.25s; }
  .team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(56,189,248,0.15); }
  .team-avatar { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
  .team-avatar::after { content: ''; position: absolute; bottom: -30px; right: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.1); }
  .avatar-initials { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.92); z-index: 1; }
  .team-info { padding: 1.25rem; }
  .team-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: var(--base); margin-bottom: 0.2rem; }
  .team-role { font-size: 0.8rem; color: var(--azul-dark); font-weight: 600; margin-bottom: 0.6rem; }
  .team-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

  /* ══ FORMA DE TRABAJAR ══ */
  #forma-trabajar { padding: 6rem 0; background: var(--base); overflow: hidden; }
  .process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .process-steps { display: flex; flex-direction: column; }
  .step-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); position: relative; }
  .step-item:last-child { border-bottom: none; }
  .step-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--azul); border-radius: 0 3px 3px 0; opacity: 0; transition: opacity 0.25s; }
  .step-item:hover .step-accent { opacity: 1; }
  .step-num { font-family: 'Playfair Display', serif; font-size: 0.72rem; font-weight: 700; color: var(--azul); letter-spacing: 0.1em; min-width: 36px; padding-top: 0.1rem; }
  .step-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; line-height: 1.3; }
  .step-text { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; transition: color 0.2s; }
  .step-item:hover .step-text { color: rgba(255,255,255,0.75); }
  .process-card { background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.18); border-radius: 20px; padding: 2.5rem; }
  .process-card-icon { width: 56px; height: 56px; background: var(--azul); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
  .process-card h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 1rem; }
  .process-card p { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 1.5rem; }
  .process-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .pillar { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.75); font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }

  /* ══ SERVICIOS ══ */
  #servicios { padding: 6rem 0; background: var(--crema); }
  .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
  .service-card { background: var(--white); border-radius: 16px; padding: 2rem; border: 1px solid #e0eaf4; transition: transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(56,189,248,0.12); }
  .service-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
  .icon-a { background: rgba(56,189,248,0.12); }
  .icon-b { background: rgba(14,77,114,0.07); }
  .icon-c { background: rgba(245,249,252,0.8); border: 1px solid #dbeafe; }
  .service-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--base); margin-bottom: 0.6rem; }
  .service-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
  .service-link { font-size: 0.82rem; font-weight: 600; color: var(--azul-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
  .service-link:hover { gap: 0.6rem; }

  /* ══ HORARIOS ══ */
  #horarios { padding: 6rem 0; background: var(--base); }
  .horarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 3rem; }
  .horarios-block { background: rgba(255,255,255,0.05); border: 1px solid rgba(56,189,248,0.15); border-radius: 20px; padding: 2rem; }
  .block-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
  .schedule-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.875rem; }
  .schedule-row:last-child { border-bottom: none; }
  .schedule-day { color: rgba(255,255,255,0.55); }
  .schedule-time { color: var(--white); font-weight: 500; }
  .schedule-time.closed { color: rgba(56,189,248,0.5); }
  .map-placeholder { background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.15); border-radius: 14px; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1rem; cursor: pointer; transition: background 0.2s; }
  .map-placeholder:hover { background: rgba(56,189,248,0.12); }
  .map-emoji { font-size: 2rem; }
  .map-text { font-size: 0.85rem; color: var(--azul); font-weight: 600; }
  .map-address { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
  .contact-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem; }
  .contact-item-icon { width: 36px; height: 36px; background: rgba(56,189,248,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }

  /* ══ KMF EDUCA ══ */
  #kmf-educa { padding: 6rem 0; background: var(--azul-claro); }
  .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
  .blog-card { border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid #dbeafe; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(56,189,248,0.12); }
  .blog-thumb { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
  .blog-body { padding: 1.25rem; }
  .blog-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azul-dark); margin-bottom: 0.4rem; }
  .blog-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.98rem; color: var(--base); line-height: 1.4; margin-bottom: 0.6rem; }
  .blog-excerpt { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.75rem; }
  .blog-meta { font-size: 0.72rem; color: #93c5fd; }

  /* ══ PAGOS ══ */
  #pagos { padding: 6rem 0; background: var(--crema); }
  .pagos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 3rem; }
  .block-heading { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--base); margin-bottom: 1rem; }
  .pagos-list { display: flex; flex-direction: column; gap: 0.75rem; }
  .pago-item { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid #e0eaf4; border-radius: 12px; padding: 1rem 1.25rem; transition: border-color 0.2s, box-shadow 0.2s; }
  .pago-item:hover { border-color: var(--azul); box-shadow: 0 4px 16px rgba(56,189,248,0.1); }
  .pago-icon { font-size: 1.4rem; }
  .pago-name { font-weight: 600; font-size: 0.9rem; color: var(--base); }
  .pago-sub { font-size: 0.78rem; color: var(--text-muted); }
  .convenios-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .convenio-chip { background: var(--white); border: 1px solid #e0eaf4; border-radius: 10px; padding: 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--base); text-align: center; transition: background 0.2s, border-color 0.2s; cursor: default; }
  .convenio-chip:hover { background: rgba(56,189,248,0.06); border-color: rgba(56,189,248,0.3); }
  .convenios-nota { margin-top: 1.25rem; padding: 1rem; background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.18); border-radius: 12px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

  /* ══ FAQ ══ */
  #faq { padding: 6rem 0; background: var(--base-deep); }
  .faq-list { display: flex; flex-direction: column; max-width: 760px; margin: 3rem auto 0; }
  .faq-item { border-bottom: 1px solid rgba(56,189,248,0.1); }
  .faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--white); gap: 1rem; transition: color 0.2s; }
  .faq-q:hover { color: var(--azul); }
  .faq-icon { width: 28px; height: 28px; background: rgba(56,189,248,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--azul); font-size: 1.1rem; flex-shrink: 0; transition: background 0.2s, transform 0.3s; line-height: 1; }
  .faq-item.open .faq-icon { background: var(--azul); color: var(--base); transform: rotate(45deg); }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s; font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.75; }
  .faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

  /* ══ CTA ══ */
  .cta-banner { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 100%); padding: 4.5rem 0; text-align: center; }
  .cta-banner h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--base); margin-bottom: 0.75rem; }
  .cta-banner p { color: rgba(14,77,114,0.7); font-size: 1rem; margin-bottom: 2rem; }

  /* ══ FOOTER ══ */
  footer { background: var(--base-deep); padding: 4rem 0 2rem; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(56,189,248,0.08); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 3rem; }
  .footer-logo { display: block; margin-bottom: 0.75rem; text-decoration: none; }
  .footer-logo img { height: 34px; width: auto; }
  .footer-tagline { font-size: 0.82rem; line-height: 1.6; max-width: 220px; }
  .footer-socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
  .social-icon { width: 34px; height: 34px; background: rgba(255,255,255,0.05); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
  .social-icon:hover { background: var(--azul); color: var(--base); }
  .footer-heading { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.82rem; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--azul); }
  .footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.83rem; color: rgba(255,255,255,0.4); margin-bottom: 0.6rem; line-height: 1.5; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }

  /* ══ RESPONSIVE ══ */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 3rem 0 2.5rem; }
    #inicio > div > div { padding-left: 0 !important; padding-top: 3rem !important; }
    .process-grid { grid-template-columns: 1fr; }
    .process-card { display: none; }
    .horarios-grid { grid-template-columns: 1fr; }
    .pagos-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(14,77,114,0.98); padding: 1.5rem; gap: 0.25rem; border-top: 1px solid rgba(56,189,248,0.15); }
    .nav-links.open a { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .convenios-list { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
  :target { scroll-margin-top: 80px; }


/* ═══════════════════════════════════════════
   Dropdown Menu
═══════════════════════════════════════════ */

/* ── DROPDOWN ── */
  .has-dropdown { position: relative; }
  .dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; user-select: none; }
  .nav-arrow { font-size: 0.65rem; transition: transform 0.25s; display: inline-block; }
  .has-dropdown.open .nav-arrow { transform: rotate(180deg); }

  /* Invisible bridge fills the gap so cursor never loses the menu */
  .has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 18px;
    background: transparent;
  }

  .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    background: rgba(8,54,82,0.99);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56,189,248,0.18);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 210px;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0.1rem;
    list-style: none;
    display: flex;
  }
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: rgba(8,54,82,0.99);
    border-left: 1px solid rgba(56,189,248,0.18);
    border-top: 1px solid rgba(56,189,248,0.18);
  }
  /* Invisible top padding so moving from toggle to menu doesn't drop */
  .dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    height: 16px;
  }

  .has-dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem !important;
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    white-space: nowrap;
    background: transparent !important;
    transition: background 0.15s, color 0.15s, padding-left 0.15s !important;
    text-decoration: none;
  }
  .dropdown-menu li a:hover {
    background: rgba(56,189,248,0.12) !important;
    color: #fff !important;
    padding-left: 1.25rem !important;
  }
  .dropdown-menu li a .dd-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }

  /* Mobile dropdown */
  @media (max-width: 640px) {
    .has-dropdown::after { display: none; }
    .dropdown-menu {
      position: static;
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: none !important;
      transition: none;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(56,189,248,0.12);
      border-radius: 8px;
      margin: 0.35rem 0 0 0.75rem;
      padding: 0.35rem;
      box-shadow: none;
      display: none;
    }
    .dropdown-menu::before,
    .dropdown-menu::after { display: none; }
    .has-dropdown.open .dropdown-menu { display: flex; }
    .dropdown-menu li a { padding: 0.6rem 0.85rem !important; }
    .dropdown-menu li a:hover { padding-left: 1rem !important; }
  }
