/* =====================================================================
   YON JIMÉNEZ — CSS COMPLETO (marca + blog + formularios)
   Pega TODO esto en Apariencia → Personalizar → CSS adicional,
   REEMPLAZANDO cualquier cosa que ya tengas ahí. Luego Publicar.
   Estética: Mystical & Ethereal.
   ===================================================================== */

/* ---------- 1. Variables de marca ---------- */
:root{
  --yj-bg:#0B0F24; --yj-bg2:#141A3A; --yj-card:#1E2450;
  --yj-text:#EAEEF9; --yj-body:#B7C2E0; --yj-muted:#8896C4; --yj-soft:#9FB0DD;
  --yj-gold:#D8B36A; --yj-gold2:#EAC983; --yj-teal:#4FB4A6; --yj-violet:#6B5CA5;
  --yj-border:rgba(143,163,204,.14);
  --yj-display:'Cinzel',serif; --yj-serif:'Cormorant Garamond',serif; --yj-bodyfont:'Poppins',sans-serif;
}

/* ---------- 2. Fondo místico global (fijo, detrás de todo) ---------- */
body{ background:#0B0F24; color:var(--yj-body); }
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(1200px 820px at 18% -10%, rgba(122,102,196,.55), transparent 58%),
    radial-gradient(1000px 760px at 88% 6%, rgba(216,179,106,.24), transparent 56%),
    radial-gradient(900px 700px at 10% 62%, rgba(79,180,166,.26), transparent 55%),
    radial-gradient(1100px 820px at 96% 92%, rgba(107,92,165,.4), transparent 58%),
    radial-gradient(760px 620px at 40% 105%, rgba(216,179,106,.18), transparent 55%),
    linear-gradient(180deg,#10163a,#0B0F24 40%,#080a1a 100%);
}
body::after{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.8;
  background-image:
    radial-gradient(1.8px 1.8px at 18% 44%,rgba(234,201,131,1),transparent),
    radial-gradient(1.6px 1.6px at 38% 12%,rgba(234,201,131,.95),transparent),
    radial-gradient(2px 2px at 63% 48%,rgba(107,92,165,.7),transparent),
    radial-gradient(1.6px 1.6px at 79% 33%,rgba(234,201,131,.9),transparent),
    radial-gradient(1.6px 1.6px at 8% 78%,rgba(234,201,131,.85),transparent),
    radial-gradient(1.4px 1.4px at 52% 88%,rgba(79,180,166,.8),transparent),
    radial-gradient(1.4px 1.4px at 95% 20%,rgba(79,180,166,.75),transparent);
  animation:yjTwinkle 8s ease-in-out infinite;
}
#page, .site-content, .ast-container, main{ position:relative; z-index:1; }
@keyframes yjTwinkle{0%,100%{opacity:.7}50%{opacity:.25}}
@keyframes yjFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes yjFloat2{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ---------- 3. Tipografía por clases ---------- */
.yj-eyebrow{ font-family:var(--yj-bodyfont)!important; font-weight:600!important; font-size:12px!important;
  letter-spacing:.28em!important; text-transform:uppercase!important; color:var(--yj-gold)!important; }
.yj-display, .yj-display *{ font-family:var(--yj-display)!important; color:var(--yj-text)!important; letter-spacing:.08em!important; }
.yj-serif, .yj-serif *{ font-family:var(--yj-serif)!important; font-style:italic!important; color:var(--yj-soft)!important; }
.yj-quote, .yj-quote *{ font-family:var(--yj-serif)!important; font-style:italic!important; color:var(--yj-text)!important; line-height:1.4!important; }
.yj-body, .yj-body *{ color:var(--yj-body)!important; }

/* ---------- 4. Botones ---------- */
.yj-btn .elementor-button, a.yj-btn{
  background:linear-gradient(180deg,var(--yj-gold2),var(--yj-gold))!important;
  color:#1a1330!important; font-weight:600!important; letter-spacing:.04em!important;
  border-radius:999px!important; padding:14px 30px!important; border:0!important;
  box-shadow:0 10px 28px rgba(216,179,106,.3)!important;
}
.yj-btn .elementor-button:hover, a.yj-btn:hover{ filter:brightness(1.05); }
.yj-btn-outline .elementor-button, a.yj-btn-outline{
  background:transparent!important; color:var(--yj-gold)!important;
  border:1px solid rgba(216,179,106,.55)!important; border-radius:999px!important;
  padding:14px 30px!important; font-weight:600!important; letter-spacing:.04em!important;
}
.yj-btn-outline .elementor-button:hover, a.yj-btn-outline:hover{ background:rgba(216,179,106,.08)!important; }

/* ---------- 5. Tarjetas / banda ---------- */
.yj-card{
  border:1px solid rgba(143,163,204,.13)!important; border-radius:16px!important;
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.03))!important;
  padding:28px!important;
}
.yj-card:hover{ border-color:rgba(216,179,106,.4)!important; transform:translateY(-4px); transition:.25s; }
.yj-stars{ color:var(--yj-gold)!important; letter-spacing:2px; font-size:14px; }
.yj-band{
  border:1px solid rgba(216,179,106,.3)!important; border-radius:20px!important;
  background:radial-gradient(700px 260px at 50% 0%,rgba(107,92,165,.16),transparent),linear-gradient(160deg,#12183A,#0D1230)!important;
  padding:clamp(36px,5vw,60px) 28px!important;
}

/* ---------- 6. Portadas flotantes ---------- */
.yj-float img{ animation:yjFloat 7s ease-in-out infinite; border-radius:10px;
  box-shadow:0 26px 60px rgba(30,40,90,.22),0 0 44px rgba(107,92,165,.28); }
.yj-float2 img{ animation:yjFloat2 6s ease-in-out infinite .4s; border-radius:10px;
  box-shadow:0 26px 60px rgba(30,40,90,.22),0 0 44px rgba(107,92,165,.28); }
.yj-cover img{ border-radius:12px;
  box-shadow:0 30px 70px rgba(30,40,90,.22),0 0 50px rgba(107,92,165,.3);
  border:1px solid rgba(143,163,204,.13); }

/* ---------- 7. Campos de formulario claros (clase yj-form) ---------- */
.yj-form input, .yj-form textarea{
  background:rgba(255,255,255,.94)!important; color:#1A2148!important;
  border:1px solid rgba(143,163,204,.16)!important; border-radius:12px!important; padding:14px 18px!important;
}
.yj-form input:focus, .yj-form textarea:focus{ outline:none!important; border-color:var(--yj-gold)!important; box-shadow:0 0 0 3px rgba(216,179,106,.35)!important; }

/* ---------- 8. Header / footer del tema en tono de marca ---------- */
.site-header, .ast-primary-header-bar{ background:#0B0F24!important; border-bottom:1px solid var(--yj-border)!important; }
.main-header-menu a, .ast-header-break-point .main-header-menu a{ color:#B4BFDD!important; font-size:13.5px; letter-spacing:.03em; }
.main-header-menu a:hover, .current-menu-item > a{ color:var(--yj-gold)!important; }
.site-title a, .ast-site-identity .site-title a{ font-family:var(--yj-display)!important; letter-spacing:.18em!important; color:var(--yj-text)!important; }
.site-footer, .site-below-footer-wrap, .ast-small-footer{ background:#080B1A!important; color:var(--yj-muted)!important; }
.site-footer a{ color:#8FA3CC!important; }
.site-footer a:hover{ color:var(--yj-gold)!important; }
.lang-item a{ color:#8896C4!important; font-weight:600; }
.lang-item.current-lang a{ color:var(--yj-gold)!important; }

/* ---------- 9. Utilidades ---------- */
.yj-center{ text-align:center!important; }
.yj-maxw{ max-width:1120px; margin:0 auto; }

/* ---------- 10. Refinamiento (taste) ---------- */
html{ scroll-behavior:smooth; }
.yj-orn{ display:flex; align-items:center; justify-content:center; gap:16px; color:#D8B36A; font-size:14px; line-height:1; margin:0 auto; }
.yj-orn::before,.yj-orn::after{ content:""; height:1px; width:min(90px,16vw); background:linear-gradient(90deg,transparent,rgba(216,179,106,.55)); }
.yj-orn::after{ background:linear-gradient(90deg,rgba(216,179,106,.55),transparent); }
[style*="#EAC983,#D8B36A"]{ transition:transform .25s ease, box-shadow .25s ease, filter .25s ease; }
[style*="#EAC983,#D8B36A"]:hover{ transform:translateY(-2px); filter:brightness(1.05); box-shadow:0 18px 44px rgba(216,179,106,.42) !important; }
.yj-card2{ transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.yj-card2:hover{ transform:translateY(-3px); border-color:rgba(216,179,106,.35) !important; box-shadow:0 22px 50px rgba(0,0,0,.32); }
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* ---------- 11. Espaciado: que manden los bloques HTML ---------- */
.elementor-widget-html{ margin-block:0 !important; }
.e-con:has(> .e-con-inner > .elementor-widget-html){ padding-block:0 !important; }
.e-con:has(> .e-con-inner > .elementor-widget-html) > .e-con-inner{ gap:0 !important; }

/* ---------- 12. Ocultar el título automático del tema en páginas Elementor ---------- */
.elementor-page .entry-header,
.elementor-page .ast-single-entry-banner{ display:none !important; }

/* ---------- 13. Selector de idioma tipo botón ---------- */
.main-header-menu .lang-item, .ast-nav-menu .lang-item{
  margin:0 !important; display:flex !important; align-items:center !important; align-self:center !important;
}
.main-header-menu .lang-item > a, .ast-nav-menu .lang-item > a{
  display:flex !important; align-items:center !important; height:26px !important;
  padding:0 12px !important; margin:0 !important;
  font-size:12px !important; font-weight:600 !important; letter-spacing:.05em !important;
  line-height:1 !important; border-radius:999px !important; color:#8896C4 !important;
}
.main-header-menu .lang-item.current-lang > a, .ast-nav-menu .lang-item.current-lang > a{
  background:#D8B36A !important; color:#1a1330 !important;
}
.main-header-menu .lang-item-es, .ast-nav-menu .lang-item-es{
  border:1px solid rgba(143,163,204,.28) !important; border-right:0 !important;
  border-radius:999px 0 0 999px !important; padding:4px 0 4px 4px !important;
}
.main-header-menu .lang-item-en, .ast-nav-menu .lang-item-en{
  border:1px solid rgba(143,163,204,.28) !important; border-left:0 !important;
  border-radius:0 999px 999px 0 !important; padding:4px 4px 4px 0 !important;
}

/* ---------- 14. Forzar contenedores transparentes ---------- */
#page, .site, #content, .site-content, .ast-container, .ast-container--narrow,
.entry-content, article, .ast-article-single, .ast-page-builder-template .site-content,
.elementor, .elementor-section, .e-con, .e-con-inner{
  background:transparent !important; background-color:transparent !important;
}

/* ---------- 15. Pie de página bilingüe: solo el idioma de la página ---------- */
html[lang^="es"] .yj-foot-en{ display:none !important; }
html[lang^="en"] .yj-foot-es{ display:none !important; }

/* ---------- 16. Botón "Comprar" bilingüe (encabezado) ---------- */
html[lang^="es"] .yj-buy-en{ display:none !important; }
html[lang^="en"] .yj-buy-es{ display:none !important; }
/* SOLO en el encabezado: quitar <p>/<br> de wpautop y centrar */
.site-header .ast-builder-html-element{ display:flex !important; align-items:center !important; height:100%; }
.site-header .ast-builder-html-element p{ margin:0 !important; }
.site-header .ast-builder-html-element br{ display:none !important; }

/* ---------- 17. Fondo del pie de página (#080B1A) ---------- */
.site-footer,
.site-footer .ast-builder-grid-row-container,
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-footer-overlay,
footer[data-section="section-footer-builder"]{ background-color:#080B1A !important; }

/* =====================================================================
   18. BLOG — estilo de marca
   ===================================================================== */
.blog .ast-article-post, .archive .ast-article-post, .search .ast-article-post{
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.03)) !important;
  border:1px solid rgba(143,163,204,.13) !important;
  border-radius:16px !important;
  padding:clamp(22px,3vw,34px) !important;
  margin-bottom:24px !important;
  transition:transform .3s ease, border-color .3s ease;
}
.blog .ast-article-post:hover, .archive .ast-article-post:hover{
  transform:translateY(-3px); border-color:rgba(216,179,106,.35) !important;
}
.blog .entry-title, .archive .entry-title, .single-post .entry-title,
.blog .entry-title a, .archive .entry-title a{
  font-family:'Cinzel',serif !important; color:#EAEEF9 !important; font-weight:600 !important; letter-spacing:.02em;
}
.blog .entry-title a:hover, .archive .entry-title a:hover{ color:#D8B36A !important; }
body.single .entry-title, body.single-post .entry-title{ color:#EAEEF9 !important; font-family:'Cinzel',serif !important; }
.blog .post-meta, .archive .post-meta, .single-post .post-meta,
.ast-blog-meta-container, .entry-meta, .entry-meta *{ color:#8896C4 !important; }
.entry-meta a:hover{ color:#D8B36A !important; }
.blog a[rel~="category"], .archive a[rel~="category"], .single-post a[rel~="category"]{ color:#D8B36A !important; }
.blog .entry-content, .archive .entry-content, .single-post .entry-content,
.blog .entry-content p, .single-post .entry-content p,
.ast-excerpt-container, .ast-excerpt-container p{ color:#B7C2E0 !important; }
.single-post .entry-content h2, .single-post .entry-content h3{ font-family:'Cinzel',serif !important; color:#EAEEF9 !important; }
.single-post .entry-content a{ color:#D8B36A !important; }
.blog .read-more a, .archive .read-more a{ color:#D8B36A !important; font-weight:600; }
.ast-pagination a, .page-numbers{ color:#8FA3CC !important; }
.ast-pagination .current, .page-numbers.current{ color:#D8B36A !important; }
.ast-narrow-container .site-content{ background-color:transparent !important; }
.single .ast-article-single, .single .ast-article-post{ background:transparent !important; box-shadow:none !important; }

/* =====================================================================
   19. FLUENT FORMS — estilo de marca (contacto + suscripción)
   ===================================================================== */
.fluentform{ max-width:600px !important; margin:0 auto !important; }
.fluentform .ff-el-group{ margin-bottom:16px !important; }
.fluentform input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.fluentform textarea, .fluentform select{
  background:rgba(255,255,255,.94) !important; color:#1A2148 !important;
  border:1px solid rgba(143,163,204,.16) !important; border-radius:12px !important;
  padding:14px 18px !important; font-family:'Poppins',sans-serif !important; font-size:15px !important;
}
.fluentform input:focus, .fluentform textarea:focus{
  outline:none !important; border-color:#D8B36A !important; box-shadow:0 0 0 3px rgba(216,179,106,.35) !important;
}
.fluentform input::placeholder, .fluentform textarea::placeholder{ color:#6b74a0 !important; }
.fluentform .ff-el-input--label label{ color:#B7C2E0 !important; font-family:'Poppins',sans-serif !important; }
.fluentform .ff-btn-submit, .fluentform button[type=submit], .fluentform .ff_btn_style{
  background:linear-gradient(180deg,#EAC983,#D8B36A) !important; color:#1a1330 !important;
  border:0 !important; border-radius:999px !important; padding:14px 32px !important;
  font-family:'Poppins',sans-serif !important; font-weight:600 !important; letter-spacing:.04em !important;
  box-shadow:0 10px 28px rgba(216,179,106,.3) !important; cursor:pointer;
}
.fluentform .ff-btn-submit:hover{ filter:brightness(1.05); }
.fluentform .ff-message-success, .ff-message-success{ color:#4FB4A6 !important; }
.yj-band{ max-width:700px !important; margin-left:auto !important; margin-right:auto !important; }
/* Selector de idioma compacto (píldora) en móvil */
@media (max-width: 921px){
  .main-header-menu .lang-item,
  .ast-mobile-header-content .lang-item,
  .ast-builder-menu-mobile .lang-item,
  .menu .lang-item{
    display:inline-flex !important; width:auto !important; float:left !important;
  }
  .main-header-menu .lang-item-es,
  .ast-mobile-header-content .lang-item-es,
  .menu .lang-item-es{ clear:left; margin-left:20px !important; }
}