/* =========================================================
   RESET / BASE
========================================================= */
.lg{
  --lg-teal:#35687b;
  --lg-teal-ink:#2e5d6e;
  --lg-sky:#b9d9e2;
  --lg-btn:#5cb0c4;
  --lg-btn-h:#4aa0b5;
  color:#fff;
  font-family:'Source Sans 3','Montserrat',sans-serif;
  background:var(--lg-teal);
}
.lg *, .lg *::before, .lg *::after{ box-sizing:border-box; }
.lg__container{ max-width:1220px; margin:0 auto; padding:0 30px; }
.lg img{ display:block; max-width:100%; }
.lg-placeholder{
  display:flex; align-items:center; justify-content:center;
  min-height:220px; background:rgba(255,255,255,.15); color:rgba(255,255,255,.8);
  font-size:14px; text-align:center; padding:20px; border-radius:8px;
}

/* =========================================================
   FULL WIDTH: rompe los contenedores del tema
========================================================= */
body{ overflow-x:hidden; }
body :is(div,main,article,section):has(#lg-page){
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:visible !important;
  background:none;
  box-shadow:none;
}
#lg-page{
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  padding:0 !important;
}
@supports selector(:has(*)){
  #lg-page{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
  }
}

/* =========================================================
   BOTONES (píldora)
========================================================= */
.lg-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  text-decoration:none !important; border:0; cursor:pointer; line-height:1;
  border-radius:999px; background:var(--lg-btn); color:#fff !important;
  padding:15px 30px; font-size:13px; font-weight:600;
  letter-spacing:.6px; text-transform:uppercase;
  transition:background .18s ease, transform .18s ease;
}
.lg-btn:hover{ background:var(--lg-btn-h); transform:translateY(-1px); }
.lg-btn svg{ width:16px; height:16px; stroke:currentColor; flex:none; }

