:root{
  --esv-rf-bg:#f7f4ef;
  --esv-rf-panel:#ffffff;
  --esv-rf-ink:#172126;
  --esv-rf-muted:#57636d;
  --esv-rf-line:rgba(23,33,38,.10);
  --esv-rf-brand:#123847;
  --esv-rf-brand-2:#274a57;
  --esv-rf-brand-3:#3b6370;
  --esv-rf-soft:#f1ebe2;
  --esv-rf-soft-2:#f6f1ea;
  --esv-rf-shadow:0 16px 40px rgba(18,56,71,.07);
  --esv-rf-shadow-strong:0 22px 54px rgba(18,56,71,.11);
  --esv-rf-radius:20px;
  --esv-rf-radius-lg:26px;
  --esv-rf-sans:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --esv-rf-serif:"Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body.esviv-theme.esviv-refined-sections{
  background:
    radial-gradient(circle at top left, rgba(18,56,71,.055), transparent 28%),
    linear-gradient(180deg,#fcfbf9 0%,var(--esv-rf-bg) 100%);
  color:var(--esv-rf-ink);
}

body.esviv-theme.esviv-refined-sections .site-header{
  background:rgba(252,251,249,.88);
  border-bottom:1px solid rgba(18,56,71,.07);
  box-shadow:0 8px 26px rgba(18,56,71,.04);
}
body.esviv-theme.esviv-refined-sections .header-shell{
  min-height:78px;
  gap:18px;
}
body.esviv-theme.esviv-refined-sections .site-title a{
  letter-spacing:.01em;
}
body.esviv-theme.esviv-refined-sections .site-description,
body.esviv-theme.esviv-refined-sections .site-nav-list,
body.esviv-theme.esviv-refined-sections .hero-copy,
body.esviv-theme.esviv-refined-sections .hero-side-copy,
body.esviv-theme.esviv-refined-sections .section-head p,
body.esviv-theme.esviv-refined-sections .prose-card p,
body.esviv-theme.esviv-refined-sections .hero-secondary li,
body.esviv-theme.esviv-refined-sections .home-card span,
body.esviv-theme.esviv-refined-sections .steps-card p,
body.esviv-theme.esviv-refined-sections .trust-card span,
body.esviv-theme.esviv-refined-sections .site-footer p,
body.esviv-theme.esviv-refined-sections .authority-strip p,
body.esviv-theme.esviv-refined-sections .entry-content,
body.esviv-theme.esviv-refined-sections input,
body.esviv-theme.esviv-refined-sections select,
body.esviv-theme.esviv-refined-sections textarea,
body.esviv-theme.esviv-refined-sections button,
body.esviv-theme.esviv-refined-sections label{
  font-family:var(--esv-rf-sans);
}
body.esviv-theme.esviv-refined-sections h1,
body.esviv-theme.esviv-refined-sections h2,
body.esviv-theme.esviv-refined-sections h3,
body.esviv-theme.esviv-refined-sections h4,
body.esviv-theme.esviv-refined-sections .entry-title{
  font-family:var(--esv-rf-serif);
  letter-spacing:-.015em;
}
body.esviv-theme.esviv-refined-sections h1{line-height:1.04}
body.esviv-theme.esviv-refined-sections h2{line-height:1.10}
body.esviv-theme.esviv-refined-sections .eyebrow,
body.esviv-theme.esviv-refined-sections .home-card-kicker{
  letter-spacing:.18em;
  font-size:.70rem;
}

body.esviv-theme.esviv-refined-sections .header-cta,
body.esviv-theme.esviv-refined-sections .esviv-btn,
body.esviv-theme.esviv-refined-sections button,
body.esviv-theme.esviv-refined-sections input[type="submit"],
body.esviv-theme.esviv-refined-sections input[type="button"]{
  min-height:48px;
  padding:13px 20px;
  border-radius:15px;
  background:linear-gradient(180deg,var(--esv-rf-brand-2),var(--esv-rf-brand));
  border:1px solid rgba(18,56,71,.14);
  box-shadow:0 10px 24px rgba(18,56,71,.14);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
body.esviv-theme.esviv-refined-sections .esviv-btn.secondary,
body.esviv-theme.esviv-refined-sections .header-cta.secondary,
body.esviv-theme.esviv-refined-sections .is-style-outline,
body.esviv-theme.esviv-refined-sections .wp-block-button.is-style-outline .wp-block-button__link{
  background:rgba(255,255,255,.82);
  color:var(--esv-rf-brand);
  border:1px solid rgba(18,56,71,.16);
  box-shadow:none;
}
body.esviv-theme.esviv-refined-sections .header-cta:hover,
body.esviv-theme.esviv-refined-sections .esviv-btn:hover,
body.esviv-theme.esviv-refined-sections button:hover,
body.esviv-theme.esviv-refined-sections input[type="submit"]:hover,
body.esviv-theme.esviv-refined-sections input[type="button"]:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(18,56,71,.17);
}

body.esviv-theme.esviv-refined-sections .hero-panel,
body.esviv-theme.esviv-refined-sections .content-card,
body.esviv-theme.esviv-refined-sections .home-card,
body.esviv-theme.esviv-refined-sections .trust-card,
body.esviv-theme.esviv-refined-sections .archive-item,
body.esviv-theme.esviv-refined-sections .wp-block-group,
body.esviv-theme.esviv-refined-sections .wp-block-cover,
body.esviv-theme.esviv-refined-sections .wp-block-columns{
  border-radius:var(--esv-rf-radius-lg);
  border:1px solid var(--esv-rf-line);
  box-shadow:var(--esv-rf-shadow);
}
body.esviv-theme.esviv-refined-sections .content-card,
body.esviv-theme.esviv-refined-sections .hero-panel,
body.esviv-theme.esviv-refined-sections .prose-card,
body.esviv-theme.esviv-refined-sections .steps-card{
  overflow:hidden;
}
body.esviv-theme.esviv-refined-sections .site-main{padding:36px 0 72px}
body.esviv-theme.esviv-refined-sections .section-slab{margin-top:34px}
body.esviv-theme.esviv-refined-sections .section-head{max-width:900px;margin-bottom:22px}
body.esviv-theme.esviv-refined-sections .home-card,
body.esviv-theme.esviv-refined-sections .trust-card,
body.esviv-theme.esviv-refined-sections .archive-item{position:relative}
body.esviv-theme.esviv-refined-sections .home-card:before,
body.esviv-theme.esviv-refined-sections .trust-card:before,
body.esviv-theme.esviv-refined-sections .archive-item:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--esv-rf-brand),rgba(18,56,71,0));
  opacity:.42;
}

