/* ═══════════════════════════════════════════════
   BLOG STYLES
═══════════════════════════════════════════════ */

/* Custom Cursor */
@media (min-width: 1025px) {
  .cursor {
    position: fixed; pointer-events: none; z-index: 99999;
    width: 10px; height: 10px;
    background: #00D4C7;
    border-radius: 50%;
    top: 0; left: 0;
    transition: width .2s, height .2s, opacity .2s;
    box-shadow: 0 0 8px rgba(0, 212, 199, 0.8);
  }
  .cursor-ring {
    position: fixed; pointer-events: none; z-index: 99998;
    width: 36px; height: 36px;
    border: 1.5px solid #00D4C7;
    border-radius: 50%;
    top: 0; left: 0;
    opacity: 0.6;
  }
  body { cursor: none; }
  a, button, [role=button] { cursor: none; }
  .cursor.hover { width: 20px; height: 20px; opacity: 0.7; }
  .cursor-ring.hover { width: 56px; height: 56px; opacity: 0.3; }
}

/* ═══ LANGUAGE SWITCHER — botón circular con bandera ═══ */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: all var(--transition);
  overflow: hidden;
  cursor: pointer;
}
.lang-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px) scale(1.05);
}
.lang-switcher.open .lang-btn {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink2);
  transition: all 0.2s ease;
  text-align: left;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.lang-option.active { color: var(--accent); background: var(--accent-glow); }
.lang-flag, .lang-flag-current { font-size: 1.15rem; line-height: 1; }

[data-theme="light"] .lang-dropdown {
  background: rgba(255, 255, 255, 0.98);
}
.lang-flag, .lang-flag-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-flag svg, .lang-flag-current svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bandera dentro del botón circular (más grande, recortada en círculo) */
.lang-flag-current {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Bandera dentro de cada opción del desplegable (rectangular, esquinas suaves) */
.lang-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
}

.lang-option {
  gap: 0.65rem;
}

@media (max-width: 1150px) {
  .lang-switcher { order: -1; }
}
.lang-dropdown::-webkit-scrollbar { width: 5px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
