:root{--he-green:#3F5F50;--he-green2:#587768;--he-cream:#F7F3EC;--he-coral:#E66B5B;--he-ink:#24312B;--he-muted:#6E7973}
.he-wrap{max-width:1240px;margin:0 auto;padding:72px 24px;font-family:inherit;color:var(--he-ink)}
.he-head{text-align:center;max-width:760px;margin:0 auto 46px}.he-kicker,.he-modal-brand{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.18em;color:var(--he-green);background:#eef3ef;border-radius:999px;padding:9px 14px}.he-head h2{font-size:clamp(34px,5vw,56px);line-height:1.04;margin:18px 0 14px;color:var(--he-green)}.he-head p{font-size:18px;line-height:1.65;color:var(--he-muted);margin:0 auto}.he-paw{width:42px;height:42px;margin:20px auto 0;border-radius:50%;display:grid;place-items:center;background:var(--he-coral);color:#fff;box-shadow:0 10px 25px rgba(230,107,91,.25)}
.he-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.he-card{background:#fff;border:1px solid rgba(63,95,80,.12);border-radius:28px;overflow:hidden;box-shadow:0 14px 42px rgba(36,49,43,.08);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}.he-card:hover{transform:translateY(-7px);box-shadow:0 22px 55px rgba(36,49,43,.14);border-color:rgba(63,95,80,.3)}
.he-photo{position:relative;aspect-ratio:4/3;background:linear-gradient(135deg,var(--he-cream),#e8efe9);overflow:hidden}.he-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}.he-card:hover .he-photo img{transform:scale(1.035)}.he-accent{position:absolute;left:24px;bottom:-3px;width:74px;height:7px;border-radius:99px;background:var(--he-coral)}.he-placeholder{height:100%;display:grid;place-items:center;font-size:70px}
.he-body{padding:28px}.he-role{font-size:12px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:var(--he-coral);margin-bottom:8px}.he-body h3{font-size:25px;line-height:1.15;margin:0 0 12px;color:var(--he-green)}.he-phrase{font-weight:650;line-height:1.5;margin:0 0 12px;color:var(--he-ink)}.he-location{font-size:13px;color:var(--he-muted);margin-bottom:14px}.he-summary{font-size:14px;line-height:1.65;color:var(--he-muted);margin:15px 0 20px}.he-open{border:0!important;background:var(--he-green)!important;color:#fff!important;border-radius:999px!important;padding:11px 17px!important;font:inherit!important;font-size:13px!important;font-weight:800!important;cursor:pointer;display:inline-flex;gap:10px;align-items:center;transition:.2s}.he-open:hover{background:var(--he-coral)!important;transform:translateX(2px)}.he-empty{text-align:center;background:var(--he-cream);border-radius:24px;padding:38px;line-height:1.7;color:var(--he-green)}
body.he-modal-lock{overflow:hidden}.he-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;visibility:hidden;opacity:0;transition:opacity .25s ease,visibility .25s}.he-modal.is-open{visibility:visible;opacity:1}.he-modal-backdrop{position:absolute;inset:0;background:rgba(24,35,30,.68);backdrop-filter:blur(7px)}.he-modal-panel{position:relative;width:min(1040px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:30px;box-shadow:0 30px 100px rgba(0,0,0,.3);transform:translateY(18px) scale(.985);transition:transform .28s ease}.he-modal.is-open .he-modal-panel{transform:none}.he-close{position:absolute;right:18px;top:18px;z-index:5;width:44px;height:44px;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:var(--he-green)!important;font-size:29px!important;line-height:1!important;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.12)}
.he-modal-hero{display:grid;grid-template-columns:38% 62%;min-height:360px;background:linear-gradient(135deg,var(--he-cream),#edf3ee)}.he-modal-photo{min-height:360px;overflow:hidden}.he-modal-photo img{width:100%;height:100%;object-fit:cover;display:block}.he-modal-intro{padding:58px 56px;display:flex;flex-direction:column;justify-content:center}.he-modal-brand{align-self:flex-start;margin-bottom:22px}.he-modal-intro h2{font-size:clamp(32px,4vw,48px);line-height:1.05;color:var(--he-green);margin:0 0 16px}.he-modal-phrase{font-size:18px;line-height:1.55;font-weight:650;color:var(--he-ink);max-width:620px;margin:0 0 17px}
.he-modal-content{display:grid;grid-template-columns:1.35fr .85fr;gap:52px;padding:46px 54px 52px}.he-section-label{display:block;font-size:11px;letter-spacing:.16em;font-weight:850;color:var(--he-coral);margin-bottom:15px}.he-bio{font-size:16px;line-height:1.8;color:var(--he-muted)}.he-bio p:first-child{margin-top:0}.he-modal-side{display:flex;flex-direction:column;gap:28px}.he-modal-side section{padding-bottom:25px;border-bottom:1px solid #e9eeeb}.he-modal-side section:last-child{border-bottom:0}.he-modal-side ul{margin:0;padding:0;list-style:none}.he-modal-side li{position:relative;padding:0 0 10px 22px;color:var(--he-ink);line-height:1.5;font-size:14px}.he-modal-side li:before{content:'✓';position:absolute;left:0;color:var(--he-green);font-weight:900}.he-tags{display:flex;gap:8px;flex-wrap:wrap}.he-tags span{background:var(--he-cream);color:var(--he-green);font-size:12px;font-weight:750;padding:8px 11px;border-radius:999px}.he-links{display:flex;gap:9px;flex-wrap:wrap}.he-links a{display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;font-size:13px;font-weight:750;color:var(--he-green)!important;background:var(--he-cream);padding:9px 12px;border-radius:999px;transition:.2s}.he-links a:hover{background:var(--he-green);color:#fff!important}
@media(max-width:980px){.he-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.he-wrap{padding:56px 20px}.he-modal-hero{grid-template-columns:42% 58%}.he-modal-intro{padding:45px 35px}.he-modal-content{padding:38px;gap:34px}}
@media(max-width:700px){.he-modal{padding:10px;align-items:flex-end}.he-modal-panel{width:100%;max-height:94vh;border-radius:25px 25px 0 0}.he-modal-hero{grid-template-columns:1fr}.he-modal-photo{min-height:0;aspect-ratio:16/10}.he-modal-intro{padding:30px 24px}.he-modal-content{grid-template-columns:1fr;padding:28px 24px 35px;gap:30px}.he-close{top:12px;right:12px}.he-modal-brand{margin-bottom:17px}}
@media(max-width:640px){.he-wrap{padding:42px 15px}.he-grid{grid-template-columns:1fr;gap:18px}.he-head{margin-bottom:30px}.he-head p{font-size:16px}.he-card{border-radius:22px}.he-photo{aspect-ratio:4/3}.he-body{padding:23px}.he-body h3{font-size:23px}}


/* v1.2 — retrato circular + modal aislado del header/Divi */
.he-photo{aspect-ratio:auto;min-height:270px;display:flex;align-items:center;justify-content:center;padding:28px;background:linear-gradient(135deg,var(--he-cream),#e8efe9);overflow:visible}
.he-photo img{width:220px;height:220px;max-width:80%;border-radius:50%;object-fit:cover;object-position:center;box-shadow:0 12px 32px rgba(36,49,43,.16);border:6px solid #fff}
.he-card:hover .he-photo img{transform:scale(1.025)}
.he-photo .he-placeholder{width:220px;height:220px;max-width:80%;border-radius:50%;background:#fff;box-shadow:0 12px 32px rgba(36,49,43,.12)}
.he-accent{left:50%;bottom:-4px;transform:translateX(-50%);width:74px}

/* El modal se mueve a document.body por JS para escapar de stacking contexts de Divi/header */
body > .he-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom))!important;align-items:center!important;justify-content:center!important}
body > .he-modal .he-modal-backdrop{position:fixed!important;inset:0!important}
body > .he-modal .he-modal-panel{max-height:calc(100dvh - 40px)!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate}
body > .he-modal .he-close{position:sticky!important;float:right;right:16px!important;top:16px!important;margin:16px 16px -60px 0!important;z-index:50!important;display:grid!important;place-items:center!important;flex:none}
.he-modal-hero{grid-template-columns:38% 62%;align-items:center}
.he-modal-photo{min-height:360px;display:flex;align-items:center;justify-content:center;padding:34px;background:linear-gradient(135deg,var(--he-cream),#e8efe9);overflow:visible}
.he-modal-photo img{width:min(280px,82%);aspect-ratio:1/1;height:auto;border-radius:50%;object-fit:cover;object-position:center;border:8px solid #fff;box-shadow:0 18px 48px rgba(36,49,43,.18)}
.he-modal-photo .he-placeholder{width:260px;height:260px;max-width:80%;border-radius:50%;background:#fff}
@media(max-width:700px){
 body > .he-modal{padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;align-items:center!important}
 body > .he-modal .he-modal-panel{max-height:calc(100dvh - 20px)!important;border-radius:25px!important}
 body > .he-modal .he-close{top:10px!important;right:10px!important;margin:10px 10px -54px 0!important}
 .he-modal-photo{min-height:0;aspect-ratio:auto;padding:28px 24px 18px}
 .he-modal-photo img{width:190px;max-width:68vw}
}
@media(max-width:640px){.he-photo{min-height:245px;padding:24px}.he-photo img{width:195px;height:195px}}
\n\n/* v1.2.1 — modal siempre por encima del header de Divi + CTA centrado */\n.he-body .he-open{display:flex!important;width:max-content!important;margin:20px auto 0!important;justify-content:center!important;}\nbody > .he-modal{z-index:2147483647!important;transform:none!important;filter:none!important;isolation:isolate!important;}\nbody > .he-modal.is-open{z-index:2147483647!important;}\nbody > .he-modal .he-modal-backdrop{z-index:2147483645!important;}\nbody > .he-modal .he-modal-panel{z-index:2147483646!important;position:relative!important;}\nbody > .he-modal .he-close{position:fixed!important;top:max(18px,env(safe-area-inset-top))!important;right:max(22px,env(safe-area-inset-right))!important;margin:0!important;float:none!important;z-index:2147483647!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}\n@media(max-width:700px){body > .he-modal .he-close{top:max(12px,env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important;}}\n

/* v1.3 — tarjeta premium compacta: toda la información extensa vive en el modal */
.he-card{position:relative;border-color:rgba(63,95,80,.18);box-shadow:0 18px 50px rgba(36,49,43,.09);}
.he-card:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.he-photo{min-height:248px;padding:25px 28px 22px;background:radial-gradient(circle at 50% 42%,#fff 0,#f7f4ed 43%,#eaf0eb 100%)}
.he-photo img{width:190px;height:190px;border:7px solid rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(36,49,43,.15)}
.he-accent{width:58px;height:6px;bottom:-3px;box-shadow:0 4px 12px rgba(230,107,91,.2)}
.he-body{padding:27px 30px 30px;text-align:center;display:flex;flex-direction:column;align-items:center}
.he-role{display:inline-flex;align-items:center;justify-content:center;max-width:100%;font-size:10.5px;line-height:1.35;letter-spacing:.13em;padding:7px 11px;margin:0 0 14px;border-radius:999px;background:rgba(230,107,91,.09);color:var(--he-coral);}
.he-body h3{font-size:24px;line-height:1.18;margin:0 0 13px;color:var(--he-green);letter-spacing:-.015em}
.he-phrase{font-size:14px;font-weight:650;line-height:1.5;margin:0 auto 14px;max-width:31ch;color:var(--he-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.he-location{display:inline-flex;align-items:center;justify-content:center;font-size:12px;margin:0;color:var(--he-muted);background:#f7f8f6;border:1px solid rgba(63,95,80,.08);padding:7px 11px;border-radius:999px}
.he-summary{display:none!important}
.he-body .he-open{margin:20px auto 0!important;min-width:132px!important;padding:12px 18px!important;box-shadow:0 9px 22px rgba(63,95,80,.16);transition:transform .2s ease,background .2s ease,box-shadow .2s ease!important}
.he-body .he-open:hover{transform:translateY(-2px)!important;box-shadow:0 13px 28px rgba(63,95,80,.22)}
@media(max-width:640px){
 .he-photo{min-height:220px;padding:22px 24px 19px}.he-photo img{width:170px;height:170px}
 .he-body{padding:25px 24px 27px}.he-body h3{font-size:22px}.he-role{font-size:10px}.he-phrase{font-size:13.5px;max-width:29ch}
}
