/* ============================================================
   lexmed — main.css  (all site styles)
   ============================================================ */

/* ---- CSS Custom Properties --------------------------------- */
:root {
  --color-primary:       #3d739d;
  --color-primary-dark:  #2f5b7b;
  --color-green:         #399375;
  --color-green-dark:    #2d7a60;
  --color-heading:       #24425b;
  --color-text:          #4b5563;
  --color-bg:            #ffffff;
  --color-light:         #f5f5f5;
  --color-border:        #e2e8f0;
  --color-danger:        #e74c3c;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --transition: .2s ease;

  --header-h: 64px;
  --container-w: 1200px;
}
/* Inline accent colour utility */
.c-green { color: var(--color-green); }



/* ---- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--color-heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section { padding: 4rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--color-text); max-width: 640px; margin-inline: auto; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-green { background: var(--color-green); color: #fff; }
.btn-green:hover { background: var(--color-green-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* ---- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-heading);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.site-logo img { height: 42px; width: auto; }
.footer-logo img { height: 36px; }

/* Nav */
.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .45rem .75rem;
  color: rgba(255,255,255,.88);
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 6px 0 .5rem;
  z-index: 300;
}
.dropdown-menu li a {
  display: block;
  padding: .6rem 1rem;
  color: var(--color-text);
  font-size: .88rem;
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a:hover { background: var(--color-light); color: var(--color-primary); }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { display: block; }
.chevron { transition: transform var(--transition); flex-shrink: 0; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* Nav CTA */
.nav-cta { margin-left: .5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  background: var(--color-heading);
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,66,91,.88) 0%, rgba(36,66,91,.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding: 3rem 0;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 1.75rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }


/* ---- Hero KPI bar (inside hero section) ------------------- */
.hero__kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.35);
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.hero__kpi-item {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #fff;
}
.hero__kpi-item + .hero__kpi-item {
  border-left: 1px solid rgba(255,255,255,.18);
}
.hero__kpi-item .kpi-number {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
}
.hero__kpi-item .kpi-label {
  display: block;
  font-size: .85rem;
  opacity: .88;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .35rem;
}

/* ---- KPI Band --------------------------------------------- */
.kpi-band {
  background: var(--color-heading);
  color: #fff;
  padding: 2.5rem 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.kpi-item {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,.06);
}
.kpi-item .kpi-number {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
}
.kpi-item .kpi-label {
  font-size: .9rem;
  opacity: .85;
  margin-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Card grid -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--color-text); margin: 0; }

/* Service cards */
.service-card {
  text-decoration: none;
  display: block;
}
.service-card:hover h3 { color: var(--color-primary); }
.service-card h3 { font-size: 1.05rem; margin-bottom: .5rem; transition: color var(--transition); }

/* ---- Problems section -------------------------------------- */
.problems-section { background: var(--color-light); }

/* ---- Scroll-snap row (testimonials on mobile) -------------- */
.scroll-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.scroll-row > * {
  scroll-snap-align: start;
  flex: 0 0 300px;
}

/* ---- Testimonial card ------------------------------------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: .95rem;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 700;
  color: var(--color-heading);
  font-size: .9rem;
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: .5rem; }

/* ---- FAQ -------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--color-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  list-style: none;
  user-select: none;
  font-size: .98rem;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--color-light); }
.faq-item summary::marker,
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 400;
}
.faq-item details[open] summary .faq-icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text);
  font-size: .92rem;
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: .75rem;
}

/* ---- Blog: featured card ---------------------------------- */
.section-featured { padding: 2.5rem 0 0; }
.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  background: #fff;
  border: 1px solid var(--color-border);
  transition: box-shadow .3s, transform .3s;
}
.post-featured:hover { box-shadow: 0 8px 40px rgba(0,0,0,.16); transform: translateY(-3px); }
.post-featured__thumb { display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--color-light); }
.post-featured__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-featured:hover .post-featured__thumb img { transform: scale(1.04); }
.post-featured__thumb--empty { background: var(--color-light); }
.post-featured__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}
.post-featured__body h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; margin: 0; }
.post-featured__body h2 a { color: var(--color-heading); }
.post-featured__body h2 a:hover { color: var(--color-primary); }
.post-featured__body p { color: var(--color-text); font-size: .95rem; line-height: 1.65; margin: 0; }
.post-featured__meta { display: flex; gap: 1rem; font-size: .8rem; color: #999; }
.post-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: .9rem;
}
.post-featured__cta .arrow { display: inline-block; transition: transform .2s; }
.post-featured:hover .post-featured__cta .arrow { transform: translateX(5px); }

