/* ============================================================
   INCONORT - Estilos complementarios (páginas internas,
   componentes y accesibilidad)
   ============================================================ */

:root {
  --primary: #1563A6;
  --primary-dark: #0E487A;
  --accent: #C82A2E;
  --bg: #F7FAFC;
  --text: #1A2B3C;
  --muted: #5A6B7B;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 99, 166, .10);
}

html { scroll-padding-top: 90px; }

body { overflow-x: hidden; }

[hidden] { display: none !important; }

main { display: block; }

img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(21, 99, 166, .45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
}
.header-phone:hover { color: var(--accent); }

.nav-links a.active {
  color: var(--primary);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.menu-toggle svg { display: block; }

/* ---------------- Avisos / alertas ---------------- */
.flash-container { padding-top: 20px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: .92rem;
  margin-bottom: 12px;
  border-left: 4px solid transparent;
}
.alert-ok    { background: #eaf7ee; color: #166534; border-left-color: #1a7f37; }
.alert-error { background: #fdecec; color: #a61b1f; border-left-color: var(--accent); }
.alert-info  { background: #eef5fc; color: var(--primary-dark); border-left-color: var(--primary); }

/* ---------------- Encabezado de páginas internas ---------------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 70px 0 62px;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.page-hero::before {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -180px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(200, 42, 46, .18);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 14px;
  max-width: 820px;
}
.page-hero p {
  color: #d6e7f7;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
}
.page-hero .eyebrow { color: #9fc4e8; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  margin-bottom: 18px;
  color: #bcd6ec;
}
.breadcrumbs a { color: #fff; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs span.sep { opacity: .6; }

/* ---------------- Secciones / utilidades ---------------- */
.section-tight { padding: 56px 0; }
.section-white { background: #fff; }
.section-bg { background: var(--bg); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.section-head .lead { margin-bottom: 0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}

.content-narrow { max-width: 820px; margin-inline: auto; }

.btn-block { width: 100%; justify-content: center; }

.btn-light {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #fff;
}
.btn-light:hover { background: #eef5fc; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------------- Nosotros ---------------- */
.about-history {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}
.about-history .historia-texto { margin-bottom: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(21, 99, 166, .16);
}
.about-photo figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

.values-grid { margin-top: 36px; }

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.timeline-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 12px;
  padding: 22px 24px;
}
.timeline-year {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  min-width: 66px;
}
.timeline-item p { color: var(--muted); font-size: .92rem; margin: 0; }
.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }

/* ---------------- Servicios ---------------- */
.service-card { display: flex; flex-direction: column; }
.service-card .card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-note {
  margin-top: 36px;
  background: #eef5fc;
  border: 1px solid #d5e5f4;
  border-radius: 12px;
  padding: 20px 24px;
  font-size: .9rem;
  color: var(--primary-dark);
}

/* ---------------- Catálogo de servicios (acordeón) ---------------- */
.services-catalog { margin-top: 34px; }

.svc-accordion {
  display: grid;
  gap: 14px;
}

.svc-cat {
  background: #fff;
  border: 1px solid #e1ebf4;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(21, 99, 166, .05);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.svc-cat:hover { border-color: #cfe1f2; }
.svc-cat.is-open {
  border-color: rgba(21, 99, 166, .38);
  box-shadow: 0 14px 34px rgba(21, 99, 166, .12);
}

.svc-head { margin: 0; }

.svc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: background .2s;
}
.svc-toggle:hover { background: #f7fbff; }

.svc-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8f1fb;
  color: var(--primary);
  transition: background .25s, color .25s;
}
.svc-cat.is-open .svc-icon { background: var(--primary); color: #fff; }
.svc-icon svg { width: 26px; height: 26px; }

.svc-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.svc-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-dark);
}
.svc-subtitle {
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.svc-count {
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary);
  background: #eaf3fb;
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.svc-chevron {
  flex: 0 0 auto;
  display: flex;
  color: var(--primary);
  transition: transform .3s ease;
}
.svc-cat.is-open .svc-chevron { transform: rotate(180deg); }

.svc-panel { display: grid; grid-template-rows: 1fr; }
.svc-accordion.is-enhanced .svc-panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.svc-accordion.is-enhanced .svc-cat.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-panel-inner { overflow: hidden; }
.svc-body { padding: 4px 20px 22px; }

.svc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 10px 14px;
  border: 1px solid #fde3c2;
  border-radius: 10px;
  background: #fff8ef;
  color: #8a4b12;
  font-size: .82rem;
  line-height: 1.45;
}
.svc-note svg { flex: 0 0 auto; margin-top: 1px; }

.svc-subgroup + .svc-subgroup {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed #d5e5f4;
}
.svc-subgroup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: .98rem;
  color: var(--primary-dark);
}
.svc-subgroup-title svg { flex: 0 0 auto; color: var(--accent); }
.svc-subgroup-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .84rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fbfd;
  border: 1px solid #e7eff7;
  border-radius: 12px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.svc-item:hover {
  background: #fff;
  border-color: #bfd8ee;
  box-shadow: 0 6px 16px rgba(21, 99, 166, .08);
  transform: translateY(-2px);
}
.svc-item-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e8f1fb;
  color: var(--primary);
}
.svc-item-icon svg { width: 20px; height: 20px; }
.svc-item-body h4 {
  margin: 0 0 3px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.svc-item-body p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--muted);
}
.svc-incluye {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.svc-incluye li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--muted);
}
.svc-incluye svg { flex: 0 0 auto; margin-top: 2px; color: #1f9d55; }

.svc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #dbe8f3;
}
.svc-cta-text strong {
  display: block;
  color: var(--primary-dark);
  font-size: .92rem;
}
.svc-cta-text span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .82rem;
}
.svc-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.svc-cta-actions .btn { padding: 10px 18px; font-size: .86rem; }