/* =========================================================
   HERO TEAL (foto de fondo + texto + portátil)
========================================================= */
.lg-hero{ position:relative; overflow:hidden; background:var(--lg-teal); padding:70px 0 30px; }
.lg-hero__bg{
  position:absolute; inset:0;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center top;
}
.lg-hero__bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(53,104,123,.35) 0%, rgba(53,104,123,.85) 50%, rgba(53,104,123,1) 80%);
}
.lg-hero__grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;
}
.lg-hero__eyebrow{ margin:0 0 16px; font-size:15px; font-weight:500; color:#fff; }
.lg-hero__title{
  margin:0 0 20px; max-width:600px;
  font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(38px, 4.3vw, 56px) !important; line-height:1.08;
  font-weight:600 !important; color:#fff; letter-spacing:-.01em;
}
.lg-hero__subtitle{ margin:0 0 30px; max-width:430px; font-size:16px; line-height:1.55; color:rgba(255,255,255,.95); }
.lg-hero__media img{ width:100%; max-width:640px; margin-left:auto; filter:drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* =========================================================
   MIGAS DE PAN
========================================================= */
.lg-crumbs{ background:var(--lg-teal); padding:26px 0; }
.lg-crumbs__list{ margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; }
.lg-crumbs__item{
  padding:0 18px; border-right:1px solid rgba(255,255,255,.4);
  font-size:13px; color:rgba(255,255,255,.85);
}
.lg-crumbs__item:first-child{ padding-left:0; }
.lg-crumbs__item:last-child{ border-right:0; }
.lg-crumbs__item a{ color:rgba(255,255,255,.85); text-decoration:none; }
.lg-crumbs__item a:hover{ color:#fff; }

/* =========================================================
   CUERPO DE LA GUÍA (bloques de Gutenberg)
========================================================= */
.lg-section--content{ background:var(--lg-teal); padding:20px 0 0; }
.lg-content{ max-width:1060px; }
.lg-content h2{
  margin:42px 0 18px; font-family:'Playfair Display',Georgia,serif;
  font-size:28px; line-height:1.25; font-weight:600; color:#fff;
}
.lg-content h3{
  margin:-8px 0 18px; font-family:'Playfair Display',Georgia,serif;
  font-size:22px; font-weight:500; color:#fff;
}
.lg-content p{ margin:0 0 18px; font-size:14px; line-height:1.75; color:rgba(255,255,255,.95); max-width:1000px; }
.lg-content ul, .lg-content ol{ margin:0 0 22px; padding:0; list-style:none; }
.lg-content li{
  position:relative; padding-left:18px; margin-bottom:10px;
  font-size:14px; line-height:1.6; color:rgba(255,255,255,.95);
}
.lg-content li::before{ content:"•"; position:absolute; left:2px; color:#fff; font-weight:800; }

/* =========================================================
   CTA FORMULARIO (caja con foto, solapada)
========================================================= */
.lg-cta{
  position:relative; z-index:2; overflow:hidden; border-radius:12px;
  margin:70px 0 -120px;
  background:#222 center center / cover no-repeat; text-align:center;
}
.lg-cta__overlay{ position:absolute; inset:0; background:rgba(10,25,32,.55); }
.lg-cta__inner{ position:relative; z-index:1; padding:70px 30px; max-width:900px; margin:0 auto; }
.lg-cta__title{
  margin:0 0 30px; font-family:'Playfair Display',Georgia,serif;
  font-size:clamp(26px, 3vw, 40px); line-height:1.25; font-weight:600; color:#fff;
}

/* =========================================================
   RECURSOS RELACIONADOS (fondo azul claro, cards flotantes)
========================================================= */
.lg-section--rel{ background:var(--lg-sky); padding:190px 0 90px; }
.lg-rel__h2{
  margin:0 0 44px; text-align:center;
  font-family:'Playfair Display',Georgia,serif;
  font-size:30px; font-weight:600; color:var(--lg-teal-ink);
}
.lg-rel__grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:26px; }
.lg-rel__card{
  background:#fff; border-radius:14px;
  display:flex; flex-direction:column;
  box-shadow:0 6px 18px rgba(23,58,71,.12);
  padding:12px;
}
.lg-rel__media{ display:block; }
.lg-rel__media img{
  width:100%; height:210px; object-fit:cover;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(23,58,71,.15);
}
.lg-rel__body{ padding:24px 12px 12px; display:flex; flex-direction:column; flex:1; }
.lg-rel__title{
  margin:0 0 22px;
  font-size:19px; line-height:1.4;
  font-weight:600; color:#20343e;
}
.lg-rel__btn{
  margin-top:auto; width:100%;
  text-transform:none; letter-spacing:.2px;
  font-size:15px; padding:14px 22px;
}

/* =========================================================
   MODAL PDF (ids/clases del sistema antiguo)
========================================================= */
#pdf-modal{
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
  width:900px; max-width:calc(100vw - 40px);
  padding:35px; background-color:#fff;
  box-shadow:0 4px 8px rgba(0,0,0,.2);
  display:none; z-index:1000; border-radius:20px;
}
#pdf-modal .pdf-modal__intro{ margin:0 0 22px; font-size:16px; color:#333; }
#pdf-modal .modal-close{
  position:absolute; top:14px; right:14px;
  width:36px; height:36px; border:0; border-radius:8px;
  background:var(--lg-btn); color:#fff; font-size:18px; line-height:1; cursor:pointer;
}
#pdf-modal .modal-close:hover{ background:var(--lg-btn-h); }
#pdf-lead-form label{ display:block; margin:0 0 18px; font-size:14px; color:#222; }
#pdf-lead-form input{
  display:block; width:100%; margin-top:6px;
  padding:12px 14px; border:1px solid #bbb; border-radius:8px;
  font-size:14px; background:#fff;
}
#pdf-lead-form button[type="submit"]{
  background:var(--lg-btn); color:#fff; border:0; cursor:pointer;
  border-radius:8px; padding:14px 22px; font-size:15px; font-weight:600;
}
#pdf-lead-form button[type="submit"]:hover{ background:var(--lg-btn-h); }
.pdf-modal__ok{ margin:0; color:#2e7d32; font-weight:600; }
.lg-modal-lock{ overflow:hidden; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:1100px){
  .lg-hero__grid{ grid-template-columns:1fr; gap:40px; }
  .lg-hero__media img{ margin:0 auto; }
  .lg-rel__grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:768px){
  .lg-hero{ padding:50px 0; }
  .lg-hero__title{ font-size:34px !important; }
  .lg-crumbs__item{ padding:0 12px; }
  .lg-content h2{ font-size:22px; }
  .lg-content h3{ font-size:19px; }
  .lg-cta{ margin:40px 0 -60px; }
  .lg-section--rel{ padding:130px 0 60px; }
  .lg-rel__grid{ grid-template-columns:1fr; }
}