/* ==========================================================================
   Inmobiliaria Emanuel 2.0 – estilos
   Colores y fuentes: Web Emanuel > Colores / Fuentes (variables --emi-*)
   Casi todo va precedido de "body" para ganar a los estilos del tema y de Elementor.
   ========================================================================== */

body .emi-header,body .emi-journey,body .emi-section,body .emi-phero,body .emi-footer,body .emi-float,body .emi-float-dialog,body .emi-lightbox{font-family:var(--emi-body);-webkit-font-smoothing:antialiased;box-sizing:border-box;letter-spacing:normal}
body .emi-header *,body .emi-journey *,body .emi-section *,body .emi-phero *,body .emi-footer *,body .emi-float-dialog *,body .emi-lightbox *{box-sizing:border-box}
body .emi-journey h1,body .emi-journey h2,body .emi-section h2,body .emi-section h3,body .emi-phero h1,body .emi-footer h3,body .emi-float-dialog h2,body .emi-door strong,body .emi-brand-name{font-family:var(--emi-display);font-weight:400;line-height:1.1;margin:0;letter-spacing:0;text-transform:none}
body .emi-journey p,body .emi-section p,body .emi-phero p,body .emi-footer p{margin:0}
body .emi-ico{width:1.1em;height:1.1em;flex:none;display:inline-block;vertical-align:-.15em}
body:has(.emi-hero-zone),body.emi-template{margin:0;overflow-x:clip;background:var(--emi-bg)}
html:has(.emi-header){scroll-padding-top:96px}
html.emi-smooth{scroll-behavior:smooth}
body .emi-header :focus-visible,body .emi-journey :focus-visible,body .emi-phero :focus-visible,body .emi-slide :focus-visible,body .emi-footer :focus-visible{outline:2px solid var(--emi-scene-accent);outline-offset:3px}
body .emi-section :focus-visible,body .emi-float-dialog :focus-visible{outline:2px solid var(--emi-accent);outline-offset:3px}