/* ---------------- Paquetes preventivos cardiovasculares ---------------- */
.prev-section {
  margin-top: 64px;
  padding: 56px 0 58px;
  border-top: 1px solid #e1ebf4;
  border-bottom: 1px solid #e1ebf4;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
}

.prev-group { margin-top: 40px; }
.prev-group + .prev-group { margin-top: 48px; }

.prev-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.prev-group-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.prev-group-head span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prev-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid #e1ebf4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(21, 99, 166, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.prev-card:hover,
.prev-card:focus-within {
  transform: translateY(-5px);
  border-color: #cfe1f2;
  box-shadow: 0 22px 48px rgba(21, 99, 166, .16);
}

.prev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.prev-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf3fb;
  color: var(--primary);
}
.prev-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fdeced;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.prev-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
}
.prev-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.prev-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.prev-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}
.prev-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e7f7ee;
  color: #1f9d55;
}
.prev-check svg { width: 12px; height: 12px; }

.prev-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.prev-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: .86rem;
}
.prev-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.prev-link:hover { text-decoration: underline; }

.prev-note {
  margin: 34px 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------------- Paquetes y laboratorio ---------------- */
.promos-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 8%, rgba(21, 99, 166, .07), transparent 38%),
    radial-gradient(circle at 92% 92%, rgba(200, 42, 46, .055), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
  overflow: hidden;
}

.promo-block { margin-top: 42px; }
.promo-block + .promo-block { margin-top: 58px; }

.promo-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.promo-block-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary-dark);
}
.promo-block-head h3 svg { flex: 0 0 auto; color: var(--accent); }
.promo-block-head p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.promo-grid { display: grid; gap: 24px; }
.promo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.promo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e1ebf4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21, 99, 166, .07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.promo-card:hover,
.promo-card:focus-within {
  transform: translateY(-6px);
  border-color: #cfe1f2;
  box-shadow: 0 24px 52px rgba(21, 99, 166, .18);
}

.promo-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e8f1fb;
}
.promo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .65, .25, 1);
}
.promo-card:hover .promo-media img,
.promo-card:focus-within .promo-media img { transform: scale(1.06); }
.promo-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 27, 42, 0) 58%, rgba(13, 27, 42, .22));
  pointer-events: none;
}

