/* ============================================================
   Isabel Garre Abogados — Whereby-inspired editorial system
   Based on DESIGN (2).md
   ============================================================ */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --blush: #f8dbd5;
  --muted: #666666;
  --line: #e7e7e7;
  --violet: #2b189b;
  --violet-dark: #211375;
  --teal: #006654;
  --display: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1200px;
  --narrow: 760px;
  --radius: 12px;
  --pill: 40px;
  --shadow-photo: 0 8px 24px rgba(0,0,0,.08);
  --shadow-ui: 0 12px 32px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

/* ---------- Header ---------- */
.ig-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.ig-header__inner {
  width: min(100% - 48px, var(--max));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 38px;
}
.ig-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.ig-brand img { width: 34px; height: 34px; object-fit: contain; }
.ig-brand__name { font-family: var(--display); font-size: 25px; line-height: 1; white-space: nowrap; }
.ig-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.ig-nav > a, .ig-nav__item > a, .ig-lang a, .ig-nav__social {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ig-nav > a:hover, .ig-nav__item > a:hover, .ig-lang a:hover { color: var(--violet); }
.ig-nav__item { position: relative; }
.ig-nav__item > a { display: inline-flex; align-items: center; gap: 7px; }
.ig-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: -18px;
  width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-ui);
}
.ig-nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -18px;
  width: 280px;
  height: 18px;
}

