/**
 * Profic — Header + Hero + Footer (Figma Prueba-WPFIG).
 * Colores/tipografía base en Site Kit; acá solo lo que Elementor no reproduce.
 * Nav (header/footer) usa el widget nativo "Nav Menu" de Elementor Pro,
 * que renderiza <nav class="elementor-nav-menu__container"><ul class="elementor-nav-menu">
 * <li class="menu-item"><a class="elementor-item">...</a></li></ul></nav> —
 * las reglas de abajo targetean esas clases nativas, no HTML propio.
 */

/* --- Site shell --- */
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    background-color: #000000;
    font-family: 'Amsi Pro', sans-serif;
    overflow-x: clip;
    max-width: 100%;
}

/* Forzar unificación del fondo del home — Figma base #000000 */
body.home,
body.home[class*="elementor-kit-"],
.profic-page {
    background-color: #000000 !important;
    background: #000000 !important;
    overflow-x: clip !important;
    max-width: 100% !important;
    position: relative;
    z-index: 0;
}

/*
 * =============================================================================
 * FONDO HOME CONTINUO — Design-Profic-Mike
 * =============================================================================
 * Un solo “lienzo” en body.home::before (detrás del contenido). Los widgets van
 * transparentes encima; NO duplicar glows dentro de cada widget.
 *
 * TOKENS DE COLOR (ajustá acá):
 *   --profic-glow-violet / --profic-glow-magenta  → hex de marca
 *   --profic-glow-violet-rgb / --profic-glow-magenta-rgb  → para rgba()
 *
 * CAPAS (círculo + posición + opacidad + tamaño):
 *   --profic-fondo-hero-violet-*     círculo violeta zona Hero (FONDO Gradiente)
 *   --profic-fondo-hero-magenta-*    círculo magenta zona Hero
 *   --profic-fondo-mision-violet-*   círculo violeta Misión / CEO
 *   --profic-fondo-testimonios-violet-* círculo violeta Slider Testimonios
 *   --profic-fondo-mid-violet-*      círculo violeta SEO / Servicios
 *   --profic-fondo-casos-violet-*     círculo violeta Casos (derecha)
 *   --profic-fondo-diferencial-left-*  semicírculo violeta Diferencial (x 0%)
 *   --profic-fondo-diferencial-right-* semicírculo violeta Diferencial (x 100%)
 *   --profic-fondo-partner-left-*    violeta Partner (izquierda)
 *   --profic-fondo-low-violet-*      círculo suave Contacto (abajo)
 *
 * Para apagar una capa: --profic-fondo-<nombre>-opacity: 0;
 * =============================================================================
 */

 /* TODO: Ajustar patrones de fondo de acuerdo a los colores de la marca. */