.promo-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}
.promo-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.promo-body h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--text);
}
.promo-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}
.promo-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: .86rem;
}

.promo-note {
  margin: 36px 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------------- Profesionales ---------------- */
.staff-search {
  margin-top: 28px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e1ebf4;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(21, 99, 166, .06);
}
.staff-search-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.staff-search-title svg { flex: 0 0 auto; color: var(--primary); }
.staff-search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid #d5e5f4;
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.staff-search-field:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 99, 166, .12);
}
.staff-search-icon {
  position: absolute;
  left: 18px;
  display: flex;
  color: var(--primary);
  pointer-events: none;
}
.staff-search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 999px;
  outline: none;
  padding: 15px 50px;
  font: inherit;
  font-size: .95rem;
  color: var(--text);
}
.staff-search-field input::placeholder { color: #8296a8; }
.staff-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.staff-search-field input::-ms-clear { display: none; }
.staff-search-clear {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e4eef8;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.staff-search-clear:hover { background: var(--primary); color: #fff; }
.staff-search-info {
  margin: 10px 4px 0;
  font-size: .85rem;
  color: var(--muted);
}
.staff-search-info strong { color: var(--primary); }
.staff-hidden { display: none !important; }
.staff-empty .btn { margin-top: 16px; }

.doctor-card { display: flex; flex-direction: column; }
.doctor .info h4 {
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--text);
}
.doctor .info h3 {
  color: var(--primary);
  font-size: .82rem;
  letter-spacing: .04em;
  margin: 2px 0 8px;
}
.doctor .info p { margin-bottom: 0; }
.doctor-cita {
  margin-top: 14px;
  align-self: flex-start;
  padding: 10px 18px;
  font-size: .88rem;
}

.doctor-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f1fb, #d5e5f4);
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.doctor-slider .doc-nav { opacity: 0; }
.doctor-slider:hover .doc-nav { opacity: 1; }

.play-sound-btn { font-size: .82rem; }

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.doctor-tags span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--primary);
  background: #eef5fc;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------------- Agenda ---------------- */
.agenda-page {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 64px 0 76px;
}
.agenda-page .eyebrow { color: #9fc4e8; }
.agenda-page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.agenda-page .lead { color: #d6e7f7; }
.agenda-page .form-card { margin-top: 32px; }

.form-card .form-grid select,
.form-card .form-grid input,
.form-card .form-grid textarea { background: #fff; }

.form-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.form-card .form-subtitle { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

.required { color: var(--accent); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.checkbox-row a { color: var(--primary); text-decoration: underline; }

.form-help {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 5px;
}

.form-status { min-height: 1.4em; }
.form-status a { color: inherit; text-decoration: underline; font-weight: 700; }

.agenda-side {
  display: grid;
  gap: 16px;
  align-content: start;
  margin-top: 32px;
}
.agenda-side .side-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
}
.agenda-side .side-card h3 {
  font-size: .95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agenda-side .side-card p,
.agenda-side .side-card a {
  color: #d6e7f7;
  font-size: .86rem;
  margin: 0;
}
.agenda-side .side-card a:hover { color: #fff; }

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
  gap: 28px;
  align-items: start;
}
.agenda-layout .form-card { margin-top: 0; }

/* ---------------- Testimonios / aliados ---------------- */
.quote .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.quote .avatar { overflow: hidden; }

.aliados-grid { margin-top: 36px; }
.aliado img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------------- Contacto ---------------- */
.contact-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.contact-quick .quick-card {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 14px;
  padding: 22px;
  transition: .2s;
}
.contact-quick .quick-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.contact-quick .quick-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #eef5fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.contact-quick .quick-card b { display: block; font-size: .85rem; margin-bottom: 4px; }
.contact-quick .quick-card span,
.contact-quick .quick-card a { font-size: .88rem; color: var(--muted); }
.contact-quick .quick-card a:hover { color: var(--primary); }

.contact-hours {
  background: var(--bg);
  border-radius: 14px;
  padding: 24px;
}
.contact-hours h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary); }
.contact-hours ul { list-style: none; }
.contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #dfe8f0;
  font-size: .88rem;
  color: var(--muted);
}
.contact-hours li:last-child { border-bottom: none; }
.contact-hours li b { color: var(--text); font-weight: 600; }

/* ---------------- Páginas legales ---------------- */
.legal-page { padding: 56px 0 80px; }
.legal-content {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 8px 24px rgba(21, 99, 166, .05);
}
.legal-content h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 28px 0 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: #33475b; font-size: .94rem; margin-bottom: 12px; }
.legal-content ul,
.legal-content ol { margin: 0 0 16px 22px; color: #33475b; font-size: .94rem; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content .lead { color: var(--text); font-size: 1.02rem; }

.legal-meta {
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
  margin-top: 28px;
}

.notice {
  background: #fff8e6;
  border: 1px solid #f2dfae;
  border-left: 4px solid #d99b0b;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: .86rem;
  color: #6b5314;
  margin-bottom: 24px;
}

/* ---------------- Libro de reclamaciones ---------------- */
.libro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: 28px;
  align-items: start;
}
.libro-info {
  background: var(--bg);
  border-radius: 14px;
  padding: 26px;
  font-size: .88rem;
  color: var(--muted);
}
.libro-info h3 { color: var(--primary); font-size: 1rem; margin-bottom: 10px; }
.libro-info ul { list-style: none; }
.libro-info li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.libro-info li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 800;
}

.confirm-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.confirm-box .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eaf7ee;
  color: #1a7f37;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.confirm-box h1 { font-size: 1.6rem; margin-bottom: 10px; }
.confirm-box p { color: var(--muted); font-size: .92rem; }
.confirm-code {
  display: inline-block;
  margin: 16px 0;
  background: #eef5fc;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .08em;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
}

/* ---------------- CTA ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 56px 0;
}
.cta-band .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.cta-band p { color: #d6e7f7; margin: 0; font-size: .95rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { background: #0d1b2a; color: #b8c7d6; padding: 56px 0 28px; font-size: .9rem; }
.footer-logo img { height: 92px; width: auto; margin-bottom: 12px; }
.footer-text { font-size: .85rem; color: #b8c7d6; }
.site-footer .socials { margin-top: 16px; }
.site-footer .socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.site-footer .socials a:hover { background: var(--primary); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li svg { flex: 0 0 auto; margin-top: 3px; color: #6fa8dc; }

/* ---------------- Estados vacíos ---------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #d5e5f4;
  border-radius: 14px;
}
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .about-history,
  .agenda-layout,
  .libro-layout { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .nav-links { top: 100%; }
  .page-hero { padding: 50px 0 44px; }
  .svc-grid { grid-template-columns: 1fr; }
  .prev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .header-actions .btn { padding: 10px 16px; font-size: .82rem; }
  .page-hero { padding: 42px 0 38px; }
  .form-card { padding: 22px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .timeline-item { flex-direction: column; gap: 6px; }
  .confirm-box { padding: 28px 20px; }
  .staff-search { padding: 16px; border-radius: 14px; }
  .staff-search-field input { padding: 14px 46px; font-size: .9rem; }
  .services-catalog { margin-top: 26px; }
  .prev-section { margin-top: 44px; padding: 40px 0 44px; }
  .prev-group { margin-top: 32px; }
  .prev-group + .prev-group { margin-top: 38px; }
  .prev-grid { grid-template-columns: 1fr; }
  .prev-card { padding: 20px; }
  .prev-note { margin-top: 28px; }
  .svc-toggle { padding: 15px 14px; gap: 12px; }
  .svc-icon { width: 44px; height: 44px; border-radius: 12px; }
  .svc-icon svg { width: 22px; height: 22px; }
  .svc-title { font-size: .98rem; }
  .svc-subtitle { font-size: .78rem; }
  .svc-count { display: none; }
  .svc-body { padding: 2px 14px 18px; }
  .svc-grid { gap: 10px; }
  .svc-item { padding: 12px 13px; }
  .svc-cta { flex-direction: column; align-items: stretch; }
  .svc-cta-actions { flex-direction: column; }
  .svc-cta-actions .btn { width: 100%; justify-content: center; }
  .promo-block { margin-top: 34px; }
  .promo-block + .promo-block { margin-top: 44px; }
  .promo-block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .promo-grid--2,
  .promo-grid--3 { grid-template-columns: 1fr; }
  .promo-body { padding: 18px 18px 20px; }
  .promo-note { margin-top: 28px; }
}

/* ============================================================
   Mega menú de especialidades
   ============================================================ */
.nav-mega { position: relative; }

.nav-mega-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-mega-link svg {
  transition: transform .2s ease;
}

.nav-mega.is-open .nav-mega-link svg,
.nav-mega:hover .nav-mega-link svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  z-index: 60;
}

.mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10, 35, 60, .22);
  overflow: hidden;
}

