/* Ibáñez Mérida Abogados — versión estática para Cloudflare Pages */
:root{
  --navy:#10233f;--red:#9d0808;--red-2:#a90000;--ink:#1f2937;--muted:#4b5563;
  --soft:#eef1f4;--soft-2:#f5f6f8;--line:#e1e5eb;--white:#fff;
  --wp--preset--spacing--20:.75rem;--wp--preset--spacing--50:2rem;--wp--preset--spacing--60:3rem;
  --shadow:0 8px 20px rgba(16,35,63,.12);--radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:inherit}
main{padding:0 24px 10px}
.site-shell,.alignwide{width:min(100%,1280px);margin-left:auto!important;margin-right:auto!important}
.alignfull{width:100%;margin-left:auto;margin-right:auto}
.wp-block-group{position:relative}
.wp-block-columns{display:flex;gap:24px;align-items:stretch}
.wp-block-column{min-width:0;flex:1 1 0}
.wp-block-buttons{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.wp-block-button{display:inline-flex}
.wp-block-button__link,.wp-element-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;font-weight:600;border-style:solid;border-color:transparent;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.wp-block-button__link:hover,.wp-element-button:hover,.btn:hover{transform:translateY(-1px);filter:brightness(.97)}
.is-style-outline .wp-block-button__link{background:transparent!important}
.has-text-align-center{text-align:center}
.has-theme-1-background-color{background:#fff}.has-theme-2-border-color{border-color:#e1e5eb!important}.has-theme-1-color{color:#fff}
ul,ol{padding-left:1.35rem}
li+li{margin-top:.45rem}
h1,h2,h3,h4{line-height:1.2}

/* Header */
.site-header{background:#fff;position:sticky;top:0;z-index:1000;border-bottom:1px solid rgba(16,35,63,.08)}
.header-inner{min-height:112px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0}
.brand{display:flex;align-items:center;text-decoration:none;flex:0 0 auto}
.brand img{display:block;width:92px;height:92px;object-fit:cover}
.header-actions{display:flex;align-items:center;gap:22px}
.site-nav{display:flex;align-items:center;gap:28px}
.site-nav a{text-decoration:none;color:var(--navy);font-size:15px;font-weight:600;padding:10px 2px;border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a.active{border-bottom-color:var(--red)}
.header-cta,.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--red);color:#fff;text-decoration:none;padding:12px 17px;font-weight:700;border:1px solid var(--red);line-height:1.3}
.menu-toggle{display:none;background:transparent;border:1px solid #d9dee6;border-radius:10px;width:44px;height:44px;color:var(--navy);font-size:24px;cursor:pointer}

/* WordPress-derived content helpers */
.ima-home-hero{margin-top:18px!important}
.ima-home-form input,.ima-home-form textarea,.ima-home-form select{width:100%}
.wp-block-columns>.ima-home-form{min-width:320px}
.content-form{display:grid;gap:11px;margin-top:8px}
.content-form .field{display:grid;gap:5px}
.content-form label{font-size:14px;font-weight:600}
.content-form input,.content-form textarea,.content-form select{width:100%;border:1px solid #d3d8e0;background:#fff;color:#111827;border-radius:9px;padding:11px 12px;font:inherit;outline:none}
.content-form textarea{min-height:118px;resize:vertical}
.content-form input:focus,.content-form textarea:focus,.content-form select:focus{border-color:#7b8798;box-shadow:0 0 0 3px rgba(16,35,63,.08)}
.content-form .form-submit{width:100%;border:0;border-radius:8px;background:var(--red);color:#fff;padding:10px 12px;font:inherit;font-weight:700;cursor:pointer}
.content-form .form-note{margin:0;font-size:12px;line-height:1.45;color:inherit;opacity:.78}
.contact-form-light label{color:var(--navy)}
.contact-form-light .form-note{color:#6b7280}

/* Footer */
.site-footer{color:var(--navy);background:#fff;padding:54px 24px 86px;border-top:1px solid rgba(16,35,63,.08);margin-top:42px}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:42px;text-align:center}
.footer-grid h3{font-size:20px;margin:0 0 14px}
.footer-grid p{margin:5px 0;color:#4b5563}
.copyright{text-align:center;margin:34px 0 0;font-size:14px;color:#6b7280}

/* WhatsApp */
.wa-float{
  position:fixed;right:24px;bottom:24px;z-index:9999;
  display:flex;align-items:center;gap:10px;text-decoration:none;
}
.wa-label{
  background:#fff;color:#1f2937;font-size:15px;font-weight:700;line-height:1.2;
  padding:12px 16px;border-radius:999px;box-shadow:0 8px 24px rgba(16,35,63,.18);
  white-space:nowrap;
  opacity:0;visibility:hidden;transform:translateX(10px) scale(.98);
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
}
.wa-float.wa-intro .wa-label,
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label{
  opacity:1;visibility:visible;transform:translateX(0) scale(1);
}
.wa-circle{
  display:flex;align-items:center;justify-content:center;
  width:72px;height:72px;flex:0 0 72px;
  background:transparent;border:0;border-radius:0;
  box-shadow:none;overflow:visible;
  transition:transform .18s ease,filter .18s ease;
}
.wa-circle img{
  width:72px;height:72px;max-width:none;display:block;object-fit:contain;
  filter:drop-shadow(0 9px 15px rgba(16,35,63,.22));
}
.wa-float:hover .wa-circle{transform:scale(1.045)}
.wa-float:focus-visible{outline:none}

/* CTA roja de honorarios: botones centrados en Inicio y Servicios */
.wp-block-group[style*="background-color:#a90000"] .wp-block-buttons{justify-content:center!important}
.wp-block-group[style*="background-color:#a90000"] .wp-block-button{justify-content:center}

/* Preserve the visual language from WordPress */
.wp-block-column[style*="border-width:1px"]{border-style:solid}
.wp-block-group[style*="background-color:#f5f6f8"],.wp-block-group[style*="background-color:#eef1f4"]{box-shadow:none}
.wp-block-group[style*="background-color:#10233f"] a:not(.wp-block-button__link){color:#fff}

@media (max-width:900px){
  main{padding:0 16px 8px}
  .site-header{position:relative}
  .header-inner{min-height:88px;padding:8px 0}
  .brand img{width:70px;height:70px}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .header-cta{display:none}
  .site-nav{display:none;position:absolute;left:16px;right:16px;top:88px;background:#fff;border:1px solid #e2e6eb;border-radius:14px;box-shadow:0 16px 35px rgba(16,35,63,.15);padding:12px;flex-direction:column;align-items:stretch;gap:2px;z-index:1001}
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 14px;border-radius:9px;border-bottom:0}
  .site-nav a:hover,.site-nav a.active{background:#f3f5f7;border-bottom:0}
  .wp-block-columns{flex-direction:column}
  .wp-block-columns>.ima-home-form{min-width:0;border-left:0!important;border-top:1px solid #526178;padding-left:0!important;margin-top:20px;padding-top:28px!important}
  .footer-grid{grid-template-columns:1fr;gap:26px}

  .wa-float{right:14px;bottom:14px;gap:8px}
  .wa-circle{width:60px;height:60px;flex-basis:60px}
  .wa-circle img{width:60px;height:60px}
  .wa-label{font-size:13px;padding:10px 12px;max-width:220px;white-space:normal;text-align:center}
}
@media (max-width:600px){
  .alignwide{width:100%}
  h1{font-size:clamp(2rem,10vw,3rem)!important}
  h2{font-size:clamp(1.7rem,8vw,2.35rem)!important}
  .wp-block-group[style*="padding-right:48px"]{padding-right:22px!important;padding-left:22px!important}
  .wp-block-group[style*="padding-right:28px"]{padding-right:20px!important;padding-left:20px!important}
  .wp-block-group[style*="padding-right:32px"]{padding-right:22px!important;padding-left:22px!important}
}

/* ===== Ajuste responsivo v2: centrado y proporciones estables ===== */
html,body{max-width:100%;overflow-x:hidden}
body{min-width:320px}

/* Un único eje central para todo el sitio. Evita que cada bloque calcule un ancho distinto. */
main{
  width:min(100%,1180px);
  margin:0 auto;
  padding:0 24px 12px;
}
.site-shell{
  width:min(calc(100% - 48px),1132px);
  margin-left:auto!important;
  margin-right:auto!important;
}
main .alignwide{
  width:100%;
  max-width:none;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* El header original de WordPress no era sticky. Mantenerlo en flujo evita saltos visuales
   y que aparezca superpuesto al capturar/pasar por distintas alturas de pantalla. */
.site-header{position:relative;top:auto}
.header-inner{min-height:104px}
.brand img{width:84px;height:84px}

/* Hero: proporción consistente en escritorio, sin depender excesivamente del viewport. */
.ima-home-hero > .wp-block-columns{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:clamp(36px,4.5vw,64px);
  align-items:start;
}
.ima-home-copy h1{
  font-size:clamp(3rem,4.1vw,3.85rem)!important;
  line-height:1.08!important;
  max-width:680px;
}
.ima-home-copy .ima-home-lead{max-width:640px}
.wp-block-columns>.ima-home-form{
  min-width:0;
  width:100%;
  flex-basis:auto!important;
}

/* Los cinco servicios mantienen 3 + 2 tarjetas centradas en desktop. */
.home-services-grid{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:28px!important;
}
.home-service-card{
  flex:0 1 calc((100% - 56px)/3)!important;
  max-width:calc((100% - 56px)/3)!important;
  min-width:0!important;
  min-height:260px!important;
}

/* CTA inferior centrada. */
.home-final-cta .wp-block-buttons{justify-content:center!important}

/* Secciones con ritmo vertical más estable. */
.home-workflow{padding-top:64px!important;padding-bottom:64px!important}
.home-workflow > .wp-block-columns{gap:22px!important}

@media (max-width:1050px){
  main{width:min(100%,960px)}
  .site-shell{width:min(calc(100% - 40px),912px)}
  .ima-home-hero > .wp-block-columns{
    grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);
    gap:34px;
  }
  .ima-home-copy h1{font-size:clamp(2.7rem,5vw,3.35rem)!important}
  .home-service-card{
    flex-basis:calc((100% - 28px)/2)!important;
    max-width:calc((100% - 28px)/2)!important;
  }
}

@media (max-width:820px){
  main{width:100%;padding:0 18px 10px}
  .site-shell{width:calc(100% - 36px)}
  .header-inner{min-height:86px}
  .brand img{width:68px;height:68px}
  .ima-home-hero > .wp-block-columns{
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .ima-home-copy h1{
    font-size:clamp(2.45rem,8.2vw,3.15rem)!important;
    max-width:720px;
  }
  .wp-block-columns>.ima-home-form{
    border-left:0!important;
    border-top:1px solid #526178;
    padding-left:0!important;
    margin-top:24px;
    padding-top:28px!important;
  }
  .home-workflow > .wp-block-columns{flex-direction:column}
}

@media (max-width:620px){
  main{padding-left:14px;padding-right:14px}
  .site-shell{width:calc(100% - 28px)}
  .ima-home-hero{margin-top:12px!important}
  .ima-home-hero{padding:24px 20px!important}
  .ima-home-copy h1{font-size:clamp(2.2rem,11vw,2.85rem)!important}
  .home-service-card{
    flex-basis:100%!important;
    max-width:100%!important;
    min-height:230px!important;
  }
  .home-services-grid{gap:16px!important}
  .home-workflow{padding-top:46px!important;padding-bottom:46px!important}
}


/* ===== Sistema de botones v6: estandarización global ===== */
:root{
  --btn-radius:14px;
  --btn-height:52px;
  --btn-pad-x:22px;
  --btn-font:15px;
  --btn-shadow:0 8px 18px rgba(16,35,63,.12);
  --btn-shadow-hover:0 12px 24px rgba(16,35,63,.18);
}

.wp-block-buttons{gap:14px!important}
.wp-block-button{display:inline-flex;align-items:center}

.header-cta,
.wp-block-button__link,
.wp-element-button,
.btn,
a[href="/contacto/"][style*="display:inline-block"],
.content-form .form-submit,
.form-submit{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:var(--btn-height)!important;
  padding:13px var(--btn-pad-x)!important;
  border-radius:var(--btn-radius)!important;
  font-size:var(--btn-font)!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-decoration:none!important;
  text-align:center!important;
  letter-spacing:0!important;
  box-shadow:var(--btn-shadow);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.header-cta:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
.btn:hover,
a[href="/contacto/"][style*="display:inline-block"]:hover,
.content-form .form-submit:hover,
.form-submit:hover{
  transform:translateY(-1px);
  box-shadow:var(--btn-shadow-hover);
  filter:none!important;
}

.header-cta:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
.btn:focus-visible,
a[href="/contacto/"][style*="display:inline-block"]:focus-visible,
.content-form .form-submit:focus-visible,
.form-submit:focus-visible{
  outline:3px solid rgba(157,8,8,.22);
  outline-offset:3px;
}

/* Primarios rojos */
.header-cta,
.wp-block-button__link[style*="background-color:#9d0808"],
.wp-block-button__link[style*="background:#9d0808"],
a[href="/contacto/"][style*="background:#9d0808"],
.content-form .form-submit,
.form-submit,
.home-final-cta .wp-block-button__link{
  background:var(--red)!important;
  color:#fff!important;
  border:1px solid var(--red)!important;
}

/* Secundarios outline/transparent */
.is-style-outline .wp-block-button__link,
.wp-block-button__link[style*="border-color:#ffffff"][style*="background-color:transparent"],
.wp-block-button__link[style*="border-color:#ffffff"]:not([style*="background-color:#9d0808"]):not([style*="background:#9d0808"]){
  background:transparent!important;
  color:#fff!important;
  border:1.5px solid rgba(255,255,255,.92)!important;
  box-shadow:none;
}

/* Botones blancos usados dentro de bloques oscuros */
a[href="/contacto/"][style*="background:#ffffff"]{
  background:#fff!important;
  color:var(--red)!important;
  border:1px solid rgba(255,255,255,.95)!important;
}

/* Bloque rojo de honorarios: mantener estilo pill pero más consistente */
.wp-block-group[style*="background-color:#a90000"] .wp-block-button__link{
  min-height:50px!important;
  border-radius:999px!important;
  padding:12px 26px!important;
  font-size:14px!important;
  font-weight:700!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}

/* CTA textual de Servicios -> convertirlo visualmente en botón */
.wp-block-group[style*="background-color:#10233f"] p.has-text-align-center > a[href="/contacto/"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:var(--btn-height)!important;
  padding:13px var(--btn-pad-x)!important;
  border-radius:var(--btn-radius)!important;
  background:var(--red)!important;
  color:#fff!important;
  border:1px solid var(--red)!important;
  box-shadow:var(--btn-shadow);
}

@media (max-width:680px){
  .wp-block-buttons{justify-content:center!important}
  .header-cta,
  .wp-block-button__link,
  .wp-element-button,
  .btn,
  a[href="/contacto/"][style*="display:inline-block"],
  .content-form .form-submit,
  .form-submit{
    min-height:50px!important;
    padding:12px 18px!important;
    font-size:14px!important;
  }
  .wp-block-group[style*="background-color:#a90000"] .wp-block-button__link{
    width:100%;
    max-width:360px;
  }
}



/* ===== Hero Inicio v7: versión aprobada ===== */
.ima-home-hero{
  background:#10233f!important;
  border-radius:22px!important;
  padding:56px 54px!important;
  overflow:hidden;
}
.ima-home-hero > .wp-block-columns{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr)!important;
  gap:clamp(52px,5vw,78px)!important;
  align-items:stretch!important;
}
.ima-home-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:2px 0;
}
.ima-home-copy > p:first-child{
  margin:0 0 34px!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:500!important;
  letter-spacing:.15em!important;
  line-height:1.3!important;
  text-transform:uppercase!important;
}
.ima-home-copy h1{
  margin:0 0 30px!important;
  max-width:650px!important;
  color:#fff!important;
  font-size:clamp(3.35rem,5vw,4.45rem)!important;
  font-weight:400!important;
  line-height:1.08!important;
  letter-spacing:-.025em;
}
.ima-home-copy .ima-home-lead{
  margin:0 0 34px!important;
  max-width:640px!important;
  color:#fff!important;
  font-size:clamp(1.08rem,1.45vw,1.28rem)!important;
  line-height:1.75!important;
}
.ima-home-copy .wp-block-buttons{
  gap:14px!important;
  margin-top:2px;
}
.ima-home-copy .wp-block-button__link{
  min-height:54px!important;
  padding:14px 22px!important;
  border-radius:13px!important;
  font-size:15px!important;
  font-weight:700!important;
}

.ima-home-form{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0!important;
  margin:0!important;
  padding:38px 40px!important;
  color:#fff!important;
  background:rgba(255,255,255,.012)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:22px!important;
  box-shadow:none!important;
}
.ima-home-form h2{
  margin:0 0 12px!important;
  color:#fff!important;
  font-size:clamp(1.75rem,2.4vw,2.15rem)!important;
  font-weight:500!important;
  line-height:1.15!important;
}
.ima-home-form > p{
  margin:0 0 26px!important;
  color:#fff!important;
  font-size:16.5px!important;
  line-height:1.55!important;
  opacity:.96;
}
.ima-home-form .content-form{
  gap:14px!important;
  margin-top:0!important;
}
.ima-home-form .content-form .field{
  gap:6px!important;
}
.ima-home-form .content-form label{
  color:#fff!important;
  font-size:14px!important;
  font-weight:700!important;
}
.ima-home-form .content-form input,
.ima-home-form .content-form textarea{
  border:1px solid rgba(17,24,39,.13)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#111827!important;
  padding:13px 14px!important;
  font-size:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)!important;
}
.ima-home-form .content-form input{
  min-height:54px!important;
}
.ima-home-form .content-form textarea{
  min-height:146px!important;
  resize:vertical;
}
.ima-home-form .content-form input::placeholder,
.ima-home-form .content-form textarea::placeholder{
  color:#7d8591!important;
  opacity:1;
}
.ima-home-form .content-form .form-submit{
  min-height:56px!important;
  margin-top:2px!important;
  border-radius:10px!important;
  font-size:16px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.ima-home-form .form-note{display:none!important}

@media (max-width:1050px){
  .ima-home-hero{
    padding:44px 38px!important;
  }
  .ima-home-hero > .wp-block-columns{
    grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)!important;
    gap:38px!important;
  }
  .ima-home-copy h1{
    font-size:clamp(2.9rem,5vw,3.6rem)!important;
  }
  .ima-home-form{
    padding:32px 30px!important;
  }
}

@media (max-width:820px){
  .ima-home-hero{
    padding:34px 28px!important;
  }
  .ima-home-hero > .wp-block-columns{
    display:flex!important;
    flex-direction:column!important;
    gap:34px!important;
  }
  .ima-home-copy h1{
    max-width:720px!important;
    font-size:clamp(2.65rem,8vw,3.4rem)!important;
  }
  .ima-home-form{
    margin:0!important;
    padding:30px 28px!important;
    border:1px solid rgba(255,255,255,.24)!important;
  }
}

@media (max-width:560px){
  .ima-home-hero{
    border-radius:18px!important;
    padding:28px 20px!important;
  }
  .ima-home-copy > p:first-child{
    margin-bottom:26px!important;
    font-size:12px!important;
  }
  .ima-home-copy h1{
    font-size:clamp(2.25rem,11vw,2.8rem)!important;
    margin-bottom:24px!important;
  }
  .ima-home-copy .ima-home-lead{
    font-size:1rem!important;
    line-height:1.65!important;
    margin-bottom:28px!important;
  }
  .ima-home-copy .wp-block-buttons{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .ima-home-copy .wp-block-button,
  .ima-home-copy .wp-block-button__link{
    width:100%!important;
  }
  .ima-home-form{
    border-radius:18px!important;
    padding:26px 20px!important;
  }
  .ima-home-form h2{
    font-size:1.75rem!important;
  }
}

/* ===== Carrusel de servicios v4 ===== */
.home-services-section{overflow:visible}
.home-services-title{
  text-align:center;
  color:var(--navy);
  margin:0 0 38px;
  font-size:clamp(2rem,3.2vw,2.7rem);
  line-height:1.15;
}
.services-carousel{
  --cards-visible:3;
  --carousel-gap:24px;
  position:relative;
  width:100%;
  padding:8px 54px 14px;
}
.services-viewport{
  overflow:hidden;
  padding:10px 6px 18px;
  margin:-10px -6px -18px;
}
.home-services-grid.services-track{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:calc((100% - (var(--carousel-gap) * (var(--cards-visible) - 1))) / var(--cards-visible))!important;
  grid-template-columns:none!important;
  gap:var(--carousel-gap)!important;
  align-items:stretch!important;
  justify-content:start!important;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:0!important;
  margin:0!important;
}
.home-services-grid.services-track::-webkit-scrollbar{display:none}
.home-services-grid.services-track .home-service-card{
  flex:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:330px!important;
  min-height:330px!important;
  padding:30px 28px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  background-color:var(--navy)!important;
  background-size:cover!important;
  background-position:center!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:16px!important;
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:0 8px 20px rgba(16,35,63,.18)!important;
  scroll-snap-align:start;
  position:relative;
  z-index:1;
  transform:scale(1);
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}
.home-services-grid.services-track .home-service-card > span:first-child{
  display:block!important;
  color:#fff!important;
  font-size:clamp(1.22rem,1.7vw,1.55rem)!important;
  font-weight:750!important;
  line-height:1.22!important;
  margin:0 0 22px!important;
}
.home-services-grid.services-track .home-service-card > span:last-child{
  display:block!important;
  color:#f7f8fa!important;
  font-size:clamp(.98rem,1.15vw,1.08rem)!important;
  line-height:1.65!important;
  margin:0!important;
}
.services-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(16,35,63,.16);
  background:#fff;
  color:var(--navy);
  box-shadow:0 7px 22px rgba(16,35,63,.16);
  font-size:32px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.services-arrow-prev{left:0}
.services-arrow-next{right:0}
.services-arrow:hover{
  background:#f7f8fa;
  box-shadow:0 9px 26px rgba(16,35,63,.22);
}
.services-arrow:active{transform:translateY(-50%) scale(.96)}
.services-arrow:focus-visible{outline:3px solid rgba(157,8,8,.25);outline-offset:3px}

@media (hover:hover) and (pointer:fine){
  .home-services-grid.services-track .home-service-card:hover{
    transform:scale(1.025);
    z-index:3;
    box-shadow:0 14px 30px rgba(16,35,63,.24)!important;
    filter:brightness(1.03);
  }
}

@media (max-width:1050px){
  .services-carousel{--cards-visible:2;--carousel-gap:22px;padding-left:50px;padding-right:50px}
  .home-services-grid.services-track .home-service-card{height:315px!important;min-height:315px!important}
}
@media (max-width:680px){
  .services-carousel{--cards-visible:1;--carousel-gap:16px;padding-left:44px;padding-right:44px}
  .services-arrow{width:38px;height:38px;font-size:28px}
  .home-services-grid.services-track .home-service-card{height:300px!important;min-height:300px!important;padding:26px 24px!important}
  .home-services-title{margin-bottom:28px}
}
@media (prefers-reduced-motion:reduce){
  .home-services-grid.services-track{scroll-behavior:auto}
  .home-services-grid.services-track .home-service-card{transition:none}
}

/* ===== Hero Inicio v8: ajuste exclusivo escritorio ===== */
@media (min-width:1051px){
  .ima-home-hero{
    padding:46px 50px!important;
  }
  .ima-home-hero > .wp-block-columns{
    grid-template-columns:minmax(0,1.05fr) minmax(470px,.95fr)!important;
    gap:56px!important;
    align-items:start!important;
  }
  .ima-home-copy{
    justify-content:flex-start!important;
    padding:12px 0 0!important;
  }
  .ima-home-copy > p:first-child{
    margin-bottom:30px!important;
  }
  .ima-home-copy h1{
    max-width:640px!important;
    margin-bottom:26px!important;
    font-size:clamp(3.2rem,4.25vw,4rem)!important;
    line-height:1.08!important;
  }
  .ima-home-copy .ima-home-lead{
    max-width:620px!important;
    margin-bottom:28px!important;
    font-size:1.08rem!important;
    line-height:1.68!important;
  }
  .ima-home-copy .wp-block-button__link{
    min-height:50px!important;
    padding:12px 20px!important;
  }
  .ima-home-form{
    align-self:start!important;
    justify-content:flex-start!important;
    padding:32px 34px!important;
    border-radius:20px!important;
  }
  .ima-home-form h2{
    margin-bottom:10px!important;
    font-size:28px!important;
    line-height:1.15!important;
  }
  .ima-home-form > p{
    margin-bottom:22px!important;
    font-size:16px!important;
    line-height:1.5!important;
  }
  .ima-home-form .content-form{
    gap:12px!important;
  }
  .ima-home-form .content-form input{
    min-height:50px!important;
    padding:11px 14px!important;
  }
  .ima-home-form .content-form textarea{
    min-height:120px!important;
    padding:12px 14px!important;
  }
  .ima-home-form .content-form .form-submit{
    min-height:52px!important;
    margin-top:2px!important;
  }
}

@media (min-width:1220px){
  .ima-home-form h2{white-space:nowrap}
}



/* ===== V15: fondo exterior original (sin imagen) ===== */
body{background:#fff!important;background-image:none!important;background-attachment:scroll!important}
.site-header,.site-footer{background:#fff}
main{background:transparent}

/* ===== Estandarización estructural v14 ===== */
:root{
  --section-space-lg:52px;
  --section-space-md:44px;
  --section-space-sm:36px;
  --content-gap:28px;
}

/* Inicio: ritmo vertical consistente */
.home-services-section{
  padding-top:var(--section-space-md)!important;
  padding-bottom:var(--section-space-md)!important;
}
.home-workflow{
  padding-top:var(--section-space-lg)!important;
  padding-bottom:var(--section-space-lg)!important;
}
.home-workflow > h2{margin-top:0!important;margin-bottom:30px!important}
.home-final-cta{
  padding-top:40px!important;
  padding-bottom:40px!important;
}
.home-final-cta h2{margin:0 0 14px!important}
.home-final-cta > p:first-of-type{margin:0 0 20px!important}
.home-final-cta .wp-block-buttons{margin:0!important}
.home-final-cta > p:last-child{margin:20px 0 0!important}

/* Bloque rojo: mismo margen entre Inicio y Servicios */
.fee-section-wrap{padding-top:20px!important;padding-bottom:20px!important}
.fee-card{padding-top:28px!important;padding-bottom:28px!important}
.fee-card h2{margin-bottom:18px!important}
.fee-card > p:first-of-type{margin-bottom:24px!important}
.fee-card > p:last-child{margin-top:18px!important;margin-bottom:0!important}

/* Servicios: secciones principales */
.services-worker-section{
  padding-top:52px!important;
  padding-bottom:44px!important;
}
.services-worker-section > h2{margin-top:0!important;margin-bottom:24px!important}
.services-employer-card{
  padding-top:42px!important;
  padding-bottom:42px!important;
}
.services-orientation-cta{
  padding-top:38px!important;
  padding-bottom:38px!important;
}
.services-orientation-cta h2{margin:0 0 18px!important}
.services-orientation-cta p{margin:0!important}

/* Contacto */
.contact-main-section{
  padding-top:48px!important;
  padding-bottom:48px!important;
}

/* Páginas individuales de servicios */
.service-hero{
  padding-top:54px!important;
  padding-bottom:54px!important;
}
.service-body{
  padding-top:46px!important;
  padding-bottom:34px!important;
}
.service-info-box{
  padding-top:36px!important;
  padding-bottom:36px!important;
}
.service-page-cta{
  margin-top:34px!important;
  padding-top:38px!important;
  padding-bottom:38px!important;
}

/* Footer: evita un cierre excesivamente alto */
.site-footer{
  padding-top:44px!important;
  padding-bottom:58px!important;
  margin-top:36px!important;
}

@media (max-width:900px){
  :root{
    --section-space-lg:42px;
    --section-space-md:36px;
    --section-space-sm:30px;
  }
  .home-final-cta{padding-top:34px!important;padding-bottom:34px!important}
  .services-worker-section{padding-top:38px!important;padding-bottom:34px!important}
  .services-employer-card{padding-top:34px!important;padding-bottom:34px!important}
  .services-orientation-cta{padding-top:32px!important;padding-bottom:32px!important}
  .contact-main-section{padding-top:38px!important;padding-bottom:38px!important}
  .service-hero{padding-top:42px!important;padding-bottom:42px!important}
  .service-body{padding-top:38px!important;padding-bottom:28px!important}
  .service-info-box{padding-top:30px!important;padding-bottom:30px!important}
  .service-page-cta{margin-top:30px!important;padding-top:32px!important;padding-bottom:32px!important}
  .site-footer{padding-top:38px!important;padding-bottom:50px!important;margin-top:30px!important}
}

@media (max-width:620px){
  .home-final-cta{padding:30px 20px!important}
  .fee-section-wrap{padding-top:16px!important;padding-bottom:16px!important}
  .fee-card{padding-top:24px!important;padding-bottom:24px!important}
  .services-worker-section{padding-top:32px!important;padding-bottom:28px!important;padding-left:12px!important;padding-right:12px!important}
  .services-employer-card{padding-top:28px!important;padding-bottom:28px!important}
  .services-orientation-cta{padding-top:28px!important;padding-bottom:28px!important}
  .service-hero{padding-top:36px!important;padding-bottom:36px!important}
  .service-body{padding-top:32px!important;padding-bottom:24px!important}
  .service-info-box{padding:26px 22px!important}
  .service-page-cta{padding:28px 22px!important}
}


/* ===== Servicios empleadores v15: tarjetas independientes ===== */
.employer-services-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  width:100%;
  margin:0 auto 36px;
}
.employer-service-card{
  min-height:210px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:30px 28px;
  border:1px solid #dfe4ea;
  border-radius:16px;
  background:#eef1f4;
  color:var(--ink)!important;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(16,35,63,.08);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.employer-service-card h3{
  margin:0 0 14px;
  color:var(--red);
  font-size:23px;
  line-height:1.25;
}
.employer-service-card p{
  margin:0;
  color:#4b5563;
  font-size:16px;
  line-height:1.65;
}
.employer-service-card::after{
  content:'Solicitar asesoría  →';
  display:block;
  margin-top:auto;
  padding-top:22px;
  color:var(--navy);
  font-size:14px;
  font-weight:700;
}
@media (hover:hover) and (pointer:fine){
  .employer-service-card:hover{
    transform:translateY(-3px);
    background:#f4f6f8;
    border-color:#cbd3dd;
    box-shadow:0 12px 28px rgba(16,35,63,.13);
  }
}
.employer-service-card:focus-visible{outline:3px solid rgba(157,8,8,.22);outline-offset:3px}
@media (max-width:900px){
  .employer-services-grid{grid-template-columns:1fr;gap:16px;margin-bottom:30px}
  .employer-service-card{min-height:0;padding:26px 24px}
}


/* ===== Contacto v16: distribución de escritorio estandarizada ===== */
@media (min-width:901px){
  .contact-main-section{
    padding-left:24px!important;
    padding-right:24px!important;
  }
  .contact-main-section > .wp-block-columns{
    display:grid!important;
    grid-template-columns:minmax(0,1.95fr) minmax(300px,1fr)!important;
    gap:32px!important;
    align-items:start!important;
  }
  .contact-form-column,
  .contact-guide-column{
    flex-basis:auto!important;
    width:100%!important;
    min-width:0!important;
  }
  .contact-form-column > h2{
    margin-top:0!important;
    margin-bottom:14px!important;
  }
  .contact-form-column > p{
    margin-top:0!important;
    margin-bottom:24px!important;
  }
  .contact-form-column > h3{
    margin-top:0!important;
    margin-bottom:18px!important;
  }
  .contact-form-column .content-form{
    gap:14px!important;
    margin-top:0!important;
  }
  .contact-form-column .content-form input,
  .contact-form-column .content-form select{
    min-height:50px!important;
  }
  .contact-form-column .content-form textarea{
    min-height:132px!important;
  }
  .contact-guide-column{
    align-self:start!important;
    padding:30px 28px!important;
  }
  .contact-guide-column h3{
    margin-top:0!important;
    margin-bottom:18px!important;
  }
  .contact-guide-column ul{
    margin-top:0!important;
    margin-bottom:0!important;
  }
  .contact-guide-column > p:last-child{
    margin-bottom:0!important;
  }
}

/* El aviso de apertura de WhatsApp no se muestra en Contacto. */
.contact-form-light .form-note{display:none!important}


/* ===== Servicios trabajadores v17: hover tipo empleadores ===== */
.services-worker-section .wp-block-column > a,
.services-worker-section > div[style*="display:flex"] > a{
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease!important;
}
@media (hover:hover) and (pointer:fine){
  .services-worker-section .wp-block-column > a:hover,
  .services-worker-section > div[style*="display:flex"] > a:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(16,35,63,.24)!important;
    filter:brightness(1.03);
  }
}
.services-worker-section .wp-block-column > a:focus-visible,
.services-worker-section > div[style*="display:flex"] > a:focus-visible{
  outline:3px solid rgba(157,8,8,.22);
  outline-offset:3px;
}


/* ===== Botones v18: hover uniforme en toda la web ===== */
.header-cta,
.wp-block-button__link,
.wp-element-button,
.btn,
.content-form .form-submit,
.form-submit,
a[href="/contacto/"][style*="display:inline-block"],
.wp-block-group[style*="background-color:#10233f"] p.has-text-align-center > a[href="/contacto/"]{
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease, border-color .2s ease!important;
  will-change:transform;
}

@media (hover:hover) and (pointer:fine){
  .header-cta:hover,
  .wp-block-button__link:hover,
  .wp-element-button:hover,
  .btn:hover,
  .content-form .form-submit:hover,
  .form-submit:hover,
  a[href="/contacto/"][style*="display:inline-block"]:hover,
  .wp-block-group[style*="background-color:#10233f"] p.has-text-align-center > a[href="/contacto/"]:hover{
    transform:translateY(-3px)!important;
    box-shadow:0 12px 28px rgba(16,35,63,.18)!important;
    filter:brightness(1.02)!important;
  }
}

.header-cta:active,
.wp-block-button__link:active,
.wp-element-button:active,
.btn:active,
.content-form .form-submit:active,
.form-submit:active,
a[href="/contacto/"][style*="display:inline-block"]:active,
.wp-block-group[style*="background-color:#10233f"] p.has-text-align-center > a[href="/contacto/"]:active{
  transform:translateY(-1px) scale(.99)!important;
}

@media (prefers-reduced-motion:reduce){
  .header-cta,
  .wp-block-button__link,
  .wp-element-button,
  .btn,
  .content-form .form-submit,
  .form-submit,
  a[href="/contacto/"][style*="display:inline-block"],
  .wp-block-group[style*="background-color:#10233f"] p.has-text-align-center > a[href="/contacto/"]{
    transition:none!important;
  }
}

/* ===== V20: plantilla visual única para páginas individuales de servicios ===== */
.service-inner{
  width:min(100%,1060px);
  margin:0 auto;
}
.service-standard-hero{
  border-radius:16px;
  color:#fff;
  background:var(--navy);
  padding:54px 42px!important;
}
.service-standard-hero .service-kicker{
  margin:0 0 18px;
  color:#fff;
  font-size:14px;
  letter-spacing:.14em;
  line-height:1.35;
  text-transform:uppercase;
}
.service-standard-hero h1{
  margin:0 0 22px;
  max-width:960px;
  color:#fff;
  font-size:clamp(2.35rem,4vw,3rem);
  line-height:1.1;
  font-weight:600;
}
.service-standard-hero .service-hero-description{
  margin:0 0 28px;
  max-width:900px;
  color:#f6f6f6;
  font-size:20px;
  line-height:1.62;
}
.service-standard-hero .service-primary-cta{
  background:var(--red)!important;
  color:#fff!important;
  border:1px solid var(--red)!important;
}

.service-standard-body{
  padding:46px 24px 34px!important;
}
.service-standard-body h2{
  margin:0 0 18px;
  color:var(--navy);
  font-size:clamp(1.85rem,3vw,2.25rem);
  line-height:1.2;
}
.service-intro{
  max-width:980px;
  margin-bottom:30px;
}
.service-intro-text{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.72;
}
.service-intro-text + .service-intro-text{
  margin-top:14px;
}
.service-alert{
  color:var(--red)!important;
  font-size:17px!important;
  font-weight:600!important;
}
.service-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.service-feature-card{
  min-height:205px;
  padding:28px;
  border:1px solid #e3e7ec;
  border-radius:16px;
  background:#f5f6f8;
  box-shadow:0 4px 14px rgba(16,35,63,.05);
}
.service-feature-card h3{
  margin:0 0 14px;
  color:var(--red);
  font-size:23px;
  line-height:1.28;
}
.service-feature-card p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.68;
}

.service-standard-info{
  border-radius:16px;
  background:#f5f6f8!important;
  padding:36px 38px!important;
}
.service-standard-info h2{
  margin:0 0 18px;
  color:var(--navy);
  font-size:30px;
  line-height:1.25;
}
.service-standard-info ul{
  margin:0;
  padding-left:24px;
  color:var(--muted);
  font-size:17px;
  line-height:1.78;
}
.service-standard-info li + li{margin-top:7px}

.service-standard-cta{
  margin:34px auto 0!important;
  padding:38px 30px!important;
  border-radius:16px!important;
  color:#fff;
  background:var(--red)!important;
}
.service-cta-inner{
  max-width:900px;
  margin:0 auto;
  text-align:center;
}
.service-standard-cta h2{
  margin:0 auto 14px;
  max-width:880px;
  color:#fff;
  font-size:clamp(1.85rem,3vw,2.25rem);
  line-height:1.2;
}
.service-standard-cta p{
  margin:0 auto 22px;
  max-width:780px;
  color:#fff;
  font-size:18px;
  line-height:1.62;
}
.service-standard-cta .service-cta-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:13px 22px!important;
  border:1px solid #fff!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--red)!important;
  text-decoration:none;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.2!important;
  box-shadow:0 8px 18px rgba(16,35,63,.12);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.service-disclaimer{
  max-width:940px;
  margin:24px auto 0;
  padding:0 20px;
  color:#6b7280;
  text-align:center;
  font-size:14px;
  line-height:1.6;
}
@media (hover:hover) and (pointer:fine){
  .service-standard-cta .service-cta-button:hover{
    transform:translateY(-3px);
    box-shadow:0 13px 26px rgba(16,35,63,.18);
    filter:brightness(1.02);
  }
}

@media (max-width:900px){
  .service-standard-hero{padding:42px 30px!important}
  .service-standard-body{padding:38px 18px 28px!important}
  .service-feature-grid{grid-template-columns:1fr;gap:16px}
  .service-feature-card{min-height:0;padding:26px 24px}
  .service-standard-info{padding:30px 28px!important}
  .service-standard-cta{margin-top:30px!important;padding:32px 26px!important}
}
@media (max-width:620px){
  .service-standard-hero{padding:36px 22px!important}
  .service-standard-hero h1{font-size:clamp(2rem,10vw,2.7rem)!important}
  .service-standard-hero .service-hero-description{font-size:17px;line-height:1.62}
  .service-standard-body{padding:32px 10px 24px!important}
  .service-standard-body h2{font-size:1.75rem!important}
  .service-intro-text{font-size:16px}
  .service-feature-card{padding:24px 22px}
  .service-feature-card h3{font-size:21px}
  .service-standard-info{padding:26px 22px!important}
  .service-standard-info h2{font-size:1.65rem!important}
  .service-standard-info ul{font-size:16px;line-height:1.72}
  .service-standard-cta{padding:28px 22px!important}
  .service-standard-cta p{font-size:16px}
  .service-disclaimer{margin-top:20px;font-size:13px}
}


/* ===== V21: alineación uniforme en páginas de servicios ===== */
.service-standard-body,
.service-standard-info,
.service-standard-cta,
.service-disclaimer{
  width:min(100%,1280px);
  margin-left:auto!important;
  margin-right:auto!important;
}
.service-standard-body .service-inner,
.service-standard-info .service-inner,
.service-standard-cta .service-cta-inner{
  width:min(100%,1060px);
  margin-left:auto;
  margin-right:auto;
}
.service-feature-grid,
.service-standard-info ul{
  margin-left:0;
}
.service-feature-card,
.service-standard-info,
.service-standard-cta{
  overflow:hidden;
}
@media (max-width:620px){
  .service-standard-hero,
  .service-standard-body,
  .service-standard-info,
  .service-standard-cta{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .service-inner,
  .service-cta-inner{
    width:100%!important;
    max-width:none!important;
  }
  .service-standard-body h2,
  .service-standard-info h2,
  .service-standard-cta h2{
    margin-left:0!important;
    margin-right:0!important;
  }
  .service-intro,
  .service-feature-grid,
  .service-standard-info ul,
  .service-disclaimer{
    max-width:100%!important;
  }
  .service-feature-card{
    width:100%;
    min-width:0;
    margin:0;
  }
}


/* ===== V22: redistribución de los 3 bloques centrales en páginas de servicios ===== */
.service-standard-body .service-inner{
  width:min(100%,1280px);
  max-width:none;
}
.service-standard-body h2,
.service-standard-body .service-intro{
  max-width:1060px;
}
.service-feature-grid{
  margin-top:6px;
}
@media (min-width:901px){
  .service-feature-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
  }
  .service-feature-card{
    min-height:230px;
    padding:30px 30px;
  }
}
@media (max-width:900px){
  .service-standard-body .service-inner{
    width:100%;
  }
  .service-standard-body h2,
  .service-standard-body .service-intro{
    max-width:100%;
  }
}
