@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   Identidad Visual Institucional — Clínica Dental El Otro Pueblo
   Basado en la paleta oficial del logo y estándares de alta complejidad clínica (RedSalud)
   ========================================================================== */
:root {
  /* Colores Oficiales del Logotipo */
  --brand-blue: #0066d6;
  --brand-blue-hover: #0052b3;
  --brand-blue-dark: #003d85;
  --brand-blue-light: #eff6ff;
  
  --brand-cyan: #00a2b9;
  --brand-cyan-hover: #00879b;
  --brand-cyan-light: #e6f7fa;
  --brand-cyan-border: #bcebf2;
  
  --brand-navy: #0a1e34;
  --brand-navy-dark: #061322;
  --brand-navy-surface: #0f2b48;
  
  --text-main: #0f172a;
  --text-muted: #52667a;
  --text-light: #94a3b8;
  
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --shadow-xs: 0 1px 2px rgba(10, 30, 52, 0.05);
  --shadow-sm: 0 2px 8px rgba(10, 30, 52, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 30, 52, 0.08);
  --shadow-lg: 0 14px 34px rgba(10, 30, 52, 0.12);
  --shadow-btn: 0 4px 14px rgba(0, 102, 214, 0.28);
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
}

/* Global SVG Safety Constraint */
svg {
  max-width: 100%;
  vertical-align: middle;
}

svg:not([width]) {
  width: 18px;
  height: 18px;
}

/* Catalog Search Inline & Filters Bar */
.rs-catalog-filters-bar {
  margin: 30px 5% 10px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.rs-catalog-search-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 16px;
  max-width: 480px;
}

.rs-catalog-search-inline svg {
  width: 18px !important;
  height: 18px !important;
  color: #64748b;
  flex-shrink: 0;
}

.rs-catalog-search-inline input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #0f172a;
}

.rs-catalog-search-inline input::placeholder {
  color: #94a3b8;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-page);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a, button, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, p {
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

em {
  font-style: normal;
  color: var(--brand-cyan);
}

/* ==========================================================================
   Topbar Institucional
   ========================================================================== */
.topbar {
  height: 36px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-navy-dark);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-left span:first-child {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-right a {
  color: #cbd5e1;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-right a:hover {
  color: #38bdf8;
}

.topbar-badge {
  background: rgba(0, 162, 185, 0.18);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Header & Barra de Navegación (Legacy fallback)
   ========================================================================== */
header:not(.rs-header-bar) {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 28px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(10, 30, 52, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img, .brand-logo {
  height: auto;
  width: auto;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
}

nav a {
  position: relative;
  padding: 12px 0;
  color: #334155;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--brand-blue);
}

nav a[aria-current="page"] {
  color: var(--brand-blue);
  font-weight: 700;
}

nav a[aria-current="page"]:after {
  content: '';
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-blue);
  border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   Botones Profesionales
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-blue);
  color: #ffffff !important;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 214, 0.38);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.header-cta {
  padding: 11px 22px;
  font-size: 13.5px;
}

.btn-secondary {
  background: var(--brand-cyan);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 162, 185, 0.25);
}

.btn-secondary:hover {
  background: var(--brand-cyan-hover);
  box-shadow: 0 6px 18px rgba(0, 162, 185, 0.35);
}

.btn-white {
  background: #ffffff;
  color: var(--brand-navy) !important;
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--brand-blue) !important;
  box-shadow: var(--shadow-md);
}

.btn.outline {
  background: #ffffff;
  color: var(--brand-navy);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--bg-surface);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: var(--shadow-xs);
}

.underlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 102, 214, 0.2);
  padding-bottom: 3px;
  transition: all 0.15s ease;
}

.underlink:hover {
  color: var(--brand-blue-hover);
  border-color: var(--brand-blue);
}

.underlink svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.underlink:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Badges y Etiquetas Clínicas
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-cyan-light);
  color: var(--brand-cyan-hover);
  border: 1px solid var(--brand-cyan-border);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.menu {
  display: none;
}

.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: white;
  padding: 15px;
  z-index: 100;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xs);
}

.skip:focus {
  top: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 560px;
  background: var(--brand-navy);
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 65% center;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  max-width: none;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 55px 10% 48px 11.5%;
  align-self: center;
  z-index: 2;
}

.hero-copy .badge-pill {
  background: rgba(0, 162, 185, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 14px 0 18px;
  font-weight: 800;
}

.hero h1 em {
  color: #38bdf8;
  font-style: normal;
}

.hero p {
  color: #cbd5e1;
  font-size: 15.5px;
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero .underlink {
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 13.5px;
}

.hero .underlink:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

.hero-location {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-location span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-location b {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.photo-credit {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 9px;
  font-size: 9.5px;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
  border-radius: var(--radius-xs);
  z-index: 3;
}

.hero-side {
  display: none;
}

/* ==========================================================================
   Quick Access Hub (Servicios al Paciente)
   ========================================================================== */
.quick-access {
  margin: 0;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.quick-access > a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 22px;
  border-right: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.quick-access > a:first-child {
  padding-left: 0;
}

.quick-access > a:last-child {
  border-right: 0;
}

.quick-access a:hover {
  background: var(--bg-surface);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  flex-shrink: 0;
  border: 1px solid rgba(0, 102, 214, 0.15);
}

.quick-icon svg {
  width: 22px;
  height: 22px;
}

.quick-access small {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quick-access h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 3px;
  letter-spacing: -0.02em;
}

.quick-access > a > span.arrow-icon {
  margin-left: auto;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.quick-access > a > span.arrow-icon svg {
  width: 18px;
  height: 18px;
}

.quick-access a:hover > span.arrow-icon {
  transform: translate(3px, -3px);
  color: var(--brand-cyan);
}

/* ==========================================================================
   Trust Strip (Cinta de Acreditaciones y Beneficios)
   ========================================================================== */
.trust-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.trust-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.trust-item-box strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.3;
}

.trust-item-box span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 70px 5%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
}

h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.22;
}

.section-head p {
  font-size: 15px;
  margin-bottom: 8px;
}

/* ==========================================================================
   Service / Treatment Cards
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-lg);
}

.service-photo {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: var(--bg-surface);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-num {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 6px rgba(10, 30, 52, 0.3);
}

.service-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 13.5px;
  line-height: 1.65;
  min-height: 48px;
  flex-grow: 1;
}

.text-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 16px;
  transition: color 0.15s ease;
}

.service-card:hover .text-link {
  color: var(--brand-cyan);
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.service-card:hover .text-link svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Why Choose Us (Pilares Institucionales)
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--brand-cyan-border);
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Clinical Story & Editorial
   ========================================================================== */
.clinical-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  margin: 0 5%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.story-photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  padding: 50px 8.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-copy h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.story-copy > p {
  font-size: 15px;
  margin-bottom: 22px;
}

.care-point {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}

.care-point > b {
  font-weight: 800;
  font-size: 13px;
  color: var(--brand-cyan);
  padding-top: 2px;
}

.care-point h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.care-point p {
  font-size: 13px;
  line-height: 1.6;
}

.story-copy > .underlink {
  margin-top: 18px;
}

/* ==========================================================================
   Patient Journey / Steps
   ========================================================================== */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.journey-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.journey-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.journey-step-num {
  font-size: 32px;
  font-weight: 800;
  color: rgba(0, 102, 214, 0.14);
  line-height: 1;
  margin-bottom: 12px;
}

.journey-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brand-navy);
}

.journey-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Team Feature & Specialists
   ========================================================================== */
.team-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--brand-navy);
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.team-feature > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 35%;
}