/* ---- Blog: post grid & cards ------------------------------ */
.section-blog-grid { padding: 2rem 0 4rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.11); transform: translateY(-3px); }
.post-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--color-light); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.post-card-body h2 { font-size: 1rem; line-height: 1.4; margin: 0; }
.post-card-body h2 a { color: var(--color-heading); }
.post-card-body h2 a:hover { color: var(--color-primary); }
.post-card-body p { font-size: .87rem; color: var(--color-text); flex: 1; margin: 0; }
.post-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: #999;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.post-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--color-primary);
  background: rgba(61,115,157,.08);
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* ---- CTA Banner ------------------------------------------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { opacity: .9; max-width: 560px; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: #f0f4f8; color: var(--color-primary-dark); }

/* ---- Steps / process -------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: calc(1.5rem + 28px);
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: rgba(255,255,255,.18);
  transform: translateY(-50%);
  pointer-events: none;
}
.step-item {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--color-green);
  box-shadow: 0 4px 16px rgba(57,147,117,.35);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
}
.step-item h3 { margin-bottom: .5rem; color: #fff; font-size: 1.05rem; }
.step-item p { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---- Team cards ------------------------------------------- */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  padding: 2rem 2.5rem;
  text-align: left;
  border-left: 4px solid var(--color-green);
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.13); }
.team-photo {
  width: 140px;
  height: 175px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-light);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card__body { flex: 1; }
.team-card h3 { font-size: 1.2rem; margin-bottom: .3rem; color: var(--color-heading); }
.team-role { font-size: .85rem; color: var(--color-green); font-weight: 600; margin-bottom: .75rem; }
.team-bio { font-size: .92rem; color: var(--color-text); line-height: 1.6; }

/* ---- Page hero (smaller for inner pages) ------------------ */
.page-hero {
  background: var(--color-heading);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before { content: none; } /* overlay handled by .hero-overlay */
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .lead { font-size: 1.1rem; opacity: .88; max-width: 640px; }

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* ---- Article header --------------------------------------- */
.article-header {
  background: var(--color-light);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}
.article-header__back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: .75rem;
  transition: color .2s;
}
.article-header__back:hover { color: var(--color-primary); }
.article-header .article-header__cat { display: block; margin-bottom: .75rem; }
.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--color-heading);
  line-height: 1.2;
  max-width: 780px;
  margin-bottom: .75rem;
  text-wrap: balance;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #999;
}
.article-header__sep { opacity: .5; }

/* ---- Article featured image ------------------------------- */
.article-thumb { padding: 2rem 0 0; }
.article-thumb img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) * 1.5);
}

/* ---- Single post ------------------------------------------ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}
.post-content { max-width: 740px; }
.post-content h2 { font-size: clamp(1.3rem,2.5vw,1.8rem); margin: 2rem 0 .75rem; }
.post-content h3 { font-size: clamp(1.1rem,2vw,1.35rem); margin: 1.5rem 0 .5rem; }
.post-content h4 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.post-content p  { margin-bottom: 1rem; line-height: 1.75; }
.post-content ul,
.post-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.post-content li { margin-bottom: .5rem; line-height: 1.65; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--color-primary-dark); }
.post-content strong { color: var(--color-heading); }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; max-width: 100%; height: auto; }
.post-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.post-content th,
.post-content td { border: 1px solid var(--color-border); padding: .6rem .875rem; text-align: left; }
.post-content th { background: var(--color-light); font-weight: 700; color: var(--color-heading); }
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
/* Gutenberg block wrappers — spacing between blocks */
.post-content .wp-block-uagb-container { margin-bottom: 1rem; }
.post-content .uagb-container-inner-blocks-wrap > * + *,
.post-content .wp-block-group__inner-container > * + * { margin-top: 1rem; }
/* Ensure heading wrappers have space above them in group containers */
.post-content .wp-block-group__inner-container > .wp-block-uagb-advanced-heading { margin-top: 2rem; }
.post-content .wp-block-group__inner-container > .wp-block-uagb-advanced-heading:first-child { margin-top: 0; }
.post-content .wp-block-list { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.post-content .wp-block-list li { margin-bottom: .5rem; }

/* TOC */
.toc-wrap {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}
.toc-wrap h4 { font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin-bottom: .75rem; }
.toc-list { font-size: .85rem; }
.toc-list li { margin-bottom: .35rem; list-style: none; padding: 0; }
.toc-list li.h3 { padding-left: .75rem; }
.toc-list a { color: var(--color-text); text-decoration: none; }
.toc-list a:hover,.toc-list a.active { color: var(--color-primary); font-weight: 600; }

/* Mid-article CTA box */
.article-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.article-cta__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.article-cta__body { flex: 1; min-width: 200px; }
.article-cta__body strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .35rem;
}
.article-cta__body p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin: 0;
  line-height: 1.5;
}
/* ---- Blog header ------------------------------------------ */
.blog-header {
  background: var(--color-light);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}
