/* evitar que el hero se meta dentro del header */
.chh-hero{
  padding-top:160px;
}

:root{
  --ch-blue:#2b3e5c;
  --ch-blue-dark:#1f2d44;
  --ch-accent:#778c43;
  --ch-bg:#f3f3f5;
  --ch-text:#1f2230;
  --ch-text-soft:#6a7080;
  --ch-white:#ffffff;
  --ch-border:rgba(31,34,48,.12);
  --ch-shadow:0 12px 28px rgba(0,0,0,.08);
  --ch-radius:22px;
  --ch-container:1320px;
}

.chh-page{
  background:var(--ch-bg);
  color:var(--ch-text);
}

.chh-container{
  width:min(var(--ch-container), calc(100% - 40px));
  margin:0 auto;
}

.chh-section{
  padding:72px 0;
}

.chh-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:700;
  color:var(--ch-blue);
}

.chh-eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--ch-accent);
}

.chh-title{
  margin:0 0 18px;
  font-size:clamp(36px, 5vw, 74px);
  line-height:.95;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--ch-text);
}

.chh-subtitle{
  margin:0 0 18px;
  font-size:clamp(30px, 3.5vw, 56px);
  line-height:1;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--ch-text);
}

.chh-lead,
.chh-text p,
.chh-faq__body{
  font-size:18px;
  line-height:1.75;
  color:var(--ch-text-soft);
}

.chh-text p{
  margin:0 0 18px;
}

.chh-text p:last-child{
  margin-bottom:0;
}

.chh-btns{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.chh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  border-radius:12px;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:14px;
  font-weight:800;
  transition:.25s ease;
}

.chh-btn--primary{
  background:var(--ch-blue);
  border:1.5px solid var(--ch-blue);
  color:var(--ch-white);
}

.chh-btn--primary:hover{
  background:var(--ch-blue-dark);
  border-color:var(--ch-blue-dark);
  color:var(--ch-white);
  transform:translateY(-2px);
}

.chh-btn--secondary{
  background:transparent;
  border:1.5px solid var(--ch-blue);
  color:var(--ch-blue);
}

.chh-btn--secondary:hover{
  background:rgba(43,62,92,.06);
  transform:translateY(-2px);
}

/* HERO */
.chh-hero{
  position:relative;
  overflow:hidden;
  padding:90px 0 76px;
  background:var(--ch-bg);
}

.chh-hero::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:min(42vw, 760px);
  height:52%;
  background:var(--ch-blue);
  clip-path:polygon(26% 0, 100% 0, 100% 100%, 0 100%, 13% 72%, 0 72%);
  opacity:.98;
  pointer-events:none;
}

.chh-hero__grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}

.chh-title{
  max-width:11ch;
}

.chh-lead{
  max-width:56ch;
  margin:0;
}

.chh-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.chh-tags span{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#eef1f4;
  color:var(--ch-text-soft);
  font-size:14px;
  font-weight:600;
}

.chh-hero__card{
  background:rgba(255,255,255,.45);
  border-radius:28px;
  padding:34px 28px;
  box-shadow:var(--ch-shadow);
  backdrop-filter:blur(2px);
  position:relative;
  z-index:2;
}

.chh-hero__icon{
  width:110px;
  margin:0 auto 24px;
}

.chh-hero__list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:14px;
}

.chh-hero__list li{
  font-size:17px;
  line-height:1.5;
  color:var(--ch-text-soft);
  position:relative;
  padding-left:28px;
}

.chh-hero__list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--ch-text);
  font-weight:800;
}

/* INTRO */
.chh-intro__grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:34px;
  align-items:start;
}

.chh-intro__box{
  background:var(--ch-white);
  border-radius:var(--ch-radius);
  box-shadow:var(--ch-shadow);
  padding:30px 28px;
}

.chh-intro__box h3{
  margin:0 0 16px;
  font-size:26px;
  line-height:1.1;
  font-weight:800;
  color:var(--ch-blue);
}

.chh-intro__box ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
}

.chh-intro__box li{
  position:relative;
  padding-left:18px;
  font-size:16px;
  line-height:1.65;
  color:var(--ch-text-soft);
}

.chh-intro__box li::before{
  content:"";
  position:absolute;
  left:0;
  top:11px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ch-accent);
}

/* INCLUYE */
.chh-include{
  background:var(--ch-blue);
  color:var(--ch-white);
}

.chh-include .chh-eyebrow,
.chh-include .chh-subtitle{
  color:var(--ch-white);
}

.chh-include__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-top:28px;
}

.chh-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:26px 22px;
  min-height:220px;
}

.chh-card__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(119,140,67,.18);
  color:var(--ch-accent);
  font-size:15px;
  font-weight:800;
  margin-bottom:16px;
}