.team-feature > div {
  padding: 40px 9%;
  color: #ffffff;
  align-self: center;
}

.team-feature h3 {
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 14px;
}

.team-feature p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 18px;
}

.team-feature .eyebrow {
  color: #38bdf8;
}

.team-feature .underlink {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.team-feature small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 20px;
}

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

.specialist-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.specialist-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

.profile-art {
  height: 250px;
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}

.profile-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-art small {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.9);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
}

.specialist-card > div:last-child {
  padding: 22px;
}

.specialist-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.specialist-card p {
  font-size: 13.5px;
  margin-top: 8px;
}

.team-notice {
  background: var(--brand-cyan-light);
  border: 1px solid var(--brand-cyan-border);
  border-left: 4px solid var(--brand-cyan);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.team-notice p {
  font-size: 14px;
  color: var(--brand-navy);
}

/* ==========================================================================
   Patient Section
   ========================================================================== */
.patient-section {
  background: var(--bg-surface);
}

.patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.patient-grid > a {
  display: grid;
  grid-template-columns: 44% 56%;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.patient-grid > a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.patient-grid img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.patient-grid a > div {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.patient-grid h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.patient-grid p {
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Detail Layout & Treatment Scope
   ========================================================================== */
.page-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 310px;
  background: var(--brand-navy);
  color: #ffffff;
  overflow: hidden;
}

.page-intro > div:first-child {
  padding: 38px 8.5% 42px;
  align-self: center;
}

.page-intro h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 12px;
}

.page-intro em {
  color: #38bdf8;
}

.page-intro .eyebrow {
  color: #38bdf8;
  margin-bottom: 10px;
}

.page-intro p {
  color: #cbd5e1;
  font-size: 15px;
  max-width: 500px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 16px;
  transition: color 0.15s;
}

.breadcrumb:hover {
  color: #38bdf8;
}

.breadcrumb:after {
  content: '/';
  margin-left: 6px;
}

.page-intro .intro-image {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--brand-cyan);
}

.page-intro .intro-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 8%;
  align-items: start;
}

.detail-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 26px;
  border-radius: var(--radius-md);
}

.detail-layout article h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.detail-layout article h3 {
  font-size: 21px;
  margin-top: 26px;
  margin-bottom: 10px;
}

.detail-layout article p {
  font-size: 15px;
}

.detail-layout aside {
  background: var(--bg-surface);
  position: sticky;
  top: 110px;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 30px;
}

.detail-layout aside h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.detail-layout aside .btn {
  font-size: 13px;
  justify-content: center;
  padding: 13px;
  width: 100%;
  margin-top: 12px;
}

.detail-layout aside .underlink {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.treatment-scope {
  background: var(--brand-cyan-light);
  padding: 22px 24px;
  margin: 26px 0;
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius-sm);
}

.detail-layout .treatment-scope h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.treatment-scope ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatment-scope li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 14.5px;
  border-top: 1px solid rgba(0, 162, 185, 0.18);
}

.treatment-scope li:before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand-cyan);
  font-weight: 800;
}

.treatment-scope small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 14px;
  line-height: 1.6;
}

.plan-list {
  counter-reset: plan;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plan-list li {
  position: relative;
  padding: 0 0 18px 34px;
  counter-increment: plan;
}

.plan-list li:before {
  content: counter(plan, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue);
}

.plan-list strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 3px;
}

.plan-list span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.clinical-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand-blue);
  margin-top: 22px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

details {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: 16.5px;
  color: var(--brand-navy);
}

summary:after {
  content: '+';
  color: var(--brand-blue);
  font-size: 19px;
}

details[open] summary:after {
  content: '−';
}

details p {
  padding: 12px 18px 0 0;
  font-size: 14px;
}

/* ==========================================================================
   Closing Banner
   ========================================================================== */
.closing {
  margin: 0;
  background: linear-gradient(135deg, #061322 0%, #0a1e34 55%, #00458a 100%);
  color: #ffffff;
  padding: 50px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.closing .badge-pill {
  background: rgba(0, 162, 185, 0.22);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  margin-bottom: 10px;
}

.closing h2 {
  font-size: 30px;
  color: #ffffff;
  font-weight: 800;
}

.closing .btn {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 102, 214, 0.45);
  flex-shrink: 0;
}

.closing .btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer Institucional
   ========================================================================== */
footer {
  background: var(--brand-navy-dark);
  color: #ffffff;
  padding: 60px 6% 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

footer h4 {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  align-items: flex-start;
}

footer > div a {
  color: #cbd5e1;
  transition: color 0.15s;
}

footer > div a:hover {
  color: #38bdf8;
}

footer > small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.8;
}

/* ==========================================================================
   Contact Hub & Forms
   ========================================================================== */
.contact-hub {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 35px;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-xs);
}

.contact-info-card h3 {
  font-size: 21px;
  margin-bottom: 20px;
  color: var(--brand-navy);
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 102, 214, 0.12);
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
}

.contact-item b {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-item a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 25px;
  margin-bottom: 8px;
  color: var(--brand-navy);
}