/* Clase maestra + tokens (body y contenedor comparten variables) */
body.home:has(.profic-fondos-armonicos),
.profic-fondos-armonicos {
    /* --- Colores marca (Figma) --- */
    --profic-bg-base: #000000;
    --profic-glow-violet: #4f10cd;
    --profic-glow-violet-rgb: 79, 16, 205;
    --profic-glow-magenta: #b71694;
    --profic-glow-magenta-rgb: 183, 22, 148;
    --profic-glow-indigo: #7c3aed;
    --profic-glow-indigo-rgb: 124, 58, 237;

    /* --- Capa 1: Hero violeta (círculo, ≈ fondo-gradiente.png arriba) --- */
    --profic-fondo-hero-violet-size: 800px;
    --profic-fondo-hero-violet-x: 78%;
    --profic-fondo-hero-violet-y: 2%;
    --profic-fondo-hero-violet-opacity: 0.42;
    --profic-fondo-hero-violet-fade: 80%;

    /* --- Capa 2: Hero magenta (círculo, ≈ fondo-gradiente.png derecha) --- */
    --profic-fondo-hero-magenta-size: 700px;
    --profic-fondo-hero-magenta-x: 110%;
    --profic-fondo-hero-magenta-y: 4%;
    --profic-fondo-hero-magenta-opacity: 0.38;
    --profic-fondo-hero-magenta-fade: 90%;

    /* --- Capa 3: Misión / CEO (diagonal+Bruno ≈ y 2542 / 12111 = 21%, x izq.) --- */
    --profic-fondo-mision-violet-size: 900px;
    --profic-fondo-mision-violet-x: 34%;
    --profic-fondo-mision-violet-y: 21%;
    --profic-fondo-mision-violet-opacity: 0.38;
    --profic-fondo-mision-violet-fade: 68%;
    --profic-fondo-mision-violet-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 3b: Testimonios (Figma Slider y≈3261 / 12111 ≈ 27%; círculo propio, no el de Misión) --- */
    --profic-fondo-testimonios-violet-size: 800px;
    --profic-fondo-testimonios-violet-x: 40%;
    --profic-fondo-testimonios-violet-y: 28%;
    --profic-fondo-testimonios-violet-opacity: 0.25;
    --profic-fondo-testimonios-violet-fade: 62%;

    /* --- Capa 4: Mid violeta (SEO → Servicios) --- */
    --profic-fondo-mid-violet-size: 1000px;
    --profic-fondo-mid-violet-x: -10%;
    --profic-fondo-mid-violet-y: 39%;
    --profic-fondo-mid-violet-opacity: 0.34;
    --profic-fondo-mid-violet-fade: 68%;
    --profic-fondo-mid-violet-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 5: Violeta Casos / Diferencial (derecha) — color: --profic-glow-violet #4f10cd --- */
    --profic-fondo-casos-violet-size: 900px;
    --profic-fondo-casos-violet-x: 110%;
    --profic-fondo-casos-violet-y: 45%;
    --profic-fondo-casos-violet-opacity: 0.56;
    --profic-fondo-casos-violet-fade: 98%;
    --profic-fondo-casos-violet-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 6: Diferencial izquierda (semicírculo, borde x 0%) — violeta #4f10cd --- */
    --profic-fondo-diferencial-left-size: 500px;
    --profic-fondo-diferencial-left-x: 0%;
    --profic-fondo-diferencial-left-y: 63%;
    --profic-fondo-diferencial-left-opacity: 0.26;
    --profic-fondo-diferencial-left-fade: 90%;
    --profic-fondo-diferencial-left-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 7: Diferencial derecha (semicírculo, borde x 100%) — violeta #4f10cd --- */
    --profic-fondo-diferencial-right-size: 700px;
    --profic-fondo-diferencial-right-x: 100%;
    --profic-fondo-diferencial-right-y: 65%;
    --profic-fondo-diferencial-right-opacity: 0.32;
    --profic-fondo-diferencial-right-fade: 90%;
    --profic-fondo-diferencial-right-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 8: Partner izquierda — violeta #4f10cd --- */
    --profic-fondo-partner-left-size: 800px;
    --profic-fondo-partner-left-x: 0%;
    --profic-fondo-partner-left-y: 74%;
    --profic-fondo-partner-left-opacity: 0.34;
    --profic-fondo-partner-left-fade: 88%;
    --profic-fondo-partner-left-color-rgb: var(--profic-glow-violet-rgb);

    /* --- Capa 9: Low violeta (Contacto) --- */
    --profic-fondo-low-violet-size: 1000px;
    --profic-fondo-low-violet-x: 70%;
    --profic-fondo-low-violet-y: 95%;
    --profic-fondo-low-violet-opacity: 0.38;
    --profic-fondo-low-violet-fade: 85%;
}