.mega-list {
  padding: 24px 24px 20px;
}

.mega-eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mega-list ul { list-style: none; }

.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  transition: background .18s ease, color .18s ease;
}

.mega-item:hover,
.mega-item:focus-visible,
.mega-item.is-current {
  background: #eef5fc;
  color: var(--primary-dark);
}

.mega-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef5fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background .18s ease, color .18s ease;
}

.mega-item:hover .mega-item-icon,
.mega-item:focus-visible .mega-item-icon,
.mega-item.is-current .mega-item-icon {
  background: var(--primary);
  color: #fff;
}

.mega-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mega-item-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
}

.mega-item-desc {
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega-item-thumb { display: none; }

.mega-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}

.mega-all:hover {
  background: var(--primary);
  color: #fff;
}

.mega-media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, #0e487a, #1563a6);
  overflow: hidden;
}

.mega-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .45s ease, transform .7s ease;
}

.mega-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.mega-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 80px 24px 24px;
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 24, 44, .88));
}

.mega-media-kicker {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: #9fc4e8;
  margin-bottom: 6px;
}

.mega-media-frase {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

/* ============================================================
   Tarjetas de especialidades
   ============================================================ */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.esp-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.esp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #bcd6ec;
}

.esp-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef5fc;
}

.esp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.esp-card:hover .esp-card-media img {
  transform: scale(1.04);
}