.contact-form-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-input, .form-select-web, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus, .form-select-web:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 214, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-action:hover {
  background: #1ebc59;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 11px 18px 11px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.floating-whatsapp-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-whatsapp-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   RedSalud Corporate Elements & Floating Booking System
   ========================================================================== */
.quick-access-4 {
  margin: 0;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.quick-access-4 > a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-right: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.quick-access-4 > a:first-child {
  padding-left: 0;
}

.quick-access-4 > a:last-child {
  border-right: 0;
}

.quick-access-4 a:hover {
  background: var(--bg-surface);
}

.quick-access-4 small {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quick-access-4 h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 3px;
  letter-spacing: -0.02em;
}

.quick-access-4 > a > span.arrow-icon {
  margin-left: auto;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.quick-access-4 > a > span.arrow-icon svg {
  width: 17px;
  height: 17px;
}

.quick-access-4 a:hover > span.arrow-icon {
  transform: translate(3px, -3px);
  color: var(--brand-cyan);
}

/* Booking Widget inside Hero */
.hero-with-booking {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 580px;
  background: var(--brand-navy);
  position: relative;
  overflow: hidden;
}

.hero-booking-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10% 40px 4%;
  z-index: 2;
}

.hero-booking-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 16px 36px rgba(6, 19, 34, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.booking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.booking-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-card-header h3 svg {
  color: var(--brand-blue);
}

.booking-card-header .badge-pill {
  margin: 0;
  font-size: 10px;
  padding: 3px 8px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.booking-field select, .booking-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-navy);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.booking-field select:focus, .booking-field input:focus {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 214, 0.12);
}

.booking-submit-btn {
  width: 100%;
  padding: 13px 20px;
  margin-top: 4px;
  font-size: 14px;
}

.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.booking-card-footer a {
  color: var(--brand-blue);
  font-weight: 700;
}

.booking-card-footer a:hover {
  text-decoration: underline;
}

/* RedSalud Promo Flagship Banner */
.promo-flagship {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  margin: 40px 5% 0;
}

.promo-flagship-photo {
  position: relative;
  min-height: 420px;
}

.promo-flagship-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 30, 52, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-cyan);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-floating-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.promo-floating-badge span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.promo-flagship-body {
  padding: 44px 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-flagship-body h2 {
  font-size: 28px;
  margin: 10px 0 14px;
  line-height: 1.25;
}

.promo-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.promo-check-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.promo-check-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

/* Convenios & Coberturas */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.convenio-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.convenio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.convenio-badge-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  width: fit-content;
  margin-bottom: 14px;
}

.convenio-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-navy);
}

.convenio-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Estándares Clínicos / Pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-cyan);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--brand-cyan-border);
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-navy);
}

.pillar-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 880px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--brand-blue);
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-blue);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 22px 20px;
}

.faq-answer p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 1600px) {
  body {
    max-width: 1600px;
    margin: auto;
  }
}