/* Anchos completos aunque estén dentro de contenedores de Elementor */
body .emi-journey,body .emi-section,body .emi-footer,body .emi-phero{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
body.emi-template .emi-section,body.emi-template .emi-footer,body.emi-template .emi-phero{margin-left:0;margin-right:0;width:100%;max-width:100%}
.e-con:has(> .elementor-widget .emi-journey),.e-con:has(> .elementor-widget .emi-section),.e-con:has(> .elementor-widget .emi-footer),
.e-con:has(> .e-con-inner > .elementor-widget .emi-journey),.e-con:has(> .e-con-inner > .elementor-widget .emi-section),.e-con:has(> .e-con-inner > .elementor-widget .emi-footer){
  --padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;--gap:0px;--row-gap:0px;--column-gap:0px;padding:0!important;gap:0!important;margin-top:0!important;margin-bottom:0!important}
.e-con:has(> .elementor-widget .emi-journey) > .e-con-inner,.e-con:has(> .elementor-widget .emi-section) > .e-con-inner,.e-con:has(> .elementor-widget .emi-footer) > .e-con-inner{padding:0!important;gap:0!important}
.elementor-widget:has(.emi-journey),.elementor-widget:has(.emi-section),.elementor-widget:has(.emi-footer),.elementor-widget:has(.emi-header){margin:0!important;--kit-widget-spacing:0px}
body:has(.emi-hero-zone) #site-header,body:has(.emi-hero-zone) header.site-header,body:has(.emi-hero-zone) .page-header,body:has(.emi-hero-zone) .entry-title,body:has(.emi-hero-zone) .elementor-location-header,
body:has(.emi-footer) #site-footer,body:has(.emi-footer) footer.site-footer{display:none}

/* Imágenes: anula "img{height:auto}" de Elementor */
body .emi-journey img.emi-photo,body .emi-band img,body .emi-card-media img,body .emi-slide img.emi-slide-img,body .emi-phero img.emi-phero-img,body .emi-gthumb img,body .emi-tl-item img{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;display:block;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}

/* ---------- Botones ---------- */
body a.emi-btn,body button.emi-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;font-family:var(--emi-body);font-weight:600;font-size:.98rem;line-height:1;text-decoration:none;cursor:pointer;border:1px solid transparent;text-transform:none;letter-spacing:0;box-shadow:none;transition:filter .2s,background-color .2s}
body a.emi-btn-primary,body button.emi-btn-primary,body a.emi-btn-primary:hover,body button.emi-btn-primary:hover,body button.emi-btn-primary:focus{background:var(--emi-btn);color:var(--emi-btn-ink);border-color:transparent}
body a.emi-btn-primary:hover,body button.emi-btn-primary:hover{filter:brightness(1.12)}
body a.emi-btn-ghost,body button.emi-btn-ghost,body a.emi-btn-ghost:hover{background:transparent;color:var(--emi-ink);border:1px solid currentColor}
body .emi-journey a.emi-btn-primary,body .emi-phero a.emi-btn-primary,body .emi-slide a.emi-btn-primary{background:var(--emi-cta);color:var(--emi-cta-ink)}
body .emi-journey a.emi-btn-ghost,body .emi-phero a.emi-btn-ghost{color:#F7F3E8}
body button.emi-btn[disabled]{opacity:.6;cursor:wait}

/* ---------- Encabezado ---------- */
body .emi-header{position:fixed;top:0;left:0;right:0;z-index:999;color:#F7F3E8;transition:background-color .3s,color .3s,box-shadow .3s}
.admin-bar .emi-header{top:32px}
@media (max-width:782px){.admin-bar .emi-header{top:46px}}
body .emi-topbar{background:var(--emi-foot);color:var(--emi-foot-ink);font-size:.85rem;text-align:center;padding:6px 16px;line-height:1.3}
body .emi-header-row{display:flex;align-items:center;gap:22px;padding:14px clamp(18px,4vw,48px);padding-top:calc(14px + env(safe-area-inset-top,0px))}
body .emi-header:has(.emi-topbar) .emi-header-row{padding-top:14px}
body .emi-header.emi-solid{background:var(--emi-bg);color:var(--emi-ink);box-shadow:0 1px 0 rgba(0,0,0,.08)}
body .emi-header.emi-solid :focus-visible{outline-color:var(--emi-accent)}
body .emi-header a,body .emi-header a:hover{color:inherit;text-decoration:none}
body .emi-brand{display:flex;flex-direction:column;line-height:1;color:inherit;flex:none}
body .emi-brand-sub{font-size:.72rem;letter-spacing:.14em;opacity:.85;margin-bottom:4px}
body .emi-brand-name{font-size:1.6rem}
body .emi-header img.emi-logo,body .emi-footer img.emi-logo{height:var(--emi-logo-h,44px)!important;width:auto!important;max-width:min(260px,55vw)!important;max-height:none!important;object-fit:contain;display:block;border:0;border-radius:0;box-shadow:none}
body .emi-header img.emi-logo-dark{display:none}
body .emi-header.emi-solid .emi-brand:has(.emi-logo-dark) img.emi-logo-light{display:none}
body .emi-header.emi-solid img.emi-logo-dark{display:block}
body .emi-top-nav{margin-left:auto}
body .emi-top-nav ul.emi-menu,body .emi-top-nav ul{display:flex;flex-wrap:wrap;gap:6px 24px;list-style:none;margin:0;padding:0}
body .emi-top-nav li{list-style:none;margin:0;padding:0;display:block}
body .emi-top-nav li::marker,body .emi-top-nav li::before{content:none;display:none}
body .emi-top-nav a{display:inline-block;font-family:var(--emi-body);font-weight:500;font-size:.95rem;padding:6px 0;border-bottom:1px solid transparent}
body .emi-top-nav a:hover{border-bottom-color:currentColor}
body a.emi-cta,body a.emi-cta:hover,body .emi-top-nav li.emi-cta > a{display:inline-flex;align-items:center;min-height:42px;padding:0 20px;border-radius:999px;background:var(--emi-cta);color:var(--emi-cta-ink);font-family:var(--emi-body);font-weight:700;font-size:.92rem;border:0;flex:none}
body .emi-header button.emi-motion,body .emi-header button.emi-motion:hover,body .emi-header button.emi-motion:focus{color:inherit;background:transparent;border:1px solid currentColor;border-radius:999px;padding:7px 14px;font-family:var(--emi-body);font-size:.8rem;font-weight:500;line-height:1.2;box-shadow:none;opacity:.85;flex:none}
body .emi-header button.emi-motion[aria-pressed="true"]{opacity:1;background:rgba(205,170,110,.22)}
body .emi-header button.emi-menu-btn{display:none}
body .emi-header button.emi-menu-btn,body .emi-header button.emi-menu-btn:hover,body .emi-header button.emi-menu-btn:focus{align-items:center;gap:6px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:999px;padding:8px 14px;font-family:var(--emi-body);font-size:.88rem;font-weight:600;line-height:1;min-height:42px;box-shadow:none}
@media (max-width:1024px){
  body .emi-header button.emi-menu-btn,body .emi-header button.emi-menu-btn:hover,body .emi-header button.emi-menu-btn:focus{display:inline-flex}
  body .emi-header button.emi-motion{display:none}
  body .emi-top-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--emi-bg);color:var(--emi-ink);padding:10px clamp(18px,4vw,48px) 20px;box-shadow:0 10px 30px rgba(0,0,0,.15)}
  body .emi-header.emi-open .emi-top-nav{display:block}
  body .emi-top-nav ul.emi-menu,body .emi-top-nav ul{flex-direction:column;gap:0}
  body .emi-top-nav a{display:block;padding:14px 0;font-size:1.05rem;border-bottom:1px solid rgba(0,0,0,.08)}
  body .emi-cta{margin-left:auto}
  body .emi-header-row{gap:12px;position:relative}
}
@media (max-width:480px){body a.emi-cta{padding:0 14px;font-size:.85rem}body .emi-menu-btn span{display:none}}