/* Lienzo continuo en body: no comparte stacking con widgets (evita apagado al hover) */
body.home:has(.profic-fondos-armonicos) {
    position: relative;
    background-color: var(--profic-bg-base, #000000) !important;
}

body.home:has(.profic-fondos-armonicos)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(
            circle var(--profic-fondo-hero-violet-size) at var(--profic-fondo-hero-violet-x) var(--profic-fondo-hero-violet-y),
            rgba(var(--profic-glow-violet-rgb), var(--profic-fondo-hero-violet-opacity)) 0%,
            transparent var(--profic-fondo-hero-violet-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-hero-magenta-size) at var(--profic-fondo-hero-magenta-x) var(--profic-fondo-hero-magenta-y),
            rgba(var(--profic-glow-magenta-rgb), var(--profic-fondo-hero-magenta-opacity)) 0%,
            transparent var(--profic-fondo-hero-magenta-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-mision-violet-size) at var(--profic-fondo-mision-violet-x) var(--profic-fondo-mision-violet-y),
            rgba(var(--profic-glow-indigo-rgb), var(--profic-fondo-mision-violet-opacity)) 0%,
            transparent var(--profic-fondo-mision-violet-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-testimonios-violet-size) at var(--profic-fondo-testimonios-violet-x) var(--profic-fondo-testimonios-violet-y),
            rgba(var(--profic-glow-indigo-rgb), var(--profic-fondo-testimonios-violet-opacity)) 0%,
            transparent var(--profic-fondo-testimonios-violet-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-mid-violet-size) at var(--profic-fondo-mid-violet-x) var(--profic-fondo-mid-violet-y),
            rgba(var(--profic-glow-indigo-rgb), var(--profic-fondo-mid-violet-opacity)) 0%,
            transparent var(--profic-fondo-mid-violet-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-casos-violet-size) at var(--profic-fondo-casos-violet-x) var(--profic-fondo-casos-violet-y),
            rgba(var(--profic-fondo-casos-violet-color-rgb), var(--profic-fondo-casos-violet-opacity)) 0%,
            transparent var(--profic-fondo-casos-violet-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-diferencial-left-size) at var(--profic-fondo-diferencial-left-x) var(--profic-fondo-diferencial-left-y),
            rgba(var(--profic-fondo-diferencial-left-color-rgb), var(--profic-fondo-diferencial-left-opacity)) 0%,
            transparent var(--profic-fondo-diferencial-left-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-diferencial-right-size) at var(--profic-fondo-diferencial-right-x) var(--profic-fondo-diferencial-right-y),
            rgba(var(--profic-fondo-diferencial-right-color-rgb), var(--profic-fondo-diferencial-right-opacity)) 0%,
            transparent var(--profic-fondo-diferencial-right-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-partner-left-size) at var(--profic-fondo-partner-left-x) var(--profic-fondo-partner-left-y),
            rgba(var(--profic-fondo-partner-left-color-rgb), var(--profic-fondo-partner-left-opacity)) 0%,
            transparent var(--profic-fondo-partner-left-fade)
        ),
        radial-gradient(
            circle var(--profic-fondo-low-violet-size) at var(--profic-fondo-low-violet-x) var(--profic-fondo-low-violet-y),
            rgba(var(--profic-glow-violet-rgb), var(--profic-fondo-low-violet-opacity)) 0%,
            transparent var(--profic-fondo-low-violet-fade)
        );
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

#mision,
#servicios,
#casos,
#blog,
#contacto {
    scroll-margin-top: 120px;
}

.profic-fondos-armonicos {
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate;
    background: transparent !important;
    /* Figma: secciones Desktop apiladas sin gap */
    --gap: 0px !important;
    --row-gap: 0px !important;
    --column-gap: 0px !important;
    --widgets-spacing: 0px 0px !important;
    --widgets-spacing-row: 0px !important;
    --widgets-spacing-column: 0px !important;
    gap: 0 !important;
    row-gap: 0 !important;
}

/* Legacy: ya no pinta el lienzo (queda en body::before) */
.profic-fondos-armonicos::before {
    display: none !important;
    content: none !important;
}

/* Contenido por encima del lienzo */
.profic-fondos-armonicos > .elementor-widget,
.profic-fondos-armonicos > .e-con,
.profic-fondos-armonicos .e-con-inner {
    position: relative;
    z-index: 1;
}

/*
 * Glows duplicados dentro de widgets → OFF (el lienzo continuo los reemplaza).
 * Se mantienen: líneas curvas, estrella SEO, rejilla Misión, cards internas.
 */
.profic-fondos-armonicos .profic-hero-glow-rect-container,
.profic-fondos-armonicos .profic-hero-glow-grad-container,
.profic-fondos-armonicos .profic-servicios-bg-gradient,
.profic-fondos-armonicos .profic-diferencial-bg-grad,
.profic-fondos-armonicos .profic-partner-bg-glow,
.profic-fondos-armonicos .profic-contacto-bg-glow {
    display: none !important;
}

/*
 * Anti-“apagado” al mover el mouse:
 * - Lienzo en body::before (fuera del árbol de widgets)
 * - mix-blend / backdrop-filter de hijos no deben recomponer el fondo global
 */
body.home:has(.profic-fondos-armonicos) .elementor,
body.home:has(.profic-fondos-armonicos) .elementor-location-single,
body.home:has(.profic-fondos-armonicos) #page,
body.home:has(.profic-fondos-armonicos) main {
    position: relative;
    z-index: 1;
}