.blog-overline {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.blog-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-heading); margin-bottom: .35rem; }
.blog-tagline { color: var(--color-text); font-size: .98rem; max-width: 560px; margin: 0; }

/* ---- Sticky category bar ---------------------------------- */
.cat-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: .875rem 0;
}
.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  white-space: nowrap;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.cat-tab:hover { background: var(--color-light); color: var(--color-primary); border-color: var(--color-primary); }
.cat-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---- Blog responsive -------------------------------------- */
@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__thumb { aspect-ratio: 16/9; max-height: 280px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-featured__body { padding: 1.5rem; }
}

/* ---- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,.pagination span {
  padding: .5rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--color-text);
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-tagline { font-size: .85rem; opacity: .75; margin-top: .75rem; max-width: 260px; }
.footer-address { font-size: .82rem; opacity: .65; margin-top: .5rem; }
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.footer-social a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-social a:hover { color: #fff; }
.footer-heading {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: .875rem;
  font-weight: 700;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-col p { font-size: .88rem; margin-bottom: .75rem; }
.footer-cta { margin-top: .25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .8rem;
  opacity: .6;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---- 404 / Search ----------------------------------------- */
.not-found,.search-results-page { text-align: center; padding: 6rem 1rem; }
.not-found h1 { font-size: 6rem; color: var(--color-border); font-weight: 900; line-height: 1; }

/* ---- Utilities -------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-light { background: var(--color-light); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- WP editor styles in post content --------------------- */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-quote { border-left: 4px solid var(--color-primary); padding: .75rem 1.25rem; background: var(--color-light); border-radius: 0 var(--radius) var(--radius) 0; }



/* ================================================================
   NEW COMPONENT STYLES
   ================================================================ */

/* ---- Hero two-column (homepage) -------------------------------- */
.hero__split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: stretch;
  padding: 3.5rem 0;
  position: relative;
  z-index: 2;
}
.hero__left { color: #fff; display: flex; flex-direction: column; }
.hero__right { display: flex; }
.hero__left h1 { color: #fff; margin-bottom: 1rem; }
.hero-lead { font-size: 1.2rem; opacity: .88; line-height: 1.75; margin-bottom: 1.75rem; max-width: 520px; }

/* Hero right card */
.hero__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero__card-title { font-size: 1.125rem; color: var(--color-heading); margin-bottom: 1.5rem; }
.hero__card-subtitle { font-size: .85rem; color: var(--color-text); margin-bottom: .75rem; }
.hero__benefits { display: flex; flex-direction: column; gap: .6rem; flex: 1; justify-content: space-between; }
.hero__benefit { display: flex; gap: .75rem; align-items: flex-start; }
.hero__benefit-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.hero__benefit-icon::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-1px);
}
.hero__benefit-body strong { display: block; font-size: 1rem; color: var(--color-heading); margin-bottom: .1rem; }
.hero__benefit-body p { font-size: .9rem; color: var(--color-text); margin: 0; line-height: 1.4; }
.btn-block { width: 100%; text-align: center; }
.hero-outline-btn { color: rgba(255,255,255,.9) !important; border-color: rgba(255,255,255,.4) !important; }
.hero-outline-btn:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; border-color: rgba(255,255,255,.6) !important; }
.page-hero-content { max-width: 660px; }

/* ---- Testimonials section -------------------------------------- */
.testimonials-section { background: var(--color-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; display: block; margin-bottom: .5rem;
}

/* ---- Problems two-column variant ------------------------------- */
.problems-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.problems-list { display: flex; flex-direction: column; gap: .9rem; }
.problem-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-left: 3px solid var(--color-primary);
}
.problem-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.problem-item strong { display: block; font-size: 1rem; color: var(--color-heading); margin-bottom: .3rem; }
.problem-item p { font-size: .88rem; color: var(--color-text); margin: 0; line-height: 1.55; }