@media (max-width: 1100px) {
  header:not(.rs-header-bar) {
    gap: 18px;
  }
  .header-cta {
    display: none;
  }
  nav {
    gap: 20px;
  }
  .hero {
    grid-template-columns: 48% 52%;
  }
  .hero-copy {
    padding: 45px 8%;
  }
  .hero h1 {
    font-size: 38px;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-access-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-access-4 > a:nth-child(2) {
    border-right: 0;
  }
  .quick-access-4 > a:nth-child(1), .quick-access-4 > a:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }
  .hero-with-booking {
    grid-template-columns: 50% 50%;
  }
  .promo-flagship {
    grid-template-columns: 1fr 1fr;
  }
  .convenios-grid, .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-access > a {
    padding: 22px 16px;
    gap: 12px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 5%;
  }
  .story-copy {
    padding: 40px 7%;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 32px;
    font-size: 10px;
    padding: 0 5%;
  }
  .topbar-right {
    display: none;
  }
  header:not(.rs-header-bar) {
    height: 80px;
    padding: 0 5%;
    position: sticky;
  }
  .brand-logo-img, .brand-logo {
    height: 38px;
    max-width: 170px;
  }
  .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: var(--brand-navy);
    cursor: pointer;
  }
  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 18px 6%;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 6px;
  }
  nav.open {
    display: flex;
  }
  nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-surface);
  }
  nav a[aria-current="page"]:after {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-with-booking {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-booking-wrap {
    padding: 0 6% 36px;
  }
  .hero-booking-card {
    max-width: none;
  }
  .hero-backdrop {
    order: 1;
    height: 270px;
    min-height: 0;
    width: 100%;
    object-position: 65% 40%;
  }
  .hero-copy {
    order: 0;
    padding: 34px 6% 30px;
    align-self: stretch;
  }
  .hero h1 {
    font-size: 34px;
    margin: 14px 0;
  }
  .hero p {
    font-size: 14px;
    max-width: none;
  }
  .quick-access-4 {
    grid-template-columns: 1fr;
    padding: 0 6%;
    box-shadow: none;
  }
  .quick-access-4 > a, .quick-access-4 > a:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }
  .quick-access-4 > a:last-child {
    border-bottom: 0;
  }
  .promo-flagship {
    grid-template-columns: 1fr;
    margin: 30px 0 0;
    border-radius: var(--radius-md);
  }
  .promo-flagship-photo {
    height: 240px;
    min-height: 0;
  }
  .promo-flagship-body {
    padding: 28px 6%;
  }
  .promo-flagship-body h2 {
    font-size: 24px;
  }
  .convenios-grid, .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quick-access {
    grid-template-columns: 1fr;
    padding: 0 6%;
    box-shadow: none;
  }
  .quick-access > a, .quick-access > a:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }
  .quick-access > a:last-child {
    border-bottom: 0;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px 5%;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section {
    padding: 45px 5%;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 28px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-photo {
    height: 180px;
  }
  .service-card p {
    min-height: 0;
  }
  .clinical-story {
    margin: 0;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .story-photo {
    height: 270px;
    min-height: 0;
  }
  .story-copy {
    padding: 30px 6%;
  }
  .team-feature {
    grid-template-columns: 1fr;
  }
  .team-feature > img {
    height: 250px;
  }
  .team-feature > div {
    padding: 28px 20px;
  }
  .team-feature h3 {
    font-size: 24px;
  }
  .patient-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .patient-grid > a {
    grid-template-columns: 1fr;
  }
  .patient-grid img {
    height: 200px;
    min-height: 0;
  }
  .patient-grid a > div {
    padding: 22px;
  }
  .page-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .page-intro > div:first-child {
    padding: 28px 6% 32px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .page-intro .intro-image {
    border-left: 0;
    border-top: 3px solid var(--brand-cyan);
    height: 220px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-layout aside {
    position: static;
    padding: 24px;
  }
  .specialist-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-hub {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .closing {
    padding: 36px 6%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .closing h2 {
    font-size: 25px;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 40px 6% 22px;
    gap: 24px;
  }
  footer > div {
    align-items: flex-start;
  }
  .floating-whatsapp span.floating-label {
    display: none;
  }
  .floating-whatsapp {
    padding: 12px;
    border-radius: var(--radius-full);
    bottom: 18px;
    right: 18px;
  }
}

/* ==========================================================================
   REDSALUD EXACT UI FRAMEWORK (MATCHING USER SCREENSHOTS)
   ========================================================================== */
.rs-top-strip {
  padding: 6px 5%;
  background: #ffffff;
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.rs-top-strip a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.rs-top-strip a.active, .rs-top-strip a:hover {
  color: #0f172a;
  font-weight: 700;
}

/* Sticky Header Unified Container */
.rs-sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(10, 30, 52, 0.05);
}

/* Header Main Bar */
.rs-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  background: #ffffff;
  gap: 20px;
}
.rs-header-brand-row a {
  display: flex;
  align-items: center;
}
footer .brand-logo-img {
  max-width: 240px !important;
  height: auto !important;
}

.rs-brand-logo {
  height: 62px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.rs-search-actions-wrap {
  display: flex;
  align-items: center;
  background: #2b7a82;
  border-radius: 9999px;
  padding: 5px 6px 5px 16px;
  gap: 10px;
  max-width: 780px;
  flex: 1;
}

.rs-search-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0 16px;
  flex: 1;
  height: 38px;
  gap: 8px;
}

.rs-search-input-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 100%;
  outline: none;
  font-size: 13px;
  font-family: inherit;
}

.rs-search-input-box input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.rs-search-input-box svg {
  color: rgba(255, 255, 255, 0.9);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rs-btn-calc {
  background: #cbf3ea;
  color: #174b50;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s;
}

.rs-btn-calc:hover {
  opacity: 0.9;
}

.rs-btn-reservar {
  background: #c3e489;
  color: #164019;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rs-btn-reservar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(195, 228, 137, 0.4);
}

/* Secondary Subnav */
.rs-sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
}

@media (max-width: 991px) {
  .rs-sub-nav {
    display: none !important;
  }
}

.rs-sub-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.rs-sub-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s;
}

.rs-sub-nav-links a:hover {
  color: #2b7a82;
}

.rs-sub-nav-links a svg {
  width: 12px;
  height: 12px;
  color: #64748b;
}

.rs-portal-link {
  color: #2b7a82 !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

/* Hero Slider (Image 1) */
.rs-hero-container {
  padding: 24px 5% 0;
}

.rs-hero-card {
  background: #2b7a82;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  min-height: 440px;
  box-shadow: 0 10px 30px rgba(43, 122, 130, 0.15);
}

.rs-hero-content {
  padding: 50px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
}

.rs-hero-content h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.rs-hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 420px;
}

.rs-hero-btn {
  background: #ffffff;
  color: #2b7a82 !important;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 9999px;
  width: fit-content;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.rs-hero-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.rs-hero-photo {
  position: relative;
  height: 100%;
  min-height: 440px;
}

.rs-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-hero-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #2b7a82;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
}

.rs-hero-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #2b7a82;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Action Row 7 Cards (Image 1 Bottom) */
.rs-action-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  padding: 24px 5% 0;
}

.rs-action-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f6;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.rs-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.rs-action-card.highlight {
  background: #c3e489;
  border-color: #b5db74;
}

.rs-action-card.highlight span {
  color: #164019;
  font-weight: 800;
}

.rs-action-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b7a82;
}

.rs-action-card.highlight .rs-action-icon {
  color: #164019;
}

.rs-action-icon svg {
  width: 28px;
  height: 28px;
}

.rs-action-card span {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

/* Section Title & Filter Pills (Images 2 & 3) */
.rs-section {
  padding: 60px 5% 0;
}

.rs-section-header {
  text-align: center;
  margin-bottom: 24px;
}

.rs-section-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.rs-section-header h2 span.accent {
  color: #2b7a82;
}

.rs-section-header p {
  font-size: 15px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.rs-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.rs-pill-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #2b7a82;
  color: #2b7a82;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.rs-pill-btn:hover {
  background: #e6f7fa;
}

.rs-pill-btn.active {
  background: #2b7a82;
  color: #ffffff;
}

/* 4 Big Rounded Service Cards (Image 2) */
.rs-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rs-service-big-card {
  border-radius: 28px;
  padding: 30px 24px 24px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.rs-service-big-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.rs-service-big-card.card-primary {
  background: #2b7a82;
  color: #ffffff;
}

.rs-service-big-card.card-pastel {
  background: #bbf0e4;
  color: #174b50;
}

.rs-service-circle-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.rs-service-big-card.card-primary .rs-service-circle-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.rs-service-big-card.card-pastel .rs-service-circle-icon {
  color: #2b7a82;
}

.rs-service-circle-icon svg {
  width: 32px;
  height: 32px;
}

.rs-service-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.rs-service-bottom-row h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: inherit;
  margin: 0;
}

.rs-service-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rs-service-big-card.card-primary .rs-service-arrow-btn {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.rs-service-big-card.card-pastel .rs-service-arrow-btn {
  background: #2b7a82;
  color: #ffffff;
}

.rs-center-cta {
  text-align: center;
  margin-top: 36px;
}

.rs-btn-all {
  background: #2b7a82;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.rs-btn-all:hover {
  background: #1f5d63;
  transform: translateY(-2px);
}

/* 4 Location Cards (Image 3) */
.rs-red-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rs-clinic-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #eef2f6;
  transition: transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.rs-clinic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.rs-clinic-card-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.rs-clinic-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rs-clinic-card-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rs-clinic-card-body p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Seguros y Convenios (Image 4) */
.rs-convenios-section {
  display: grid;
  grid-template-columns: 28% 72%;
  gap: 30px;
  align-items: center;
}

.rs-convenios-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.rs-convenios-header h2 span.accent {
  color: #2b7a82;
  display: block;
}

.rs-convenios-header p {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.6;
}

.rs-convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rs-pastel-card {
  border-radius: 24px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
}

.rs-pastel-card.pink {
  background: #fcedf5;
}

.rs-pastel-card.cyan {
  background: #d5f5f6;
}

.rs-pastel-card.mint {
  background: #d4f7ed;
}

.rs-tag-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #2b7a82;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 14px;
}

.rs-pastel-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.25;
}

.rs-price-small {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.rs-price-big {
  font-size: 24px;
  font-weight: 800;
  color: #2b7a82;
  margin-bottom: 4px;
}

.rs-price-sub {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 16px;
}

.rs-partner-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 18px;
}

.rs-btn-card-more {
  background: #2b7a82;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.rs-btn-card-more:hover {
  opacity: 0.9;
}

/* Location Banner / Toast (flotante abajo de la pantalla) */
.rs-location-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px 22px;
  box-shadow: 0 14px 36px -4px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 99998;
  max-width: 760px;
  width: calc(100% - 48px);
  animation: rsToastInDesktop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes rsToastInDesktop {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.rs-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b7a82;
  flex-shrink: 0;
}

.rs-toast-icon svg {
  width: 22px;
  height: 22px;
}

.rs-toast-text {
  flex: 1;
  min-width: 0;
}

.rs-toast-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.rs-toast-text span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.rs-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rs-toast-btn-accept {
  background: #2b7a82;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(43, 122, 130, 0.25);
  transition: all 0.2s ease;
}

.rs-toast-btn-accept:hover {
  background: #226269;
  transform: translateY(-1px);
}

.rs-toast-btn-cancel {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.rs-toast-btn-cancel:hover {
  background: #f8fafc;
  color: #334155;
}

/* Responsive RedSalud Exact */
@media (max-width: 1100px) {
  .rs-search-actions-wrap {
    max-width: 540px;
  }
  .rs-action-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .rs-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-red-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-convenios-section {
    grid-template-columns: 1fr;
  }
  .rs-convenios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Prevent iOS automatic input zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  .rs-top-strip {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 6px 12px;
    font-size: 11px;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Mobile Sticky Header Container */
  .rs-sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(10, 30, 52, 0.08) !important;
  }

  /* Mobile Header & Search Capsule */
  .rs-header-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: auto !important;
    padding: 8px 4% !important;
    gap: 6px !important;
    background: #ffffff !important;
    position: static !important;
    border-bottom: 1px solid #eef2f6 !important;
  }

  .rs-brand-logo {
    height: 48px !important;
    max-width: 210px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .rs-search-actions-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: #2b7a82 !important;
    border-radius: 16px !important;
    padding: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(43, 122, 130, 0.15) !important;
  }

  .rs-search-actions-wrap form,
  .rs-search-input-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 36px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .rs-search-input-box input {
    font-size: 13px !important;
  }

  .rs-search-actions-wrap .rs-btn-calc,
  .rs-search-actions-wrap .rs-btn-reservar {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
    text-align: center !important;
  }

  /* Subnav oculto en la vista principal de celulares (se traslada al menú lateral) */
  .rs-sub-nav {
    display: none !important;
  }

  /* Catalog Hero */
  .rs-catalog-hero {
    margin: 12px 3.5% 0 !important;
    padding: 16px 16px 14px !important;
    border-radius: 16px !important;
  }
  .rs-catalog-hero h1 {
    font-size: clamp(19px, 5vw, 23px) !important;
    line-height: 1.2 !important;
    margin: 6px 0 6px !important;
  }
  .rs-catalog-hero p {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }
  .rs-catalog-badges {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .rs-catalog-badge-item {
    justify-content: flex-start !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* Filters Bar */
  .rs-catalog-filters-bar {
    margin: 14px 4% 0 !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  .rs-filter-pills {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }
  .rs-filter-pills::-webkit-scrollbar {
    display: none !important;
  }
  .rs-pill-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    flex-shrink: 0 !important;
  }

  /* Home Hero Card */
  .rs-hero-container {
    margin-top: 10px !important;
  }
  .rs-hero-card {
    grid-template-columns: 1fr !important;
    margin: 10px 4% 0 !important;
    border-radius: 20px !important;
    min-height: 0 !important;
  }
  .rs-hero-photo {
    height: 190px !important;
    min-height: 0 !important;
  }
  .rs-hero-content {
    padding: 22px 18px !important;
  }
  .rs-hero-content h1 {
    font-size: clamp(21px, 5.5vw, 26px) !important;
  }

  /* Action Row & Services */
  .rs-action-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 16px 4% 0 !important;
  }
  .rs-action-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
  }
  .rs-action-card b {
    font-size: 11px !important;
  }
  .rs-services-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .rs-service-card {
    padding: 18px !important;
    border-radius: 16px !important;
  }
  .rs-red-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .rs-convenios-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Compact Non-intrusive Location Toast */
  /* Mobile Header Brand Row & Menu Trigger */
  .rs-header-brand-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .rs-mobile-menu-btn {
    display: flex !important;
  }
  .rs-brand-logo {
    height: 48px !important;
    max-width: 210px !important;
    margin: 0 !important;
  }

  /* Sección de Ubicación flotante en celulares (al final de la pantalla del celular, flotante y estético) */
  .rs-location-toast {
    position: fixed !important;
    bottom: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 520px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 20px !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    box-shadow: 0 14px 38px -4px rgba(15, 23, 42, 0.22), 0 6px 16px rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    z-index: 99998 !important;
    animation: rsToastInMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes rsToastInMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .rs-location-toast .rs-toast-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #eef7f8 !important;
    color: #2b7a82 !important;
    flex-shrink: 0 !important;
  }
  .rs-location-toast .rs-toast-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .rs-location-toast .rs-toast-text {
    text-align: left !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .rs-location-toast .rs-toast-text strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    display: block !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }
  .rs-location-toast .rs-toast-text span {
    font-size: 11px !important;
    display: block !important;
    color: #64748b !important;
    line-height: 1.35 !important;
  }
  .rs-location-toast .rs-toast-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .rs-location-toast .rs-toast-btn-accept {
    background: #2b7a82 !important;
    color: #ffffff !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(43, 122, 130, 0.25) !important;
    cursor: pointer !important;
  }
  .rs-location-toast .rs-toast-btn-cancel {
    background: #ffffff !important;
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  @media (max-width: 440px) {
    .rs-location-toast {
      flex-wrap: wrap !important;
      padding: 12px 14px !important;
      gap: 10px !important;
    }
    .rs-location-toast .rs-toast-text {
      flex: 1 1 calc(100% - 54px) !important;
    }
    .rs-location-toast .rs-toast-actions {
      width: 100% !important;
      justify-content: flex-end !important;
      gap: 8px !important;
      padding-top: 6px !important;
      border-top: 1px solid #f1f5f9 !important;
    }
    .rs-location-toast .rs-toast-btn-accept,
    .rs-location-toast .rs-toast-btn-cancel {
      padding: 7px 15px !important;
      font-size: 12px !important;
    }
  }

  body:has(.rs-location-toast) .floating-whatsapp,
  .floating-whatsapp.toast-active {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100000 !important;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  @media (max-width: 440px) {
    body:has(.rs-location-toast) .floating-whatsapp,
    .floating-whatsapp.toast-active {
      bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }

  /* Section Spacings on Mobile */
  .rs-section {
    padding-left: 4%;
    padding-right: 4%;
  }
  .rs-section-header h2 {
    font-size: clamp(21px, 5.5vw, 26px);
  }
  .rs-section-header p {
    font-size: 13.5px;
  }

  /* Process Cards */
  .rs-process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rs-process-card {
    padding: 20px;
    border-radius: 16px;
  }

  /* Forms & Tabs */
  .rs-tabs-header {
    flex-direction: column;
    gap: 6px;
    border-bottom: none;
  }
  .rs-tab-trigger {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    padding: 10px;
    border-bottom: none;
  }
  .rs-tab-trigger.active {
    background: #2b7a82;
    color: #ffffff;
  }
  .btn-whatsapp-action {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   REDSALUD TREATMENTS CATALOG FRAMEWORK (.rs-treatment-*)
   ========================================================================== */
.rs-catalog-hero {
  margin: 16px 5% 0;
  background: linear-gradient(135deg, #174b50 0%, #2b7a82 60%, #1a5b62 100%);
  border-radius: 20px;
  padding: 24px 32px 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(43, 122, 130, 0.16);
}

.rs-catalog-hero-body {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.rs-catalog-hero h1 {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin: 8px 0 8px;
  letter-spacing: -0.02em;
}

.rs-catalog-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin-bottom: 14px;
}

.rs-catalog-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rs-catalog-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rs-catalog-badge-item svg {
  color: #c3e489;
  width: 14px;
  height: 14px;
}

/* Treatment Catalog Grid */
.rs-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 24px 5% 0;
}

.rs-treatment-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.rs-treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(43, 122, 130, 0.12);
  border-color: #cbd5e1;
}

.rs-treatment-photo-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}

.rs-treatment-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-treatment-card:hover .rs-treatment-photo-wrap img {
  transform: scale(1.05);
}

.rs-treatment-category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2b7a82;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rs-treatment-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rs-treatment-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
}

.rs-treatment-body p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.rs-treatment-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.rs-treatment-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.rs-treatment-features li svg {
  color: #2b7a82;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.rs-treatment-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.rs-treatment-btn-detail {
  background: #f1f5f9;
  color: #1e293b !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.rs-treatment-btn-detail:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.rs-treatment-btn-book {
  background: #2b7a82;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.rs-treatment-btn-book:hover {
  background: #1f5d63;
  transform: translateY(-1px);
}

/* Process 4 Steps Cards */
.rs-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 5% 0;
}

.rs-process-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.rs-process-step-num {
  font-size: 13px;
  font-weight: 800;
  color: #2b7a82;
  background: #d4f7ed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rs-process-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rs-process-card p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* Guidance Callout Box */
.rs-guidance-box {
  margin: 40px 5% 0;
  background: #fcedf5;
  border-radius: 24px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rs-guidance-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.rs-guidance-box p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  max-width: 580px;
}

@media (max-width: 1024px) {
  .rs-treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-guidance-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .rs-treatment-grid {
    grid-template-columns: 1fr;
  }
  .rs-process-grid {
    grid-template-columns: 1fr;
  }
  .rs-catalog-hero {
    padding: 30px 6%;
    border-radius: 20px;
  }
}

/* ==========================================================================
   REDSALUD CLINIC & SEDES FRAMEWORK (.rs-sede-*, .rs-infra-*)
   ========================================================================== */
.rs-sedes-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 24px 5% 0;
}

.rs-sede-detail-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rs-sede-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(43, 122, 130, 0.12);
  border-color: #cbd5e1;
}

.rs-sede-photo-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #f1f5f9;
}