.ig-nav__item:hover .ig-nav__dropdown, .ig-nav__item:focus-within .ig-nav__dropdown, .ig-nav__item.is-open .ig-nav__dropdown { display: grid; }
.ig-nav__dropdown a { padding: 8px 10px; font-size: 13px; text-decoration: none; border-radius: 6px; }
.ig-nav__item--mega { position: static; }
.ig-nav__item--mega > a { position: relative; }
.ig-nav__caret { font-size: 11px; line-height: 1; }
.ig-nav__item--mega::after { left: 0; width: 100vw; height: 24px; }
.ig-mega { display: none; position: absolute; top: 79px; left: 0; right: 0; padding: 26px 0 30px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-ui); }
.ig-nav__item--mega:hover .ig-mega, .ig-nav__item--mega:focus-within .ig-mega, .ig-nav__item--mega.is-open .ig-mega { display: block; }
.ig-mega__inner { width: min(100% - 48px, var(--max)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ig-mega__heading { margin: 0 0 12px; color: var(--violet); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.ig-mega__col ul { margin: 0; padding: 0; list-style: none; }
.ig-mega__col li + li { margin-top: 7px; }
.ig-mega__col a { color: var(--ink); font-size: 13px; line-height: 1.35; text-decoration: none; }
.ig-mega__col a:hover { color: var(--violet); }

.ig-lang { display: inline-flex; align-items: center; gap: 6px; }
.ig-flag { display: inline-flex; padding: 2px; border: 1px solid transparent; border-radius: 5px; line-height: 0; opacity: .45; transition: opacity .15s ease, border-color .15s ease; }
.ig-flag:hover { opacity: .8; }
.ig-flag.is-active { opacity: 1; border-color: var(--line); background: #fff; }
.ig-flag svg { width: 26px; height: 17px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ig-nav__social { display: inline-flex; color: var(--ink); }
.ig-nav__social svg { width: 17px; height: 17px; }
.ig-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  color: #fff !important;
  background: #25d366;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease;
}
.ig-header-cta svg { width: 17px; height: 17px; flex: 0 0 auto; }
.ig-header-cta:hover { background: #1ebe5d; }
.ig-nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; width: 42px; height: 42px; }
.ig-nav-toggle span, .ig-nav-toggle span::before, .ig-nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.ig-nav-toggle span::before, .ig-nav-toggle span::after { content: ''; position: absolute; left: 0; }
.ig-nav-toggle span::before { top: -7px; } .ig-nav-toggle span::after { top: 7px; }

/* ---------- Accesos rápidos de cabecera (solo móvil) ---------- */
.ig-quick { display: none; }

/* ---------- Common ---------- */
.wrap { width: min(100% - 48px, var(--max)); margin: 0 auto; }
.ig-main { width: 100%; padding: 0; margin: 0; }
.entry-content { width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 72px 0 96px; }
body.is-home .entry-content { width: 100%; max-width: none; padding: 0; }
.eyebrow, .page-kicker {
  margin: 0 0 16px;
  color: var(--violet);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 400; letter-spacing: -.028em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-family: var(--display); font-weight: 400; }
p { margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn, .ig-btn, .wp-block-button__link, .kb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--violet);
  border-radius: var(--pill);
  background: var(--violet);
  color: #fff !important;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover, .ig-btn:hover, .wp-block-button__link:hover, .kb-button:hover { background: var(--violet-dark); border-color: var(--violet-dark); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--violet) !important; }
.btn--outline:hover { background: rgba(43,24,155,.08); color: var(--violet) !important; }
.btn--wa { background: var(--violet); border-color: var(--violet); }

/* ---------- Home hero ---------- */
.hero {
  width: min(100% - 48px, var(--max));
  margin: 24px auto 0;
  background: linear-gradient(110deg, #f1f3f4 0%, #f6e5e1 58%, #f3d9d5 100%);
  border-radius: 24px;
  overflow: hidden;
}
.hero__inner { width: 100%;
  min-height: 650px;
  margin: 0 auto;
  padding: 80px 48px 88px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}
.hero h1 { max-width: 650px; font-size: clamp(56px, 7.2vw, 104px); line-height: 1.02; }
.hero__lead { max-width: 570px; margin: 28px 0 30px; font-size: 18px; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin: 22px 0 0; font-size: 13px; }
.hero__photo { min-width: 0; }
.hero__photo img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-photo); }

/* ---------- Home sections ---------- */
.home-section { padding: 104px 0; background: var(--paper); }
.home-section--tight { padding-top: 72px; padding-bottom: 72px; }
.home-section > .split, .home-section > .feature, .home-section > .home-section__head, .home-section > .services, .home-section > .service-grid, .home-section > .contact-grid { width: min(100% - 48px, var(--max)); margin-left: auto; margin-right: auto; }
.home-section__head { max-width: 760px !important; text-align: center; margin-bottom: 48px !important; }
.home-section__head h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.08; }
.home-section__head > p:last-child { max-width: 620px; margin: 22px auto 0; font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1.08; }
.split__text > p:not(.eyebrow) { max-width: 560px; font-size: 18px; line-height: 1.6; }
.split__media img { width: 100%; aspect-ratio: 1.05 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-photo); }

/* ---------- Stats / trust ---------- */
.stats, .trust {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 42px 0;
  background: var(--paper);
  border: 0;
}
.stat { text-align: center; }
.stat__value { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: clamp(28px, 3vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat__value--rating { font-family: var(--body); }
.stat__label { margin-top: 10px; font-size: 13px; line-height: 1.35; }
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.trust__item { text-align: center; font-size: 13px; }
.trust__item b { display: block; font-weight: 600; margin-bottom: 3px; }

/* ---------- Feature band ---------- */
.feature {
  background: var(--mist);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: center;
}
.feature img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.feature h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.05; }
.feature p:not(.eyebrow):not(.note) { max-width: 540px; margin: 24px 0; font-size: 18px; line-height: 1.6; }
.feature .eyebrow { margin-bottom: 12px; }
.feature .note { margin-top: 14px; font-size: 13px; }

/* ---------- Service showcase cards ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature-card { display: flex; flex-direction: column; padding: 0; }
.feature-card__media { margin: 0 0 24px; }
.feature-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-ui); }
.pill-tag { display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 5px 10px; border: 1px solid #cccccc; border-radius: 4px; font-size: 12px; font-weight: 500; }
.feature-card h3 { font-size: 34px; line-height: 1.12; }
.feature-card ul { margin: 18px 0 22px; padding: 0; list-style: none; }
.feature-card li { position: relative; padding-left: 22px; margin: 9px 0; font-size: 16px; line-height: 1.5; }
.feature-card li::before { content: '+'; position: absolute; left: 0; top: 0; color: var(--violet); font-weight: 500; }
.link-arrow { color: var(--violet); font-size: 15px; font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.service {
  display: block;
  padding: 30px;
  color: var(--ink);
  text-decoration: none !important;
  background: var(--mist);
  border-radius: 20px;
  transition: background .2s ease, transform .2s ease;
}
.service:hover { background: #ececec; transform: translateY(-2px); }
.service__num { display: inline-block; margin-bottom: 14px; color: var(--violet); font-size: 12px; font-weight: 600; }
.service h3 { font-size: 25px; line-height: 1.15; }
.service p { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; }
.service__more { color: var(--violet); font-size: 14px; font-weight: 500; }
.service--cta { background: var(--blush); }
.service--cta .service__num, .service--cta .service__more { color: var(--violet); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info__item .ico { display: none; }
.contact-info__item b { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact-info__item a, .contact-info__item span { font-size: 17px; text-decoration: none; }
.location-card { margin-top: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-photo); }
.location-card img, .location-card__map { width: 100%; height: 220px; object-fit: cover; display: block; border: 0; }
.location-card__body { padding: 16px 18px 18px; }
.location-card__address { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.location-card__link { display: inline-block; color: var(--violet); font-size: 13px; font-weight: 600; text-decoration: none; }
.location-card__link:hover { text-decoration: underline; }
.location-card__credit { display: block; margin-top: 8px; font-size: 10.5px; color: #9a9a9a; }
.form-panel { padding: 38px; background: var(--mist); border-radius: 20px; }
.form-panel h3 { font-size: 36px; }
.form-note { margin: 12px 0 24px; }
.ig-form { display: grid; gap: 16px; }
.ig-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.ig-field input, .ig-field textarea { width: 100%; padding: 14px 15px; background: #fff; border: 1px solid #d8d8d8; border-radius: 4px; }
.ig-field textarea { min-height: 140px; resize: vertical; }
.ig-check { display: flex; gap: 9px; font-size: 12px; line-height: 1.45; }
.ig-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ig-form__status { display: none; margin: 0; padding: 13px 15px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.ig-form__status.is-visible { display: block; }
.ig-form__status.is-ok { background: #e8f8ee; color: #13612e; }
.ig-form__status.is-error { background: #fdecef; color: #8a1431; }
.ig-field__error { display: none; margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: #b3261e; }
.ig-field.has-error .ig-field__error { display: block; }
.ig-field.has-error input:not([type="checkbox"]),
.ig-field.has-error textarea { border-color: #b3261e; background: #fff7f6; }
.ig-field.has-error input:focus,
.ig-field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.ig-field--check.has-error .ig-check { color: #b3261e; }
.ig-form .ig-btn { justify-self: start; margin-top: 4px; }
.ig-form .ig-btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Interior page hero ---------- */
.page-hero {
  width: min(100% - 48px, var(--max));
  margin: 24px auto 0;
  background: linear-gradient(110deg, #f1f3f4 0%, #f6e5e1 58%, #f3d9d5 100%);
  border-radius: 24px;
  overflow: hidden;
}
.page-hero__inner { width: 100%; margin: 0 auto; padding: 72px 48px 78px; }
.breadcrumbs { margin-bottom: 28px; font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); }
.breadcrumbs span { margin: 0 8px; color: #9a7772; }
.page-hero h1 { max-width: 920px; font-size: clamp(52px, 7vw, 92px); line-height: 1.02; }
.page-hero .lead { max-width: 720px; margin: 26px 0 28px; font-size: 19px; line-height: 1.55; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Long-form content ---------- */
body.is-page .entry-content { max-width: 900px; padding-top: 72px; padding-bottom: 96px; }
body.is-page .entry-content p,
body.is-page .entry-content li { max-width: 760px; }
.entry-content > section:not(.callout), .entry-content > div:not(.callout) { max-width: 100%; }
.entry-content p, .entry-content li { font-size: 17px; line-height: 1.7; }
.entry-content h2 { margin: 64px 0 18px; font-size: 42px; line-height: 1.12; }
.entry-content h3 { margin: 42px 0 12px; font-size: 27px; line-height: 1.2; }
.entry-content h4 { margin: 28px 0 8px; font-size: 22px; }
.entry-content h5 { margin: 38px 0 14px; font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.25; }
.entry-content ul, .entry-content ol { margin: 22px 0 28px; padding-left: 25px; }
.entry-content li { margin: 7px 0; }
.entry-content a:not(.btn):not(.ig-btn) { text-decoration: underline; text-decoration-color: #c9c2ea; text-underline-offset: 3px; }
.entry-content blockquote { margin: 34px 0; padding: 24px 28px; background: var(--mist); border-left: 3px solid var(--violet); font-family: var(--display); font-size: 25px; line-height: 1.3; }
.entry-content figure, .entry-content .wp-block-image { margin: 34px 0; }
.entry-content img { width: auto; max-width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
.entry-content figure img { width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.entry-content th, .entry-content td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; }

/* ---------- Lead editorial photo (páginas de servicio) ---------- */
.entry-content .lead-photo {
  float: left;
  width: 240px;
  height: 300px;
  margin: 6px 30px 16px 0;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-photo);
}
.entry-content .lead-intro { display: flow-root; }
.entry-content .lead-intro::after { content: ''; display: block; clear: both; }
.entry-content .lead-intro > img.lead-photo + br { display: none; }

/* ---------- FAQ como acordeón ---------- */
.entry-content .faq { margin: 40px 0 24px; border-top: 1px solid var(--line); }
.entry-content .faq details { border-bottom: 1px solid var(--line); padding: 0; }
.entry-content .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.25;
}
.entry-content .faq summary::-webkit-details-marker { display: none; }
.entry-content .faq summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--violet);
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1;
  transition: transform .2s ease;
}
.entry-content .faq details[open] summary::after { transform: rotate(45deg); }
.entry-content .faq details > p { margin: 0 0 24px; padding-right: 40px; color: var(--ink); }

/* ---------- Casos / bloques con h3 repetidos ---------- */
.entry-content .case-card {
  margin: 18px 0;
  padding: 24px 26px;
  background: var(--mist);
  border-radius: 16px;
}
.entry-content .case-card h3 { margin-top: 0 !important; font-size: 24px; }
.entry-content .case-card p { margin: 8px 0; }

/* ---------- Entradilla editorial (foto + texto) ---------- */
.entry-content .intro {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin: 0 0 44px;
}
.entry-content .intro__media { margin: 0; }
.entry-content .intro__media img.lead-photo {
  float: none;
  display: block;
  width: 100%;
  height: 330px;
  margin: 0;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 16px;
}
.entry-content .intro__text { min-width: 0; }
.entry-content .intro__text p:first-child { font-size: 18px; line-height: 1.65; }
.entry-content .intro__text p:last-child { margin-bottom: 0; }

/* callouts, FAQs and legacy sections */
.callout { max-width: 100% !important; margin: 0 0 56px; padding: 46px; background: var(--mist); border-radius: 20px; }
.callout h2 { margin-top: 0 !important; font-size: 42px !important; }
.callout p { max-width: 720px; }
.callout img { max-height: 360px; margin-bottom: 28px; }
.rank-math-question { padding: 18px 0 !important; border-bottom: 1px solid var(--line); cursor: default; }
.rank-math-question + p { margin-top: 0; padding: 16px 0 22px; }
.section-por-que-elegirme, .section-dia-denuncia, .section-casos-reales {
  margin: 58px 0;
  padding: 38px 34px !important;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--mist) !important;
}
.section-por-que-elegirme h3,
.section-dia-denuncia h3,
.section-casos-reales h3 {
  margin: 26px 0 0 !important;
  padding: 20px 22px;
  background: #fff;
  border-radius: 12px;
  font-size: 25px;
}
.section-por-que-elegirme h3 + p,
.section-dia-denuncia h3 + p,
.section-casos-reales h3 + p { padding: 0 22px 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  width: min(100% - 48px, var(--max));
  margin: 24px auto 40px;
  padding: 96px 48px;
  background: linear-gradient(110deg, #f1f3f4 0%, #f6e5e1 58%, #f3d9d5 100%);
  border-radius: 24px;
  text-align: center;
}
.cta-band h2 { max-width: 780px; margin: 0 auto 18px; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.05; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 18px; line-height: 1.55; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn--outline { border-color: var(--violet); }

/* ---------- Reviews / Footer ---------- */
.ig-reviews {
  width: min(100% - 48px, var(--max));
  margin: 24px auto 40px;
  padding: 88px 48px;
  background: var(--mist);
  border-radius: 24px;
}
.ig-reviews__inner { width: 100%; margin: 0 auto; }
.ig-reviews__head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.ig-reviews__avatar { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; background: var(--blush); object-fit: cover; }
.ig-reviews__head strong { font-size: 15px; }
.ig-reviews__stars, .ig-review__stars { color: var(--violet); letter-spacing: 2px; }
.ig-reviews__cta { margin-left: auto; color: var(--violet); font-size: 14px; font-weight: 600; text-decoration: none; }
.ig-reviews__photo-credit { color: var(--muted); font-size: 10.5px; }
.ig-reviews__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ig-reviews__carousel { display: flex; align-items: center; gap: 18px; }
.ig-reviews__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.ig-reviews__track { display: flex; gap: 24px; transform: translateX(0); transition: transform .35s ease; }
.ig-reviews__arrow { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--violet); font-size: 30px; line-height: 1; cursor: pointer; }
.ig-reviews__arrow:hover { background: var(--blush); border-color: var(--violet); }
.ig-reviews__counter { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.ig-reviews__source { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.ig-review { flex: 0 0 calc(50% - 12px); min-width: 0; padding: 26px; background: #fff; border-radius: var(--radius); }
.ig-review__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ig-review__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ig-review__avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; background: var(--blush); }
.ig-review__avatar--initials { display: inline-flex; align-items: center; justify-content: center; color: var(--violet); font-weight: 600; }
.ig-review__meta { display: flex; flex-direction: column; min-width: 0; }
.ig-review__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-review__date { color: var(--muted); font-size: 12px; }
.ig-review__stars { white-space: nowrap; }
.ig-review__text { margin-top: 14px; font-size: 15px; line-height: 1.6; }
.ig-footer { padding: 60px 0 30px; background: #fff; border-top: 1px solid var(--line); }
.ig-footer__cols { width: min(100% - 48px, var(--max)); margin: 0 auto 52px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 36px; }
.ig-footer__col { min-width: 0; }
.ig-footer__heading { margin: 0 0 18px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ig-footer__nap { margin: 0 0 16px; font-size: 13px; line-height: 1.55; }
.ig-footer__list { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ig-footer__list li + li { margin-top: 9px; }
.ig-footer__list a { color: inherit; text-decoration: none; }
.ig-footer__muted { color: var(--muted); font-size: 12px; }
.ig-footer__inner { width: min(100% - 48px, var(--max)); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.ig-footer a { text-decoration: none; }
.ig-footer a:hover { color: var(--violet); }
.ig-sep { color: #ccc; }
.ig-wa { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: #25d366; color: #fff !important; border-radius: var(--pill); box-shadow: 0 10px 26px rgba(37,211,102,.38); text-decoration: none !important; font-size: 15px; font-weight: 600; }
.ig-wa:hover { background: #1ebe5d; }
.ig-wa { transition: background .2s ease; }

/* Portátiles pequeños y tablets horizontales: cabecera comprimida para que quepa el menú completo */
@media (min-width: 901px) and (max-width: 1150px) {
  .ig-header__inner { gap: 24px; }
  .ig-brand__name { font-size: 22px; }
  .ig-nav { gap: 16px; }
  .ig-nav > a, .ig-nav__item > a { font-size: 13px; }
  .ig-nav__social { display: none; }
  .ig-flag svg { width: 23px; height: 15px; }
  .ig-header-cta { padding: 0 14px; font-size: 13px; }
}
/* Ventanas estrechas de escritorio: se mantiene solo el emblema para no romper la cabecera */
@media (min-width: 901px) and (max-width: 990px) {
  .ig-brand__name { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .ig-header, .ig-header__inner { height: 70px; }
  .ig-header__inner { width: min(100% - 32px, var(--max)); gap: 10px; }
  .ig-brand { gap: 8px; }
  .ig-brand__name { font-size: 20px; }
  .ig-quick { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .ig-quick__wa { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: 2px; border-radius: 50%; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 2px 8px rgba(37,211,102,.35); }
  .ig-quick__wa svg { width: 19px; height: 19px; }
  .ig-nav-toggle { margin-left: 0; width: 38px; height: 38px; }
  .ig-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    padding: 18px 24px calc(24px + env(safe-area-inset-bottom));
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-ui);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .ig-nav.is-open { display: grid; gap: 16px; align-content: start; }
  .ig-nav::after { display: none; }
  .ig-nav__dropdown { position: static; display: grid; width: auto; padding: 6px 0 0 12px; border: 0; box-shadow: none; }
  .ig-mega { position: static; display: block; padding: 10px 0 0 12px; border: 0; box-shadow: none; }
  .ig-mega__inner { width: auto; grid-template-columns: 1fr; gap: 18px; }
  .ig-mega__heading { margin-bottom: 7px; }
  .ig-mega__col li + li { margin-top: 6px; }
  .ig-footer__cols { width: min(100% - 32px, var(--max)); grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .ig-nav-toggle { display: block; }
  .hero, .page-hero, .cta-band, .ig-reviews { width: min(100% - 32px, var(--max)); margin-top: 16px; border-radius: 18px; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 24px 54px; }
  .page-hero__inner { padding: 48px 24px 56px; }
  .cta-band { padding: 64px 24px; margin-bottom: 32px; }
  .ig-reviews { padding: 56px 20px; margin-bottom: 32px; }
  .hero h1 { font-size: clamp(44px, 12vw, 68px); line-height: .98; }
  .hero__lead { margin: 22px 0 24px; font-size: 17px; }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split--reverse .split__media { order: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 28px; }
  .feature > * { min-width: 0; }
  .feature img { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .ig-review { flex-basis: 100%; }
  .ig-reviews__carousel { gap: 8px; }
  .ig-reviews__arrow { width: 36px; height: 36px; flex-basis: 36px; font-size: 25px; }
  .ig-reviews__head { flex-wrap: wrap; gap: 12px; }
  .ig-reviews__cta { margin-left: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .wrap, .entry-content, .hero__inner, .home-section > .split, .home-section > .feature, .home-section > .home-section__head, .home-section > .services, .home-section > .service-grid, .home-section > .contact-grid, .stats, .trust, .ig-footer__inner { width: min(100% - 32px, var(--max)); }
  .entry-content { padding-top: 52px; padding-bottom: 70px; }
  .home-section { padding: 68px 0; }
  .home-section__head h2, .split__text h2, .feature h2 { font-size: 48px; }
  .stats, .trust { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding: 32px 0; }
  .services, .service-grid { grid-template-columns: 1fr; gap: 40px; }
  .service--cta { padding: 28px; }
  .page-hero__inner { padding: 44px 24px 52px; }
  .page-hero h1 { font-size: clamp(44px, 12vw, 64px); line-height: .98; }
  .page-hero .lead { margin: 20px 0 24px; font-size: 17px; }
  .entry-content h2 { font-size: 38px; margin-top: 56px; }
  .entry-content h3 { font-size: 25px; }
  .entry-content .intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .entry-content .intro__media img.lead-photo { width: 100%; height: auto; max-height: 420px; }
  .entry-content .intro__text p:first-child { font-size: 16px; }
  .entry-content .faq summary { padding: 18px 0; font-size: 21px; }
  .entry-content .faq details > p { padding-right: 0; }
  .section-por-que-elegirme, .section-dia-denuncia, .section-casos-reales { margin: 42px 0; padding: 24px 18px !important; border-radius: 16px; }
  .section-por-que-elegirme h3, .section-dia-denuncia h3, .section-casos-reales h3 { padding: 16px 16px; font-size: 22px; }
  .entry-content p, .entry-content li { font-size: 16px; }
  .entry-content .lead-photo {
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin: 0 0 24px;
    object-fit: cover;
  }
  .callout { padding: 28px; }
  .ig-wa { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 13px; gap: 8px; }
  .ig-wa svg { width: 20px; height: 20px; }
}

/* Pantallas muy estrechas: cabecera compacta para que quepan banderas y WhatsApp */
@media (max-width: 380px) {
  .ig-header__inner { gap: 8px; }
  .ig-brand { gap: 7px; }
  .ig-brand img { width: 30px; height: 30px; }
  .ig-brand__name { font-size: 17px; }
  .ig-quick { gap: 5px; }
  .ig-flag { padding: 1px; }
  .ig-flag svg { width: 22px; height: 15px; }
  .ig-quick__wa { width: 32px; height: 32px; margin-left: 0; }
  .ig-quick__wa svg { width: 17px; height: 17px; }
  .ig-nav-toggle { width: 34px; height: 34px; }
}