/* Inicio */
body.esviv-theme.esviv-area-home .hero-slab{gap:24px}
body.esviv-theme.esviv-area-home .hero-primary{
  background:
    linear-gradient(180deg,rgba(18,56,71,.035),rgba(255,255,255,.96)),
    linear-gradient(120deg,rgba(18,56,71,.03),transparent 55%),
    #fff;
  padding:40px 38px;
}
body.esviv-theme.esviv-area-home .hero-primary h1{
  max-width:11ch;
  font-size:clamp(2.35rem,4.2vw,4.35rem);
}
body.esviv-theme.esviv-area-home .hero-copy{max-width:62ch;font-size:1.03rem}
body.esviv-theme.esviv-area-home .hero-note{
  background:linear-gradient(180deg,#f4ede4,#efe7dc);
  border-radius:18px;
}
body.esviv-theme.esviv-area-home .hero-secondary{
  background:linear-gradient(180deg,#ffffff,#fbf8f3);
  padding:36px 34px;
}
body.esviv-theme.esviv-area-home .authority-strip{
  margin:22px 0 10px;
  border-radius:22px;
  padding:20px 24px;
}
body.esviv-theme.esviv-area-home .trust-card{padding:20px 20px 18px}
body.esviv-theme.esviv-area-home .home-card{
  padding:24px 22px 22px;
  background:linear-gradient(180deg,#fff,#fcfaf7);
}
body.esviv-theme.esviv-area-home .home-card strong{font-size:1.15rem}
body.esviv-theme.esviv-area-home .home-card em{margin-top:4px}
body.esviv-theme.esviv-area-home .steps-card{padding:30px}
body.esviv-theme.esviv-area-home .step-item{padding:16px 0}
body.esviv-theme.esviv-area-home .site-footer{
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(248,244,238,.9));
}

/* Portal abogado */
body.esviv-theme.esviv-area-abogado .site-main{
  max-width:1280px;
}
body.esviv-theme.esviv-area-abogado .entry-title,
body.esviv-theme.esviv-area-abogado h1{
  font-size:clamp(2rem,3.2vw,3.1rem);
  margin-bottom:16px;
}
body.esviv-theme.esviv-area-abogado .content-card,
body.esviv-theme.esviv-area-abogado .prose-card,
body.esviv-theme.esviv-area-abogado .wp-block-group,
body.esviv-theme.esviv-area-abogado .wp-block-columns{
  background:linear-gradient(180deg,#fff,#fbfaf8);
}
body.esviv-theme.esviv-area-abogado .content-card{
  border-radius:18px;
}
body.esviv-theme.esviv-area-abogado table,
body.esviv-theme.esviv-area-cliente table,
body.esviv-theme.esviv-area-machotes table,
body.esviv-theme.esviv-area-intake table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--esv-rf-line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--esv-rf-shadow);
}
body.esviv-theme.esviv-area-abogado th,
body.esviv-theme.esviv-area-cliente th,
body.esviv-theme.esviv-area-machotes th,
body.esviv-theme.esviv-area-intake th{
  text-align:left;
  font-family:var(--esv-rf-sans);
  font-size:.86rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#f7f3ed;
}
body.esviv-theme.esviv-area-abogado th,
body.esviv-theme.esviv-area-abogado td,
body.esviv-theme.esviv-area-cliente th,
body.esviv-theme.esviv-area-cliente td,
body.esviv-theme.esviv-area-machotes th,
body.esviv-theme.esviv-area-machotes td,
body.esviv-theme.esviv-area-intake th,
body.esviv-theme.esviv-area-intake td{
  padding:14px 16px;
  border-bottom:1px solid rgba(23,33,38,.08);
}
body.esviv-theme.esviv-area-abogado input:not([type="checkbox"]):not([type="radio"]),
body.esviv-theme.esviv-area-abogado select,
body.esviv-theme.esviv-area-abogado textarea,
body.esviv-theme.esviv-area-cliente input:not([type="checkbox"]):not([type="radio"]),
body.esviv-theme.esviv-area-cliente select,
body.esviv-theme.esviv-area-cliente textarea,
body.esviv-theme.esviv-area-machotes input:not([type="checkbox"]):not([type="radio"]),
body.esviv-theme.esviv-area-machotes select,
body.esviv-theme.esviv-area-machotes textarea,
body.esviv-theme.esviv-area-intake input:not([type="checkbox"]):not([type="radio"]),
body.esviv-theme.esviv-area-intake select,
body.esviv-theme.esviv-area-intake textarea{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  background:#fff;
  border:1px solid rgba(18,56,71,.14);
  border-radius:14px;
  box-shadow:inset 0 1px 1px rgba(18,56,71,.03);
}
body.esviv-theme.esviv-area-abogado textarea,
body.esviv-theme.esviv-area-cliente textarea,
body.esviv-theme.esviv-area-machotes textarea,
body.esviv-theme.esviv-area-intake textarea{min-height:120px}
body.esviv-theme.esviv-area-abogado input:focus,
body.esviv-theme.esviv-area-abogado select:focus,
body.esviv-theme.esviv-area-abogado textarea:focus,
body.esviv-theme.esviv-area-cliente input:focus,
body.esviv-theme.esviv-area-cliente select:focus,
body.esviv-theme.esviv-area-cliente textarea:focus,
body.esviv-theme.esviv-area-machotes input:focus,
body.esviv-theme.esviv-area-machotes select:focus,
body.esviv-theme.esviv-area-machotes textarea:focus,
body.esviv-theme.esviv-area-intake input:focus,
body.esviv-theme.esviv-area-intake select:focus,
body.esviv-theme.esviv-area-intake textarea:focus{
  outline:none;
  border-color:rgba(18,56,71,.34);
  box-shadow:0 0 0 4px rgba(18,56,71,.08);
}

/* Portal cliente */
body.esviv-theme.esviv-area-cliente .site-main{max-width:980px}
body.esviv-theme.esviv-area-cliente .content-card,
body.esviv-theme.esviv-area-cliente .prose-card{
  background:linear-gradient(180deg,#fff,#fcfaf7);
}
body.esviv-theme.esviv-area-cliente .entry-title,
body.esviv-theme.esviv-area-cliente h1{
  max-width:16ch;
  font-size:clamp(2rem,3vw,3rem);
}
body.esviv-theme.esviv-area-cliente .content-card{
  padding:30px;
}
body.esviv-theme.esviv-area-cliente .site-footer{background:rgba(255,255,255,.68)}

/* Machotes */
body.esviv-theme.esviv-area-machotes .site-main{max-width:1180px}
body.esviv-theme.esviv-area-machotes .content-card,
body.esviv-theme.esviv-area-machotes .prose-card,
body.esviv-theme.esviv-area-machotes .archive-item{
  background:linear-gradient(180deg,#fff,#fbf9f5);
}
body.esviv-theme.esviv-area-machotes .entry-title,
body.esviv-theme.esviv-area-machotes h1{
  font-size:clamp(2rem,3vw,3.2rem);
}
body.esviv-theme.esviv-area-machotes .archive-item,
body.esviv-theme.esviv-area-machotes .wp-block-group{
  padding:22px;
}
body.esviv-theme.esviv-area-machotes .archive-item a,
body.esviv-theme.esviv-area-machotes .entry-content a{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Intake */
body.esviv-theme.esviv-area-intake .site-main{max-width:980px}
body.esviv-theme.esviv-area-intake .content-card,
body.esviv-theme.esviv-area-intake .prose-card{
  background:linear-gradient(180deg,#fff,#fcfaf8);
}
body.esviv-theme.esviv-area-intake .entry-title,
body.esviv-theme.esviv-area-intake h1{
  max-width:15ch;
  font-size:clamp(2rem,3vw,3rem);
}
body.esviv-theme.esviv-area-intake .content-card{padding:32px}
body.esviv-theme.esviv-area-intake form,
body.esviv-theme.esviv-area-cliente form,
body.esviv-theme.esviv-area-abogado form{
  display:grid;
  gap:16px;
}

/* Genérico para páginas interiores */
body.esviv-theme.esviv-refined-sections .entry-content > * + *{margin-top:1em}
body.esviv-theme.esviv-refined-sections .entry-content ul,
body.esviv-theme.esviv-refined-sections .entry-content ol{padding-left:1.2rem}
body.esviv-theme.esviv-refined-sections .entry-content blockquote{
  margin:1.2em 0;
  padding:16px 18px;
  border-left:3px solid var(--esv-rf-brand);
  background:#faf7f2;
  border-radius:0 14px 14px 0;
}
body.esviv-theme.esviv-refined-sections .site-footer{
  border-top:1px solid rgba(18,56,71,.07);
  padding:40px 0 54px;
}
body.esviv-theme.esviv-refined-sections .footer-grid{gap:24px}

@media (max-width:980px){
  body.esviv-theme.esviv-area-home .hero-primary,
  body.esviv-theme.esviv-area-home .hero-secondary,
  body.esviv-theme.esviv-area-cliente .content-card,
  body.esviv-theme.esviv-area-intake .content-card{padding:28px}
  body.esviv-theme.esviv-refined-sections .header-shell{min-height:auto;padding:12px 0}
}
@media (max-width:640px){
  body.esviv-theme.esviv-refined-sections .header-cta,
  body.esviv-theme.esviv-refined-sections .esviv-btn,
  body.esviv-theme.esviv-refined-sections button,
  body.esviv-theme.esviv-refined-sections input[type="submit"],
  body.esviv-theme.esviv-refined-sections input[type="button"]{width:100%}
  body.esviv-theme.esviv-area-home .hero-primary,
  body.esviv-theme.esviv-area-home .hero-secondary,
  body.esviv-theme.esviv-area-cliente .content-card,
  body.esviv-theme.esviv-area-intake .content-card,
  body.esviv-theme.esviv-area-machotes .archive-item{padding:22px}
}


/* Footer refinado */
body.esviv-theme.esviv-refined-sections .site-footer{
  position:relative;
  margin-top:42px;
  padding:56px 0 58px;
  border-top:1px solid rgba(18,56,71,.09);
  background:
    radial-gradient(circle at top left, rgba(18,56,71,.07), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(246,241,234,.98) 100%);
  overflow:hidden;
}
body.esviv-theme.esviv-refined-sections .site-footer:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg, rgba(18,56,71,0), rgba(18,56,71,.3), rgba(18,56,71,0));
}
body.esviv-theme.esviv-refined-sections .site-footer:after{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:min(1180px, calc(100% - 32px));
  height:4px;
  transform:translateX(-50%);
  border-radius:999px;
  background:linear-gradient(90deg, rgba(18,56,71,0) 0%, rgba(18,56,71,.85) 18%, rgba(99,124,133,.42) 50%, rgba(18,56,71,.85) 82%, rgba(18,56,71,0) 100%);
  opacity:.7;
}
body.esviv-theme.esviv-refined-sections .footer-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr) minmax(0,1fr);
  gap:22px;
  align-items:stretch;
}
body.esviv-theme.esviv-refined-sections .footer-grid > div{
  position:relative;
  min-height:100%;
  padding:26px 24px 22px;
  border:1px solid rgba(18,56,71,.08);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.84), rgba(251,248,243,.95));
  box-shadow:0 14px 34px rgba(18,56,71,.06);
  backdrop-filter:blur(4px);
}
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child{
  background:linear-gradient(135deg, rgba(18,56,71,.98), rgba(33,72,86,.96));
  border-color:rgba(18,56,71,.2);
  box-shadow:0 18px 42px rgba(18,56,71,.14);
}
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child strong,
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child p,
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child a{
  color:#f5f1ea;
}
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child p{
  opacity:.92;
}
body.esviv-theme.esviv-refined-sections .footer-grid > div:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  border-radius:22px 22px 0 0;
  background:linear-gradient(90deg, rgba(18,56,71,.85), rgba(18,56,71,0));
  opacity:.4;
}
body.esviv-theme.esviv-refined-sections .footer-grid > div:first-child:before{
  background:linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,0));
  opacity:.5;
}
body.esviv-theme.esviv-refined-sections .footer-grid strong{
  display:block;
  margin-bottom:12px;
  font-family:var(--esv-rf-sans);
  font-size:.79rem;
  font-weight:800;
  line-height:1.35;
  letter-spacing:.16em;
  text-transform:uppercase;
}
body.esviv-theme.esviv-refined-sections .site-footer p{
  margin:0;
  font-size:.98rem;
  line-height:1.72;
  color:var(--esv-rf-muted);
}
body.esviv-theme.esviv-refined-sections .footer-grid a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 0;
  font-family:var(--esv-rf-sans);
  font-weight:600;
  color:var(--esv-rf-brand);
  text-decoration:none;
}
body.esviv-theme.esviv-refined-sections .footer-grid a:before{
  content:"→";
  font-size:.88em;
  opacity:.68;
  transition:transform .18s ease, opacity .18s ease;
}
body.esviv-theme.esviv-refined-sections .footer-grid a:hover:before{
  transform:translateX(2px);
  opacity:1;
}
body.esviv-theme.esviv-refined-sections .footer-grid a:hover{
  color:var(--esv-rf-brand-2);
}
body.esviv-theme.esviv-area-home .site-footer,
body.esviv-theme.esviv-area-cliente .site-footer,
body.esviv-theme.esviv-area-abogado .site-footer,
body.esviv-theme.esviv-area-machotes .site-footer,
body.esviv-theme.esviv-area-intake .site-footer{
  background:
    radial-gradient(circle at top left, rgba(18,56,71,.06), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(244,239,232,.98) 100%);
}
@media (max-width:980px){
  body.esviv-theme.esviv-refined-sections .site-footer{padding:46px 0 48px}
  body.esviv-theme.esviv-refined-sections .footer-grid{grid-template-columns:1fr;gap:18px}
  body.esviv-theme.esviv-refined-sections .footer-grid > div{padding:24px 22px 20px}
}
@media (max-width:640px){
  body.esviv-theme.esviv-refined-sections .site-footer{margin-top:32px;padding:40px 0 42px}
  body.esviv-theme.esviv-refined-sections .site-footer:after{width:min(1180px, calc(100% - 22px))}
  body.esviv-theme.esviv-refined-sections .footer-grid strong{font-size:.75rem;letter-spacing:.14em}
  body.esviv-theme.esviv-refined-sections .site-footer p{font-size:.95rem;line-height:1.68}
}