.chh-card h3{
  margin:0 0 12px;
  font-size:28px;
  line-height:1.02;
  font-weight:800;
  color:var(--ch-white);
}

.chh-card p{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.86);
}

/* PROCESO */
.chh-process__list{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
  margin-top:28px;
}

.chh-step{
  background:var(--ch-white);
  border-radius:24px;
  box-shadow:var(--ch-shadow);
  padding:24px 20px;
  position:relative;
}

.chh-step__n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#e8edf3;
  color:var(--ch-blue);
  font-size:15px;
  font-weight:800;
  margin-bottom:14px;
}

.chh-step h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.05;
  font-weight:800;
  color:var(--ch-text);
}

.chh-step p{
  margin:0;
  font-size:15px;
  line-height:1.65;
  color:var(--ch-text-soft);
}

/* FAQ */
.chh-faq{
  padding-top:32px;
}

.chh-faq__bar{
  background:var(--ch-blue);
  color:var(--ch-white);
  text-align:center;
  font-size:24px;
  font-weight:800;
  padding:20px;
  margin-bottom:26px;
}

.chh-faq__wrap{
  background:transparent;
}

.chh-faq__item{
  border:1px solid rgba(31,34,48,.08);
  background:#f7f7f8;
}

.chh-faq__q{
  width:100%;
  background:none;
  border:0;
  text-align:left;
  padding:22px 58px 22px 24px;
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  color:var(--ch-text);
  position:relative;
  cursor:pointer;
}

.chh-faq__q::after{
  content:"+";
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  color:var(--ch-blue);
  font-size:28px;
  line-height:1;
  font-weight:400;
}

.chh-faq__item.is-open .chh-faq__q::after{
  content:"−";
}

.chh-faq__a{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .3s ease;
}

.chh-faq__item.is-open .chh-faq__a{
  grid-template-rows:1fr;
}

.chh-faq__body{
  overflow:hidden;
  padding:0 24px;
}

.chh-faq__item.is-open .chh-faq__body{
  padding-bottom:22px;
}

/* CTA FINAL */
.chh-cta{
  background:linear-gradient(180deg,var(--ch-blue) 0%, var(--ch-blue-dark) 100%);
  color:var(--ch-white);
}

.chh-cta__grid{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
}

.chh-cta .chh-subtitle{
  color:var(--ch-white);
  margin-bottom:14px;
}

.chh-cta p{
  margin:0;
  font-size:18px;
  line-height:1.75;
  color:rgba(255,255,255,.9);
  max-width:60ch;
}

.chh-cta .chh-btn--primary{
  background:var(--ch-white);
  border-color:var(--ch-white);
  color:var(--ch-blue);
}

.chh-cta .chh-btn--primary:hover{
  background:#f2f4f7;
  border-color:#f2f4f7;
}

/* REVIEWS */
.chh-reviews{
  background:var(--ch-bg);
}

.chh-reviews__embed{
  margin-top:28px;
}

/* CTA eyebrow sobre fondo azul */
.chh-cta .chh-eyebrow{
  color:rgba(255,255,255,.88);
}

.chh-cta .chh-eyebrow::before{
  background:var(--ch-accent);
}

/* =========================================
   HERENCIAS · FORMULARIO
========================================= */

html{
  scroll-behavior:smooth;
}

#formulario-herencias{
  scroll-margin-top:120px;
}

.chh-headtext{
  font-size:18px;
  line-height:1.75;
  color:#6a7080;
  margin:0;
}

.chh-inheritance-form__head{
  max-width:860px;
  margin:0 auto 32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.chh-inheritance-form__head .chh-eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 14px;
  text-align:center;
}

.chh-inheritance-form__head .chh-subtitle,
.chh-inheritance-form__head .chh-headtext{
  width:100%;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.chh-inheritance-form__head .chh-subtitle{
  max-width:16ch;
  margin-bottom:18px;
}

.chh-inheritance-form__head .chh-headtext{
  max-width:48ch;
}

.chh-inheritance-form__wrap{
  max-width:980px;
  margin:0 auto;
}

.chh-inheritance-form__card{
  background:#ffffff;
  border:1px solid rgba(15,23,42,.06);
  border-radius:24px;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
  padding:34px;
}

.chh-inheritance-form__intro{
  margin-bottom:26px;
}

.chh-inheritance-form__title{
  margin:0 0 8px;
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.1;
  font-weight:800;
  color:#0f172a;
}

.chh-inheritance-form__text{
  margin:0;
  color:#475569;
  font-size:16px;
  line-height:1.7;
}

.chh-inheritance-form__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.chh-inheritance-form__grid + .chh-inheritance-form__grid,
.chh-inheritance-form__grid--bottom{
  margin-top:18px;
}

.chh-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.chh-field--full{
  grid-column:1 / -1;
}

.chh-field label{
  font-size:14px;
  font-weight:600;
  color:#0f172a;
}

.chh-field input,
.chh-field select,
.chh-field textarea{
  width:100%;
  min-height:52px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#ffffff;
  padding:14px 16px;
  font-size:15px;
  color:#0f172a;
  transition:border-color .2s ease, box-shadow .2s ease;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}

.chh-field textarea{
  min-height:140px;
  resize:vertical;
}

.chh-field input:focus,
.chh-field select:focus,
.chh-field textarea:focus{
  outline:none;
  border-color:var(--ch-blue);
  box-shadow:0 0 0 4px rgba(43,62,92,.10);
}

.chh-field input::placeholder,
.chh-field textarea::placeholder{
  color:#94a3b8;
}

.chh-field select{
  cursor:pointer;
}

.chh-field--check{
  margin-top:4px;
}

.chh-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.6;
  color:#475569;
}