.rs-sede-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-sede-detail-card:hover .rs-sede-photo-wrap img {
  transform: scale(1.05);
}

.rs-sede-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2b7a82;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.rs-sede-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rs-sede-body h3 {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.rs-sede-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-sede-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #475569;
}

.rs-sede-info-item svg {
  color: #2b7a82;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rs-sede-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.rs-amenity-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rs-amenity-tag svg {
  color: #2b7a82;
  width: 12px;
  height: 12px;
}

.rs-sede-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.rs-infra-highlight {
  margin: 40px 5% 0;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #eef2f6;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 48% 52%;
  overflow: hidden;
}

.rs-infra-photo {
  position: relative;
  min-height: 380px;
}

.rs-infra-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-infra-content {
  padding: 44px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rs-infra-content h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.25;
}

.rs-infra-content p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 20px;
}

@media (max-width: 992px) {
  .rs-sedes-detail-grid {
    grid-template-columns: 1fr;
  }
  .rs-infra-highlight {
    grid-template-columns: 1fr;
  }
  .rs-infra-photo {
    height: 260px;
    min-height: 0;
  }
}

/* ==========================================================================
   RedSalud Contact Hub & Direct Channels Cards
   ========================================================================== */
.rs-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 15px;
}

.rs-channel-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rs-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(43, 122, 130, 0.12);
  border-color: #2b7a82;
}