/* ---- Animated chat card --------------------------------------- */
.problems-chat {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-card {
  background: #e5ddd5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  width: 100%;
  max-width: 360px;
  font-family: -apple-system, system-ui, sans-serif;
}
.chat-card__header {
  background: #075e54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #128C7E;
  color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-contact strong { display: block; font-size: .85rem; }
.chat-contact span { font-size: .72rem; opacity: .8; }
.chat-status-dot {
  width: 8px; height: 8px;
  background: #25d366;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(37,211,102,.25);
}
.chat-body {
  padding: 1rem .85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 230px;
}
.chat-bubble {
  max-width: 82%;
  padding: .55rem .8rem .35rem;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.45;
  opacity: 0;
}
.chat-bubble p { margin: 0 0 .15rem; color: #111; }
.chat-bubble strong { color: #c0392b; }
.chat-meta { font-size: .65rem; color: #999; float: right; margin-left: .5rem; }
.chat-ticks { color: #34b7f1; }
.chat-bubble--sent {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-bubble--recv {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

/* Typing indicator */
.chat-typing {
  background: #fff;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  padding: .55rem .75rem;
  align-self: flex-start;
  display: flex;
  gap: 4px;
  align-items: center;
  opacity: 0;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: typing-dot 1s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Sequential bubble animations — 9s loop */
/* bubble 1: sent  @ 0s  */
@keyframes chat-pop-1 {
  0%   { opacity: 0; transform: translateY(7px); }
  6%   { opacity: 1; transform: translateY(0); }
  88%  { opacity: 1; transform: translateY(0); }
  97%  { opacity: 0; }
  100% { opacity: 0; }
}
/* typing indicator @ ~1.2s */
@keyframes chat-typing-show {
  0%, 13%  { opacity: 0; }
  17%      { opacity: 1; }
  22%      { opacity: 0; }
  100%     { opacity: 0; }
}
/* bubble 2: recv 1 @ ~2s */
@keyframes chat-pop-2 {
  0%, 22%  { opacity: 0; transform: translateY(7px); }
  28%      { opacity: 1; transform: translateY(0); }
  88%      { opacity: 1; transform: translateY(0); }
  97%      { opacity: 0; }
  100%     { opacity: 0; }
}
/* bubble 3: recv 2 @ ~3s */
@keyframes chat-pop-3 {
  0%, 36%  { opacity: 0; transform: translateY(7px); }
  42%      { opacity: 1; transform: translateY(0); }
  88%      { opacity: 1; transform: translateY(0); }
  97%      { opacity: 0; }
  100%     { opacity: 0; }
}
/* bubble 4: recv 3 @ ~4.2s */
@keyframes chat-pop-4 {
  0%, 50%  { opacity: 0; transform: translateY(7px); }
  56%      { opacity: 1; transform: translateY(0); }
  88%      { opacity: 1; transform: translateY(0); }
  97%      { opacity: 0; }
  100%     { opacity: 0; }
}
/* bubble 5: recv 4 @ ~5.4s */
@keyframes chat-pop-5 {
  0%, 64%  { opacity: 0; transform: translateY(7px); }
  70%      { opacity: 1; transform: translateY(0); }
  88%      { opacity: 1; transform: translateY(0); }
  97%      { opacity: 0; }
  100%     { opacity: 0; }
}

.chat-anim-1       { animation: chat-pop-1        14s ease infinite; }
.chat-anim-typing  { animation: chat-typing-show  14s ease infinite; }
.chat-anim-2       { animation: chat-pop-2        14s ease infinite; }
.chat-anim-3       { animation: chat-pop-3        14s ease infinite; }
.chat-anim-4       { animation: chat-pop-4        14s ease infinite; }
.chat-anim-5       { animation: chat-pop-5        14s ease infinite; }


/* ---- Services section ----------------------------------------- */
.services-section { background: var(--color-bg); }
.service-link { display: block; margin-top: .75rem; font-size: .85rem; font-weight: 600; color: var(--color-primary); }
.service-card:hover .service-link { color: var(--color-primary-dark); }

/* ---- Team section --------------------------------------------- */
.team-section { background: var(--color-light); }

/* ---- Process section ------------------------------------------ */
.process-section { background: var(--color-heading); }
.process-section .section-title h2 { color: #fff; }
.process-section .section-title p { color: rgba(255,255,255,.7); }

/* ---- Section CTA ---------------------------------------------- */
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */

.hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.hero__title-row h1 {
  flex: 1;
  margin-bottom: 0;
  text-wrap: balance;
}
.hero__logo {
  height: clamp(90px, 12vw, 130px);
  width: auto;
  object-fit: contain;
  object-position: top left;
  flex-shrink: 0;
  margin-top: .15rem;
}
@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; }
  .toc-wrap { position: static; margin-bottom: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .kpi-grid { gap: .5rem; }
  /* Hero split — stack on tablet */
  .hero__right { display: none; }
  .hero__split { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .hero__card { width: 100%; max-width: 480px; }
  .problems-layout { grid-template-columns: 1fr; gap: 2rem; }
  .problems-chat { display: none; }

}

/* Mobile */
@media (max-width: 640px) {
  section { padding: 2.75rem 0; }
  .hamburger { display: flex; }

  /* Mobile nav */
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-heading);
    z-index: 190;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-link { padding: .85rem .25rem; width: 100%; font-size: 1rem; }
  .dropdown-menu {
    position: static;
    display: block !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,.15);
    padding: 0;
  }
  .dropdown-menu li a { color: rgba(255,255,255,.75); padding: .7rem 1rem; font-size: .9rem; }
  .dropdown-menu li a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-cta { margin-left: 0; margin-top: 1.25rem; border-bottom: none; }

  /* Hero */
  .hero { min-height: 55vh; }
  .hero-badges { display: none; }

  /* KPI */
  .kpi-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .kpi-item .kpi-number { font-size: 2.5rem; }
  .hero__kpi { grid-template-columns: 1fr; margin-bottom: 1.5rem; }
  .hero__kpi-item + .hero__kpi-item { border-left: none; border-top: 1px solid rgba(255,255,255,.15); }


  /* Scroll-snap becomes visible row */
  .scroll-row > * { flex: 0 0 270px; }

  /* Cards */
  .card-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .steps-grid::before { display: none; }
  .team-card { flex-direction: column; text-align: center; padding: 1.75rem; gap: 1.25rem; border-left: none; border-top: 4px solid var(--color-green); }
  .team-photo { margin: 0 auto; }
  .team-grid { max-width: 480px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-tagline { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; }

  /* Category tabs */
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { white-space: nowrap; }
}

/* ============================================================
   Google Reviews Section  (.gr-*)
   ============================================================ */

.gr-section { background: var(--color-light); }

/* Summary badge */
.gr-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.gr-summary__logo { display: flex; align-items: center; line-height: 1; }
.gr-summary__rating-num { font-size: 2rem; font-weight: 700; color: var(--color-heading); line-height: 1; }
.gr-summary__stars { display: flex; align-items: center; gap: 2px; }
.gr-summary__count { font-size: .875rem; color: var(--color-text); }

/* Stars — shared between summary badge and cards */
.gr-star { font-size: 1.1rem; line-height: 1; display: inline-block; }
.gr-star--filled { color: #FBBC04; }  /* Google's official gold */
.gr-star--empty  { color: #dadce0; }  /* Google's empty-star gray */

/* Card grid */
.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Individual card */
.gr-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gr-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Card header: avatar + name/date + Google G */
.gr-card__header { display: flex; align-items: center; gap: .75rem; }

.gr-card__avatar {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.gr-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.gr-card__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-card__date { font-size: .78rem; color: #70757a; }

.gr-card__g-mark { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }

/* Stars row inside card */
.gr-card__stars { display: flex; align-items: center; gap: 1px; }
.gr-card__stars .gr-star { font-size: .95rem; }

/* Review body text */
.gr-card__text { font-size: .9rem; color: var(--color-text); line-height: 1.6; margin: 0; }

/* "View all on Google" footer link */
.gr-footer { margin-top: 2rem; text-align: center; }
.gr-footer__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gr-footer__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .gr-grid { grid-template-columns: 1fr; }
  .gr-summary { gap: .5rem; padding: .75rem 1rem; }
  .gr-summary__rating-num { font-size: 1.6rem; }
}

/* Google Reviews — secondary "view all" link (below primary CTA) */
.gr-google-link {
  text-align: center;
  margin-top: .75rem;
}
.gr-google-link__a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--color-text);
  opacity: .7;
  text-decoration: none;
  transition: opacity .2s ease;
}
.gr-google-link__a:hover { opacity: 1; color: var(--color-text); }

/* ================================================================
   Quienes Somos page — new sections (v2.1.0)
   ================================================================ */

/* ------------------------------------------------------------------
   Studio intro: group photo + text + YouTube embed
   ------------------------------------------------------------------ */
.qs-intro { background: var(--color-bg); }
.qs-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.qs-intro__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.qs-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qs-intro__content h2 { margin-bottom: 1rem; }
.qs-intro__content p  { margin-bottom: .85rem; color: var(--color-text); }

/* YouTube responsive 16:9 */
.qs-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}
.qs-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ------------------------------------------------------------------
   Lawyer bio sections (alternating photo / content layout)
   ------------------------------------------------------------------ */
.lawyer-section { padding: 5rem 0; }
.lawyer-section__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}
/* Reversed: content left, photo right */
.lawyer-section--reverse .lawyer-section__grid {
  grid-template-columns: 1fr 380px;
}
.lawyer-section--reverse .lawyer-section__photo {
  order: 2;
}
.lawyer-section--reverse .lawyer-section__content {
  order: 1;
}

.lawyer-section__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  line-height: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.lawyer-section__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tag above name */
.lawyer-section__tag {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-green);
  margin-bottom: .4rem;
}
.lawyer-section__content h2 {
  margin-bottom: 1rem;
  color: var(--color-heading);
}
.lawyer-section__content p {
  color: var(--color-text);
  margin-bottom: .85rem;
  line-height: 1.7;
}

/* Career highlights list (checkmark bullets) */
.lawyer-highlights {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.lawyer-highlights__item {
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text);
  line-height: 1.55;
  font-size: .93rem;
}
.lawyer-highlights__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.1em;
  height: 1.1em;
  background: var(--color-green);
  border-radius: 50%;
}
.lawyer-highlights__item::after {
  content: '';
  position: absolute;
  left: .22em;
  top: .42em;
  width: .38em;
  height: .6em;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}

/* Academic credential badges */
.lawyer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}
.lawyer-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .75rem;
  border-radius: 20px;
}

/* ------------------------------------------------------------------
   Differentiators section (dark bg)
   ------------------------------------------------------------------ */
.qs-diff {
  background: var(--color-heading);
  color: #fff;
}
.qs-diff__lead {
  opacity: .8;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}
.differentiator { text-align: center; }
.differentiator__icon {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-green);
  line-height: 1;
  margin-bottom: .75rem;
}
.differentiator h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.differentiator p { opacity: .75; font-size: .9rem; line-height: 1.6; }

/* ------------------------------------------------------------------
   Instagram feed grid
   ------------------------------------------------------------------ */
.ig-section { background: var(--color-bg); }
.ig-section .section-title { margin-bottom: 1.75rem; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto 0;
}
.ig-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-light);
  box-shadow: var(--shadow);
  display: block;
  text-decoration: none;
}
.ig-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ig-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,115,157,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.ig-item__overlay svg { fill: #fff; }
.ig-item:hover img { transform: scale(1.04); }
.ig-item:hover .ig-item__overlay { opacity: 1; }
.ig-footer {
  text-align: center;
  margin-top: 1.5rem;
}


/* ------------------------------------------------------------------
   Prestaciones Section
   ------------------------------------------------------------------ */
.prestaciones-section { background: var(--color-light); }
.prestaciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .prestaciones-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .prestaciones-grid { grid-template-columns: 1fr; }
}
.prestacion-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.prestacion-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  margin-top: 2px;
}
.prestacion-item strong {
  font-size: .95rem;
  color: var(--color-heading);
  display: block;
}
.prestacion-item p {
  font-size: .85rem;
  color: var(--color-text);
  margin: .25rem 0 0;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .qs-intro__grid { grid-template-columns: 1fr; }
  .qs-intro__photo { max-height: 340px; }
  .qs-intro__photo img { object-position: top; }

  .lawyer-section__grid,
  .lawyer-section--reverse .lawyer-section__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lawyer-section--reverse .lawyer-section__photo { order: 0; }
  .lawyer-section--reverse .lawyer-section__content { order: 0; }
  .lawyer-section__photo { position: static; max-width: 320px; margin-inline: auto; }

  .differentiators-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
}
@media (max-width: 600px) {
  .ig-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}