.chh-check input{
  width:18px;
  height:18px;
  min-height:auto;
  margin-top:2px;
  flex:0 0 18px;
  padding:0;
  border-radius:4px;
}

.chh-check a{
  color:var(--ch-blue);
  text-decoration:none;
  font-weight:600;
}

.chh-check a:hover{
  text-decoration:underline;
}

.chh-hp{
  position:absolute;
  left:-9999px;
  opacity:0;
  pointer-events:none;
}

.chh-inheritance-form__actions{
  margin-top:26px;
  display:flex;
  justify-content:flex-start;
}

.chh-inheritance-form__actions .chh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* input file como el resto */
.chh-field input[type="file"]{
  min-height:auto;
  padding:10px 12px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#fff;
}

/* Modal éxito */
.chh-modal-success{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.chh-modal-success__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);
}

.chh-modal-success__box{
  position:relative;
  background:#ffffff;
  padding:40px;
  border-radius:20px;
  max-width:520px;
  width:90%;
  text-align:center;
  box-shadow:0 30px 70px rgba(0,0,0,.15);
  animation:chhModalIn .35s ease;
}

.chh-modal-success__box h3{
  margin-bottom:12px;
  font-size:28px;
}

.chh-modal-success__box p{
  margin-bottom:24px;
  color:#475569;
  line-height:1.6;
}

@keyframes chhModalIn{
  from{
    transform:translateY(20px);
    opacity:0;
  }
  to{
    transform:translateY(0);
    opacity:1;
  }
}

@media (max-width:1200px){
  .chh-include__grid{
    grid-template-columns:repeat(2,1fr);
  }

  .chh-process__list{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:1024px){
  .chh-container{
    width:min(var(--ch-container), calc(100% - 32px));
  }

  .chh-hero{
    padding:64px 0 56px;
  }

  .chh-hero::after{
    width:48vw;
    height:42%;
  }

  .chh-hero__grid,
  .chh-intro__grid,
  .chh-cta__grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .chh-title,
  .chh-lead{
    max-width:none;
  }

  .chh-faq__q{
    font-size:20px;
  }
}

@media (max-width:767px){
  .chh-container{
    width:min(var(--ch-container), calc(100% - 20px));
  }

  .chh-section{
    padding:52px 0;
  }

  .chh-title{
    font-size:48px;
    line-height:.96;
  }

  .chh-subtitle{
    font-size:34px;
  }

  .chh-lead,
  .chh-text p,
  .chh-faq__body,
  .chh-cta p,
  .chh-headtext{
    font-size:16px;
    line-height:1.65;
  }

  .chh-btn{
    width:100%;
  }

  .chh-btns{
    flex-direction:column;
  }

  .chh-include__grid,
  .chh-process__list,
  .chh-inheritance-form__grid{
    grid-template-columns:1fr;
  }

  .chh-faq__bar{
    font-size:20px;
  }

  .chh-faq__q{
    font-size:18px;
    padding:18px 50px 18px 18px;
  }

  .chh-faq__body{
    padding:0 18px;
  }

  .chh-faq__item.is-open .chh-faq__body{
    padding-bottom:18px;
  }

  .chh-inheritance-form__card{
    padding:22px 18px;
    border-radius:18px;
  }

  .chh-field--full{
    grid-column:auto;
  }

  .chh-inheritance-form__actions{
    justify-content:stretch;
  }

  .chh-inheritance-form__actions .chh-btn{
    width:100%;
    justify-content:center;
  }
}
/* FAQ hover override */
.chh-faq__q,
.chh-faq__q:hover,
.chh-faq__q:focus,
.chh-faq__q:active{
  background:transparent !important;
  color:var(--ch-text) !important;
}

.chh-faq__item:hover .chh-faq__q{
  background:rgba(43,62,92,.04) !important;
  color:var(--ch-text) !important;
}

.chh-faq__q::after,
.chh-faq__q:hover::after,
.chh-faq__q:focus::after,
.chh-faq__q:active::after{
  color:var(--ch-blue) !important;
}