.rs-channel-card.featured {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}

.rs-channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f0fdfa;
  color: #2b7a82;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(43, 122, 130, 0.15);
}

.rs-channel-icon svg {
  width: 22px;
  height: 22px;
}

.rs-channel-card.emergency .rs-channel-icon {
  background: #fff1f2;
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.15);
}

.rs-channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rs-channel-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.rs-channel-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.rs-channel-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 18px;
}

.rs-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  margin-top: auto;
}

.rs-channel-btn:hover {
  background: #2b7a82;
  color: #ffffff;
  border-color: #2b7a82;
}

.rs-channel-btn.primary {
  background: #2b7a82;
  color: #ffffff;
  border-color: #2b7a82;
}

.rs-channel-btn.primary:hover {
  background: #1f5d64;
}

.rs-channel-btn.emergency {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.rs-channel-btn.emergency:hover {
  background: #be123c;
}

/* ==========================================================================
   Interactive Budget Simulator (RedSalud Style)
   ========================================================================== */
.rs-calc-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  padding: 36px 40px;
  margin: 30px auto;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.rs-calc-form-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.rs-calc-form-wrap p {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.55;
}

.rs-calc-result-box {
  background: linear-gradient(145deg, #0a1e34 0%, #17324f 100%);
  border-radius: 22px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(10, 30, 52, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rs-calc-result-header {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.rs-calc-result-header span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  font-weight: 700;
  display: block;
}

.rs-calc-result-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.rs-calc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.rs-calc-price-row.total {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.rs-calc-copago-val {
  font-size: 26px;
  font-weight: 800;
  color: #c3e489;
}

.rs-calc-cuotas-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rs-calc-cuotas-pill svg {
  color: #c3e489;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Tab Group for Form
   ========================================================================== */
.rs-tabs-header {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
}

.rs-tab-trigger {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rs-tab-trigger svg {
  width: 16px;
  height: 16px;
}

.rs-tab-trigger.active {
  color: #2b7a82;
  border-bottom-color: #2b7a82;
}

.rs-tab-content {
  display: none;
}

.rs-tab-content.active {
  display: block;
}

/* Quick Branch Directory Mini Cards */
.rs-branch-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.rs-branch-mini-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.rs-branch-mini-card:hover {
  background: #ffffff;
  border-color: #2b7a82;
  box-shadow: 0 4px 12px rgba(43,122,130,0.08);
}

.rs-branch-mini-card b {
  font-size: 13.5px;
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.rs-branch-mini-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 8px;
  line-height: 1.4;
}

.rs-branch-mini-links {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.rs-branch-mini-links a {
  color: #2b7a82;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rs-branch-mini-links a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .rs-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rs-calc-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .rs-branch-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .rs-channels-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RedSalud Specialists Catalog & Cards (Large Photo & Minimal Suite)
   ========================================================================== */
.rs-specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 25px;
}

.rs-specialist-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rs-specialist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.rs-specialist-photo-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.rs-specialist-big-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.rs-specialist-card:hover .rs-specialist-big-photo {
  transform: scale(1.04);
}

.rs-spec-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
}

.rs-specialist-card[data-category="ortodoncia"] .rs-spec-cat-badge { background: rgba(13, 148, 136, 0.92); }
.rs-specialist-card[data-category="implantes"] .rs-spec-cat-badge { background: rgba(37, 99, 235, 0.92); }
.rs-specialist-card[data-category="estetica"] .rs-spec-cat-badge { background: rgba(124, 58, 237, 0.92); }
.rs-specialist-card[data-category="endodoncia"] .rs-spec-cat-badge { background: rgba(234, 88, 12, 0.92); }
.rs-specialist-card[data-category="periodoncia"] .rs-spec-cat-badge { background: rgba(5, 150, 105, 0.92); }
.rs-specialist-card[data-category="odontopediatria"] .rs-spec-cat-badge { background: rgba(219, 39, 119, 0.92); }
.rs-specialist-card[data-category="general"] .rs-spec-cat-badge { background: rgba(2, 132, 199, 0.92); }

.rs-spec-verified-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rs-spec-verified-badge svg {
  width: 12px;
  height: 12px;
}

.rs-specialist-body {
  padding: 18px 20px 14px;
  flex: 1;
}

.rs-specialist-name {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 4px;
}

.rs-specialist-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.rs-specialist-rnpi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2.5px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.rs-specialist-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}

.rs-specialist-meta-row svg {
  width: 14px;
  height: 14px;
  color: #2b7a82;
  flex-shrink: 0;
}

.rs-specialist-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.rs-specialist-btn-book {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  background: #2b7a82;
  color: #ffffff;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(43, 122, 130, 0.2);
}

.rs-specialist-btn-book:hover {
  background: #1f5d64;
  transform: translateY(-1px);
}

.rs-specialist-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rs-specialist-btn-wa:hover {
  background: #10b981;
  color: #ffffff;
}

@media (max-width: 680px) {
  .rs-specialists-grid {
    grid-template-columns: 1fr;
  }
  .rs-specialist-photo-wrap {
    height: 220px;
  }
}

/* SIS Trust Banner */
.rs-sis-banner {
  background: linear-gradient(135deg, #0a1e34 0%, #15385b 100%);
  border-radius: 24px;
  padding: 34px 40px;
  margin: 45px auto 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 10px 30px rgba(10, 30, 52, 0.15);
}

.rs-sis-banner h3 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.rs-sis-banner p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
  max-width: 650px;
  line-height: 1.55;
}

.rs-sis-banner a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c3e489;
  color: #0a1e34;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rs-sis-banner a:hover {
  background: #b2d972;
}

@media (max-width: 1100px) {
  .rs-specialists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rs-specialists-grid {
    grid-template-columns: 1fr;
  }
  .rs-sis-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }
  .rs-sis-banner a {
    width: 100%;
    justify-content: center;
  }
}


/* Mobile Navigation Drawer & Brand Social Links */
.rs-header-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.rs-mobile-menu-btn:hover {
  background: #eff6ff;
  color: #0066d6;
  border-color: #bfdbfe;
}

.rs-mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile Drawer Overlay */
.rs-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 52, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.rs-mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Panel */
.rs-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: #ffffff;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rs-mobile-drawer.active {
  transform: translateX(0);
}

.rs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.rs-drawer-logo {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.rs-drawer-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.rs-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.rs-drawer-close svg {
  width: 20px;
  height: 20px;
}

.rs-drawer-actions {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.rs-drawer-btn-primary {
  background: #2b7a82;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(43, 122, 130, 0.25);
  text-decoration: none;
}

.rs-drawer-btn-primary svg {
  width: 16px;
  height: 16px;
}

.rs-drawer-btn-secondary {
  background: #e6f7fa;
  color: #2b7a82 !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bcebf2;
  text-decoration: none;
}

.rs-drawer-btn-secondary svg {
  width: 16px;
  height: 16px;
}

.rs-drawer-nav {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rs-drawer-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-left: 6px;
}

.rs-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rs-drawer-link svg {
  color: #2b7a82;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.rs-drawer-link:hover,
.rs-drawer-link.active {
  background: #eff6ff;
  color: #0066d6;
}

.rs-drawer-link:hover svg,
.rs-drawer-link.active svg {
  color: #0066d6;
}

.rs-drawer-link.portal {
  margin-top: 10px;
  background: #eff6ff;
  color: #0066d6;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.rs-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rs-drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.rs-drawer-contact-item svg {
  color: #2b7a82;
  width: 16px;
  height: 16px;
}

.rs-drawer-contact-item a {
  color: #0066d6;
  text-decoration: none;
  font-weight: 700;
}

.rs-drawer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.rs-drawer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b7a82;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rs-drawer-socials a:hover {
  background: #2b7a82;
  color: #ffffff;
  border-color: #2b7a82;
  transform: translateY(-2px);
}

.rs-drawer-socials a svg {
  width: 17px;
  height: 17px;
}

/* Footer Social Icons */
.rs-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.rs-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rs-footer-socials a:hover {
  background: #38bdf8;
  color: #0a1e34;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.rs-footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Home Page Polish — Modern Clinical Photography & Showcase Components
   ========================================================================== */

/* Modern Service Photography Grid */
.rs-services-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rs-service-photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(10, 30, 52, 0.04);
}

.rs-service-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(10, 30, 52, 0.1);
  border-color: #cbd5e1;
}

.rs-service-photo-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.rs-service-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-service-photo-card:hover .rs-service-photo-thumb img {
  transform: scale(1.06);
}

.rs-service-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
}

.rs-service-photo-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.rs-service-photo-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.rs-service-photo-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
}

.rs-service-photo-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  color: #2b7a82;
  font-size: 13px;
  font-weight: 700;
}

.rs-service-photo-action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.rs-service-photo-card:hover .rs-service-photo-action svg {
  transform: translateX(4px);
}

/* Feature Split Section (Medical Confidence & Tech) */
.rs-feature-split {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 40px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 36px 40px;
  margin: 40px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.rs-feature-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 30, 52, 0.12);
  min-height: 380px;
}

.rs-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-feature-media-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(10, 30, 52, 0.92);
  color: #ffffff;
  backdrop-filter: blur(6px);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rs-feature-media-badge svg {
  width: 24px;
  height: 24px;
  color: #38bdf8;
  flex-shrink: 0;
}

.rs-feature-media-badge strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.rs-feature-media-badge span {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
}

.rs-feature-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rs-feature-info h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
}