body.home:has(.profic-fondos-armonicos) .elementor,
body.home:has(.profic-fondos-armonicos) .elementor-location-single,
body.home:has(.profic-fondos-armonicos) .e-con,
body.home:has(.profic-fondos-armonicos) .e-con-inner {
    background-color: transparent !important;
    background: transparent !important;
}

body.home:has(.profic-fondos-armonicos) .e-con:hover,
body.home:has(.profic-fondos-armonicos) .e-con-inner:hover,
body.home:has(.profic-fondos-armonicos) .elementor-element:hover {
    background-color: transparent !important;
    background: transparent !important;
}

.profic-fondos-armonicos,
.profic-fondos-armonicos * {
    mix-blend-mode: normal !important;
}

.profic-fondos-armonicos .profic-hero-chat-bubble,
.profic-fondos-armonicos .profic-dialogue-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profic-fondos-armonicos .profic-hero-chat-bubble {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.profic-fondos-armonicos .profic-dialogue-card {
    background: rgba(255, 255, 255, 0.1) !important;
}

.profic-fondos-armonicos .profic-testimonial-slider-wrapper {
    isolation: isolate !important;
}

.profic-fondos-armonicos .profic-footer-wrapper {
    isolation: auto !important;
}

body.home:has(.profic-fondos-armonicos) .profic-menu-wrapper::before {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 8, 0.2) 0%,
        rgba(5, 5, 8, 0.07) 45%,
        rgba(5, 5, 8, 0) 100%
    );
}

.profic-fondos-armonicos .elementor-element:hover,
.profic-fondos-armonicos .e-con:hover,
.profic-fondos-armonicos .elementor-widget:hover,
.profic-fondos-armonicos .elementor-widget-container:hover,
.profic-fondos-armonicos .e-con-inner:hover {
    background-color: transparent !important;
    background: transparent !important;
}