.esp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}

.esp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.esp-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef5fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.esp-card-head h2 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0;
}

.esp-card-body p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
}

.esp-card-link {
  margin-top: auto;
  align-self: flex-start;
  padding: 9px 16px;
  font-size: .85rem;
}

/* ============================================================
   Detalle de especialidad
   ============================================================ */
.esp-detail-hero {
  position: relative;
  padding: 46px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.esp-detail-hero::after {
  content: '';
  position: absolute;
  right: -140px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.esp-detail-hero::before {
  content: '';
  position: absolute;
  left: -90px;
  bottom: -190px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(200, 42, 46, .18);
}

.esp-detail-hero .container { position: relative; z-index: 1; }

.esp-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px;
  align-items: center;
}

.esp-detail-hero .eyebrow { color: #9fc4e8; }

.esp-detail-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
}

.esp-detail-summary {
  color: #e2eefb;
  font-size: 1.08rem;
  max-width: 580px;
}

.esp-detail-phrase {
  margin-top: 12px;
  color: #9fc4e8;
  font-size: .95rem;
  font-weight: 600;
}

.esp-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
}

.btn-ghost-light:hover {
  background: #fff;
  color: var(--primary);
}

.esp-detail-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0b3a63;
  box-shadow: 0 24px 60px rgba(3, 20, 40, .35);
}

.esp-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esp-detail-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 20px 18px;
  background: linear-gradient(transparent, rgba(4, 24, 45, .85));
  font-size: .92rem;
  font-weight: 700;
}

.esp-detail-media-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
}

.esp-detail-section { padding: 70px 0; }

.esp-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr);
  gap: 44px;
  align-items: start;
}

.esp-detail-main { min-width: 0; }

.esp-detail-block + .esp-detail-block {
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid #e6eef5;
}

.esp-detail-block h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 16px;
}

