-- ============================================================================
-- MSUF - esES
--
-- Basic translations for Midnight Simple Unit Frames.
-- Keys are the original English UI strings.
--
-- Perf note:
-- This file is an immediate no-op unless the active locale is esES.
-- ============================================================================
local addonName, ns = ...

-- Fast exit for non-esES clients.
local loc = (ns and ns.LOCALE) or ((type(GetLocale) == "function" and GetLocale()) or "enUS")
if loc ~= "esES" then return end

ns = ns or {}
ns.LOCALE = loc
ns.L = ns.L or (_G and _G.MSUF_L) or {}
local L = ns.L
if not getmetatable(L) then
    setmetatable(L, { __index = function(t, k) return k end })
end
if _G then _G.MSUF_L = L end

local T = {
    ["Open MSUF Menu"] = "Abrir menú MSUF",
    ["Edit Mode"] = "Modo edición",
    ["Exit MSUF Edit Mode"] = "Salir del modo edición MSUF",
    ["Profiles"] = "Perfiles",
    ["Snap to grid"] = "Ajustar a la cuadrícula",
    ["On"] = "Activo",
    ["Off"] = "Inactivo",
    ["ON"] = "ACTIVO",
    ["OFF"] = "INACTIVO",
    ["Override"] = "Anulación",
    ["Overrides"] = "Anulaciones",
    ["Enable"] = "Activar",
    ["Cancel"] = "Cancelar",
    ["Top left"] = "Superior izquierda",
    ["Top right"] = "Superior derecha",
    ["Bottom left"] = "Inferior izquierda",
    ["Bottom right"] = "Inferior derecha",
    ["Center"] = "Centro",
    ["Left to player name"] = "Izquierda del nombre",
    ["Right to player name"] = "Derecha del nombre",
    ["Top Left"] = "Superior izquierda",
    ["Top Right"] = "Superior derecha",
    ["Bottom Left"] = "Inferior izquierda",
    ["Bottom Right"] = "Inferior derecha",
    ["Main Menu"] = "Menú principal",
    ["Quick tools & UI scale (same content as /msuf options)."] = "Herramientas rápidas y escala de UI (mismo contenido que /msuf options).",
    ["Profile: "] = "Perfil: ",
    ["   •   Edit Mode: "] = "   •   Modo edición: ",
    ["In combat"] = "En combate",
    ["Out of combat"] = "Fuera de combate",
    ["Quick Actions"] = "Acciones rápidas",
    ["Toggle Edit Mode"] = "Alternar modo edición",
    ["Enter MSUF Edit Mode to drag frames and adjust positions."] = "Entra en el modo edición MSUF para arrastrar marcos y ajustar posiciones.",
    ["Reset Frame Positions"] = "Restablecer posiciones",
    ["Resets MSUF frame positions + visibility to defaults (active profile)."] = "Restablece las posiciones y visibilidad MSUF a los valores predeterminados (perfil activo).",
    ["Profile"] = "Perfil",
    ["Active profile:"] = "Perfil activo:",
    ["Open Profiles"] = "Abrir perfiles",
    ["Show"] = "Mostrar",
    ["Hide"] = "Ocultar",
    ["Factory Reset"] = "Restablecimiento de fábrica",
    ["Hidden. Click Show to reveal slash commands + power tools."] = "Oculto. Haz clic en Mostrar para revelar comandos y herramientas avanzadas.",
    ["Scale & Layout"] = "Escala y disposición",
    ["Presets"] = "Preajustes",
    ["Load preset"] = "Cargar preajuste",
    ["Applies the selected preset to your current active profile. This overwrites settings (export first if unsure)."] = "Aplica el preajuste seleccionado a tu perfil activo. Esto sobrescribe ajustes (exporta primero si no estás seguro).",
    ["Global UI Scale"] = "Escala global de UI",
    ["Global UI Scale: 1080"] = "Escala global: 1080",
    ["Global UI Scale: 1440"] = "Escala global: 1440",
    ["Global UI Scale: 4K"] = "Escala global: 4K",
    ["Global UI Scale: Auto"] = "Escala global: Auto",
    ["Scaling OFF"] = "Escalado desactivado",
    ["Disable ALL MSUF scaling"] = "Desactivar TODO el escalado MSUF",
    ["Reset"] = "Restablecer",
    ["Reset UI Scale"] = "Restablecer escala de UI",
    ["Dashboard"] = "Panel de control",
    ["Unit Frames"] = "Marcos de unidad",
    ["Player"] = "Jugador",
    ["Target"] = "Objetivo",
    ["Target of Target"] = "Objetivo del objetivo",
    ["ToT"] = "OdO",
    ["Focus"] = "Foco",
    ["Boss Frames"] = "Marcos de jefe",
    ["Boss"] = "Jefe",
    ["Pet"] = "Mascota",
    ["Frame Basics"] = "Básicos del marco",
    ["Enable this frame"] = "Activar este marco",
    ["Show name"] = "Mostrar nombre",
    ["Show HP text"] = "Mostrar texto de PV",
    ["Show power text"] = "Mostrar texto de poder",
    ["Reverse fill (HP/Power)"] = "Relleno inverso (PV/Poder)",
    ["Portrait Off"] = "Retrato desactivado",
    ["2D Portrait Left"] = "Retrato 2D izquierda",
    ["2D Portrait Right"] = "Retrato 2D derecha",
    ["3D Portrait Left"] = "Retrato 3D izquierda",
    ["3D Portrait Right"] = "Retrato 3D derecha",
    ["Class Icon Left (players)"] = "Icono de clase izquierda (jugadores)",
    ["Class Icon Right (players)"] = "Icono de clase derecha (jugadores)",
    ["Invert boss order"] = "Invertir orden de jefes",
    ["Player Alpha"] = "Opacidad del jugador",
    ["Target Alpha"] = "Opacidad del objetivo",
    ["Target of Target Alpha"] = "Opacidad objetivo del objetivo",
    ["Focus Alpha"] = "Opacidad del foco",
    ["Boss Alpha"] = "Opacidad del jefe",
    ["Pet Alpha"] = "Opacidad de la mascota",
    ["Sync both"] = "Sincronizar ambos",
    ["Keep text + portrait visible"] = "Mantener texto + retrato visibles",
    ["Alpha sliders affect"] = "Los controles de opacidad afectan",
    ["Foreground"] = "Primer plano",
    ["Background"] = "Fondo",
    ["Alpha in combat"] = "Opacidad en combate",
    ["Alpha out of combat"] = "Opacidad fuera de combate",
    ["Free (global anchor)"] = "Libre (ancla global)",
    ["Player frame"] = "Marco del jugador",
    ["Target frame"] = "Marco del objetivo",
    ["Anchor focus to"] = "Anclar foco a",
    ["Castbar"] = "Barra de lanzamiento",
    ["Inline Text"] = "Texto integrado",
    ["Show ToT text in Target frame"] = "Mostrar texto OdO en marco objetivo",
    ["Enable player castbar"] = "Activar barra de lanzamiento del jugador",
    ["Enable target castbar"] = "Activar barra de lanzamiento del objetivo",
    ["Enable focus castbar"] = "Activar barra de lanzamiento del foco",
    ["Enable boss castbars"] = "Activar barras de lanzamiento de jefes",
    ["Show player cast time"] = "Mostrar tiempo de lanzamiento del jugador",
    ["Show target cast time"] = "Mostrar tiempo de lanzamiento del objetivo",
    ["Show focus cast time"] = "Mostrar tiempo de lanzamiento del foco",
    ["Show boss cast time"] = "Mostrar tiempo de lanzamiento del jefe",
    ["Icon"] = "Icono",
    ["Text"] = "Texto",
    ["Show interrupt"] = "Mostrar interrupción",
    ["Indicator"] = "Indicador",
    ["Show leader/assist icon"] = "Mostrar icono de líder/asistente",
    ["Show raid marker icon"] = "Mostrar icono de marca de banda",
    ["Show level"] = "Mostrar nivel",
    ["Anchor"] = "Ancla",
    ["Size"] = "Tamaño",
    ["Resets current indicator"] = "Restablece el indicador actual",
    ["Resets X/Y, Anchor and Size back to defaults."] = "Restablece X/Y, ancla y tamaño a los valores predeterminados.",
    ["Anchor pet to"] = "Anclar mascota a",
    ["Boss spacing"] = "Espaciado de jefes",
    ["Status icons"] = "Iconos de estado",
    ["Combat"] = "Combate",
    ["Rested (player only)"] = "Descansado (solo jugador)",
    ["Incoming Rez"] = "Resurrección entrante",
    ["Test mode"] = "Modo prueba",
    ["Status icons test mode"] = "Modo prueba de iconos de estado",
    ["Use Midnight style icons"] = "Usar iconos estilo Midnight",
    ["Rez"] = "Resurrección",
    ["Rested"] = "Descansado",
    ["Options"] = "Opciones",
    ["Bars"] = "Barras",
    ["Bar appearance"] = "Apariencia de barras",
    ["Absorb display"] = "Mostrar absorción",
    ["Absorb Display"] = "Mostrar absorción",
    ["Absorb off"] = "Absorción desactivada",
    ["Absorb bar"] = "Barra de absorción",
    ["Absorb bar + text"] = "Barra de absorción + texto",
    ["Absorb text only"] = "Solo texto de absorción",
    ["Absorb bar anchoring"] = "Anclaje de la barra de absorción",
    ["Anchor to healthbar edge (default)"] = "Anclar al borde de la barra de vida (por defecto)",
    ["Anchor to inside padding (prevents clipping)"] = "Anclar al margen interior (evita recortes)",
    ["Absorb bar texture (SharedMedia)"] = "Textura de la barra de absorción (SharedMedia)",
    ["Test absorb textures"] = "Probar texturas de absorción",
    ["Bar texture (SharedMedia)"] = "Textura de barra (SharedMedia)",
    ["Gradient Options"] = "Opciones de degradado",
    ["Border & Text Options"] = "Opciones de borde y texto",
    ["Enable HP bar gradient"] = "Activar degradado de barra PV",
    ["Enable power bar gradient"] = "Activar degradado de barra de poder",
    ["Gradient strength"] = "Intensidad del degradado",
    ["Outline thickness"] = "Grosor del contorno",
    ["Power Bar Settings"] = "Ajustes de la barra de poder",
    ["Show power bar on target frame"] = "Mostrar barra de poder en marco objetivo",
    ["Show power bar on boss frames"] = "Mostrar barra de poder en marcos de jefe",
    ["Show power bar on player frames"] = "Mostrar barra de poder en marcos de jugador",
    ["Show power bar on focus"] = "Mostrar barra de poder en el foco",
    ["Power bar height"] = "Altura de la barra de poder",
    ["Embed power bar into health bar"] = "Incrustar barra de poder en la barra de vida",
    ["Show power bar border"] = "Mostrar borde de la barra de poder",
    ["Border thickness"] = "Grosor del borde",
    ["Textmode HP / Power"] = "Modo texto PV / Poder",
    ["Text Separators"] = "Separadores de texto",
    ["Health (HP)"] = "Vida (PV)",
    ["Power"] = "Poder",
    ["Selected: Player"] = "Seleccionado: Jugador",
    ["HP Spacer on/off"] = "Espaciado PV activado/desactivado",
    ["HP Spacer (X)"] = "Espaciado PV (X)",
    ["Power Spacer on/off"] = "Espaciado poder activado/desactivado",
    ["Power Spacer (X)"] = "Espaciado poder (X)",
    ["Bar Highlight Border"] = "Borde de resaltado",
    ["Highlight border thickness"] = "Grosor del borde de resaltado",
    ["Aggro border off"] = "Borde de aggro desactivado",
    ["Aggro border on"] = "Borde de aggro activado",
    ["Test"] = "Prueba",
    ["Dispel border off"] = "Borde de disipación desactivado",
    ["Dispel border on"] = "Borde de disipación activado",
    ["Purge border off"] = "Borde de purgación desactivado",
    ["Purge border on"] = "Borde de purgación activado",
    ["Drag to reorder"] = "Arrastrar para reordenar",
    ["Dispel"] = "Disipar",
    ["Aggro"] = "Aggro",
    ["Purge"] = "Purgar",
    ["Bar settings"] = "Ajustes de barra",
    ["Current"] = "Actual",
    ["Max"] = "Máx",
    ["Cur/Max"] = "Act/Máx",
    ["Percent"] = "Porcentaje",
    ["Cur + Percent"] = "Act + Porcentaje",
    ["Cur/Max + Percent"] = "Act/Máx + Porcentaje",
    ["Full value only"] = "Solo valor completo",
    ["Full value + %"] = "Valor completo + %",
    ["% + Full value"] = "% + Valor completo",
    ["Only %"] = "Solo %",
    ["Text Spacers"] = "Espaciadores de texto",
    ["Selected: Shared"] = "Seleccionado: Compartido",
    ["Reset all overrides"] = "Restablecer todas las anulaciones",
    ["Selected: "] = "Seleccionado: ",
    ["Fonts"] = "Fuentes",
    ["Font Settings"] = "Ajustes de fuente",
    ["Font color & style"] = "Color y estilo de fuente",
    ["Global font"] = "Fuente global",
    ["Text sizes"] = "Tamaños de texto",
    ["Name"] = "Nombre",
    ["HP"] = "PV",
    ["Text style"] = "Estilo de texto",
    ["Name colors"] = "Colores de nombre",
    ["Color player names by class"] = "Colorear nombres por clase",
    ["Name display"] = "Visualización del nombre",
    ["Truncation style"] = "Estilo de truncamiento",
    ["Max name length"] = "Longitud máxima del nombre",
    ["Reserved space"] = "Espacio reservado",
    ["Reset overrides"] = "Restablecer anulaciones",
    ["Overrides: -"] = "Anulaciones: -",
    ["Overrides: "] = "Anulaciones: ",
    ["Heal prediction"] = "Predicción de sanación",
    ["Auras 2.0"] = "Auras 2.0",
    ["MSUF Edit Mode"] = "Modo edición MSUF",
    ["Enable Auras 2.0"] = "Activar Auras 2.0",
    ["Enable filters"] = "Activar filtros",
    ["Edit filters:"] = "Editar filtros:",
    ["Preview in Edit Mode"] = "Vista previa en modo edición",
    ["Units"] = "Unidades",
    ["Boss 1-5"] = "Jefe 1-5",
    ["Display"] = "Visualización",
    ["Boss 1"] = "Jefe 1",
    ["Boss 2"] = "Jefe 2",
    ["Boss 3"] = "Jefe 3",
    ["Boss 4"] = "Jefe 4",
    ["Boss 5"] = "Jefe 5",
    ["Shared"] = "Compartido",
    ["Show Buffs"] = "Mostrar beneficios",
    ["Show Debuffs"] = "Mostrar perjuicios",
    ["Highlight own buffs"] = "Resaltar mis beneficios",
    ["Highlight own debuffs"] = "Resaltar mis perjuicios",
    ["Show cooldown swipe"] = "Mostrar barrido de recarga",
    ["Show stack count"] = "Mostrar cantidad de acumulaciones",
    ["Show cooldown text"] = "Mostrar texto de recarga",
    ["Show tooltip"] = "Mostrar descripción emergente",
    ["Hide permanent buffs"] = "Ocultar beneficios permanentes",
    ["Dispel-type borders"] = "Bordes por tipo de disipación",
    ["Only my buffs"] = "Solo mis beneficios",
    ["Only my debuffs"] = "Solo mis perjuicios",
    ["Max Buffs"] = "Máx beneficios",
    ["Max Debuffs"] = "Máx perjuicios",
    ["Block spacing"] = "Espaciado de bloque",
    ["Icons per row"] = "Iconos por fila",
    ["Wrap rows"] = "Ajustar filas",
    ["Stack Anchor"] = "Ancla de pila",
    ["Buff Anchor"] = "Ancla de beneficios",
    ["Debuff Anchor"] = "Ancla de perjuicios",
    ["Growth"] = "Crecimiento",
    ["Buff Growth"] = "Crecimiento de beneficios",
    ["Debuff Growth"] = "Crecimiento de perjuicios",
    ["Private Growth"] = "Crecimiento privado",
    ["Timer colors"] = "Colores de temporizador",
    ["Advanced"] = "Avanzado",
    ["Include"] = "Incluir",
    ["Include boss buffs"] = "Incluir beneficios de jefe",
    ["Include boss debuffs"] = "Incluir perjuicios de jefe",
    ["Private Auras"] = "Auras privadas",
    ["Enabled"] = "Activado",
    ["Preview"] = "Vista previa",
    ["Debuff types"] = "Tipos de perjuicio",
    ["Magic"] = "Magia",
    ["Curse"] = "Maldición",
    ["Poison"] = "Veneno",
    ["Disease"] = "Enfermedad",
    ["Enrage"] = "Enfurecer",
    ["2nd row down"] = "2ª fila (abajo)",
    ["2nd row up"] = "2ª fila (arriba)",
    ["Separate rows"] = "Filas separadas",
    ["Single row (Mixed)"] = "Fila única (Mixta)",
    ["Grow Right"] = "Crecer a la derecha",
    ["Grow Left"] = "Crecer a la izquierda",
    ["Vertical Up"] = "Vertical arriba",
    ["Vertical Down"] = "Vertical abajo",
    ["Focus Kick"] = "Patada de foco",
    ["Focus Kick Icon"] = "Icono de patada de foco",
    ["Behavior"] = "Comportamiento",
    ["Style"] = "Estilo",
    ["Empowered casts"] = "Lanzamientos potenciados",
    ["Castbar fill direction"] = "Dirección de relleno de la barra",
    ["Right to left (default)"] = "Derecha a izquierda (por defecto)",
    ["Left to right"] = "Izquierda a derecha",
    ["Castbar texture"] = "Textura de la barra de lanzamiento",
    ["Castbar background texture"] = "Textura de fondo de la barra",
    ["Name shortening"] = "Acortamiento de nombre",
    ["Miscellaneous"] = "Varios",
    ["Updates"] = "Actualizaciones",
    ["Indicators"] = "Indicadores",
    ["Blizzard frames"] = "Marcos de Blizzard",
    ["Disable Blizzard unitframes"] = "Desactivar marcos de Blizzard",
    ["Status indicators"] = "Indicadores de estado",
    ["Show Dead"] = "Mostrar Muerto",
    ["Show Ghost"] = "Mostrar Fantasma",
    ["Show AFK"] = "Mostrar AUS",
    ["Show DND"] = "Mostrar NM",
    ["Range fade"] = "Desvanecimiento por distancia",
    ["Colors"] = "Colores",
    ["Global font color"] = "Color de fuente global",
    ["Class bar colors"] = "Colores de barra por clase",
    ["Bar mode"] = "Modo de barra",
    ["Unitframe Colors"] = "Colores de marcos de unidad",
    ["Castbar colors"] = "Colores de la barra de lanzamiento",
    ["Mouseover highlight"] = "Resaltado al pasar el ratón",
    ["Gameplay"] = "Jugabilidad",
    ["Combat Timer"] = "Temporizador de combate",
    ["Combat Enter/Leave"] = "Entrada/Salida de combate",
    ["Modules"] = "Módulos",
    ["Enable MSUF Style"] = "Activar estilo MSUF",
    ["Rounded unitframes"] = "Marcos de unidad redondeados",
    ["Reset profile"] = "Restablecer perfil",
    ["Delete profile"] = "Eliminar perfil",
    ["New"] = "Nuevo",
    ["Existing profiles"] = "Perfiles existentes",
    ["Profile export / import"] = "Exportar / importar perfil",
    ["Import"] = "Importar",
    ["Export"] = "Exportar",
    ["Legacy Import"] = "Importación legacy",
    ["Editing: %s (X: %d, Y: %d)"] = "Editando: %s (X: %d, Y: %d)",
    ["Sizing: %s (W: %d, H: %d)"] = "Dimensionando: %s (A: %d, Al: %d)",
    ["MODE: SIZE"] = "MODO: TAMAÑO",
    ["MODE: POSITION"] = "MODO: POSICIÓN",
    ["Positioning"] = "Posicionamiento",
    ["Overlay"] = "Superposición",
    ["Frames"] = "Marcos",
    ["Aura Preview"] = "Vista previa de auras",
    ["Boss Preview"] = "Vista previa de jefes",
    ["Cancel Changes"] = "Cancelar cambios",
    ["Reset Frame"] = "Restablecer marco",
    ["MSUF Edit"] = "Edición MSUF",
    ["Frame"] = "Marco",
    ["Offset X:"] = "Desfase X:",
    ["Offset Y:"] = "Desfase Y:",
    ["Width:"] = "Ancho:",
    ["Height:"] = "Alto:",
    ["Right"] = "Derecha",
    ["Left"] = "Izquierda",
    ["Name: "] = "Nombre: ",
    ["HP: "] = "PV: ",
    ["Power: "] = "Poder: ",
    ["Power Bar"] = "Barra de poder",
    ["Copy"] = "Copiar",
    ["Copy to"] = "Copiar a",
    ["Done"] = "Hecho",
    ["Link"] = "Enlace",
    ["Navigation"] = "Navegación",
    ["R"] = "R",
    ["Thank you for using MSUF."] = "Gracias por usar MSUF.",
    ["Tip:"] = "Consejo:",
    ["Tip: /msuf opens the menu."] = "Consejo: /msuf abre el menú.",
    ["Layout"] = "Disposición",
    ["Spacing"] = "Espaciado",
    ["Font size"] = "Tamaño de fuente",
    ["Icon size"] = "Tamaño de icono",
    ["X offset"] = "Desfase X",
    ["Y offset"] = "Desfase Y",
    ["Lock position"] = "Bloquear posición",
    ["Timer size"] = "Tamaño del temporizador",
    ["Text size"] = "Tamaño de texto",
    ["Duration (s)"] = "Duración (s)",
    ["Current: "] = "Actual: ",
    ["Midnight Simple Unit Frames"] = "Midnight Simple Unit Frames",
}

for k, v in pairs(T) do
    L[k] = v
end