/* ---------- Recorrido ---------- */
body .emi-journey{position:relative;height:400svh;color:#F7F3E8}
body .emi-stage{position:sticky;top:0;height:100svh;overflow:hidden;background:#0E1622}
body .emi-layer{position:absolute;inset:0}
body .emi-exterior{will-change:transform,opacity}
body .emi-flash{pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 55%,#FFEBC8 0%,#F2C98A 38%,rgba(242,201,138,0) 78%)}
body .emi-hall{opacity:0;will-change:transform,opacity}
body .emi-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(8,14,20,.6) 0%,rgba(8,14,20,0) 55%),linear-gradient(180deg,rgba(8,14,20,.7) 0%,rgba(8,14,20,.3) 42%,rgba(8,14,20,.1) 60%,rgba(8,14,20,.72) 100%)}
body .emi-hero{position:absolute;left:0;top:clamp(110px,16vh,150px);padding:0 clamp(20px,5vw,72px);max-width:800px}
body .emi-journey h1{font-size:clamp(2.3rem,5.6vw,4.4rem);color:#F7F3E8;text-shadow:0 2px 24px rgba(0,0,0,.35)}
body .emi-hero p{margin-top:18px;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.6;max-width:34em;color:#EAE4D6}
body .emi-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
body .emi-hint{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 34px);transform:translateX(-50%);font-size:.9rem;letter-spacing:.06em;display:flex;flex-direction:column;align-items:center;gap:8px;white-space:nowrap}
body .emi-hint::after{content:"";width:1px;height:34px;background:currentColor;opacity:.7;animation:emi-drip 2.2s ease-in-out infinite}
@keyframes emi-drip{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
body .emi-hall-ui{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 36px);transform:translateX(-50%);width:min(960px,calc(100% - 32px));opacity:0;visibility:hidden}
body .emi-hall-ui h2{font-size:clamp(1.8rem,4vw,3rem);text-align:center;margin-bottom:22px;color:#F7F3E8;text-shadow:0 2px 20px rgba(0,0,0,.45)}
body .emi-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
body .emi-journey a.emi-door,body .emi-journey a.emi-door:hover{display:flex;flex-direction:column;gap:2px;padding:16px 18px;text-decoration:none;color:#F7F3E8;background:rgba(12,20,17,.74);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(243,239,230,.2);border-radius:8px;transition:border-color .2s,background-color .2s}
body .emi-door strong{font-size:1.4rem}
body .emi-door span{font-size:.9rem;color:#D6CFBF}
body .emi-journey a.emi-door:hover,body .emi-journey a.emi-door:focus-visible{border-color:var(--emi-scene-accent);background:rgba(12,20,17,.9)}
body .emi-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(243,239,230,.12)}
body .emi-progress span{display:block;height:100%;width:0;background:var(--emi-scene-accent)}
@media (max-width:720px){body .emi-doors{grid-template-columns:1fr;gap:8px}body .emi-journey a.emi-door,body .emi-journey a.emi-door:hover{flex-direction:row;align-items:baseline;justify-content:space-between;padding:12px 16px}body .emi-door strong{font-size:1.2rem}}
body.emi-no-motion .emi-journey{height:auto}
body.emi-no-motion .emi-stage{position:relative}
body.emi-no-motion .emi-hint,body.emi-no-motion .emi-progress,body.emi-no-motion .emi-hall,body.emi-no-motion .emi-hall-ui,body.emi-no-motion .emi-flash{display:none}
@media (prefers-reduced-motion:reduce){body .emi-hint::after{animation:none}}
body .emi-journey.emi-jspin .emi-stage{position:absolute;top:0;left:0;right:0;width:100%}
body .emi-journey.emi-jspin .emi-stage.emi-pin{position:fixed}
body .emi-journey.emi-jspin .emi-stage.emi-end{top:auto;bottom:0}
body.emi-no-motion .emi-journey.emi-jspin .emi-stage{position:relative}

/* ---------- Secciones generales ---------- */
body .emi-section{background:var(--emi-bg);color:var(--emi-ink);padding-bottom:clamp(56px,8vw,110px);font-size:1.0625rem;line-height:1.6}
body .emi-wrap{max-width:1200px;margin:0 auto;padding:clamp(56px,7vw,96px) clamp(20px,4vw,48px) 0}
body .emi-band{height:clamp(170px,26vw,320px);overflow:hidden;position:relative}
body .emi-band::after{content:"";position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(0deg,var(--emi-bg),rgba(0,0,0,0))}
body .emi-band+.emi-wrap{padding-top:0}
body .emi-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px 48px;align-items:end;margin:0 0 36px;position:relative}
body .emi-head-overlap{margin-top:-36px}
body .emi-section h2{font-size:clamp(2rem,4.2vw,3.2rem);color:var(--emi-ink)}
body .emi-head p{opacity:.78;max-width:36em}
@media (max-width:820px){body .emi-head{grid-template-columns:1fr}}
body .emi-empty{padding:24px;border:1px dashed rgba(0,0,0,.25);border-radius:8px}
body .emi-badge{display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;font-family:var(--emi-body);font-size:.78rem;font-weight:700;letter-spacing:.02em;background:#fff;color:#1B1B1B;line-height:1.2}
body .emi-badge-preventa{background:var(--emi-cta);color:var(--emi-cta-ink)}
body .emi-badge-ultimos{background:#C8412F;color:#fff}
body .emi-badge-entregado{background:var(--emi-btn);color:var(--emi-btn-ink)}

/* ---------- Slider ---------- */
body .emi-slider-sec{padding-bottom:clamp(40px,6vw,80px)}
body .emi-slider{position:relative;max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
body .emi-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:12px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body .emi-slides::-webkit-scrollbar{display:none}
body .emi-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;aspect-ratio:16/7;min-height:420px;overflow:hidden;background:#1F2E3E;color:#F7F3E8}
body .emi-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,14,20,.75) 0%,rgba(8,14,20,.25) 55%,rgba(8,14,20,0) 100%)}
body .emi-slide-body{position:absolute;left:0;bottom:0;top:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:10px;padding:clamp(24px,4vw,56px);max-width:620px}
body .emi-slide h3{font-size:clamp(2rem,4vw,3.4rem);color:#F7F3E8}
body .emi-slide-cat{font-size:.9rem;font-weight:600;letter-spacing:.04em;color:var(--emi-scene-accent)}
body .emi-slide-loc{display:flex;gap:6px;align-items:center;color:#EAE4D6}
body .emi-slide-facts{display:flex;flex-wrap:wrap;gap:6px 18px;color:#EAE4D6;margin-bottom:8px}
body .emi-slider button.emi-slider-prev,body .emi-slider button.emi-slider-next{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(247,243,232,.92);color:#18261F;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:0 4px 16px rgba(0,0,0,.2);font-size:1.2rem}
body .emi-slider button.emi-slider-prev{left:clamp(28px,5vw,64px)}
body .emi-slider button.emi-slider-next{right:clamp(28px,5vw,64px)}
body .emi-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
body .emi-slider button.emi-dot{width:10px;height:10px;min-height:0;border-radius:50%;border:0;padding:0;background:rgba(0,0,0,.2);cursor:pointer}
body .emi-slider button.emi-dot[aria-pressed="true"]{background:var(--emi-btn);width:28px;border-radius:999px}
@media (max-width:720px){body .emi-slide{aspect-ratio:4/5;min-height:0}body .emi-slide-shade{background:linear-gradient(0deg,rgba(8,14,20,.85) 0%,rgba(8,14,20,.2) 60%,rgba(8,14,20,0) 100%)}body .emi-slider button.emi-slider-prev,body .emi-slider button.emi-slider-next{display:none}}

/* ---------- Tarjetas de proyectos ---------- */
body .emi-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
body .emi-section button.emi-chip,body .emi-section button.emi-chip:hover,body .emi-section button.emi-chip:focus{background:transparent;color:var(--emi-ink);border:1px solid rgba(0,0,0,.2);border-radius:999px;padding:0 18px;min-height:42px;font-family:var(--emi-body);font-size:.92rem;font-weight:500;line-height:1;box-shadow:none;cursor:pointer}
body .emi-section button.emi-chip[aria-pressed="true"]{background:var(--emi-ink);color:var(--emi-bg);border-color:var(--emi-ink)}
body .emi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:44px 26px}
body .emi-card{display:flex;flex-direction:column}
body .emi-card[hidden]{display:none}
body .emi-card-media{position:relative;display:block;aspect-ratio:16/11;border-radius:10px;overflow:hidden;background:#1F2E3E}
body .emi-card-media img{transition:transform .5s ease}
body .emi-card-media:hover img{transform:scale(1.04)}
body .emi-card-media .emi-badge{position:absolute;top:12px;left:12px}
body .emi-card-op{margin-top:16px;font-size:.88rem;font-weight:600;color:var(--emi-accent)}
body .emi-card h3{font-size:1.6rem;margin-top:4px}
body .emi-card h3 a,body .emi-card h3 a:hover{color:var(--emi-ink);text-decoration:none}
body .emi-card-loc{display:flex;gap:6px;align-items:flex-start;opacity:.8;font-size:.95rem;margin-top:6px}
body .emi-facts{display:flex;flex-wrap:wrap;gap:6px 26px;margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(0,0,0,.14)}
body .emi-facts div{display:flex;flex-direction:column}
body .emi-facts dt{font-size:.78rem;opacity:.7;font-weight:400}
body .emi-facts dd{margin:0;font-weight:700}
body .emi-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:18px}
body .emi-card-actions a.emi-btn{min-height:44px;padding:0 20px}
body .emi-section a.emi-text-link{color:var(--emi-ink);font-weight:600;font-size:.95rem;text-underline-offset:4px}

/* ---------- Registro / formulario ---------- */
body .emi-registro-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(32px,6vw,80px);align-items:center}
body .emi-registro-copy h2{font-size:clamp(2.6rem,6vw,4.6rem)}
body .emi-registro-copy p{margin-top:16px;font-size:1.1rem;opacity:.8;max-width:30em}
body .emi-registro-arrow{display:inline-flex;margin-top:28px;width:64px;height:64px;border-radius:50%;align-items:center;justify-content:center;background:var(--emi-cta);color:var(--emi-cta-ink);font-size:1.6rem}
@media (max-width:860px){body .emi-registro-grid{grid-template-columns:1fr}body .emi-registro-arrow{transform:rotate(90deg)}}
body .emi-form-card{background:var(--emi-surface);border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:clamp(22px,3vw,34px);box-shadow:0 18px 50px rgba(24,38,31,.08)}
body .emi-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body .emi-field{display:flex;flex-direction:column;gap:6px}
body .emi-full{grid-column:1 / -1}
body .emi-field label{font-size:.9rem;font-weight:600;color:var(--emi-ink)}
body .emi-field input,body .emi-field select,body .emi-field textarea{font-family:var(--emi-body);font-size:1rem;color:var(--emi-ink);background:#fff;border:1px solid rgba(0,0,0,.18);border-radius:8px;padding:12px 14px;min-height:50px;width:100%;box-shadow:none;margin:0}
body .emi-field textarea{min-height:96px;resize:vertical}
body .emi-field input:focus,body .emi-field select:focus,body .emi-field textarea:focus{border-color:var(--emi-btn);outline:2px solid var(--emi-btn);outline-offset:0}
body .emi-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
body .emi-consent{display:flex;gap:10px;align-items:flex-start;font-size:.85rem;line-height:1.45;color:var(--emi-ink);opacity:.9;cursor:pointer}
body .emi-consent input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--emi-btn)}
body .emi-consent a{color:inherit;text-decoration:underline}
body .emi-form button.emi-btn{width:100%;min-height:54px;font-size:1.02rem}
body .emi-status{font-size:.95rem;padding:14px 16px;border-radius:8px;background:rgba(200,65,47,.1);color:var(--emi-ink)}
body .emi-status[hidden]{display:none}
body .emi-thanks{text-align:left}
body .emi-thanks h3{font-family:var(--emi-display);font-weight:400;font-size:1.8rem;margin:0 0 10px;color:var(--emi-ink)}
body .emi-thanks p{margin:0 0 18px;opacity:.85}
@media (max-width:560px){body .emi-form{grid-template-columns:1fr}}

/* ---------- Testimonios ---------- */
body .emi-tgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
body .emi-tcard{margin:0;display:flex;flex-direction:column;justify-content:space-between;gap:20px;background:var(--emi-surface);border:1px solid rgba(0,0,0,.1);border-radius:16px;padding:24px}
body .emi-tcard blockquote{margin:0;padding:0;border:0;font-style:normal}
body .emi-tcard blockquote p{font-size:1rem;line-height:1.6}
body .emi-tcard blockquote p::before{content:"“";display:block;font-family:var(--emi-display);font-size:3rem;line-height:.6;color:var(--emi-accent);margin-bottom:10px}
body .emi-tcard figcaption{display:flex;align-items:center;gap:12px}
body .emi-tcard figcaption img{width:48px!important;height:48px!important;max-width:none!important;border-radius:50%!important;object-fit:cover!important}
body .emi-tcard figcaption span{display:flex;flex-direction:column;line-height:1.3}
body .emi-tcard small{opacity:.7;font-size:.82rem}
@media (max-width:720px){body .emi-tgrid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:8px}body .emi-tcard{flex:0 0 82%;scroll-snap-align:start}}

/* ---------- Página de proyecto ---------- */
body .emi-phero{position:relative;min-height:88svh;display:flex;align-items:flex-end;overflow:hidden;background:#1F2E3E;color:#F7F3E8}
body .emi-phero-short{min-height:56svh}
body .emi-phero img.emi-phero-img{position:absolute;inset:0}
body .emi-phero-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,14,20,.85) 0%,rgba(8,14,20,.35) 45%,rgba(8,14,20,.45) 100%)}
body .emi-phero-body{position:relative;width:100%;max-width:1200px;margin:0 auto;padding:140px clamp(20px,4vw,48px) clamp(40px,6vw,72px);display:flex;flex-direction:column;align-items:flex-start;gap:12px}
body .emi-phero h1{font-size:clamp(2.6rem,6.5vw,5.2rem);color:#F7F3E8}
body .emi-phero-cat{font-weight:600;letter-spacing:.04em;color:var(--emi-scene-accent)}
body .emi-phero-loc{display:flex;gap:8px;align-items:center;font-size:1.1rem;color:#EAE4D6}
body .emi-phero-desc{max-width:40em;color:#EAE4D6;font-size:1.1rem}
body .emi-phero-desc p{margin:0}
body .emi-factbar-sec{padding-bottom:0}
body .emi-factbar-sec .emi-wrap{padding-top:0}
body .emi-factbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:-44px 0 0;position:relative;z-index:2;background:var(--emi-surface);border:1px solid rgba(0,0,0,.08);border-radius:14px;box-shadow:0 18px 50px rgba(24,38,31,.1);overflow:hidden}
body .emi-factbar div{padding:20px 22px;border-right:1px solid rgba(0,0,0,.08)}
body .emi-factbar dt{font-size:.8rem;opacity:.7}
body .emi-factbar dd{margin:4px 0 0;font-weight:700;font-size:1.02rem;line-height:1.35}
body .emi-pintro-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(32px,6vw,80px);align-items:start}
body .emi-lead-text{font-family:var(--emi-display);font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.3}
body .emi-content{margin-top:18px}
body .emi-benefits{background:var(--emi-surface);border-radius:16px;padding:28px;border:1px solid rgba(0,0,0,.08)}
body .emi-benefits h2{font-size:1.8rem;margin-bottom:14px}
body .emi-benefits ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
body .emi-benefits li{display:flex;gap:10px;align-items:flex-start;margin:0}
body .emi-benefits li::marker{content:none}
body .emi-benefits .emi-ico{color:var(--emi-btn);margin-top:3px}
@media (max-width:860px){body .emi-pintro-grid{grid-template-columns:1fr}}
body .emi-ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
body .emi-section button.emi-gthumb{display:block;aspect-ratio:4/3;padding:0;border:0;border-radius:10px;overflow:hidden;cursor:zoom-in;background:#1F2E3E}
body .emi-lightbox{width:min(1200px,calc(100% - 20px));max-width:none;max-height:calc(100dvh - 20px);padding:0;border:0;border-radius:10px;background:#0E1622;color:#F7F3E8;overflow:hidden}
body .emi-lightbox::backdrop{background:rgba(6,12,10,.85)}
body .emi-lightbox figure{margin:0}
body .emi-lightbox img{width:100%!important;height:auto!important;max-height:calc(100dvh - 90px)!important;object-fit:contain!important;display:block}
body .emi-lightbox figcaption{padding:12px 18px;font-size:.95rem}
body .emi-lightbox button{position:absolute;z-index:2;width:46px;height:46px;border-radius:50%;border:0;background:rgba(247,243,232,.92);color:#18261F;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;font-size:1.4rem;line-height:1}
body .emi-lightbox .emi-lb-close{top:10px;right:10px}
body .emi-lightbox .emi-lb-prev{left:10px;top:50%;transform:translateY(-50%)}
body .emi-lightbox .emi-lb-next{right:10px;top:50%;transform:translateY(-50%)}
body .emi-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:26px;border-left:2px solid rgba(0,0,0,.12);padding-left:24px}
body .emi-tl-item{position:relative;display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:22px;align-items:start;margin:0}
body .emi-tl-item::before{content:"";position:absolute;left:-32px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--emi-cta);border:3px solid var(--emi-bg)}
body .emi-tl-item img{aspect-ratio:4/3;border-radius:10px!important;height:auto!important}
body .emi-tl-item time{font-size:.85rem;font-weight:700;color:var(--emi-accent)}
body .emi-tl-item h3{font-size:1.5rem;margin:4px 0 6px}
@media (max-width:640px){body .emi-tl-item{grid-template-columns:1fr}}
body .emi-ubicacion-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,64px);align-items:start}
body .emi-ubicacion-grid .emi-head{grid-template-columns:1fr;margin-bottom:18px}
body .emi-direccion{display:flex;gap:8px;align-items:flex-start;margin:0 0 22px}
body .emi-map{border-radius:14px;overflow:hidden;aspect-ratio:4/3;background:#ddd}
body .emi-map iframe{width:100%;height:100%;border:0;display:block}
@media (max-width:860px){body .emi-ubicacion-grid{grid-template-columns:1fr}}
body .emi-terminos .emi-wrap{padding-top:0}
body .emi-details{border:1px solid rgba(0,0,0,.14);border-radius:12px;background:var(--emi-surface)}
body .emi-details summary{cursor:pointer;padding:18px 22px;font-weight:700;list-style:none}
body .emi-details summary::-webkit-details-marker{display:none}
body .emi-details summary::after{content:"+";float:right;font-size:1.3rem;line-height:1}
body .emi-details[open] summary::after{content:"–"}
body .emi-details-body{padding:0 22px 20px;font-size:.95rem;opacity:.85}
body .emi-details-body p{margin:0 0 10px}

/* ---------- Pie de página ---------- */
body .emi-footer{background:var(--emi-foot);color:var(--emi-foot-ink);font-size:.95rem;line-height:1.6}
body .emi-footer-in{max-width:1200px;margin:0 auto;padding:clamp(48px,6vw,72px) clamp(20px,4vw,48px) 32px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px}
body .emi-footer h3{font-family:var(--emi-body);font-weight:700;font-size:1rem;margin:0 0 14px;color:var(--emi-foot-ink)}
body .emi-footer a,body .emi-footer a:hover{color:var(--emi-foot-ink);text-decoration:none}
body .emi-footer a:hover{text-decoration:underline}
body .emi-fcol-brand .emi-brand{margin-bottom:16px}
body .emi-fcol p{opacity:.9}
body .emi-flinks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
body .emi-flinks li{margin:0}
body .emi-flinks li::marker{content:none}
body .emi-fnote{font-size:.8rem;opacity:.6}
body .emi-social{display:flex;gap:10px;margin-top:16px}
body .emi-social a{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:1.1rem}
body .emi-social a:hover{background:rgba(255,255,255,.22);text-decoration:none}
body .emi-footer-bottom{max-width:1200px;margin:0 auto;padding:18px clamp(20px,4vw,48px) calc(26px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(255,255,255,.15);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:.85rem}
body .emi-libro{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid rgba(255,255,255,.35);border-radius:8px;font-weight:600}
@media (max-width:900px){body .emi-footer-in{grid-template-columns:1fr 1fr}}
@media (max-width:560px){body .emi-footer-in{grid-template-columns:1fr}}

/* ---------- Botón flotante ---------- */
body a.emi-float,body button.emi-float,body a.emi-float:hover,body button.emi-float:hover{position:fixed;right:16px;bottom:calc(env(safe-area-inset-bottom,0px) + 16px);z-index:998;display:inline-flex;align-items:center;gap:8px;min-height:50px;padding:0 20px;border-radius:999px;border:0;background:var(--emi-btn);color:var(--emi-btn-ink);text-decoration:none;font-family:var(--emi-body);font-weight:700;font-size:.95rem;box-shadow:0 8px 26px rgba(0,0,0,.28);cursor:pointer}
body button.emi-float-form{background:#C8412F;color:#fff}
body .emi-float-dialog{width:min(480px,calc(100% - 20px));max-height:calc(100dvh - 20px);padding:28px 24px 24px;border:0;border-radius:16px;background:var(--emi-surface);color:var(--emi-ink);overflow:auto}
body .emi-float-dialog::backdrop{background:rgba(6,12,10,.6)}
body .emi-float-dialog h2{font-size:1.9rem;margin:0 0 6px;color:var(--emi-ink)}
body .emi-float-dialog > p{margin:0 0 18px;opacity:.8}
body .emi-float-dialog button.emi-fd-close{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(0,0,0,.15);background:transparent;color:var(--emi-ink);font-size:1.3rem;line-height:1;padding:0;cursor:pointer}

/* ---------- Compatibilidad con temas (Hello, temas de bloques y otros) ---------- */
body .emi-header{max-width:none!important;width:auto!important;margin:0!important}
body .emi-journey,body .emi-section,body .emi-footer,body .emi-phero{max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;margin-block:0!important}
body.emi-template .emi-section,body.emi-template .emi-footer,body.emi-template .emi-phero{max-width:100%!important;margin-left:0!important;margin-right:0!important}
body:has(.emi-header) header.wp-block-template-part,body:has(.emi-header) .wp-block-post-title,
body:has(.emi-footer) footer.wp-block-template-part{display:none!important}
body:has(.emi-journey) :is(main,.wp-site-blocks,.entry-content,.wp-block-post-content,.site-main,#content,#primary,.page-content){margin-top:0!important;padding-top:0!important;margin-block-start:0!important}
body:has(.emi-footer) :is(main,.wp-site-blocks,.entry-content,.wp-block-post-content,.site-main,.page-content){margin-bottom:0!important;padding-bottom:0!important}

/* ---------- Blog ---------- */
body .emi-section a.emi-chip,body .emi-section a.emi-chip:hover{display:inline-flex;align-items:center;min-height:40px;padding:0 18px;border-radius:999px;border:1px solid rgba(0,0,0,.2);color:var(--emi-ink);text-decoration:none;font-family:var(--emi-body);font-size:.92rem;font-weight:500}
body .emi-section a.emi-chip.emi-chip-on{background:var(--emi-ink);color:var(--emi-bg);border-color:var(--emi-ink)}
body .emi-post-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--emi-btn);color:var(--emi-btn-ink);font-family:var(--emi-display);font-size:4rem}
body .emi-post-excerpt{margin-top:8px;opacity:.8;font-size:.98rem}
body .emi-post-more{display:inline-block;margin-top:12px}
body .emi-blog-all{margin-top:36px}
body .emi-pagination{margin-top:44px;display:flex;flex-wrap:wrap;gap:8px}
body .emi-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid rgba(0,0,0,.18);color:var(--emi-ink);text-decoration:none;font-weight:600}
body .emi-pagination .page-numbers.current{background:var(--emi-ink);color:var(--emi-bg);border-color:var(--emi-ink)}
body .emi-phero-post{min-height:70svh}
body .emi-phero-plain{background:var(--emi-foot);min-height:52svh}
body .emi-phero-plain .emi-phero-shade{display:none}
body .emi-post-head{max-width:880px}
body .emi-post-head h1{font-size:clamp(2.2rem,5vw,4rem)}
body .emi-phero a.emi-badge,body .emi-phero a.emi-badge:hover{text-decoration:none;color:#1B1B1B}
body .emi-post-meta{color:#EAE4D6;font-size:.95rem}
body .emi-post-body .emi-wrap{max-width:780px}
body .emi-prose{font-size:1.12rem;line-height:1.75;color:var(--emi-ink)}
body .emi-prose > *{margin:0 0 1.2em}
body .emi-prose h2{font-family:var(--emi-display);font-weight:400;font-size:clamp(1.7rem,3vw,2.3rem);line-height:1.2;margin:1.6em 0 .6em;color:var(--emi-ink)}
body .emi-prose h3{font-family:var(--emi-display);font-weight:400;font-size:1.5rem;line-height:1.25;margin:1.4em 0 .5em;color:var(--emi-ink)}
body .emi-prose h4{font-family:var(--emi-body);font-weight:700;font-size:1.1rem;margin:1.3em 0 .4em}
body .emi-prose a{color:var(--emi-btn);text-decoration:underline;text-underline-offset:3px}
body .emi-prose ul,body .emi-prose ol{padding-left:1.3em}
body .emi-prose li{margin:.35em 0}
body .emi-prose img{max-width:100%;height:auto;border-radius:10px}
body .emi-prose figure{margin:1.6em 0}
body .emi-prose figcaption{font-size:.88rem;opacity:.7;margin-top:8px;text-align:center}
body .emi-prose .alignwide,body .emi-prose .alignfull{margin-left:calc(50% - min(50vw,600px) + 20px);margin-right:calc(50% - min(50vw,600px) + 20px);max-width:none}
body .emi-prose blockquote,body .emi-prose .wp-block-quote{margin:1.6em 0;padding:4px 0 4px 22px;border-left:4px solid var(--emi-cta);font-family:var(--emi-display);font-size:1.35rem;line-height:1.45}
body .emi-prose blockquote cite{display:block;font-family:var(--emi-body);font-size:.9rem;font-style:normal;opacity:.7;margin-top:8px}
body .emi-prose table{width:100%;border-collapse:collapse;font-size:.98rem}
body .emi-prose th,body .emi-prose td{border:1px solid rgba(0,0,0,.15);padding:10px 12px;text-align:left}
body .emi-prose .wp-block-table{overflow-x:auto}
body .emi-prose .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--emi-btn);color:var(--emi-btn-ink);text-decoration:none;font-weight:600}
body .emi-prose .wp-block-embed iframe,body .emi-prose iframe{max-width:100%;border-radius:10px}
body .emi-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper{position:relative;aspect-ratio:16/9}
body .emi-prose .wp-block-embed.is-type-video iframe{position:absolute;inset:0;width:100%;height:100%}
body .emi-post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}
body .emi-post-share{margin-top:24px;padding-top:20px;border-top:1px solid rgba(0,0,0,.12);display:flex;flex-wrap:wrap;gap:16px;font-weight:600}
body .emi-post-share a{color:var(--emi-btn)}