.esp-detail-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.esp-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.esp-service {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f7fafc;
  border: 1px solid #e6eef5;
  border-radius: 12px;
}

.esp-service-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e4f2e8;
  color: #1a7f37;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.esp-service h3 {
  font-size: .92rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.esp-service p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  margin: 0;
}

.esp-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.esp-benefit {
  padding: 22px;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 14px;
}

.esp-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef5fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.esp-benefit h3 {
  font-size: .98rem;
  margin-bottom: 6px;
}

.esp-benefit p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
  margin: 0;
}

.esp-team { margin-top: 24px; }

.esp-team-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 24px;
  background: #f7fafc;
  border: 1px dashed #cfe0f0;
  border-radius: 14px;
}

.esp-team-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef5fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.esp-team-empty h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.esp-team-empty p {
  color: var(--muted);
  font-size: .86rem;
  margin: 0;
}

.esp-team-empty .btn { margin-left: auto; }

.esp-detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.esp-side-card {
  padding: 26px;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.esp-side-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdeaea;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.esp-side-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.esp-side-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.esp-side-card .btn { margin-top: 16px; }

.esp-side-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
}

.esp-side-wa:hover { color: var(--primary-dark); }

.esp-side-card--soft {
  padding: 20px;
  background: #f7fafc;
  box-shadow: none;
}

.esp-side-card--soft h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.esp-side-card--soft p {
  margin: 0;
  font-size: .86rem;
}

.esp-side-card--soft a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   Mega menú - escritorio
   ============================================================ */
@media (min-width: 901px) {
  .nav-links { position: relative; }

  .nav-mega { position: static; }

  .mega {
    top: calc(100% + 26px);
    left: 50%;
    width: min(940px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .mega-inner {
    max-height: calc(100vh - 120px);
  }

  .mega-list {
    overflow-y: auto;
  }

  .nav-mega:hover .mega,
  .nav-mega:focus-within .mega,
  .nav-mega.is-open .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

/* ============================================================
   Mega menú - móvil y tablet
   ============================================================ */
@media (max-width: 900px) {
  .nav-mega { width: 100%; }

  .nav-mega-link {
    width: 100%;
    justify-content: space-between;
    padding: 6px 0;
  }

  .nav-mega .mega {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .nav-mega.is-open .mega { max-height: 2000px; }

  .mega-inner {
    display: block;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: #f7fafc;
  }

  .mega-list { padding: 10px 10px 12px; }

  .mega-eyebrow { padding: 4px 6px 10px; margin: 0; }

  .mega-item {
    gap: 10px;
    padding: 8px 6px;
    border-radius: 9px;
  }

  .mega-item-icon { display: none; }

  .mega-item-thumb {
    display: block;
    width: 68px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
  }

  .mega-item-text { flex: 1; }

  .mega-item-desc { -webkit-line-clamp: 2; }

  .mega-all {
    margin: 8px 4px 2px;
    padding: 11px 12px;
  }

  .mega-media { display: none; }

  .esp-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .esp-detail-hero-grid { grid-template-columns: 1fr; gap: 30px; }

  .esp-detail-media { order: -1; max-width: 560px; }

  .esp-detail-layout { grid-template-columns: 1fr; gap: 34px; }

  .esp-detail-side { position: static; }

  .esp-detail-section { padding: 54px 0; }
}

@media (max-width: 600px) {
  .esp-grid,
  .esp-grid--related { grid-template-columns: 1fr; }

  .esp-card-body { padding: 18px; }

  .esp-detail-hero { padding: 38px 0 46px; }

  .esp-detail-actions .btn { width: 100%; justify-content: center; }

  .esp-services,
  .esp-benefits { grid-template-columns: 1fr; }

  .esp-detail-block + .esp-detail-block {
    margin-top: 38px;
    padding-top: 34px;
  }

  .esp-team-empty { flex-direction: column; align-items: flex-start; }

  .esp-team-empty .btn { margin-left: 0; width: 100%; justify-content: center; }

  .esp-side-card { padding: 22px; }

  .mega-item-thumb { width: 60px; height: 46px; }
}