.rs-feature-info h2 span.accent {
  color: #2b7a82;
}

.rs-feature-info > p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.rs-feature-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.rs-bullet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rs-bullet-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e6f7fa;
  color: #2b7a82;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bcebf2;
}

.rs-bullet-icon svg {
  width: 18px;
  height: 18px;
}

.rs-bullet-text strong {
  display: block;
  font-size: 13.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

.rs-bullet-text span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* Testimonials / Patient Reviews Grid */
.rs-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rs-testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.rs-testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.rs-stars-row {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 12px;
}

.rs-stars-row svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.rs-testimonial-quote {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 18px;
}

.rs-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.rs-author-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b7a82;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rs-author-meta strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.rs-author-meta span {
  display: block;
  font-size: 11.5px;
  color: #2b7a82;
  font-weight: 600;
}

/* Mobile Responsiveness for New Sections */
@media (max-width: 900px) {
  .rs-services-photo-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .rs-feature-split {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
  }
  .rs-feature-media {
    min-height: 260px !important;
  }
  .rs-feature-bullets {
    grid-template-columns: 1fr !important;
  }
  .rs-testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .rs-services-photo-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Premium Convenios & Coberturas Framework
   ========================================================================== */
.rs-convenios-section {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: 0 8px 30px rgba(10, 30, 52, 0.04);
}

.rs-convenios-header h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 12px;
}

.rs-convenios-header h2 span.accent {
  color: #2b7a82;
  display: block;
}

.rs-convenios-header > p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.6;
}

