<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* ===== Reset local ===== */
.referidoc-container *{margin:0;padding:0;box-sizing:border-box;font-family:'Montserrat',system-ui,-apple-system,Arial,sans-serif;}
.referidoc-body{line-height:1.65;color:rgb(0,114,144);overflow-x:hidden;background:#fff;}
.referidoc-container{width:100%;max-width:100%;margin:0 auto;padding:0 20px;}

/* ===== Hero ===== */
.referidoc-hero{
  position:relative;height:100vh;min-height:640px;display:flex;align-items:center;overflow:hidden;
  background:linear-gradient(180deg,rgba(0,114,144,.06),rgba(138,24,55,.06));
}
.referidoc-hero-image{position:absolute;inset:0;z-index:-1;transition:transform .25s ease-out;will-change:transform;}
.referidoc-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center;}
.referidoc-hero-content{width:100%;padding:0 5%;display:flex;justify-content:center;}
.referidoc-hero-text{
  max-width:820px;background:rgba(255,255,255,0.92);padding:3.2rem;border-radius:18px;
  box-shadow:0 18px 44px rgba(0,0,0,.14);text-align:center;backdrop-filter:saturate(135%) blur(2px);
}
.referidoc-hero h1{
  font-size:clamp(2.4rem,4.6vw,3.9rem);margin-bottom:1rem;color:#0b2a3a;line-height:1.12;letter-spacing:.2px;
}
.referidoc-title-gradient{
  background:linear-gradient(90deg,#e71b1f 0%,#ff6f73 35%,#fcb50c 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.referidoc-hero p{font-size:clamp(1.15rem,2.1vw,1.5rem);margin-bottom:1.2rem;color:rgb(0,114,144);}
.referidoc-hero-eyebrow{display:inline-block;margin-top:.4rem;font-size:.95rem;color:#0b2a3a;opacity:.8}

/* ===== CTA principal + variantes ===== */
.referidoc-btn-cta{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(135deg,#fcb50c,#ffc31e);color:#063849;border:none;
  padding:1.05rem 2.6rem;border-radius:999px;font-size:1.25rem;font-weight:900;letter-spacing:.3px;
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;
  transition:transform .2s ease, box-shadow .25s ease, filter .2s ease;
  box-shadow:0 14px 30px rgba(252,181,12,.35);
}
.referidoc-btn-cta--xl{font-size:1.6rem;padding:1.25rem 3.4rem;}
.referidoc-btn-cta--secondary{
  margin:2rem auto 0;display:inline-flex;justify-content:center;align-items:center;
  padding:1.05rem 2.8rem;font-size:1.25rem;background:linear-gradient(135deg,#007290,#008aa4);
  color:#fff;box-shadow:0 14px 30px rgba(0,114,144,.28);
}
.referidoc-btn-cta:hover{transform:translateY(-2px);filter:brightness(1.03);}
.referidoc-btn-cta:active,.referidoc-pressed{transform:translateY(0);filter:brightness(.98);}

/* Accesibilidad focus visible */
.referidoc-btn-cta:focus-visible{
  outline:3px solid #063849; outline-offset:2px;
  box-shadow:0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(6,56,73,.35);
}

/* glow suave alrededor */
.referidoc-btn-cta--glow{box-shadow:0 0 0 rgba(0,0,0,0),0 14px 30px rgba(0,0,0,0.12),0 0 0 8px rgba(252,181,12,.0);}
.referidoc-btn-cta--glow:hover{box-shadow:0 10px 30px rgba(252,181,12,.40),0 0 0 10px rgba(252,181,12,.06);}

/* shimmer diagonal */
.referidoc-btn-cta--shimmer::after{
  content:'';position:absolute;inset:0;pointer-events:none;transform:translateX(-120%);
  background:linear-gradient(60deg,transparent 35%,rgba(255,255,255,.4) 50%,transparent 65%);
  mix-blend-mode:soft-light;transition:transform .8s ease;
}
.referidoc-btn-cta--shimmer:hover::after{transform:translateX(120%);}

/* ripple al clic */
.referidoc-ripple{
  position:absolute;border-radius:50%;transform:scale(0);animation:referidoc-ripple .6s ease-out;
  background:rgba(255,255,255,.5);mix-blend-mode:overlay;pointer-events:none;
}
@keyframes referidoc-ripple{to{transform:scale(1);opacity:0}}

/* pulso de atención */
@keyframes referidoc-attentionPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.04); box-shadow:0 18px 44px rgba(252,181,12,.45)}
}
.referidoc-attention{animation:referidoc-attentionPulse 1.4s ease-in-out 0s 6;}

/* ===== Enlaces legales ===== */
.referidoc-legal-links{display:flex;flex-direction:column;gap:.8rem;margin-top:1rem;}
.referidoc-link-red{color:#e71b1f;text-decoration:none;font-weight:800;font-size:1.1rem;transition:opacity .2s;}
.referidoc-link-red:hover{text-decoration:underline;opacity:.9;}

/* ===== Pasos ===== */
.referidoc-steps{
  padding:4rem 0;background:#fff;text-align:center;
  /* Evita trabajo de render fuera de pantalla */
  content-visibility:auto; contain-intrinsic-size: 1200px 2000px;
}
.referidoc-steps h2{font-size:clamp(1.9rem,3vw,2.7rem);color:#e71b1f;margin-bottom:.6rem;}

.referidoc-steps-vertical{
  display:flex;flex-direction:column;align-items:center;gap:1.4rem;max-width:900px;margin:0 auto;
}
.referidoc-step-card{
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1.2rem;
  padding:1.5rem 1.8rem;background:rgba(15,169,189,.08);
  border-left:6px solid #e71b1f;border-radius:14px;
  opacity:0;transform:translateY(18px);
  transition:opacity .6s ease, transform .6s ease, box-shadow .2s ease;
  width:min(94%,820px);box-shadow:0 10px 24px rgba(0,0,0,.06);
  will-change:opacity,transform;
}
.referidoc-step-card.visible{opacity:1;transform:translateY(0)}
.referidoc-step-card:hover{box-shadow:0 16px 36px rgba(0,0,0,.08)}

.referidoc-step-number{
  display:inline-flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg,#e71b1f,#ff5258);color:#fff;font-weight:900;font-size:1.25rem;
  box-shadow:0 8px 18px rgba(231,27,31,.25);
}
.referidoc-step-content{display:flex;flex-direction:column;align-items:flex-start;text-align:left;}
.referidoc-step-content h3{color:#e71b1f;margin-bottom:.2rem;font-size:1.35rem;letter-spacing:.2px;}
.referidoc-step-content p{font-size:1.05rem;color:rgb(0,114,144);}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .referidoc-hero{height:auto;min-height:100vh;padding:2rem 0;scroll-margin-top:20px;}
  .referidoc-hero-text{max-width:92%;padding:2rem;margin:1rem auto;border-radius:16px;}
  .referidoc-hero h1{font-size:2.2rem;}
  .referidoc-hero p{font-size:1.05rem;}
  .referidoc-btn-cta{font-size:1.06rem;padding:.95rem 1.9rem;width:auto;}
  .referidoc-btn-cta--xl{font-size:1.25rem;padding:1.05rem 2.4rem;}
  .referidoc-steps h2{font-size:1.7rem;}
  .referidoc-step-card{width:94%;padding:1.25rem 1.4rem;grid-template-columns:auto 1fr;text-align:left;}
  .referidoc-step-number{width:42px;height:42px;font-size:1.1rem;}
  .referidoc-step-content h3{font-size:1.2rem;}
  .referidoc-step-content p{font-size:1rem;}
}

/* ===== Accesibilidad: desactivar animaciones si reduce-motion ===== */
@media (prefers-reduced-motion: reduce){
  .referidoc-hero-image,.referidoc-btn-cta--shimmer::after,.referidoc-attention,
  .referidoc-step-card{animation:none!important;transition:none!important}
}

/* Utilidad opcional */
.visually-hidden{
  position:absolute!important;width:1px;height:1px;margin:-1px;border:0;padding:0;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;
}
</style>
<!-- end Simple Custom CSS and JS -->