.profic-fondos-armonicos .profic-logo-carousel-wrapper.has-overlay::before {
    background: linear-gradient(
        to right,
        var(--profic-bg-base, #000000) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

.profic-fondos-armonicos .profic-logo-carousel-wrapper.has-overlay::after {
    background: linear-gradient(
        to left,
        var(--profic-bg-base, #000000) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Anula el margin-block-end:20px del kit entre widgets hermanos del home. */
.profic-fondos-armonicos > .elementor-widget,
.profic-fondos-armonicos > .elementor-widget:not(:last-child),
.profic-fondos-armonicos.e-con > .elementor-widget,
.profic-fondos-armonicos.e-con > .elementor-widget:not(:last-child) {
    margin: 0 !important;
    margin-block-end: 0 !important;
}

/* Secciones oscuras transparentes para ver el fondo compartido.
 * Blog Home (#F8F8F8) mantiene su propio fondo. */
.profic-fondos-armonicos .elementor-element:not(.elementor-widget-profic_blog_home):not(.elementor-widget-profic_casos_exito_cde):not(.elementor-widget-profic_casos_exito_cde_cpt),
.profic-fondos-armonicos .elementor-widget:not(.elementor-widget-profic_blog_home):not(.elementor-widget-profic_casos_exito_cde):not(.elementor-widget-profic_casos_exito_cde_cpt),
.profic-fondos-armonicos .elementor-widget:not(.elementor-widget-profic_blog_home):not(.elementor-widget-profic_casos_exito_cde):not(.elementor-widget-profic_casos_exito_cde_cpt) > .elementor-widget-container,
.profic-fondos-armonicos .e-con,
.profic-fondos-armonicos .e-con-inner,
.profic-fondos-armonicos .profic-hero-section,
.profic-fondos-armonicos .profic-seo-ia-wrapper,
.profic-fondos-armonicos .profic-mision-section,
.profic-fondos-armonicos .profic-servicios-wrapper,
.profic-fondos-armonicos .profic-casos-exito-wrapper,
.profic-fondos-armonicos .profic-casos-exito-backgrounds,
.profic-fondos-armonicos .profic-partner-backgrounds,
.profic-fondos-armonicos .profic-diferencial-wrapper,
.profic-fondos-armonicos .profic-partner-wrapper,
.profic-fondos-armonicos .profic-contacto-wrapper,
.profic-fondos-armonicos .profic-testimonial-slider {
    background-color: transparent !important;
    background: transparent !important;
}

/*
 * Spill continuo entre widgets (sin “corte” de gradiente).
 * Clases reales: *-wrapper (no *-section). Excluye marquee + Blog Home.
 */
.profic-fondos-armonicos,
.profic-fondos-armonicos.e-con,
.profic-fondos-armonicos .e-con-inner {
    overflow: visible !important;
}

.profic-fondos-armonicos .elementor-widget:not(.elementor-widget-profic_logo_marquee):not(.elementor-widget-profic_blog_home),
.profic-fondos-armonicos .elementor-widget:not(.elementor-widget-profic_logo_marquee):not(.elementor-widget-profic_blog_home) > .elementor-widget-container,
.profic-fondos-armonicos .profic-hero-section,
.profic-fondos-armonicos .profic-hero-backgrounds,
.profic-fondos-armonicos .profic-seo-ia-wrapper,
.profic-fondos-armonicos .profic-seo-ia-backgrounds,
.profic-fondos-armonicos .profic-mision-section,
.profic-fondos-armonicos .profic-servicios-wrapper,
.profic-fondos-armonicos .profic-casos-exito-wrapper,
.profic-fondos-armonicos .profic-casos-exito-backgrounds,
.profic-fondos-armonicos .profic-partner-backgrounds,
.profic-fondos-armonicos .profic-diferencial-wrapper,
.profic-fondos-armonicos .profic-partner-wrapper,
.profic-fondos-armonicos .profic-contacto-wrapper,
.profic-fondos-armonicos .profic-testimonial-slider-backgrounds {
    overflow: visible !important;
    isolation: auto !important;
}

.profic-fondos-armonicos .profic-testimonial-slider-wrapper {
    overflow: visible !important;
    isolation: isolate !important;
}

.elementor-location-header {
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 200;
}

/* =============================================================================
   HEADER — Figma 1:1137 / Header_Desktop_B
   ============================================================================= */
/* Figma Menu y=37 (Desktop/Tablet/Mobile) — alinea Theme Builder con header-menu.css */
.profic-header-wrap.e-con,
.elementor-location-header .profic-header-wrap {
    padding-top: 37px !important;
}

.profic-header__pill {
    /* Figma Header_Desktop_B — mismo tratamiento que .profic-header-menu */
    background-color: #090511 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none !important;
    outline: none;
    box-shadow: 0 6px 11.7px rgba(0, 0, 0, 0.2);
    margin-inline: auto;
    max-width: 1040px;
    /* padding interno Figma/header.json: 10 / 10 / 10 / 40 */
    padding: 10px 10px 10px 40px !important;
}

.profic-header__pill .elementor-widget-image img {
    display: block;
    height: auto;
    width: 127px;
}

.profic-header__nav {
    flex-wrap: nowrap;
    /* Figma Acciones: gap 16 entre cada link y el CTA */
    gap: 16px !important;
}

/* --- Compat temporal: header.json todavía no fue re-importado a la BD,
   así que el <nav> viejo (widget HTML) puede seguir en producción.
   Esto se borra en cuanto se confirme "wp profic elementor install-shell"
   corrido y verificado. --- */
.profic-header__links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profic-header__link {
    border-radius: 53px;
    color: #fff !important;
    font-family: 'Amsi Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    padding: 15px 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.profic-header__link:hover,
.profic-header__link:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
    .profic-header__link:nth-child(-n + 2) {
        display: none;
    }
}

@media (max-width: 767px) {
    .profic-header__link:nth-child(-n + 4) {
        display: none;
    }
}
/* --- Fin compat temporal header --- */

.profic-header__links .elementor-nav-menu {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profic-header__links .elementor-nav-menu > li {
    margin: 0 !important;
}

.profic-header__links .elementor-item {
    border-radius: 53px !important;
    color: #fff !important;
    display: inline-block !important;
    font-family: 'Amsi Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    white-space: nowrap !important;
}

.profic-header__links .elementor-item:hover,
.profic-header__links .elementor-item:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
}

/* Toggle (hamburger) del nav-menu en tablet/mobile: 3 líneas #D9D9D9 */
.profic-header__links .elementor-menu-toggle {
    color: #d9d9d9;
    font-size: 24px;
}

/* Pill CTA Elementor: estados en assets/css/profic-cta-btn.css (Figma Boton 1:7).
   !important solo donde el kit de Elementor pisa el fondo. */
.profic-btn-pill .elementor-button {
    background-color: #4f10cd !important;
    border: 1.6px solid transparent !important;
    box-shadow: none !important;
}

.profic-btn-pill .elementor-button:hover,
.profic-btn-pill .elementor-button:focus-visible {
    background-color: #090511 !important;
    background-image: none !important;
    border-color: #4f10cd !important;
    box-shadow: none !important;
    filter: none !important;
}

.profic-btn-pill .elementor-button:active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* El widget Nav Menu ya colapsa a hamburguesa solo en tablet/mobile
   (setting "dropdown: tablet" en header.json) — no hace falta ocultar
   links a mano por nth-child como antes. */
@media (max-width: 767px) {
    .profic-header__pill {
        padding-inline: 20px 10px !important;
    }
}

/* =============================================================================
   HERO — Figma 1:760
   ============================================================================= */
.profic-hero {
    background-color: transparent !important;
    isolation: isolate;
    overflow: visible;
    position: relative;
}

/* Compat temporal: si homepage.json todavía no fue re-importado, los 3
   fondos siguen dentro de un único widget HTML — lo posicionamos igual. */
.profic-hero > .elementor-widget-html:first-of-type {
    inset: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.profic-hero__glow-1,
.profic-hero__glow-2,
.profic-hero__line {
    inset: auto;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.profic-hero__content {
    position: relative;
    z-index: 1;
}

.profic-hero__glow-1 {
    border-radius: 1068px;
    filter: blur(198px);
    height: 1073px;
    left: -332px;
    opacity: 0.8;
    top: 1825px;
    transform: rotate(-90deg);
    width: 2136px;
    background: radial-gradient(closest-side, rgba(79, 16, 205, 0.9), rgba(79, 16, 205, 0) 70%);
}

.profic-hero__glow-2 {
    filter: blur(194px);
    height: 1465px;
    left: 566px;
    opacity: 0.92;
    top: -700.87px;
    transform: rotate(-15.13deg);
    width: 1698px;
    background: radial-gradient(
      closest-side,
      rgba(124, 58, 237, 0.85) 0%,
      rgba(183, 22, 148, 0.55) 45%,
      rgba(124, 58, 237, 0) 70%
    );
}

.profic-hero__line {
    background: url('/wp-content/themes/hello-elementor-child/assets/images/linea-fondo-desktop.svg') no-repeat center / contain;
    height: 923px;
    left: 433px;
    top: -192px;
    width: 1052px;
}

.profic-hero__title-break {
    display: none;
}

.profic-hero__text .elementor-heading-title {
    max-width: 482px;
}

.profic-hero__text .elementor-widget-text-editor {
    max-width: 482px;
}

.profic-hero__cta .elementor-button {
    background-color: #4f10cd !important;
    border: 1.6px solid transparent !important;
    border-radius: 53px !important;
    min-height: 50px;
    min-width: 148px;
    padding: 15px 24px !important;
    box-shadow: none !important;
    transition: background-color 0.3s ease-in, border-color 0.3s ease-in !important;
}

.profic-hero__cta .elementor-button:hover,
.profic-hero__cta .elementor-button:focus-visible {
    background-color: #090511 !important;
    background-image: none !important;
    border: 1.6px solid #4f10cd !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Chat widget */
.profic-hero__chat {
    position: relative;
}

.profic-chat {
    max-width: 452px;
    width: 100%;
}

.profic-chat__bubble {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 100%;
}

.profic-chat__question {
    color: #fff;
    font-family: 'Amsi Pro', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    padding: 20px 20px 10px;
    white-space: pre-wrap;
}

.profic-chat__status {
    align-items: center;
    display: none;
    gap: 10px;
    padding: 0 20px 10px;
    width: 100%;
}

.profic-chat__status[data-active='true'] {
    display: flex;
}

.profic-chat__spinner {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: #fff;
    flex: none;
    height: 16px;
    width: 16px;
}

.profic-chat__status-text {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Amsi Pro', sans-serif;
    font-size: 13px;
}

.profic-chat__results {
    color: #fff;
    display: none;
    font-family: 'Amsi Pro', sans-serif;
    font-size: 13px;
    padding: 0 20px 10px;
    width: 100%;
}

.profic-chat__results p {
    margin: 0 0 6px;
}

.profic-chat__results ul {
    margin: 0;
    padding-left: 18px;
}

.profic-chat__reply {
    color: #fff;
    display: none;
    font-family: 'Amsi Pro', sans-serif;
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
    padding: 0 20px 10px;
    width: 100%;
}

.profic-chat__actions {
    align-items: center;
    display: flex;
    height: 45px;
    justify-content: space-between;
    padding-bottom: 5px;
    width: 100%;
}

.profic-chat__icon {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    cursor: pointer;
    height: 40px;
    padding: 0;
    width: 40px;
}

/* Compat temporal: si homepage.json todavía no fue re-importado, estos
   siguen siendo <button> vacíos con background-image (no <img>). */
.profic-chat__icon--attach {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/images/icon-attach.svg');
}

.profic-chat__icon--send {
    background-image: url('/wp-content/themes/hello-elementor-child/assets/images/icon-send.svg');
}

.profic-chat__icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

/* El widget de status/resultados/respuesta ahora son Containers vacíos
   (sin <p>/<ul> hardcodeados): profic-gsap.js arma el innerHTML en runtime. */
.profic-chat__question .elementor-widget-container p {
    margin: 0;
}

@media (max-width: 1024px) {
    .profic-hero__title-break {
        display: block;
    }

    .profic-hero__text .elementor-heading-title,
    .profic-hero__text .elementor-widget-text-editor {
        max-width: 640px;
        text-align: center;
    }

    .profic-hero__text {
        align-items: center !important;
    }

    .profic-hero__glow-1 {
        filter: blur(198px);
        height: 2136px;
        left: -677px;
        top: 1488px;
        width: 2405px;
    }

    .profic-hero__glow-2 {
        filter: blur(118px);
        height: 565px;
        left: -69.575px;
        opacity: 0.66;
        top: 470px;
        transform: rotate(0.43deg);
        width: 1752px;
    }

    .profic-hero__line {
        background-image: url('/wp-content/themes/hello-elementor-child/assets/images/linea-fondo-tablet.svg');
        height: 923px;
        left: -219px;
        top: -94px;
        width: 1052px;
    }
}

@media (max-width: 767px) {
    .profic-hero__text .elementor-heading-title,
    .profic-hero__text .elementor-widget-text-editor {
        max-width: 255px;
    }

    .profic-hero__glow-1 {
        filter: blur(148px);
        height: 1001px;
        left: 81px;
        top: 1476px;
        width: 1891px;
    }

    .profic-hero__glow-2 {
        filter: blur(122px);
        height: 772px;
        left: -3.172px;
        opacity: 0.92;
        top: 461.451px;
        transform: rotate(0deg);
        width: 942.539px;
    }

    .profic-hero__line {
        background-image: url('/wp-content/themes/hello-elementor-child/assets/images/linea-fondo-mobile.svg');
        height: 629px;
        left: -190px;
        top: 411px;
        width: 718px;
    }

    .profic-chat {
        width: 339px;
    }

    .profic-chat__question {
        font-size: 10.5px;
        padding: 15px 15px 7.5px;
    }

    .profic-chat__icon {
        height: 30px;
        width: 30px;
    }

    .profic-chat__bubble {
        border-width: 0.9px;
        padding: 7.5px;
    }
}

/* =============================================================================
   FOOTER — Figma 1:1113 / Footer
   ============================================================================= */
.profic-footer-links .elementor-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 14px !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.profic-footer-links .elementor-item {
    color: #fff !important;
    font-family: 'Amsi Pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.profic-footer-links .elementor-item:hover,
.profic-footer-links .elementor-item:focus-visible {
    opacity: 0.7;
}

.profic-footer__a .elementor-widget-image img {
    display: block;
    height: auto;
}

.profic-footer-mail {
    align-items: center;
}

.profic-footer-mail__text.elementor-widget-heading a {
    color: #fff !important;
    font-family: 'Amsi Pro', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.profic-footer-social .elementor-widget-image {
    line-height: 0;
}

.profic-footer-social .elementor-widget-image img {
    display: block;
    height: auto;
}

@media (max-width: 1024px) {
    .profic-footer__b {
        gap: 40px !important;
    }
}

@media (max-width: 767px) {
    .profic-footer__a {
        justify-content: flex-start !important;
        row-gap: 40px !important;
    }
}