.rs-convenios-trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.rs-trust-item svg {
  flex-shrink: 0;
  color: #2b7a82;
  width: 16px;
  height: 16px;
}

.rs-convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Premium Plan Card */
.rs-premium-plan-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(10, 30, 52, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.rs-premium-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 30, 52, 0.09);
}

/* Specific Card Themes */
.rs-premium-plan-card.card-fonasa {
  background: linear-gradient(180deg, #fff5f8 0%, #ffffff 45%);
  border-color: #fbcfe8;
}
.rs-premium-plan-card.card-fonasa:hover {
  border-color: #f472b6;
}

.rs-premium-plan-card.card-isapre {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 45%);
  border-color: #99f6e4;
}
.rs-premium-plan-card.card-isapre:hover {
  border-color: #2dd4bf;
}

.rs-premium-plan-card.card-transbank {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 45%);
  border-color: #bbf7d0;
}
.rs-premium-plan-card.card-transbank:hover {
  border-color: #4ade80;
}

.rs-plan-header {
  margin-bottom: 14px;
}

.rs-plan-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.card-fonasa .rs-plan-tag {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.card-isapre .rs-plan-tag {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.card-transbank .rs-plan-tag {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.rs-plan-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
}

/* Highlight Box */
.rs-plan-highlight {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card-fonasa .rs-plan-highlight {
  border-color: #fce7f3;
}

.card-isapre .rs-plan-highlight {
  border-color: #ccfbf1;
}

.card-transbank .rs-plan-highlight {
  border-color: #dcfce7;
}

.rs-plan-highlight-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.rs-plan-highlight-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.card-fonasa .rs-plan-highlight-val {
  color: #be185d;
}

.card-isapre .rs-plan-highlight-val {
  color: #0f766e;
}

.card-transbank .rs-plan-highlight-val {
  color: #15803d;
}

.rs-plan-highlight-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

/* Features List */
.rs-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rs-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.rs-plan-features li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-fonasa .rs-plan-features li svg {
  color: #db2777;
}

.card-isapre .rs-plan-features li svg {
  color: #0d9488;
}

.card-transbank .rs-plan-features li svg {
  color: #16a34a;
}

/* Plan Footer */
.rs-plan-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-partner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.rs-partner-badge svg {
  color: #2b7a82;
  width: 14px;
  height: 14px;
}

.rs-plan-btn {
  background: #2b7a82;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(43, 122, 130, 0.2);
}

.rs-plan-btn:hover {
  background: #1f5d63;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(43, 122, 130, 0.3);
}

@media (max-width: 1024px) {
  .rs-convenios-section {
    grid-template-columns: 1fr !important;
    padding: 30px 24px !important;
  }
  .rs-convenios-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   Specialist Booking Highlight Banner on Contact Page
   ========================================================================== */
.rs-spec-booking-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border: 1.5px solid #2b7a82;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(43, 122, 130, 0.08);
}

.rs-spec-booking-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rs-spec-booking-avatar {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex-shrink: 0;
  background: #e2e8f0;
}

.rs-spec-booking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-spec-booking-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 3px 0 2px;
}

.rs-spec-booking-info p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 6px;
}

.rs-spec-booking-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rs-spec-booking-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.rs-spec-booking-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2b7a82;
  text-decoration: none;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.rs-spec-booking-change:hover {
  background: #f8fafc;
  border-color: #2b7a82;
}

@media (max-width: 700px) {
  .rs-spec-booking-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .rs-spec-booking-change {
    width: 100%;
    justify-content: center;
  }
}
