/* CaviLife · Equipo (página equipo.html + bloque de la portada)
   Todo va con prefijo .eq- para no chocar con estilos.css */
:root{
  --eq-ice:#eaf3fa;      /* océano del mapa */
  --eq-ice-2:#dbe9f5;
  --eq-land:#ffffff;
  --eq-navy:#0d3a6e;     /* CTA y titulares */
  --eq-ink:#0a2a4f;
  --eq-cyan:#19a7e6;     /* logo, países y arcos */
  --eq-mute:#5a7290;
  --eq-line:#d3e3f1;
  --eq-radius:22px;
}

/* la web pone padding a todas las <section>: aquí cada bloque lleva el suyo */
section.eq-hero,section.eq-branch,section.eq-sales,section.eq-home{padding-block:0}

/* ---------- mapa ---------- */
.eq-map{position:absolute;inset:0;overflow:hidden;background:
  radial-gradient(120% 90% at 60% 40%,#f4f9fd 0%,var(--eq-ice) 55%,var(--eq-ice-2) 100%)}
.eq-svg{width:100%;height:100%;display:block}
.eq-land{fill:var(--eq-land);stroke:#e3eef7;stroke-width:.6}
.eq-waves path{fill:none;stroke:#b9d5ea;stroke-width:1.6;stroke-linecap:round;opacity:.7}
.eq-hl path{stroke:#fff;stroke-width:.8}
.eq-arc{fill:none;stroke:var(--eq-cyan);stroke-width:2.2;stroke-dasharray:7 7;stroke-linecap:round}
.eq-arc-m{fill:none;stroke:#fff;stroke-width:8;stroke-dasharray:1 1;stroke-dashoffset:1}
.eq-pin{cursor:default}
.eq-hl-proj{fill:#9fdbf5;stroke:#fff;stroke-width:.8}
.eq-arc--p{stroke-width:1.3;stroke-dasharray:4 6;opacity:.6}
.eq-proj-dot{fill:#fff;stroke:var(--eq-cyan);stroke-width:3.2}
.eq-proj-ring{fill:none;stroke:var(--eq-cyan);stroke-width:1.2;opacity:0;transform-box:fill-box;transform-origin:center}
.eq-proj-t{font:600 13.5px/1 "Inter Tight",Inter,system-ui,sans-serif;fill:var(--eq-ink);paint-order:stroke;stroke:rgba(255,255,255,.92);stroke-width:4px;stroke-linejoin:round}
.eq-proj{opacity:0;transition:opacity .5s ease;transition-delay:calc(var(--j)*.12s + 1.7s)}
.is-live .eq-proj{opacity:1}
.eq-arc-m--p{transition-delay:calc(var(--j)*.12s + 1.5s)}
.is-live .eq-proj-ring{animation:eq-ring 3.6s ease-out infinite;animation-delay:calc(var(--j)*.4s + 2.4s)}
.eq-drop-shape{fill:#fff}
.eq-drop-ring{fill:none;stroke:var(--eq-cyan);stroke-width:2}
.eq-base{fill:var(--eq-cyan);opacity:.35}
.eq-ring{fill:none;stroke:var(--eq-cyan);stroke-width:1.4;opacity:0}
.eq-tag rect{fill:rgba(255,255,255,.94);stroke:#e1ecf6;filter:drop-shadow(0 6px 14px rgba(13,58,110,.12))}
.eq-tag-t{font:600 17px/1 "Inter Tight",Inter,system-ui,sans-serif;fill:var(--eq-ink)}
.eq-tag-s{font:500 11.5px/1 Inter,system-ui,sans-serif;fill:var(--eq-cyan)}
.eq-pin.is-hub .eq-tag-t{font-size:19px}

/* estado inicial → animación única al entrar en pantalla */
.eq-drop{opacity:0;transform:translateY(-14px);transition:opacity .5s ease,transform .7s cubic-bezier(.2,.9,.25,1.25)}
.eq-tag{opacity:0;transition:opacity .6s ease}
.eq-pin .eq-tag{transition-delay:calc(var(--i)*.35s + .55s)}
.eq-pin .eq-drop{transition-delay:calc(var(--i)*.35s)}
.is-live .eq-drop{opacity:1;transform:none}
.is-live .eq-tag{opacity:1}
.eq-arc-m{transition:stroke-dashoffset 1.4s cubic-bezier(.6,.05,.3,1);transition-delay:calc(var(--i)*.35s + .2s)}
.is-live .eq-arc-m{stroke-dashoffset:0}
.is-live .eq-ring{animation:eq-ring 3.2s ease-out infinite;animation-delay:calc(var(--i)*.35s + 1s)}
.is-live .eq-ring--2{animation-delay:calc(var(--i)*.35s + 2.6s)}
@keyframes eq-ring{0%{opacity:.8;transform:scale(.3)}100%{opacity:0;transform:scale(1.6)}}
.eq-ring{transform-box:fill-box;transform-origin:center}
@media (prefers-reduced-motion:reduce){
  .eq-drop,.eq-tag{transition:none}.eq-arc-m{transition:none}.is-live .eq-ring,.is-live .eq-proj-ring{animation:none}.eq-proj{transition:none}
}

/* ---------- tipografía y piezas comunes ---------- */
.eq{font-family:Inter,system-ui,sans-serif;color:var(--eq-ink);-webkit-font-smoothing:antialiased}
.eq h1,.eq h2,.eq h3{font-family:"Inter Tight",Inter,system-ui,sans-serif;letter-spacing:-.025em;margin:0}
.eq-wrap{width:min(1240px,100% - 48px);margin-inline:auto}
.eq-kicker{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:.95rem;color:var(--eq-cyan);margin:0 0 18px}
.eq-kicker::before{content:"";width:28px;height:3px;border-radius:3px;background:var(--eq-cyan)}
.eq-lead{font-size:1.14rem;line-height:1.6;color:var(--eq-mute);max-width:56ch;margin:0}
.eq-btn{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 26px;border-radius:999px;font:600 1rem/1 Inter,system-ui,sans-serif;text-decoration:none;transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.eq-btn--solid{background:var(--eq-navy);color:#fff;box-shadow:0 10px 24px -10px rgba(13,58,110,.6)}
.eq-btn--solid:hover{background:#0a2f5a;transform:translateY(-1px)}
.eq-btn--ghost{background:rgba(255,255,255,.8);color:var(--eq-navy);box-shadow:inset 0 0 0 1.5px var(--eq-line)}
.eq-btn--ghost:hover{box-shadow:inset 0 0 0 1.5px var(--eq-cyan)}
.eq-btn--white{background:#fff;color:var(--eq-navy)}
.eq-btn--white:hover{background:#e9f6fd}
.eq a:focus-visible,.eq-btn:focus-visible{outline:3px solid var(--eq-cyan);outline-offset:3px;border-radius:12px}
.eq-mail{display:inline-flex;align-items:center;gap:8px;color:var(--eq-navy);text-decoration:none;font-weight:500;font-size:.95rem;border-bottom:1.5px solid transparent;transition:border-color .2s,color .2s}
.eq-mail:hover{color:var(--eq-cyan);border-color:currentColor}
.eq-mail svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8}

/* retrato / iniciales */
.eq-face{position:relative;aspect-ratio:1;border-radius:var(--eq-radius);overflow:hidden;background:linear-gradient(180deg,#ecf3f9,#d2e2ef)}
.eq-face img{width:100%;height:100%;object-fit:cover;display:block}
.eq-person .eq-face img{transform:scale(1.18);transform-origin:50% 30%}
.eq-face--ini{display:grid;place-items:center}
.eq-face--ini span{font:600 clamp(2.4rem,5vw,3.6rem)/1 "Inter Tight",sans-serif;letter-spacing:-.04em;color:var(--eq-navy);
  width:46%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.7);box-shadow:0 0 0 1.5px rgba(25,167,230,.35),0 18px 30px -18px rgba(13,58,110,.45)}
.eq-face--ini::after{content:"";position:absolute;inset:auto 0 0;height:38%;background:linear-gradient(180deg,transparent,rgba(13,58,110,.05))}

/* =========================================================
   PÁGINA EQUIPO
   ========================================================= */
.eq-hero{position:relative;min-height:max(600px,min(100svh,52vw));display:flex;flex-direction:column;overflow:hidden;background:var(--eq-ice)}
.eq-hero>.eq-map::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,rgba(240,247,252,.96) 0%,rgba(240,247,252,.86) 26%,rgba(240,247,252,.35) 40%,rgba(240,247,252,0) 50%),
             linear-gradient(0deg,rgba(234,243,250,.85) 0%,rgba(234,243,250,0) 16%)}
.eq-hero-in{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:center;padding:118px 0 64px}
.eq-hero h1{font-size:clamp(2.4rem,5vw,4.5rem);line-height:.98;font-weight:700;color:var(--eq-ink);max-width:11ch;margin:0 0 24px}
.eq-hero .eq-lead{margin-bottom:32px;font-size:1.06rem;max-width:40ch}
.eq-hero-cta{display:flex;flex-wrap:wrap;gap:12px}
.eq-hero-foot{position:relative;z-index:2;border-top:1px solid rgba(13,58,110,.08);background:rgba(255,255,255,.6);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.eq-places{display:flex;list-style:none;margin:0;padding:0}
.eq-places li{flex:1 1 0;min-width:0}
.eq-places li.eq-places-wide{flex:2.2 1 0}
.eq-places a{display:block;height:100%;padding:20px 24px 22px 0;text-decoration:none;color:var(--eq-ink)}
.eq-places li+li a{padding-left:24px;border-left:1px solid rgba(13,58,110,.08)}
.eq-places strong{display:block;font:600 1.05rem/1.2 "Inter Tight",sans-serif}
.eq-places span{font-size:.88rem;line-height:1.45;color:var(--eq-mute)}
.eq-places a:hover strong{color:var(--eq-cyan)}

/* dirección */
section.eq-lead-block{padding:clamp(80px,11vw,150px) 0 clamp(60px,8vw,100px);background:#fff}
.eq-ceo{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,6vw,96px);align-items:center}
.eq-ceo .eq-face{border-radius:30px;box-shadow:0 40px 80px -40px rgba(13,58,110,.35)}
.eq-ceo-name{font-size:clamp(2.4rem,5vw,4.2rem);line-height:1;font-weight:700;margin:0 0 14px}
.eq-ceo-role{font:500 1.25rem/1.3 "Inter Tight",sans-serif;color:var(--eq-cyan);margin:0 0 28px}
.eq-ceo p.eq-lead{margin-bottom:30px}

/* equipo */
section.eq-team{padding:0 0 clamp(90px,12vw,160px);background:#fff}
.eq-team-head{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-top:clamp(40px,6vw,70px);border-top:1px solid var(--eq-line);margin-bottom:44px}
.eq-team-head h2{font-size:clamp(2rem,3.6vw,3rem);line-height:1.05}
.eq-team-head .eq-lead{max-width:44ch;font-size:1.02rem}
.eq-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,32px);list-style:none;margin:0;padding:0}
.eq-person h3{font-size:1.3rem;line-height:1.2;margin:20px 0 4px}
.eq-person .eq-role{margin:0 0 14px;color:var(--eq-mute);font-size:.95rem}
.eq-where{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:7px;padding:7px 12px 7px 9px;border-radius:999px;background:rgba(255,255,255,.92);font:600 .8rem/1 Inter,sans-serif;color:var(--eq-navy);box-shadow:0 6px 18px -8px rgba(13,58,110,.4)}
.eq-where i{width:8px;height:8px;border-radius:50%;background:var(--eq-cyan);box-shadow:0 0 0 4px rgba(25,167,230,.18)}

/* delegación Perú */
.eq-branch{position:relative;background:var(--eq-ice);overflow:hidden}
.eq-branch-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:560px}
.eq-branch-map{position:relative;min-height:420px}
.eq-branch-map .eq-map{background:transparent}
.eq-branch-copy{padding:clamp(60px,8vw,110px) 0 clamp(60px,8vw,110px) clamp(24px,5vw,72px);align-self:center}
.eq-branch-copy h2{font-size:clamp(2.2rem,4.4vw,3.6rem);line-height:1;margin-bottom:20px}
.eq-branch-copy .eq-lead{margin-bottom:40px}
.eq-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0}
.eq-duo li{display:flex;gap:16px;align-items:center;padding:16px;border-radius:20px;background:#fff;box-shadow:0 20px 40px -28px rgba(13,58,110,.4)}
.eq-duo .eq-face{width:68px;flex:none;border-radius:16px}
.eq-duo .eq-face--ini span{font-size:1.25rem;width:72%;box-shadow:0 0 0 1.5px rgba(25,167,230,.35)}
.eq-duo h3{font-size:1.08rem;margin:0 0 4px}
.eq-duo .eq-mail{font-size:.86rem}

/* contacto comercial */
.eq-sales{background:var(--eq-navy);color:#fff;position:relative;overflow:hidden}
.eq-sales::before{content:"";position:absolute;right:-12%;top:-60%;width:70%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(25,167,230,.35),rgba(25,167,230,0) 65%)}
.eq-sales-in{position:relative;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:end;padding:clamp(70px,9vw,120px) 0}
.eq-sales h2{font-size:clamp(2.2rem,4.6vw,3.8rem);line-height:1;color:#fff;margin-bottom:18px}
.eq-sales p{color:#bcd3ea;font-size:1.1rem;line-height:1.6;margin:0;max-width:46ch}
.eq-sales-links{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.eq-sales-links a:not(.eq-btn){color:#fff;text-decoration:none;font:600 clamp(1.3rem,2.2vw,1.7rem)/1.3 "Inter Tight",sans-serif;border-bottom:2px solid rgba(255,255,255,.2)}
.eq-sales-links a:not(.eq-btn):hover{border-color:var(--eq-cyan)}
.eq-sales-links .eq-btn{margin-top:22px}

/* =========================================================
   BLOQUE DE LA PORTADA
   ========================================================= */
.eq-home{position:relative;overflow:hidden;background:linear-gradient(180deg,#f4f9fd 0%,var(--eq-ice) 40%,var(--eq-ice-2) 100%)}
.eq-home-in{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(28px,5vw,80px);align-items:end;padding-top:clamp(70px,8vw,110px)}
.eq-home-in h2{font-size:clamp(2.3rem,4.6vw,4rem);line-height:1;font-weight:700;max-width:12ch;margin:0}
.eq-home-in .eq-lead{margin-bottom:26px}
.eq-home-side{display:flex;flex-direction:column;align-items:flex-start}
.eq-stack{display:flex;align-items:center;gap:18px;margin-bottom:28px}
.eq-stack ul{display:flex;list-style:none;margin:0;padding:0}
.eq-stack li{width:58px;margin-left:-14px}
.eq-stack li:first-child{margin-left:0}
.eq-stack .eq-face{border-radius:50%;box-shadow:0 0 0 3px var(--eq-ice),0 8px 18px -8px rgba(13,58,110,.5)}
.eq-stack .eq-face img{transform:scale(1.55);transform-origin:50% 40%}
.eq-stack .eq-face--ini span{width:100%;font-size:1.05rem;background:transparent;box-shadow:none}
.eq-stack p{margin:0;font-size:.92rem;line-height:1.4;color:var(--eq-mute);max-width:26ch}
.eq-home-map{position:relative;aspect-ratio:1300/650;max-height:760px;width:100%;margin-top:-6px}
.eq-home-map .eq-map{background:transparent;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 92%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 92%,transparent 100%)}

/* ---------- responsive ---------- */
@media (max-width:1020px){
  .eq-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eq-ceo{grid-template-columns:1fr}
  .eq-ceo .eq-face{max-width:520px}
  .eq-branch-in,.eq-home-in,.eq-sales-in{grid-template-columns:1fr}
  .eq-branch-copy{padding-left:0}
  .eq-branch-map{min-height:360px;order:2}
  .eq-places{flex-wrap:wrap}
  .eq-places li,.eq-places li.eq-places-wide{flex:1 1 45%}
  .eq-team-head{flex-direction:column;align-items:start}
}
@media (max-width:640px){
  .eq-hero{min-height:auto}
  .eq-hero-in{order:1;padding:108px 0 8px}
  .eq-hero>.eq-map{order:2;position:relative;inset:auto;aspect-ratio:730/565;width:100%}
  .eq-hero>.eq-map::after{background:linear-gradient(180deg,var(--eq-ice) 0%,rgba(234,243,250,0) 16%)}
  .eq-hero-foot{order:3}
  .eq-home-map{aspect-ratio:730/565}
  .eq-places{flex-direction:column}
  .eq-places li+li a{padding-left:0;border-left:0;border-top:1px solid rgba(13,58,110,.08)}
  .eq-places a{padding:14px 0}
  .eq-grid{gap:28px 16px}
  .eq-person h3{font-size:1.1rem}
  .eq-person .eq-mail{font-size:.78rem}
  .eq-person .eq-mail svg{display:none}
  .eq-duo{grid-template-columns:1fr}
  .eq-stack{flex-wrap:wrap}
  .eq-stack p{max-width:none}
}
