/* --- TRADUCCIÓN NATIVA TAILWIND PARA WIDGETS DE ELEMENTOR (KINETIC SEVEN) --- */
/* Modificado para prescindir de !important aumentando la especificidad semánticamente */

/* Elevamos la especificidad usando selectores anidados presentes en el theme y en Elementor. */
body .k-app-grid .font-headline,
body .elementor-widget .font-headline,
.font-headline.font-headline { font-family: var(--k-hero-font-display, var(--k-font-display, 'Space Grotesk', sans-serif)) !important; }

body .k-app-grid .font-body,
body .elementor-widget .font-body,
.font-body.font-body { font-family: var(--k-font-body, 'Lexend', sans-serif) !important; }

body .k-app-grid .font-black, body .elementor-widget .font-black, .font-black.font-black { font-weight: 900 !important; }
body .k-app-grid .font-bold, body .elementor-widget .font-bold, .font-bold.font-bold { font-weight: 700 !important; }
body .k-app-grid .font-medium, body .elementor-widget .font-medium, .font-medium.font-medium { font-weight: 500 !important; }

body .k-app-grid .italic, body .elementor-widget .italic, .italic.italic { font-style: italic !important; }
body .k-app-grid .uppercase, body .elementor-widget .uppercase, .uppercase.uppercase { text-transform: uppercase !important; }

body .k-app-grid .tracking-tighter, body .elementor-widget .tracking-tighter, .tracking-tighter.tracking-tighter { letter-spacing: -0.05em !important; }
body .k-app-grid .tracking-widest, body .elementor-widget .tracking-widest, .tracking-widest.tracking-widest { letter-spacing: 0.1em !important; }

body .k-app-grid .leading-none, body .elementor-widget .leading-none, .leading-none.leading-none { line-height: 1 !important; }
body .k-app-grid .leading-snug, body .elementor-widget .leading-snug, .leading-snug.leading-snug { line-height: 1.375 !important; }

.text-primary { color: var(--k-primary); }
.text-primary-container { color: var(--k-primary); }
.text-white { color: #ffffff; }

.bg-surface-container-high { background-color: var(--k-surface-2, #1c1b1b); }
.bg-primary-container { background-color: var(--k-primary); }

/* Opacidades sobre blanco base (Asignado al theme oscuro) */
.text-on-surface\/30 { color: rgba(229, 226, 225, 0.3); }
.text-on-surface\/50 { color: rgba(229, 226, 225, 0.5); }
.text-on-surface\/60 { color: rgba(229, 226, 225, 0.6); }
.text-on-surface\/70 { color: rgba(229, 226, 225, 0.7); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.text-center { text-align: center; }

.gap-12 { gap: 3rem; }
.gap-6 { gap: 1.5rem; }
.p-8 { padding: 2rem; }
.pr-4 { padding-right: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-4 { padding-left: 1rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.shrink-0 { flex-shrink: 0; }

.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.-right-4 { right: -1rem; }
.-bottom-4 { bottom: -1rem; }

/* Tipografía y Tamaños con Alta Especificidad para Elementor */
body .elementor-widget .text-sm, .text-sm.text-sm { font-size: 0.875rem !important; }
body .elementor-widget .text-lg, .text-lg.text-lg { font-size: 1.125rem !important; }
body .elementor-widget .text-xl, .text-xl.text-xl { font-size: 1.25rem !important; }
body .elementor-widget .text-2xl, .text-2xl.text-2xl { font-size: 1.5rem !important; }
body .elementor-widget .text-3xl, .text-3xl.text-3xl { font-size: 1.875rem !important; }
body .elementor-widget .text-4xl, .text-4xl.text-4xl { font-size: 2.25rem !important; }
body .elementor-widget .text-6xl, .text-6xl.text-6xl { font-size: 3.75rem !important; }
body .elementor-widget .text-9xl, .text-9xl.text-9xl { font-size: 8rem !important; }

.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-primary-container { border-color: var(--k-primary); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-outline-variant\/20 { border-color: rgba(255,255,255,0.1); }

.opacity-10 { opacity: 0.1; }
.opacity-50 { opacity: 0.5; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.group:hover .group-hover\:bg-primary-container { background-color: var(--k-primary); }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:text-white\/80 { color: rgba(255,255,255,0.8); }
.hover\:bg-primary-container:hover { background-color: var(--k-primary); }

@media (min-width: 640px) {
    body .elementor-widget .sm\:text-5xl, .sm\:text-5xl.sm\:text-5xl { font-size: 3rem; }
}
@media (min-width: 768px) {
    body .elementor-widget .md\:flex-row, .md\:flex-row.md\:flex-row { flex-direction: row; }
    body .elementor-widget .md\:text-7xl, .md\:text-7xl.md\:text-7xl { font-size: 4.5rem; }
}

/* Fallbacks puros (sin !important) para Elementor Customizer */
.k-widget-title-heading, .k-mega-title-heading {
    font-family: var(--k-hero-font-display, var(--k-font-display, 'Space Grotesk', sans-serif));
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--k-text-high);
}
@media (min-width: 640px) { .k-widget-title-heading, .k-mega-title-heading { font-size: 3rem; } }
@media (min-width: 768px) { .k-widget-title-heading, .k-mega-title-heading { font-size: 4.5rem; } }

