/* ==========================================================================
   Alcántara Edificio Médico · Directorio Médico
   UIkit 3 / YOOtheme Pro (Horizon) — basado en la Propuesta A "Clínica Serena"
   Para la Propuesta B "Horizonte" cambia solo las variables del bloque :root
   (valores alternativos comentados a la derecha).
   ========================================================================== */

:root {
  /* Directorio: Propuesta B "Horizonte" (elegida). Valores de la A comentados a la derecha. */
  --amd-primary:        #12263A;  /* A: #0F5C6E */
  --amd-primary-hover:  #0C1B2A;  /* A: #0A4352 */
  --amd-primary-soft:   #E8EEF4;  /* A: #E3F0F3 */
  --amd-accent:         #0a63bc;  /* A: #0F5C6E  (botón Buscar) */
  --amd-accent-text:    #12263A;  /* A: #FFFFFF */
  --amd-link:           #B3471F;  /* A: #0F5C6E  ("Ver perfil y contacto") */
  --amd-text:           #12263A;
  --amd-muted:          #5C6F80;
  --amd-border:         #E6ECF1;
  --amd-field-border:   #C9D4DE;
  --amd-surface:        #FFFFFF;
  --amd-bg:             #F3F6F9;
  --amd-radius:         18px;     /* A: 16px */
  --amd-radius-sm:      999px;    /* A: 12px (B usa píldoras) */
  --amd-shadow:         0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --amd-shadow-hover:   0 12px 32px rgba(18,38,58,.12);
  --amd-sticky-top:     110px;
  --amd-drawer-width:   min(88vw, 360px);
}

/* ---------- Base ---------- */
.amd-dir { color: var(--amd-text); }
.amd-dir .uk-input,
.amd-dir .uk-select,
.amd-quick .uk-input,
.amd-quick .uk-select {
  height: 52px;
  border: 1px solid var(--amd-field-border);
  border-radius: var(--amd-radius-sm);
  background-color: var(--amd-surface);
  color: var(--amd-text);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.amd-dir .uk-input:focus,
.amd-dir .uk-select:focus,
.amd-quick .uk-input:focus,
.amd-quick .uk-select:focus {
  border-color: var(--amd-primary);
  box-shadow: 0 0 0 3px var(--amd-primary-soft);
  outline: 0;
}
.amd-dir .uk-form-icon:not(.uk-form-icon-flip) ~ .uk-input,
.amd-quick .uk-form-icon:not(.uk-form-icon-flip) ~ .uk-input { padding-left: 46px !important; }
.amd-dir .uk-form-icon, .amd-quick .uk-form-icon { width: 46px; color: var(--amd-muted); }

.amd-dir .uk-button-primary,
.amd-quick .uk-button-primary {
  background: var(--amd-accent);
  color: var(--amd-accent-text);
  border-radius: var(--amd-radius-sm);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.amd-dir .uk-button-primary:hover,
.amd-quick .uk-button-primary:hover { filter: brightness(.92); }
.amd-btn-buscar { height: 52px; padding: 0 32px; }

/* ---------- 1. Barra de búsqueda superior ---------- */
.amd-searchbar {
  background: var(--amd-bg);
  border: 1px solid var(--amd-border);
  border-radius: var(--amd-radius);
  padding: 12px;
  margin-bottom: 32px;
}
.amd-searchbar--hero {               /* versión portada */
  background: var(--amd-surface);
  border: 0;
  box-shadow: 0 12px 32px rgba(15,92,110,.12);
  margin-bottom: 16px;
}

/* ---------- 2. Sidebar de filtros ---------- */
.amd-filters {
  background: var(--amd-surface);
  border: 1px solid var(--amd-border);
  border-radius: var(--amd-radius);
  display: flex;
  flex-direction: column;
}
.amd-filters-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
}
.amd-filters-title { margin: 0; flex: 1; font-size: 17px; font-weight: 700; }
.amd-clear { font-size: 13px; font-weight: 600; color: var(--amd-link); white-space: nowrap; }
.amd-clear:hover { color: var(--amd-primary-hover); text-decoration: none; }
.amd-filters-scroll { padding: 0 12px; overflow-y: auto; overscroll-behavior: contain; }
.amd-filter-find-wrap { padding: 0 8px 8px; box-sizing: border-box; }
.amd-filter-find-wrap .uk-form-icon { left: 8px; }
.amd-dir .amd-filter-find { height: 40px; font-size: 14px; border-radius: 10px; }

.amd-filter-list { margin: 0 0 8px; }
.amd-filter-list > li { margin: 0 !important; }
.amd-filter-list > li[hidden] { display: none; }
.amd-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;                 /* área táctil */
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s;
}
.amd-check:hover { background: var(--amd-bg); }
.amd-check-label { flex: 1; line-height: 1.3; }
.amd-is-checked .amd-check { background: var(--amd-primary-soft); }
.amd-is-checked .amd-check-label { font-weight: 700; }
.amd-is-empty .amd-check { opacity: .45; cursor: default; }

/* Checkbox UIkit recoloreado */
.amd-dir .uk-checkbox {
  width: 18px; height: 18px; margin: 0; flex: none;
  border: 1.5px solid var(--amd-field-border);
  border-radius: 5px;
  background-color: var(--amd-surface);
}
.amd-dir .uk-checkbox:checked {
  background-color: var(--amd-primary);
  border-color: var(--amd-primary);
}
.amd-dir .uk-checkbox:focus-visible { outline: 2px solid var(--amd-primary); outline-offset: 2px; }

/* Contador (píldora) */
.amd-count {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EEF2F4;
  color: #4A5963;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.amd-is-checked .amd-count { background: var(--amd-primary); color: #FFFFFF; }

.amd-filters-foot { padding: 12px 20px 20px; }
.amd-apply { height: 48px; }
.amd-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--amd-primary); color: #FFFFFF;
  font-size: 12px; font-weight: 700; line-height: 1; box-sizing: border-box;
}
.amd-badge[hidden] { display: none; }
.amd-badge-light { background: rgba(255,255,255,.25); color: inherit; }

/* Escritorio: sidebar fijo (sticky) */
@media (min-width: 960px) {
  .amd-filters-wrap { position: sticky; top: var(--amd-sticky-top); }
  .amd-filters { max-height: calc(100vh - var(--amd-sticky-top) - 24px); }
  .amd-filters-backdrop { display: none; }
}

/* Móvil / tablet: panel lateral (off-canvas) */
@media (max-width: 959px) {
  .amd-sidebar { margin-bottom: 8px; }
  .amd-filter-toggle {
    height: 48px; border-radius: var(--amd-radius-sm);
    border: 1px solid var(--amd-field-border); background: var(--amd-surface);
    color: var(--amd-text); font-weight: 700; text-transform: none; letter-spacing: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  }
  .amd-filters-wrap {
    position: fixed; inset: 0; z-index: 1010;   /* sobre el navbar de YOOtheme (980) */
    visibility: hidden; pointer-events: none;
    transition: visibility 0s linear .3s;
  }
  .amd-filters-wrap.amd-is-open {
    visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }
  .amd-filters-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,23,30,.45);
    opacity: 0; transition: opacity .3s ease;
  }
  .amd-is-open .amd-filters-backdrop { opacity: 1; }
  .amd-filters {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: var(--amd-drawer-width);
    border: 0; border-radius: 0 var(--amd-radius) var(--amd-radius) 0;
    box-shadow: 0 0 40px rgba(0,0,0,.2);
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .amd-is-open .amd-filters { transform: none; }
  .amd-filters-scroll { flex: 1; }
  .amd-filters-foot { border-top: 1px solid var(--amd-border); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .amd-filters-close { color: var(--amd-text); padding: 8px; margin-right: -8px; }
  html.amd-noscroll, html.amd-noscroll body { overflow: hidden; }
}

/* ---------- 3. Cabecera de resultados ---------- */
.amd-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.amd-toolbar-info { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.amd-total { margin: 0; font-size: 16px; }
.amd-total strong { font-size: 20px; }
.amd-chips, .amd-quick-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.amd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--amd-primary-soft); color: var(--amd-primary-hover);
  font-size: 13px; font-weight: 600;
}
.amd-chip:hover { text-decoration: none; filter: brightness(.96); color: var(--amd-primary-hover); }
.amd-chip--outline { background: var(--amd-surface); border: 1px solid var(--amd-field-border); color: var(--amd-text); }
.amd-chip--outline .amd-count { min-width: 0; padding: 1px 7px; }

.amd-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--amd-muted); }
.amd-sort label { white-space: nowrap; }
.amd-dir .amd-sort .uk-select { height: 40px; width: auto; min-width: 190px; font-size: 14px; border-radius: 10px; }

/* ---------- Tarjetas ---------- */
.amd-grid > * { display: flex; }
.amd-card {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--amd-surface);
  border: 1px solid var(--amd-border);
  border-radius: var(--amd-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.amd-card:hover,
.amd-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--amd-shadow-hover);
  border-color: transparent;
}
.amd-card-media {
  aspect-ratio: 4 / 3.4;
  background: #CFE1E5;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.amd-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s ease; }
.amd-card:hover .amd-card-img { transform: scale(1.04); }
.amd-card-initials { font-size: 44px; font-weight: 800; color: var(--amd-primary); opacity: .55; }
.amd-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.amd-card-esp {               /* píldora de especialidad */
  align-self: flex-start;
  margin: 0; padding: 5px 14px;
  border-radius: 999px;
  background: #DCEAF6; color: #2F6497;
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.amd-card-name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; }
.amd-card-name a { color: var(--amd-text); }
.amd-card-name a:hover { text-decoration: none; color: var(--amd-primary); }
.amd-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la tarjeta es clicable */
.amd-card-consulta { margin: 0; font-size: 14px; font-weight: 700; color: #3D4C55; display: flex; align-items: center; gap: 6px; }
.amd-card-link {
  margin-top: auto; padding-top: 14px;
  font-size: 14px; font-weight: 700; color: var(--amd-link);
  display: inline-flex; align-items: center; gap: 6px;
}
.amd-card:hover .amd-card-link [uk-icon] { transform: translateX(3px); }
.amd-card-link [uk-icon] { transition: transform .2s; }

/* Variante B (tarjeta horizontal): añade la clase amd-grid--list a .amd-grid
   y cambia uk-child-width-1-3@l por uk-child-width-1-2@l */
.amd-grid--list .amd-card { flex-direction: row; align-items: center; gap: 18px; padding: 16px; }
.amd-grid--list .amd-card-media { flex: 0 0 104px; height: 120px; aspect-ratio: auto; border-radius: 14px; }
.amd-grid--list .amd-card-body { padding: 0; }
.amd-grid--list .amd-card-link { padding-top: 6px; }

/* ---------- Paginación ---------- */
.amd-pagination-wrap { margin-top: 40px; }
.amd-pagination { gap: 8px; margin-left: 0; flex-wrap: wrap; }
.amd-pagination > * { padding-left: 0; }
.amd-pagination > * > * {
  min-width: 44px; height: 44px; padding: 0 6px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--amd-field-border);
  border-radius: var(--amd-radius-sm);
  background: var(--amd-surface);
  color: var(--amd-text);
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.amd-pagination > * > a:hover { border-color: var(--amd-primary); color: var(--amd-primary); text-decoration: none; }
.amd-pagination > .uk-active > * { background: var(--amd-primary); border-color: var(--amd-primary); color: #FFFFFF; }
.amd-pagination > .uk-disabled > * { border-color: transparent; background: transparent; color: var(--amd-muted); }

/* ---------- Estado vacío ---------- */
.amd-empty {
  text-align: center; padding: 64px 24px;
  background: var(--amd-surface); border: 1px dashed var(--amd-field-border);
  border-radius: var(--amd-radius); color: var(--amd-muted);
}
.amd-empty h3 { margin: 16px 0 6px; color: var(--amd-text); font-size: 20px; }

/* ---------- Responsivo fino ---------- */
@media (max-width: 639px) {
  .amd-searchbar { padding: 10px; margin-bottom: 20px; }
  .amd-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .amd-sort { justify-content: space-between; }
  .amd-dir .amd-sort .uk-select { flex: 1; min-width: 0; }
  .amd-card-body { padding: 16px; }
  .amd-card-name { font-size: 17px; }
  .amd-pagination > .amd-far { display: none; }       /* menos números en pantallas chicas */
  .amd-pagination > * > * { min-width: 40px; height: 40px; }
  .amd-grid--list .amd-card-media { flex-basis: 84px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .amd-card, .amd-card-img, .amd-filters, .amd-filters-backdrop, .amd-card-link [uk-icon] { transition: none !important; }
}

/* ==========================================================================
   Portada A · buscador superpuesto al Slideshow
   En YOOtheme: Section del buscador → clase "amd-hero-overlap"
   ========================================================================== */
.amd-hero-overlap { position: relative; z-index: 2; margin-top: -64px !important; }
.amd-hero-overlap .amd-quick {
  background: var(--amd-surface);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(10,47,56,.16);
  padding: 20px;
}
.amd-quick .amd-searchbar--hero { box-shadow: none; padding: 0; margin-bottom: 14px; }
.amd-quick-chips { align-items: center; }
.amd-quick-chips::before { content: "Más buscadas:"; font-size: 14px; color: var(--amd-muted); margin-right: 4px; }
.amd-quick-chips .amd-chip--outline { background: #DCEAF6; border: 0; color: #2F6497; font-weight: 600; }
.amd-quick-chips .amd-chip--outline .amd-count { background: transparent; color: inherit; padding: 0; min-width: 0; }
.amd-quick-chips .amd-chip--outline .amd-count::before { content: "· "; }

/* Slideshow de portada (elemento Slideshow de YOOtheme con clase "amd-hero-slideshow") */
.amd-hero-slideshow .uk-dotnav > * > * { width: 8px; height: 8px; border: 0; background: rgba(255,255,255,.45); transition: width .3s; }
.amd-hero-slideshow .uk-dotnav > .uk-active > * { width: 32px; border-radius: 999px; background: #FFFFFF; }
.amd-hero-slideshow .uk-slidenav { width: 48px; height: 48px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.amd-hero-slideshow .uk-slidenav-next { background: #FFFFFF; color: #0A2F38; border: 0; }

@media (max-width: 639px) {
  .amd-hero-overlap { margin-top: -40px !important; }
  .amd-hero-overlap .amd-quick { padding: 14px; border-radius: 16px; }
  .amd-quick-chips::before { width: 100%; }
}

/* ---------- Ajustes Propuesta B "Horizonte" ---------- */
.amd-searchbar { background: var(--amd-surface); border: 0; box-shadow: 0 18px 40px rgba(18,38,58,.14); border-radius: 20px; }
.amd-filters { border: 0; border-radius: 0; background: transparent; }
@media (min-width: 960px) { .amd-filters-head, .amd-filters-foot { padding-left: 0; padding-right: 0; } .amd-filters-scroll { padding: 0; } }
.amd-filter-list > li + li .amd-check { border-top: 1px solid var(--amd-border); border-radius: 0; }
.amd-is-checked .amd-check { background: transparent; }
.amd-is-checked .amd-count { background: transparent; color: var(--amd-text); }
.amd-count { background: transparent; color: var(--amd-muted); font-weight: 600; }
.amd-dir .amd-apply { background: var(--amd-primary); color: #FFFFFF; }
.amd-chip { background: var(--amd-primary); color: #FFFFFF; }
.amd-chip:hover { color: #FFFFFF; }
.amd-total strong { font-size: 22px; }
.amd-grid--list .amd-card-name { font-size: 17px; }

/* ==========================================================================
   Plantilla YOOtheme "Médico – Ficha" (Propuesta C)
   ========================================================================== */
.amd-esp-hero { background: #12263A !important; color: #FFFFFF; padding-top: 56px !important; padding-bottom: 56px !important; }
.amd-esp-hero .uk-breadcrumb > * > * { color: #9FB3C6; }
.amd-esp-hero .uk-breadcrumb > :last-child > * { color: #FFFFFF; }
.amd-esp-hero .uk-breadcrumb > :nth-child(n+2):not(.uk-first-column)::before { color: #9FB3C6; }
.amd-esp-hero .amd-eyebrow { color: #0a63bc !important; font-weight: 700; letter-spacing: .12em; }
.amd-esp-hero h1 { color: #FFFFFF !important; font-weight: 700; letter-spacing: -.02em; }
.amd-esp-hero .uk-button-text { color: #0a63bc !important; font-weight: 700; }
.amd-esp-hero .uk-button-text::before { border-color: #0a63bc; }

.amd-ficha-foto img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center 20%; border-radius: 24px; }
.amd-pill-wrap .amd-card-esp { display: inline-block; }
.amd-ficha-nombre { font-weight: 700 !important; letter-spacing: -.02em; color: #12263A; }
.amd-ficha-dato { font-size: 16px; font-weight: 700; color: #12263A; }
.amd-ficha-label { display: block; font-size: 13px; font-weight: 400; color: #5C6F80; }
.amd-ficha-botones .uk-button { border-radius: 999px; border: 2px solid #12263A; background: #FFFFFF; color: #12263A; font-weight: 700; text-transform: none; letter-spacing: 0; box-shadow: none; padding: 0 22px; line-height: 48px; }
.amd-ficha-botones .uk-button:hover { background: #12263A; color: #FFFFFF; }
.amd-ficha-botones a[href^="mailto"] { border-color: #C9D4DE; }

.amd-ficha-perfil h2, .amd-ficha-areas h2 { font-weight: 700; color: #12263A; margin-bottom: 14px; }
.amd-ficha-perfil { font-size: 17px; line-height: 1.75; color: #3A4D5E; }
.amd-areas { padding: 14px 18px; border: 1px solid #E6ECF1; border-radius: 14px; font-weight: 600; color: #12263A; line-height: 1.6; }

.amd-relacionados .uk-card { border-radius: 18px; box-shadow: none; }
.amd-relacionados img { border-radius: 14px; width: 56px; height: 56px; object-fit: cover; }
.amd-relacionados .uk-h5, .amd-relacionados h3 { text-transform: none; letter-spacing: 0; font-weight: 700; }
.amd-relacionados .uk-text-meta { text-transform: none; letter-spacing: 0; }
@media (max-width: 959px) { .amd-esp-hero { padding-top: 36px !important; padding-bottom: 36px !important; } }

/* ==========================================================================
   Portada A (YOOtheme · página Home)
   ========================================================================== */
.amd-home-hero { background: #12263A !important; color: #FFFFFF; }
.amd-home-hero .uk-slideshow-items { min-height: 420px; }
.amd-hero-slideshow .uk-overlay, .amd-hero-slideshow .uk-position-cover { background: transparent !important; }
.amd-hero-slideshow .el-meta { color: #0a63bc !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.amd-hero-slideshow .el-title { color: #FFFFFF !important; font-weight: 700; letter-spacing: -.02em; }
.amd-hero-slideshow .el-content { color: #C8D5E1 !important; }
.amd-hero-slideshow .el-link { background: #0a63bc !important; color: #12263A !important; border: 0 !important; border-radius: 999px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.amd-hero-ilustracion img { max-height: 420px; width: auto; background: #FFFFFF; border-radius: 28px; padding: 24px; box-sizing: border-box; }
.amd-home-hero .uk-section { padding-bottom: 96px; }
.amd-hero-overlap { background: transparent !important; }
.amd-titulo, .amd-titulo * { font-weight: 700 !important; letter-spacing: -.02em; color: #12263A; }
.amd-ubicacion .amd-titulo, .amd-ubicacion .amd-titulo * { color: #FFFFFF; }
.amd-ubicacion { background: #0C1B2A !important; color: #C8D5E1; }
.amd-ubicacion .uk-button-default { background: #FFFFFF; color: #12263A; border: 0; border-radius: 999px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.amd-pilares .uk-card { border-radius: 24px; border: 1px solid #E6ECF1; box-shadow: none; }
.amd-pilares .el-image, .amd-pilares [uk-icon] { color: #0a63bc; }
.amd-pilares .el-title { font-weight: 700; color: #12263A; }
.amd-pilares .el-link { color: #B3471F !important; font-weight: 700; text-transform: none; letter-spacing: 0; }
.amd-blog img { border-radius: 20px; }
.amd-blog .el-title { font-weight: 700; text-transform: none; letter-spacing: 0; }
.amd-eyebrow-dark { color: #B3471F !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Portada · slider de texto (elemento Panel Slider, clase amd-hero-slider) */
.amd-hero-slider .el-meta { color: #0a63bc !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.amd-hero-slider .el-title { color: #FFFFFF !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.05; }
.amd-hero-slider .el-content { color: #C8D5E1 !important; font-size: 18px; }
.amd-hero-slider .el-link { background: #0a63bc !important; color: #12263A !important; border: 0 !important; border-radius: 999px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.amd-hero-slider .el-link:hover { filter: brightness(.94); }
.amd-hero-slider .uk-slidenav { top: auto !important; bottom: 4px; transform: none !important; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; margin: 0 !important; }
.amd-hero-slider .uk-slidenav-previous { left: auto !important; right: 56px !important; }
.amd-hero-slider .uk-slidenav-next { right: 0 !important; left: auto !important; background: #FFFFFF; color: #12263A !important; border: 0; }
.amd-hero-slider .uk-dotnav > * > * { width: 8px; height: 8px; border: 0; background: rgba(255,255,255,.45); transition: width .3s; }
.amd-hero-slider .uk-dotnav > .uk-active > * { width: 32px; border-radius: 999px; background: #FFFFFF; }
.amd-home-hero { padding-bottom: 120px !important; }

.amd-hero-slider .uk-position-center-left, .amd-hero-slider .uk-position-center-right { top: auto !important; bottom: 0 !important; transform: none !important; margin: 0 !important; }
.amd-hero-slider .uk-position-center-left { left: auto !important; right: 56px !important; }
.amd-hero-slider .uk-position-center-right { right: 0 !important; }
.amd-hero-slider .uk-slidenav { position: static !important; }
.amd-hero-slider .uk-slidenav-previous { color: #FFFFFF !important; }

.amd-ubicacion p, .amd-ubicacion .uk-text-lead { color: #C8D5E1 !important; }
.amd-pilares .el-image, .amd-pilares [uk-icon] svg { width: 40px; height: 40px; }
.amd-pilares [uk-icon] { color: #0a63bc !important; }

/* Slider con imagen por diapositiva */
.amd-hero-slider .el-image { width: 100%; max-width: 440px; max-height: 440px; object-fit: contain; background: #FFFFFF; border-radius: 28px; padding: 20px; box-sizing: border-box; }
.amd-hero-slider .uk-position-center-left, .amd-hero-slider .uk-position-center-right { bottom: -62px !important; }
@media (max-width: 959px) { .amd-hero-slider .el-image { max-width: 320px; margin-top: 24px; } }

/* Ficha · foto con tamaño y proporción fijos (todas iguales) */
.amd-ficha-foto { max-width: 300px; }
.amd-ficha-foto img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5 !important; object-fit: cover; object-position: center 20%; border-radius: 24px; display: block; }
@media (max-width: 959px) { .amd-ficha-foto { max-width: 220px; } }
.amd-relacionados img { width: 64px !important; height: 80px !important; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.amd-grid--list .amd-card-media { flex: 0 0 96px; width: 96px; height: 120px; aspect-ratio: 4 / 5; }

.amd-esp-hero h1 { font-size: clamp(34px, 5.5vw, 72px) !important; line-height: 1.05; }

/* Silueta "Sin foto": apoyada abajo, sin recorte */
img[src*="sin-foto"] { object-position: center bottom !important; }

/* ==========================================================================
   v1.3 · Ficha del médico = Propuesta C (exacta) · [alcantara_ficha]
   ========================================================================== */
.single-medicos { overflow-x: clip; }
.amd-fb { width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.amd-fc { font-family: Inter, system-ui, sans-serif; color: #12263A; }
.amd-fc a { color: #12263A; text-decoration: none; }
.amd-fc a:hover { color: #B3471F; }
.amd-fc h1, .amd-fc h2, .amd-fc h3 { font-family: Sora, sans-serif; color: #12263A; text-transform: none; }
.amd-fc-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* Encabezado azul */
.amd-fc-hero { background: #12263A; color: #FFFFFF; }
.amd-fc-hero .amd-fc-wrap { padding-top: 56px; padding-bottom: 56px; }
.amd-fc-bc { margin: 0 0 18px; font-size: 13px; color: #9FB3C6; }
.amd-fc .amd-fc-bc a { color: #9FB3C6; }
.amd-fc .amd-fc-bc a:hover { color: #FFFFFF; }
.amd-fc-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a63bc; }
.amd-fc .amd-fc-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; font-weight: 700; color: #FFFFFF; }
.amd-fc-sub { margin: 14px 0 0; font-size: 17px; color: #C8D5E1; }
.amd-fc .amd-fc-sub a { color: #0a63bc; font-weight: 600; }
.amd-fc .amd-fc-sub a:hover { color: #FFFFFF; }

/* Ficha */
.amd-fc-main { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.amd-fc-ficha { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.amd-fc-foto { flex: 0 0 260px; width: 260px; aspect-ratio: 380 / 460; border-radius: 24px; overflow: hidden; background: #A9BCD3; }
.amd-fc-foto img, .amd-fc-doc-foto img, .amd-card-media .amd-card-img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 20%; display: block; max-width: none; }
.amd-silueta { background: #A9BCD3; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.amd-silueta svg { width: 84%; height: auto; display: block; }
.amd-fc-info { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.amd-fc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.amd-fc .amd-fc-pill { padding: 5px 14px; border-radius: 999px; background: #DCEAF6; color: #2F6497; font-size: 14px; font-weight: 500; line-height: 1.4; }
.amd-fc .amd-fc-pill:hover { background: #C9DDF0; color: #2F6497; }
.amd-fc .amd-fc-nombre { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
.amd-fc-frase { margin: 0; font-size: 17px; line-height: 1.6; color: #3A4D5E; }
.amd-fc-datos { margin: 0; padding: 18px 0; border-top: 1px solid #E6ECF1; border-bottom: 1px solid #E6ECF1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; font-size: 15px; }
.amd-fc-datos dt { font-size: 13px; color: #5C6F80; font-weight: 400; text-transform: none; letter-spacing: 0; }
.amd-fc-datos dd { margin: 2px 0 0; font-weight: 700; }
.amd-fc-datos dd.amd-fc-mods { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.amd-fc-mod { padding: 5px 12px; border-radius: 999px; background: #EEE9F7; color: #4B3A78; font-size: 13px; font-weight: 700; }
.amd-fc-mod--tele { background: #E4F3F0; color: #1D5E53; }
.amd-fc-agendar { display: flex; flex-direction: column; gap: 10px; }
.amd-fc .amd-fc-agendar h3 { margin: 0; font-size: 20px; font-weight: 600; }
.amd-fc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.amd-fc .amd-fc-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid #12263A; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1; box-sizing: border-box; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amd-fc .amd-fc-btn:hover { background: #12263A; color: #FFFFFF; }
.amd-fc .amd-fc-btn--mail { border-color: #C9D4DE; font-size: 15px; }
.amd-fc .amd-fc-btn--mail:hover { background: #F3F6F9; color: #12263A; border-color: #12263A; }
.amd-fc-btn svg { width: 16px; height: 16px; flex: none; }

/* Perfil + Áreas */
.amd-fc-cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.amd-fc-perfil { flex: 2 1 520px; min-width: 0; }
.amd-fc-areas { flex: 1 1 320px; min-width: 0; }
.amd-fc .amd-fc-cols h2 { margin: 0 0 14px; font-size: 24px; font-weight: 600; }
.amd-fc-texto { font-size: 17px; line-height: 1.75; color: #3A4D5E; }
.amd-fc-texto > * { margin: 0 0 14px; }
.amd-fc-texto > :last-child { margin-bottom: 0; }
.amd-fc-areas ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.amd-fc-areas li { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid #E6ECF1; border-radius: 14px; font-weight: 600; line-height: 1.35; }
.amd-fc-areas li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #0a63bc; flex: none; }

/* Otros profesionales */
.amd-fc-otros { background: #F3F6F9; }
.amd-fc-otros .amd-fc-wrap { padding-top: 48px; padding-bottom: 48px; }
.amd-fc-otros-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.amd-fc .amd-fc-otros h2 { margin: 0; font-size: 26px; font-weight: 600; }
.amd-fc .amd-fc-otros-head a { font-weight: 700; color: #B3471F; }
.amd-fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.amd-fc .amd-fc-doc { display: flex; gap: 14px; align-items: center; padding: 14px; background: #FFFFFF; border-radius: 18px; transition: box-shadow .2s, transform .2s; }
.amd-fc .amd-fc-doc:hover { box-shadow: 0 10px 24px rgba(18,38,58,.10); transform: translateY(-2px); color: #12263A; }
.amd-fc-doc-foto { flex: 0 0 72px; width: 72px; height: 90px; border-radius: 14px; overflow: hidden; }
.amd-fc-doc-txt { display: flex; flex-direction: column; min-width: 0; }
.amd-fc-doc-txt strong { font-family: Sora, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; }
.amd-fc-doc-txt span { font-size: 13px; color: #5C6F80; }

@media (max-width: 959px) {
  .amd-fc-wrap { padding: 0 20px; }
  .amd-fc-hero .amd-fc-wrap { padding-top: 36px; padding-bottom: 36px; }
  .amd-fc-main { padding-top: 28px; gap: 32px; }
  .amd-fc-ficha { gap: 24px; }
  .amd-fc-foto { flex-basis: 200px; width: 200px; }
  .amd-fc-cols { gap: 32px; }
}

/* Directorio: silueta en tarjetas sin foto */
.amd-card-media .amd-silueta { width: 100%; height: 100%; }

/* Directorio: menú de especialidades más compacto */
@media (min-width: 960px) {
  .amd-layout.uk-grid-large { margin-left: -40px; }
  .amd-layout.uk-grid-large > * { padding-left: 40px; }
  .amd-check { min-height: 34px; padding: 4px 6px; gap: 10px; font-size: 13px; }
  .amd-dir .uk-checkbox { width: 16px; height: 16px; }
  .amd-count { font-size: 11px; min-width: 22px; padding: 2px 4px; }
  .amd-filters-title { font-size: 15px; }
  .amd-clear { font-size: 12px; }
  .amd-dir .amd-filter-find { height: 34px; font-size: 13px; }
  .amd-filters-head { padding-top: 4px; }
}

/* Encabezado azul en páginas de directorio (Directorio / Telemedicina / Clínicas dentales) */
.amd-dir-hero { background: #12263A !important; }
.amd-dir-hero .uk-breadcrumb > * > * { color: #9FB3C6 !important; font-size: 13px; }
.amd-dir-hero .uk-breadcrumb > :last-child > * { color: #C8D5E1 !important; }
.amd-dir-hero .amd-eyebrow { color: #0a63bc !important; }
.amd-dir-hero h1, .amd-dir-hero .uk-heading-medium, .amd-dir-hero .uk-h1 { color: #FFFFFF !important; font-family: Sora, sans-serif; font-weight: 700 !important; letter-spacing: -.03em; line-height: 1 !important; font-size: clamp(36px, 5vw, 64px) !important; text-transform: none !important; }
.amd-dir-hero .uk-text-lead, .amd-dir-hero p { color: #C8D5E1 !important; }

/* v1.3.1 · ajustes de espaciado y antetítulo */
.amd-fc-section { padding-top: 0 !important; padding-bottom: 0 !important; }
.amd-fc-section .uk-grid-margin, .amd-fc-section .uk-margin-remove-vertical { margin-top: 0 !important; }
.amd-dir-hero { padding-top: 44px !important; padding-bottom: 48px !important; }
.amd-dir-section { padding-top: 36px !important; }
.amd-dir-hero .amd-eyebrow, .amd-dir-hero .amd-eyebrow p { color: #0a63bc !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.amd-dir-hero .uk-breadcrumb { margin-bottom: 18px; }
.amd-dir-hero .uk-breadcrumb > * > * { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   v1.4 · Te informamos (noticias) — portada + artículo
   ========================================================================== */
.blog, .single-post { overflow-x: clip; }
.amd-nt-tag { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.amd-tono-azul { background: #DCEAF6; color: #2F6497 !important; }
.amd-tono-lila { background: #EEE9F7; color: #4B3A78 !important; }
.amd-tono-menta { background: #E4F3F0; color: #1D5E53 !important; }
.amd-tono-coral { background: #FCE6DB; color: #A2401C !important; }
.amd-tono-arena { background: #F6EEDC; color: #7A5A12 !important; }
.amd-nt-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: #5C6F80; }
.amd-nt-meta span + span::before { content: "·"; margin: 0 8px; color: #A9BCD3; }
.amd-fc .amd-nt-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: #12263A; color: #FFFFFF; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.amd-fc .amd-nt-btn:hover { background: #0a63bc; color: #12263A; }
.amd-fc .amd-nt-btn--light { background: #0a63bc; color: #12263A; }
.amd-fc .amd-nt-btn--light:hover { background: #FFFFFF; }
.amd-fc .amd-nt-btn--block { display: flex; justify-content: center; width: 100%; margin-top: 14px; box-sizing: border-box; }
.amd-nt-noimg { display: block; width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, #DCEAF6, #A9BCD3); }

/* Portada · encabezado */
.amd-nt-hero { background: #12263A; color: #FFFFFF; }
.amd-nt-hero .amd-fc-wrap { padding-top: 52px; padding-bottom: 132px; }
.amd-nt-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.amd-fc .amd-nt-hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; color: #FFFFFF; max-width: 14ch; }
.amd-nt-temas-label { margin: 0 0 10px; font-size: 13px; color: #9FB3C6; }
.amd-nt-temas ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.amd-fc .amd-nt-temas a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #FFFFFF; font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.amd-fc .amd-nt-temas a:hover { border-color: #FFFFFF; color: #FFFFFF; }
.amd-fc .amd-nt-temas a.is-active { background: #0a63bc; border-color: #0a63bc; color: #12263A; font-weight: 700; }

/* Portada · destacado que sube sobre el azul */
.amd-nt-main { padding-bottom: 72px; }
.amd-nt-dest { position: relative; margin-top: -92px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #FFFFFF; border-radius: 28px; box-shadow: 0 24px 60px rgba(18,38,58,.16); overflow: hidden; }
.amd-nt-dest-media { display: block; min-height: 380px; }
.amd-nt-dest-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amd-nt-dest-body { padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.amd-nt-dest-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #B3471F; display: flex; align-items: center; gap: 8px; }
.amd-nt-dot { width: 8px; height: 8px; border-radius: 999px; background: #0a63bc; box-shadow: 0 0 0 4px rgba(10,99,188,.22); }
.amd-fc .amd-nt-dest h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.amd-nt-dest-text { margin: 0; font-size: 17px; line-height: 1.6; color: #3A4D5E; }
.amd-nt-dest .amd-nt-btn { align-self: flex-start; margin-top: 6px; }

/* Portada · grilla tipo "bento" */
.amd-nt-head { display: flex; align-items: baseline; justify-content: space-between; margin: 64px 0 22px; padding-bottom: 14px; border-bottom: 2px solid #12263A; }
.amd-fc .amd-nt-head h2 { margin: 0; font-size: 26px; font-weight: 600; }
.amd-nt-head span { font-size: 14px; color: #5C6F80; }
.amd-nt-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; grid-auto-flow: dense; }
.amd-nt-card { position: relative; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E6ECF1; border-radius: 22px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.amd-nt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,38,58,.12); }
.amd-nt-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #DCEAF6; }
.amd-nt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.amd-nt-card:hover .amd-nt-card-media img { transform: scale(1.05); }
.amd-nt-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.amd-fc .amd-nt-card-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.amd-nt-card-title a::after { content: ""; position: absolute; inset: 0; }
.amd-nt-card-text { margin: 0; font-size: 15px; line-height: 1.55; color: #3A4D5E; }
.amd-nt-card .amd-nt-meta { margin-top: auto; padding-top: 4px; }
/* Tarjeta alta: foto completa y texto sobre degradado */
.amd-nt-card--alta { grid-row: span 2; border: 0; min-height: 520px; background: #12263A; }
.amd-nt-card--alta .amd-nt-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.amd-nt-card--alta .amd-nt-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,38,58,0) 30%, rgba(18,38,58,.92) 78%); }
.amd-nt-card--alta .amd-nt-card-body { position: relative; margin-top: auto; flex: none; padding: 28px; }
.amd-fc .amd-nt-card--alta .amd-nt-card-title { font-size: 26px; line-height: 1.15; }
.amd-fc .amd-nt-card--alta .amd-nt-card-title a { color: #FFFFFF; }
.amd-nt-card--alta .amd-nt-card-text { color: #DCE5EE; }
.amd-nt-card--alta .amd-nt-meta { color: #C8D5E1; }
.amd-nt-vacio { padding: 48px 0; font-size: 17px; }
.amd-nt-pag { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.amd-fc .amd-nt-pag a { width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #E6ECF1; font-weight: 700; }
.amd-fc .amd-nt-pag a.is-active { background: #12263A; color: #FFFFFF; border-color: #12263A; }

/* Banda final */
.amd-nt-cta { background: #0C1B2A; color: #FFFFFF; }
.amd-nt-cta-in { padding-top: 48px; padding-bottom: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.amd-fc .amd-nt-cta h2 { margin: 0; color: #FFFFFF; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }

/* Artículo */
.amd-art-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1000; pointer-events: none; }
.amd-art-progress span { display: block; height: 100%; background: #0a63bc; transform: scaleX(0); transform-origin: 0 50%; }
.amd-art-hero { background: #12263A; color: #FFFFFF; }
.amd-art-hero .amd-fc-wrap { padding-top: 48px; padding-bottom: 150px; }
.amd-fc .amd-nt-tag--hero { background: rgba(10,99,188,.16); color: #9CC8F7 !important; margin-bottom: 16px; }
.amd-fc .amd-nt-tag--hero:hover { background: #0a63bc; color: #12263A !important; }
.amd-fc .amd-art-hero h1 { margin: 0; max-width: 22ch; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; color: #FFFFFF; }
.amd-nt-meta--hero { margin-top: 20px; font-size: 15px; color: #C8D5E1; }
.amd-nt-meta--hero span + span::before { color: #5C7A96; }
.amd-art-cover { max-width: 1256px; margin: -110px auto 0; padding: 0 32px; box-sizing: content-box; position: relative; }
.amd-art-cover img { width: 100%; height: auto; max-height: 560px; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; display: block; box-shadow: 0 24px 60px rgba(18,38,58,.18); }
.amd-art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.amd-art-body { max-width: 720px; font-size: 18px; line-height: 1.8; color: #2B3E50; }
.amd-art-body > p:first-child { font-size: 22px; line-height: 1.6; color: #12263A; font-weight: 500; }
.amd-art-body > p:first-child::first-letter { float: left; font-family: Sora, sans-serif; font-size: 72px; line-height: .9; font-weight: 700; color: #0a63bc; margin: 6px 12px 0 0; }
.amd-art-body p { margin: 0 0 22px; }
.amd-fc .amd-art-body h2 { margin: 48px 0 16px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; scroll-margin-top: 100px; }
.amd-fc .amd-art-body h3 { margin: 36px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 600; scroll-margin-top: 100px; }
.amd-fc .amd-art-body a { color: #B3471F; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.amd-art-body ul, .amd-art-body ol { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: amd; }
.amd-art-body li { position: relative; padding-left: 34px; margin: 0 0 10px; }
.amd-art-body ul > li::before { content: ""; position: absolute; left: 8px; top: .72em; width: 8px; height: 8px; border-radius: 999px; background: #0a63bc; }
.amd-art-body ol > li { counter-increment: amd; }
.amd-art-body ol > li::before { content: counter(amd); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 999px; background: #12263A; color: #FFFFFF; font: 700 13px/24px Inter, sans-serif; text-align: center; }
.amd-art-body figure { margin: 32px 0; }
.amd-art-body img { border-radius: 18px; display: block; max-width: 100%; height: auto; }
.amd-art-body .amd-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.amd-art-body .amd-galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.amd-art-body .amd-figura img { width: 100%; max-height: 520px; object-fit: cover; }
.amd-art-body video { width: 100%; border-radius: 18px; background: #0C1B2A; display: block; }
.amd-art-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid #0a63bc; font-family: Sora, sans-serif; font-size: 22px; line-height: 1.45; color: #12263A; }
.amd-art-body .amd-firma { margin-top: 40px; padding-top: 18px; border-top: 1px solid #E6ECF1; font-size: 14px; color: #5C6F80; font-weight: 600; }
.amd-art-share { margin-top: 44px; padding: 18px 20px; border-radius: 18px; background: #F3F6F9; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.amd-art-share span { font-weight: 700; margin-right: 6px; }
.amd-fc .amd-art-share a, .amd-art-share button { padding: 7px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid #DCE3EA; color: #12263A; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.amd-fc .amd-art-share a:hover, .amd-art-share button:hover { border-color: #12263A; color: #12263A; }
.amd-art-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.amd-art-aside-t { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5C6F80; }
.amd-art-toc { padding: 0 0 4px 18px; border-left: 2px solid #E6ECF1; }
.amd-art-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.amd-art-toc .lvl-3 { padding-left: 12px; font-size: 13px; }
.amd-fc .amd-art-toc a { color: #3A4D5E; }
.amd-fc .amd-art-toc a:hover { color: #B3471F; }
.amd-art-esp { padding: 22px; border-radius: 22px; background: #12263A; color: #FFFFFF; }
.amd-art-esp .amd-art-aside-t { color: #0a63bc; }
.amd-art-esp-h { margin: 0 0 14px; font-family: Sora, sans-serif; font-size: 21px; font-weight: 700; line-height: 1.2; }
.amd-art-esp-h span { display: block; margin-top: 4px; font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; color: #9FB3C6; }
.amd-fc .amd-art-doc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); color: #FFFFFF; }
.amd-fc .amd-art-doc:hover { color: #9CC8F7; }
.amd-art-doc-foto { flex: 0 0 44px; width: 44px; height: 54px; border-radius: 10px; overflow: hidden; }
.amd-art-doc-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.amd-art-doc strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.amd-art-doc em { font-style: normal; font-size: 12px; color: #9FB3C6; }
.amd-fc .amd-art-esp .amd-nt-btn { background: #0a63bc; color: #12263A; }
.amd-fc .amd-art-esp .amd-nt-btn:hover { background: #FFFFFF; }
.amd-nt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 959px) {
  .amd-nt-hero .amd-fc-wrap { padding-bottom: 112px; }
  .amd-nt-hero-grid, .amd-nt-dest { grid-template-columns: 1fr; gap: 24px; }
  .amd-nt-dest { margin-top: -80px; }
  .amd-nt-dest-media { min-height: 0; aspect-ratio: 16 / 10; }
  .amd-nt-dest-body { padding: 24px; }
  .amd-nt-bento, .amd-nt-grid3 { grid-template-columns: 1fr 1fr; }
  .amd-art-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .amd-art-aside { position: static; }
  .amd-art-toc { display: none; }
  .amd-art-hero .amd-fc-wrap { padding-bottom: 110px; }
  .amd-art-cover { margin-top: -80px; padding: 0 20px; }
}
@media (max-width: 639px) {
  .amd-nt-bento, .amd-nt-grid3 { grid-template-columns: 1fr; }
  .amd-nt-card--alta { grid-row: auto; min-height: 440px; }
  .amd-art-body { font-size: 17px; }
  .amd-art-body > p:first-child { font-size: 19px; }
  .amd-art-cover img { border-radius: 18px; aspect-ratio: 4 / 3; }
}

/* Tarjeta ancha (cierra la grilla) */
.amd-nt-card--ancha { grid-column: 1 / -1; flex-direction: row; }
.amd-nt-card--ancha.ancha2 { grid-column: span 2; }
.amd-nt-card--ancha .amd-nt-card-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
.amd-nt-card--ancha .amd-nt-card-body { padding: 32px 36px; justify-content: center; }
.amd-fc .amd-nt-card--ancha .amd-nt-card-title { font-size: 24px; }
.amd-nt-card--ancha .amd-nt-card .amd-nt-meta, .amd-nt-card--ancha .amd-nt-meta { margin-top: 6px; }
@media (max-width: 959px) { .amd-nt-card--ancha, .amd-nt-card--ancha.ancha2 { grid-column: 1 / -1; } }
@media (max-width: 639px) { .amd-nt-card--ancha { flex-direction: column; } .amd-nt-card--ancha .amd-nt-card-media { aspect-ratio: 16 / 10; min-height: 0; } .amd-nt-card--ancha .amd-nt-card-body { padding: 20px 22px 22px; } }

.amd-art-body strong, .amd-art-body b { font-weight: 700; color: #12263A; }

.amd-nt-card--ancha .amd-nt-card-media { position: relative; }
.amd-nt-card--ancha .amd-nt-card-media img { position: absolute; inset: 0; }
@media (max-width: 639px) { .amd-nt-card--ancha .amd-nt-card-media img { position: static; } }

/* v1.4.1 · Filtros compactos en negrita + nombres de médico proporcionales */
@media (min-width: 960px) {
  .amd-dir .amd-check { min-height: 24px; padding: 3px 6px; font-weight: 700; }
  .amd-dir .amd-check-label { font-weight: 700; }
}
.amd-dir .amd-card-name, .amd-grid--list .amd-card-name { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.3; letter-spacing: -.005em; }

/* v1.4.2 · nombres de médico más pequeños (directorio y ficha) */
.amd-dir h3.amd-card-name, .amd-dir .amd-grid--list h3.amd-card-name { font-size: clamp(13px, .95vw, 14px) !important; line-height: 1.3 !important; }
.amd-fc .amd-fc-info h2.amd-fc-nombre { font-size: clamp(24px, 2.4vw, 32px) !important; }
.amd-fc .amd-fc-doc-txt strong { font-size: 14px; }

/* v1.4.3 · Sin subrayado en ningún enlace del sitio */
a, a:hover, a:focus, a:active, .uk-link, .uk-link:hover, .uk-link-text:hover, .uk-link-heading:hover, .uk-link-reset:hover,
.amd-fc .amd-art-body a, .amd-fc .amd-art-body a:hover { text-decoration: none !important; }
.uk-button-text::before { display: none !important; }
.amd-fc .amd-art-body a { font-weight: 600; }
.amd-fc .amd-art-body a:hover { color: #12263A; }
.uk-navbar-nav > li > a::before, .uk-subnav > * > a::before, .uk-nav > li > a::before { display: none !important; }

/* v1.4.4 · Fotografías de médicos con border-radius 12px */
.amd-fc-foto, .amd-fc-foto img, .amd-fc-doc-foto, .amd-fc-doc-foto img, .amd-card-media, .amd-grid--list .amd-card-media, .amd-card-media img, .amd-card-media .amd-silueta, .amd-art-doc-foto, .amd-art-doc-foto img, .amd-ficha-foto img, .amd-relacionados img { border-radius: 12px !important; }

/* v1.4.5 · Título de especialidad (encabezado de la ficha) más pequeño */
.amd-fc .amd-fc-hero h1 { font-size: clamp(28px, 3vw, 42px) !important; letter-spacing: -.02em; }
.amd-fc-hero .amd-fc-wrap { padding-top: 44px; padding-bottom: 44px; }
.amd-fc-sub { font-size: 16px; margin-top: 10px; }

/* v1.4.6 · Todos los títulos de página con el mismo tamaño que el de especialidad */
.amd-dir-hero h1, .amd-dir-hero .uk-heading-medium, .amd-dir-hero .uk-h1,
.amd-fc .amd-nt-hero h1, .amd-fc .amd-art-hero h1, .amd-esp-hero h1 { font-size: clamp(28px, 3vw, 42px) !important; line-height: 1.05 !important; letter-spacing: -.02em !important; }
.amd-fc .amd-nt-hero h1 { max-width: 22ch; }
.amd-fc .amd-art-hero h1 { max-width: 30ch; }
.amd-dir-hero { padding-top: 40px !important; padding-bottom: 44px !important; }

/* v1.4.7 · Botón de teléfono: fondo #0b63bc, roll-over #62abf5, texto blanco */
.amd-fc a.amd-fc-btn:not(.amd-fc-btn--mail) { background: #0b63bc; border-color: #0b63bc; color: #FFFFFF; transition: background-color .2s, border-color .2s; }
.amd-fc a.amd-fc-btn:not(.amd-fc-btn--mail):hover, .amd-fc a.amd-fc-btn:not(.amd-fc-btn--mail):focus-visible { background: #62abf5; border-color: #62abf5; color: #FFFFFF; }

/* v1.4.8 · Menú: línea azul corporativo bajo la palabra al pasar el mouse */
.uk-navbar-nav > li > a { position: relative; }
.uk-navbar-nav > li > a::after { content: ""; position: absolute; left: 15px; right: 15px; top: calc(50% + 11px); height: 2px; border-radius: 2px; background: #12263A; transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; pointer-events: none; }
.uk-navbar-nav > li > a:hover::after, .uk-navbar-nav > li > a:focus-visible::after, .uk-navbar-nav > li.uk-open > a::after { transform: scaleX(1); }

/* v1.5 · Footer Alcántara (YOOtheme › Footer, sección clase amd-footer) */
.amd-footer { background: #0C1B2A !important; color: #C8D5E1; font-family: Inter, system-ui, sans-serif; padding-bottom: 0 !important; }
.amd-footer a { color: #C8D5E1; transition: color .2s; }
.amd-footer a:hover { color: #0a63bc; }
.amd-ft-logo img { width: 220px; height: auto; display: block; }
.amd-ft-lead { margin: 20px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: #9FB3C6; }
.amd-ft-label { margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0a63bc; }
.amd-ft-social { display: flex; gap: 10px; }
.amd-footer .amd-ft-social a { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; }
.amd-footer .amd-ft-social a:hover { background: #0a63bc; border-color: #0a63bc; color: #0C1B2A; }
.amd-footer .amd-ft-h { margin: 0 0 18px; font-family: Sora, sans-serif; font-size: 16px; font-weight: 600; color: #FFFFFF; text-transform: none; letter-spacing: 0; }
.amd-ft-horario { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.amd-ft-horario li { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; margin: 0; }
.amd-ft-horario span { color: #9FB3C6; font-size: 13px; }
.amd-ft-horario strong { color: #FFFFFF; font-weight: 600; font-variant-numeric: tabular-nums; }
.amd-ft-horario li.is-hoy { background: rgba(255,255,255,.07); }
.amd-ft-horario li.is-hoy span::after { content: " · hoy"; color: #0a63bc; font-weight: 600; }
.amd-ft-estado { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.amd-ft-estado::before { content: ""; width: 8px; height: 8px; border-radius: 999px; }
.amd-ft-estado.is-abierto { color: #7ED9B6; }
.amd-ft-estado.is-abierto::before { background: #7ED9B6; box-shadow: 0 0 0 4px rgba(126,217,182,.18); }
.amd-ft-estado.is-cerrado { color: #9CC8F7; }
.amd-ft-estado.is-cerrado::before { background: #0a63bc; }
.amd-ft-dir { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #FFFFFF; }
.amd-footer .amd-ft-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #0a63bc; color: #0C1B2A; font-size: 14px; font-weight: 700; }
.amd-footer .amd-ft-btn:hover { background: #FFFFFF; color: #0C1B2A; }
.amd-ft-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.amd-ft-links li { margin: 0; }
.amd-ft-bottom { margin-top: 56px !important; }
.amd-ft-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9FB3C6; }
.amd-ft-bar p { margin: 0; }
.amd-ft-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.amd-footer .amd-ft-bar a { color: #9FB3C6; }
.amd-footer .amd-ft-bar a:hover { color: #FFFFFF; }
@media (max-width: 639px) { .amd-ft-bar { flex-direction: column; align-items: flex-start; } }
.amd-footer { padding-top: 64px !important; }
.amd-ft-logo { display: inline-block; margin-top: -6px; }
@media (max-width: 959px) { .amd-footer { padding-top: 48px !important; } }

/* v1.5.1 · Banner de profesionales en portada (YOOtheme Grid, clase amd-banner-grid) */
.amd-banner-grid .el-item, .amd-banner-grid .uk-inline-clip { border-radius: 12px; overflow: hidden; }
.amd-banner-grid .el-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .5s ease; }
.amd-banner-grid a.el-item, .amd-banner-grid .el-item > a { display: block; transition: box-shadow .25s, transform .25s; }
.amd-banner-grid a.el-item:hover, .amd-banner-grid .el-item > a:hover { box-shadow: 0 14px 32px rgba(18,38,58,.18); transform: translateY(-3px); }
.amd-banner-grid a:hover .el-image { transform: scale(1.04); }

/* v1.5.2 · Menú principal con tipografía más grande */
.uk-navbar-nav > li > a { font-size: 14px !important; }
.uk-navbar-nav > li > a::after { top: calc(50% + 12px); }

/* v1.5.3 · Paginación: número activo visible; roll-over azul del logo (#0a63bc) con número blanco */
.amd-dir .amd-pagination > li.uk-active > span { background: #0a63bc !important; border-color: #0a63bc !important; color: #FFFFFF !important; font-weight: 700; }
.amd-dir .amd-pagination > li > a { transition: background-color .15s, border-color .15s, color .15s; }
.amd-dir .amd-pagination > li > a:hover, .amd-dir .amd-pagination > li > a:focus-visible { background: #0a63bc !important; border-color: #0a63bc !important; color: #FFFFFF !important; }

/* v1.5.4 · Viñetas alineadas arriba (primera línea), no al centro */
.amd-fc-areas li { align-items: flex-start !important; }
.amd-fc-areas li::before { margin-top: .5em; }

/* v1.5.5 · Te informamos: todas las noticias en cuadrícula (sin destacado) */
.amd-nt-hero .amd-fc-wrap { padding-bottom: 48px !important; }
.amd-nt-head { margin-top: 48px; }
.amd-nt-meta:empty { display: none !important; }

/* v1.5.6 · Te informamos: 4 noticias por fila */
@media (min-width: 1200px) { .amd-nt-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .amd-fc .amd-nt-bento .amd-nt-card-title { font-size: 17px; } .amd-nt-bento .amd-nt-card-body { padding: 18px 18px 20px; } }
@media (min-width: 960px) and (max-width: 1199px) { .amd-nt-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v1.5.7 · Te informamos: título con línea continua azul del logo (#0a63bc) al medio */
.amd-nt-head { display: flex !important; align-items: center !important; gap: 20px; margin: 48px 0 24px !important; padding: 0 !important; border: 0 !important; }
.amd-nt-head > span { display: none; }
.amd-nt-head { justify-content: flex-start !important; }
.amd-fc .amd-nt-head h2 { margin: 0; flex: none; font-size: 26px; font-weight: 700; color: #12263A; }
.amd-nt-head::after { content: ""; flex: none; width: 64px; height: 2px; background: #0a63bc; }

/* v1.5.8 · Artículo: la foto va debajo del encabezado azul (sin superponerse) */
.amd-art-hero .amd-fc-wrap { padding-bottom: 48px !important; }
.amd-art-cover { margin-top: 40px !important; }
@media (max-width: 959px) { .amd-art-hero .amd-fc-wrap { padding-bottom: 36px !important; } .amd-art-cover { margin-top: 24px !important; } }

/* v1.5.9 · Artículo: foto del ancho del texto; "En este artículo" a la altura de la foto */
.amd-art-layout { padding-top: 40px !important; }
.amd-art-body > .amd-art-cover { max-width: none; margin: 0 0 32px !important; padding: 0; box-sizing: border-box; }
.amd-art-body > .amd-art-cover img { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: none; }
.amd-art-body > .amd-art-cover + p { font-size: 22px; line-height: 1.6; color: #12263A; font-weight: 500; }
.amd-art-body > .amd-art-cover + p::first-letter { float: left; font-family: Sora, sans-serif; font-size: 72px; line-height: .9; font-weight: 700; color: #0a63bc; margin: 6px 12px 0 0; }
@media (max-width: 959px) { .amd-art-layout { padding-top: 24px !important; } .amd-art-body > .amd-art-cover { margin-bottom: 24px !important; } }
@media (max-width: 639px) { .amd-art-body > .amd-art-cover + p { font-size: 19px; } }

/* v1.5.10 · Artículo: columna de texto más ancha */
.amd-art-body { max-width: 820px; }
.amd-art-layout { gap: 56px; }

/* v1.5.11 · Artículo: sin letra capitular; primer párrafo igual al resto */
.amd-art-body > p:first-child, .amd-art-body > .amd-art-cover + p { font-size: inherit !important; line-height: inherit !important; color: inherit !important; font-weight: inherit !important; }
.amd-art-body > p:first-child::first-letter, .amd-art-body > .amd-art-cover + p::first-letter { float: none !important; font: inherit !important; color: inherit !important; margin: 0 !important; }

/* v1.6 · Botón volver arriba */
.amd-totop { position: fixed; right: 24px; bottom: 24px; z-index: 990; width: 52px; height: 52px; border-radius: 999px; background: #0a63bc; color: #FFFFFF !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(18,38,58,.25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.amd-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.amd-totop:hover, .amd-totop:focus-visible { background: #12263A; color: #FFFFFF !important; }
.amd-totop:focus-visible { outline: 3px solid #62abf5; outline-offset: 3px; }
@media (max-width: 639px) { .amd-totop { right: 16px; bottom: 16px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .amd-totop { transition: none; } }

/* v1.6.1 · Acento coral → azul del logo (#0a63bc). Ajustes de contraste */
/* Sobre fondo azul oscuro el #0a63bc se pierde: se usa el celeste #62abf5 */
.amd-fc-hero .amd-fc-eyebrow, .amd-nt-hero .amd-fc-eyebrow, .amd-art-hero .amd-fc-eyebrow, .amd-dir-hero .amd-eyebrow, .amd-dir-hero .amd-eyebrow p,
.amd-nt-cta .amd-fc-eyebrow, .amd-ft-label, .amd-art-esp .amd-art-aside-t, .amd-hero-slider .el-meta, .amd-esp-hero .amd-eyebrow,
.amd-ft-horario li.is-hoy span::after { color: #62abf5 !important; }
.amd-fc .amd-fc-sub a, .amd-fc .amd-nt-tag--hero { color: #62abf5 !important; }
.amd-fc .amd-nt-tag--hero { background: rgba(98,171,245,.16) !important; }
.amd-ft-estado.is-cerrado { color: #9CC8F7; }
/* Botones con fondo azul: texto blanco */
.amd-footer .amd-ft-btn, .amd-fc .amd-nt-btn--light, .amd-fc .amd-art-esp .amd-nt-btn, .amd-hero-slider .el-link, .amd-fc .amd-nt-temas a.is-active, .amd-fc .amd-nt-tag--hero:hover { color: #FFFFFF !important; }
.amd-footer .amd-ft-btn:hover, .amd-fc .amd-nt-btn--light:hover, .amd-fc .amd-art-esp .amd-nt-btn:hover { background: #62abf5 !important; color: #FFFFFF !important; }
.amd-fc .amd-nt-btn:hover { background: #0a63bc; color: #FFFFFF; }
.amd-footer .amd-ft-social a:hover { color: #FFFFFF !important; }
.amd-footer a:hover { color: #62abf5; }

/* v1.6.2 · Portada: bloque "Te Informamos" con el mismo diseño de la sección */
.amd-nt-home .amd-nt-head { margin-top: 0 !important; }
.amd-nt-home-more { margin: 28px 0 0; text-align: right; }
.amd-fc .amd-nt-home-more a { color: #0a63bc; font-weight: 700; font-size: 15px; }
.amd-fc .amd-nt-home-more a:hover { color: #12263A; }

/* v1.6.3 · Artículo: "Sigue leyendo" con el mismo diseño (título + línea, 4 tarjetas) */
.amd-fc-otros .amd-nt-head { margin-top: 0 !important; }
.amd-fc .amd-fc-otros .amd-nt-head h2 { font-size: 26px; font-weight: 700; }

/* v1.6.4 · Portada: títulos de sección con la línea corta azul (igual que "Te Informamos") */
.amd-titulo { display: flex !important; align-items: center; gap: 20px; font-family: Sora, sans-serif !important; font-size: 26px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -.01em !important; text-transform: none !important; color: #12263A; }
.amd-titulo::after { content: ""; flex: none; width: 64px; height: 2px; background: #0a63bc; }
.amd-ubicacion .amd-titulo { color: #FFFFFF; }
.amd-ubicacion .amd-titulo::after { background: #62abf5; }
/* Enlaces de las tarjetas "Atención pensada para ti" */
.amd-pilares .el-link { font-family: Inter, system-ui, sans-serif !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; color: #0a63bc !important; display: inline-flex; align-items: center; gap: 6px; }
.amd-pilares .el-link::before { display: none !important; }
.amd-pilares .el-link::after { content: "→"; transition: transform .2s; }
.amd-pilares .el-link:hover { color: #12263A !important; }
.amd-pilares .el-link:hover::after { transform: translateX(3px); }

/* v1.6.5 · "Atención pensada para ti": íconos opción C (línea fina grande, azul del logo, sin fondo).
   Se asignan por el nombre de ícono del elemento en YOOtheme: user / desktop / happy */
.amd-pilares .el-image[uk-icon] { display: block; width: 52px; height: 52px; }
.amd-pilares .el-image[uk-icon] > svg { display: none !important; }
.amd-pilares .el-image[uk-icon]::before { content: ""; display: block; width: 52px; height: 52px; background: #0a63bc; -webkit-mask: var(--amd-ico) center / contain no-repeat; mask: var(--amd-ico) center / contain no-repeat; }
.amd-pilares .el-image[uk-icon*="icon: user;"] { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%207a4%204%200%201%200%208%200a4%204%200%200%200%20-8%200%22%2F%3E%3Cpath%20d%3D%22M6%2021v-2a4%204%200%200%201%204%20-4h.5%22%2F%3E%3Cpath%20d%3D%22M18%2022l3.35%20-3.284a2.143%202.143%200%200%200%20.005%20-3.071a2.242%202.242%200%200%200%20-3.129%20-.006l-.224%20.22l-.223%20-.22a2.242%202.242%200%200%200%20-3.128%20-.006a2.143%202.143%200%200%200%20-.006%203.071l3.355%203.296z%22%2F%3E%3C%2Fsvg%3E"); }
.amd-pilares .el-image[uk-icon*="icon: desktop;"] { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%203h10v8h-3l-4%202v-2h-3z%22%2F%3E%3Cpath%20d%3D%22M15%2016v4a1%201%200%200%201%20-1%201h-8a1%201%200%200%201%20-1%20-1v-14a1%201%200%200%201%201%20-1h2%22%2F%3E%3Cpath%20d%3D%22M10%2018v.01%22%2F%3E%3C%2Fsvg%3E"); }
.amd-pilares .el-image[uk-icon*="icon: happy;"] { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205.5c-1.074%20-.586%20-2.583%20-1.5%20-4%20-1.5c-2.1%200%20-4%201.247%20-4%205c0%204.899%201.056%208.41%202.671%2010.537c.573%20.756%201.97%20.521%202.567%20-.236c.398%20-.505%20.819%20-1.439%201.262%20-2.801c.292%20-.771%20.892%20-1.504%201.5%20-1.5c.602%200%201.21%20.737%201.5%201.5c.443%201.362%20.864%202.295%201.262%202.8c.597%20.759%202%20.993%202.567%20.237c1.615%20-2.127%202.671%20-5.637%202.671%20-10.537c0%20-3.74%20-1.908%20-5%20-4%20-5c-1.423%200%20-2.92%20.911%20-4%201.5z%22%2F%3E%3Cpath%20d%3D%22M12%205.5l3%201.5%22%2F%3E%3C%2Fsvg%3E"); }

.amd-pilares .el-image[uk-icon*="icon: location;"] { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206a2%202%200%200%201%202%20-2h12a2%202%200%200%201%202%202v12a2%202%200%200%201%20-2%202h-12a2%202%200%200%201%20-2%20-2z%22%2F%3E%3Cpath%20d%3D%22M14.5%208h-5v8h5%22%2F%3E%3Cpath%20d%3D%22M9.5%2012h4%22%2F%3E%3C%2Fsvg%3E"); }

/* v1.6.6 · "Atención pensada para ti" en 4 tarjetas */
@media (min-width: 1200px) { .amd-pilares .el-title { font-size: 19px !important; } .amd-pilares .el-item.uk-card-body { padding: 32px 28px; } }

/* v1.6.7 · Footer: íconos en los títulos de columna */
.amd-footer .amd-ft-h { display: flex; align-items: center; gap: 10px; }
.amd-footer .amd-ft-h::before { content: ""; flex: none; width: 22px; height: 22px; background: #62abf5; -webkit-mask: var(--amd-ico) center / contain no-repeat; mask: var(--amd-ico) center / contain no-repeat; }
.amd-ft-h--horario { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012a9%209%200%201%200%2018%200a9%209%200%200%200%20-18%200%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%203%22%2F%3E%3C%2Fsvg%3E"); }
.amd-ft-h--ubicacion { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2011a3%203%200%201%200%206%200a3%203%200%200%200%20-6%200%22%2F%3E%3Cpath%20d%3D%22M17.657%2016.657l-4.243%204.243a2%202%200%200%201%20-2.827%200l-4.244%20-4.243a8%208%200%201%201%2011.314%200z%22%2F%3E%3C%2Fsvg%3E"); }
.amd-ft-h--explora { --amd-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2016l2%20-6l6%20-2l-2%206l-6%202%22%2F%3E%3Cpath%20d%3D%22M3%2012a9%209%200%201%200%2018%200a9%209%200%201%200%20-18%200%22%2F%3E%3C%2Fsvg%3E"); }

/* v1.6.8 · Botón del slider de portada: menos alto y texto más grande */
.amd-hero-slider .el-link { min-height: 0 !important; height: auto !important; line-height: 1.2 !important; padding: 12px 26px !important; font-size: 16px !important; font-family: Inter, system-ui, sans-serif !important; font-weight: 700 !important; }

/* v1.6.9 · Flechas del slider de portada más pequeñas */
.amd-hero-slider .uk-slidenav { width: 36px !important; height: 36px !important; }
.amd-hero-slider .uk-slidenav svg { width: 8px !important; height: auto !important; }
.amd-hero-slider .uk-position-center-left { right: 46px !important; }

/* v1.7 · Slider portada: diapositiva con foto del edificio a todo el ancho */
.amd-home-hero { position: relative; overflow: hidden; }
.amd-home-hero > :not(.amd-hero-photo) { position: relative; z-index: 1; }
.amd-hero-photo { position: absolute; inset: 0; z-index: 0; background: #12263A center 30% / cover no-repeat; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.amd-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,38,58,.94) 0%, rgba(18,38,58,.78) 42%, rgba(18,38,58,.30) 100%); }
.amd-hero-is-photo .amd-hero-photo { opacity: 1; }
.amd-hero-slider img.el-image[alt*="Fachada"] { visibility: hidden; }
@media (max-width: 959px) { .amd-hero-photo::after { background: rgba(18,38,58,.78); } .amd-hero-slider img.el-image[alt*="Fachada"] { display: none; } }
@media (prefers-reduced-motion: reduce) { .amd-hero-photo { transition: none; } }

/* v1.7.1 · Foto del edificio: nítida, completa y menos oscura (ocupa de la mitad al borde derecho, alto completo) */
@media (min-width: 960px) {
  .amd-hero-photo { left: 36%; background-position: center top; background-size: cover; }
  .amd-hero-photo::after { background: linear-gradient(90deg, #12263A 0%, rgba(18,38,58,.55) 18%, rgba(18,38,58,0) 45%); }
}

/* v1.7.2 · Diapositiva foto del edificio estilo referencia: foto completa + degradado azul + onda + botón blanco */
.amd-hero-photo { left: 0 !important; background-position: 65% 35% !important; background-size: cover !important; }
.amd-hero-photo::after { background: linear-gradient(90deg, rgba(10,99,188,.97) 0%, rgba(10,99,188,.88) 28%, rgba(10,99,188,.35) 52%, rgba(10,99,188,0) 68%) !important; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-meta { color: #FFFFFF !important; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-title::before { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: #9CC8F7; margin-bottom: 22px; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-content { color: #FFFFFF !important; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-link { background: #FFFFFF !important; color: #0a63bc !important; display: inline-flex; align-items: center; gap: 10px; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-link::after { content: "→"; font-size: 18px; transition: transform .2s; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-link:hover { background: #12263A !important; color: #FFFFFF !important; }
.amd-hero-slider .el-item:has(img[alt*="Fachada"]) .el-link:hover::after { transform: translateX(4px); }
@media (max-width: 959px) { .amd-hero-photo::after { background: linear-gradient(180deg, rgba(10,99,188,.92) 0%, rgba(10,99,188,.75) 100%) !important; } }

/* v1.7.3 · Foto del edificio completa (ajustada al alto, a la derecha) con difuminado azul desde la izquierda */
@media (min-width: 960px) {
  .amd-hero-photo { background-color: #0a63bc !important; background-size: auto 100% !important; background-position: right center !important; }
  .amd-hero-photo::after { background: linear-gradient(90deg, #0a63bc 0%, #0a63bc 40%, rgba(10,99,188,.8) 46%, rgba(10,99,188,.35) 54%, rgba(10,99,188,0) 64%) !important; }
}

/* v1.7.4 · Foto a todo el ancho con difuminado azul sobre la foto (como la referencia) */
@media (min-width: 960px) {
  .amd-hero-photo { background-size: cover !important; background-position: center 30% !important; }
  .amd-hero-photo::after { background: linear-gradient(90deg, rgba(10,99,188,.95) 0%, rgba(10,99,188,.88) 22%, rgba(10,99,188,.6) 38%, rgba(10,99,188,.2) 52%, rgba(10,99,188,0) 62%) !important; }
}

/* v1.7.5 · Foto del edificio COMPLETA (sin recortes) a la derecha, difuminada hacia el azul; slider menos alto */
.amd-home-hero.uk-section-large { padding-top: 56px !important; }
.amd-home-hero { padding-bottom: 104px !important; }
@media (min-width: 960px) {
  .amd-hero-photo { background-color: #0a63bc !important; background-size: auto 100% !important; background-position: right top !important; }
  .amd-hero-photo::after { background: linear-gradient(90deg, #0a63bc 0%, #0a63bc 46.5%, rgba(10,99,188,.75) 51%, rgba(10,99,188,.4) 56%, rgba(10,99,188,.12) 62%, rgba(10,99,188,0) 68%) !important; }
}

/* v1.7.6 · Footer "Explora": líneas segmentadas blancas (65%) entre cada enlace */
.amd-ft-links { gap: 0 !important; }
.amd-ft-links li { padding: 10px 0; }
.amd-ft-links li + li { border-top: 1px dashed rgba(255,255,255,.2); }
.amd-ft-links li:first-child { padding-top: 0; }

/* v1.7.7 · "Atención pensada para ti": fondos de color en cada tarjeta (paleta Portada A) */
.amd-pilares .el-item.uk-card { border: 0 !important; box-shadow: none !important; }
.amd-pilares .el-item:has(.el-image[uk-icon*="icon: user;"]) { background: #CFE1E5 !important; }
.amd-pilares .el-item:has(.el-image[uk-icon*="icon: desktop;"]) { background: #D9E3D6 !important; }
.amd-pilares .el-item:has(.el-image[uk-icon*="icon: happy;"]) { background: #E3DCEA !important; }
.amd-pilares .el-item:has(.el-image[uk-icon*="icon: location;"]) { background: #E9DFD2 !important; }
.amd-pilares .el-content { color: #3A4D5E !important; }

/* v1.7.8 · Íconos de "Atención pensada para ti" en blanco */
.amd-pilares .el-image[uk-icon]::before { background: #FFFFFF !important; }

/* v1.8 · [alcantara_medicos_grilla] — grilla de médicos con foto real */
.amd-mg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; font-family: Inter, system-ui, sans-serif; }
.amd-mg-card { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #A9BCD3; color: #FFFFFF !important; text-decoration: none !important; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.amd-mg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(18,38,58,.22); }
.amd-mg-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 15%; transition: transform .5s ease; z-index: -2; }
.amd-mg-card:hover .amd-mg-img { transform: scale(1.05); }
.amd-mg-card:not(.amd-mg-cta)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,99,188,0) 42%, rgba(10,99,188,.55) 62%, rgba(12,40,80,.94) 100%); transition: opacity .3s; }
.amd-mg-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.amd-mg-name { font-family: Sora, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.2; color: #FFFFFF; }
.amd-mg-esp { font-size: 13px; font-weight: 500; color: #CFE3FA; }
.amd-mg-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.amd-mg-cons { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); color: #FFFFFF; backdrop-filter: blur(2px); }
.amd-mg-ver { font-size: 12px; font-weight: 700; color: #FFFFFF; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.amd-mg-card:hover .amd-mg-ver, .amd-mg-card:focus-visible .amd-mg-ver { opacity: 1; transform: none; }
.amd-mg-cta { background: #0a63bc; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px; }
.amd-mg-cta:hover { background: #12263A; }
.amd-mg-cta-ico { width: 40px; height: 40px; background: #FFFFFF; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h-1a2%202%200%200%200%20-2%202v3.5h0a5.5%205.5%200%200%200%2011%200v-3.5a2%202%200%200%200%20-2%20-2h-1%22%2F%3E%3Cpath%20d%3D%22M8%2015a6%206%200%201%200%2012%200v-3%22%2F%3E%3Cpath%20d%3D%22M11%203v2%22%2F%3E%3Cpath%20d%3D%22M6%203v2%22%2F%3E%3Cpath%20d%3D%22M18%2010a2%202%200%201%200%204%200a2%202%200%200%200%20-4%200%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h-1a2%202%200%200%200%20-2%202v3.5h0a5.5%205.5%200%200%200%2011%200v-3.5a2%202%200%200%200%20-2%20-2h-1%22%2F%3E%3Cpath%20d%3D%22M8%2015a6%206%200%201%200%2012%200v-3%22%2F%3E%3Cpath%20d%3D%22M11%203v2%22%2F%3E%3Cpath%20d%3D%22M6%203v2%22%2F%3E%3Cpath%20d%3D%22M18%2010a2%202%200%201%200%204%200a2%202%200%200%200%20-4%200%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
.amd-mg-cta strong { font-family: Sora, sans-serif; font-size: 22px; line-height: 1.15; font-weight: 700; color: #FFFFFF; }
.amd-mg-cta span { font-size: 14px; line-height: 1.5; color: #DCEAF6; }
.amd-mg-cta .amd-mg-cta-btn { margin-top: 6px; align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: #FFFFFF; color: #0a63bc; font-weight: 700; font-size: 14px; }
@media (max-width: 959px) { .amd-mg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .amd-mg-ver { opacity: 1; transform: none; } }
@media (max-width: 479px) { .amd-mg-name { font-size: 15px; } .amd-mg-txt { padding: 12px; } .amd-mg-cta strong { font-size: 18px; } }

/* v1.9 · "Cómo llegar": mapa ilustrado (Leaflet + estilo plano) con pines de colores */
.amd-mapa { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.25); }
#amd-mapa-leaflet { height: 400px; width: 100%; background: #E9ECEF; }
#amd-mapa-leaflet .leaflet-tile-pane { filter: saturate(.35) brightness(1.05) contrast(1.05); }
.amd-pin { background: none !important; border: 0 !important; }
.amd-pin-shape { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.25); border: 3px solid #FFFFFF; box-sizing: border-box; }
.amd-pin-ico { transform: rotate(45deg); color: #FFFFFF; font: 800 15px/1 Inter, sans-serif; }
.amd-pin--big .amd-pin-ico { font-size: 26px; }
.amd-pin--big .amd-pin-shape { animation: amd-pin-bote 2.4s ease-in-out infinite; }
@keyframes amd-pin-bote { 0%,100% { transform: rotate(-45deg) translate(0,0); } 50% { transform: rotate(-45deg) translate(3px,-3px); } }
#amd-mapa-leaflet .leaflet-popup-content-wrapper { border-radius: 12px; font-family: Inter, sans-serif; color: #12263A; }
#amd-mapa-leaflet .leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.45; }
#amd-mapa-leaflet .leaflet-control-zoom a { color: #0a63bc; }
@media (max-width: 959px) { #amd-mapa-leaflet { height: 320px; } }
@media (prefers-reduced-motion: reduce) { .amd-pin--big .amd-pin-shape { animation: none; } }

/* v1.9.1 · "Cómo llegar": mapa ilustrado con calles reales (SVG desde OpenStreetMap) + pines */
.amd-mapa-ilus { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.25); background: #C9CACD; }
.amd-mapa-ilus .amd-mapa-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.amd-mpin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.amd-mpin-shape { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #FFFFFF; box-sizing: border-box; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.amd-mpin-shape span { transform: rotate(45deg); color: #FFFFFF; font: 800 15px/1 Inter, sans-serif; }
.amd-mpin--edificio .amd-mpin-shape { width: 54px; height: 54px; background: #0a63bc; animation: amd-pin-bote 2.4s ease-in-out infinite; }
.amd-mpin--edificio .amd-mpin-shape span { font-size: 28px; }
.amd-mpin--metro .amd-mpin-shape { background: #E2393C; }
.amd-mpin-label { order: -1; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: #12263A; font: 700 12px/1.2 Inter, sans-serif; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.amd-mpin--metro .amd-mpin-label { opacity: 0; transition: opacity .2s; position: absolute; bottom: 100%; }
.amd-mpin--metro:hover .amd-mpin-label { opacity: 1; }
@keyframes amd-pin-bote { 0%,100% { transform: rotate(-45deg) translate(0,0); } 50% { transform: rotate(-45deg) translate(3px,-3px); } }
@media (max-width: 639px) { .amd-mpin--edificio .amd-mpin-shape { width: 42px; height: 42px; } .amd-mpin-shape { width: 30px; height: 30px; } .amd-mpin-label { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .amd-mpin--edificio .amd-mpin-shape { animation: none; } }

/* v1.9.2 · Mapa: pin del edificio con isotipo, etiquetas siempre visibles a los lados */
.amd-mpin--edificio .amd-mpin-shape { background: #FFFFFF !important; border: 3px solid #0a63bc !important; animation: none !important; }
.amd-mpin-shape img { transform: rotate(45deg); width: 64%; height: auto; display: block; }
.amd-mpin--edificio .amd-mpin-label { position: absolute; right: calc(100% + 6px); top: 6px; margin: 0; }
.amd-mpin--metro .amd-mpin-label { opacity: 1 !important; position: absolute !important; left: calc(100% + 8px); top: 4px; bottom: auto; margin: 0; }
@media (max-width: 639px) { .amd-mpin--edificio .amd-mpin-label { right: auto; left: 50%; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); } .amd-mpin--metro .amd-mpin-label { display: none; } }

/* v1.9.3 · Ficha: números de contacto más pequeños */
.amd-fc .amd-fc-btn { font-size: 15px !important; height: 38px; padding: 0 14px; }
.amd-fc .amd-fc-btn--mail { font-size: 14px !important; }
.amd-fc-btn svg { width: 15px; height: 15px; }

/* v1.9.4 · Menú principal: tipografía un poco más grande */
.tm-header .uk-navbar-nav > li > a { font-size: 15px !important; }
@media (min-width: 1200px) { .tm-header .uk-navbar-nav > li > a { font-size: 16px !important; } }

/* v1.9.5 · Menú: línea bajo la palabra del mismo color del roll-over (currentColor) */
.uk-navbar-nav > li > a::after { background: currentColor !important; }

/* v1.9.6 · Te informamos: bajada del título en negrita */
.amd-nt-hero .amd-fc-sub { font-weight: 700 !important; }

/* v1.9.7 · Home: aviso bajo el buscador (agenda directa con cada profesional) */
.amd-aviso-agenda { position: relative; margin-top: 16px !important; padding: 14px 20px 14px 52px; background: #EEF4FB; border-radius: 12px; color: #12263A; font-size: 15px; line-height: 1.55; }
.amd-aviso-agenda p { margin: 0; }
.amd-aviso-agenda::before { content: ""; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; background: #0a63bc; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v4h1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v4h1'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 639px) { .amd-aviso-agenda { font-size: 14px; padding: 12px 16px 12px 46px; } .amd-aviso-agenda::before { left: 14px; top: 13px; width: 20px; height: 20px; } }

/* v1.9.8 · Aviso de agenda bajo el buscador del directorio */
.amd-dir > .amd-aviso-agenda { margin: 16px 0 28px !important; }

/* v1.9.9 · Header: logo más grande (YOOtheme 250px) y menú en una línea en notebooks chicos */
.tm-header .uk-navbar-nav > li > a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1199px) {
	.tm-header .uk-logo img { width: 190px; height: auto; }
	.tm-header .uk-navbar-nav > li > a { font-size: 14px !important; padding: 0 10px; letter-spacing: 0; }
	.tm-header .uk-navbar-nav > li > a::after { left: 10px; right: 10px; }
}

/* v1.10.0 · Botón "Buscar": texto blanco, más angosto, roll-over celeste del menú */
.uk-button.amd-btn-buscar { color: #FFFFFF !important; padding: 0 22px !important; font-size: 13px; font-weight: 600; letter-spacing: .5px; background: #0a63bc; border-color: #0a63bc; transition: background-color .2s, border-color .2s; }
.uk-button.amd-btn-buscar:hover, .uk-button.amd-btn-buscar:focus-visible { background: #00B9FF !important; border-color: #00B9FF !important; color: #FFFFFF !important; }

/* v1.10.1 · Botón "Buscar" más bajo */
.uk-button.amd-btn-buscar { height: 36px !important; line-height: 36px !important; }

/* v1.11.0 · Home: slider como el sitio antiguo (foto a todo el ancho, título a la izquierda) */
.amd-old-hero > .uk-container { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
.amd-old-hero .uk-grid { margin-left: 0 !important; }
.amd-old-hero .uk-grid > * { padding-left: 0 !important; }
.amd-old-slider .uk-slideshow-items img { object-position: center center; }
.amd-old-slider .el-title { font-family: inherit; font-size: clamp(30px, 4.4vw, 64px) !important; font-weight: 300 !important; line-height: 1.12 !important; letter-spacing: -.01em; color: #163e79 !important; max-width: 760px; margin: 0; text-transform: none; }
.amd-old-slider .el-title strong { font-weight: 700; }
.amd-old-slider .amd-os-navy { color: #163e79; }
.amd-old-slider .amd-os-blue { color: #00a4e0; }
.amd-old-slider .amd-os-gray { color: #163e79; }
.amd-old-slider .el-link.uk-button { background: #00a4e0 !important; border: 0 !important; color: #FFFFFF !important; border-radius: 30px; padding: 0 34px; height: 50px; line-height: 50px; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: background-color .2s; }
.amd-old-slider .uk-slideshow-items > :nth-child(2) .el-link.uk-button { background: #163e79 !important; }
.amd-old-slider .el-link.uk-button:hover, .amd-old-slider .el-link.uk-button:focus-visible { background: #0a63bc !important; color: #FFFFFF !important; }
.amd-old-slider .uk-slidenav { color: #FFFFFF; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.amd-old-slider .uk-dotnav > * > * { border-color: #163e79; }
.amd-old-slider .uk-dotnav > .uk-active > * { background: #163e79; }
.amd-old-hero + .amd-hero-overlap { margin-top: 28px !important; }
@media (max-width: 639px) {
	.amd-old-slider .el-link.uk-button { height: 42px; line-height: 42px; padding: 0 22px; font-size: 13px; }
	.amd-old-slider .uk-slideshow-items img { object-position: 65% center; }
}

/* v1.11.1 · Slider antiguo: texto más ancho (cada frase en su línea, como el original) */
.amd-old-slider .el-overlay { width: 920px !important; max-width: 100% !important; }
.amd-old-slider .el-title { max-width: none !important; }

/* v1.11.2 · Slider antiguo: margen lateral del texto en tablet/celular */
@media (max-width: 1239px) { .amd-old-slider .uk-position-cover.uk-container { padding-left: 32px !important; padding-right: 32px !important; } }
@media (max-width: 639px) { .amd-old-slider .uk-position-cover.uk-container { padding-left: 20px !important; padding-right: 20px !important; } }

/* v1.11.3 · Slider antiguo: flechas redondas abajo a la derecha + barra de puntos abajo a la izquierda (diseño del slider anterior) */
.amd-old-slider .uk-position-center-left, .amd-old-slider .uk-position-center-right { top: auto !important; bottom: 28px !important; transform: none !important; margin: 0 !important; }
.amd-old-slider .uk-position-center-right { left: auto !important; right: max(32px, calc((100% - 1200px) / 2)) !important; }
.amd-old-slider .uk-position-center-left { left: auto !important; right: calc(max(32px, calc((100% - 1200px) / 2)) + 46px) !important; }
.amd-old-slider .uk-slidenav { width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 999px; display: flex; align-items: center; justify-content: center; filter: none; transition: background-color .2s, color .2s, border-color .2s; }
.amd-old-slider .uk-slidenav svg { width: 8px !important; height: auto !important; }
.amd-old-slider .uk-slidenav-previous { background: rgba(255,255,255,.75); border: 1px solid rgba(22,62,121,.45); color: #163e79 !important; }
.amd-old-slider .uk-slidenav-next { background: #163e79; border: 1px solid #163e79; color: #FFFFFF !important; }
.amd-old-slider .uk-slidenav:hover { background: #00B9FF !important; border-color: #00B9FF !important; color: #FFFFFF !important; }
.amd-old-slider .uk-position-bottom-center { left: max(32px, calc((100% - 1200px) / 2)) !important; right: auto !important; bottom: 40px !important; transform: none !important; margin: 0 !important; }
.amd-old-slider .uk-dotnav { justify-content: flex-start !important; margin-left: -8px; }
.amd-old-slider .uk-dotnav > * { padding-left: 8px; }
.amd-old-slider .uk-dotnav > * > * { width: 8px !important; height: 8px !important; border: 0 !important; background: rgba(22,62,121,.35) !important; transition: width .3s, background-color .3s; }
.amd-old-slider .uk-dotnav > .uk-active > * { width: 32px !important; border-radius: 999px; background: #163e79 !important; }

/* v1.11.4 · Slider antiguo: subtítulo (meta) y descripción (contenido) */
.amd-old-slider .el-meta { font-family: Roboto, sans-serif !important; color: #00a4e0 !important; font-size: clamp(18px, 1.8vw, 25px) !important; font-weight: 500 !important; line-height: 1.35; letter-spacing: 0 !important; text-transform: none !important; margin-top: 14px !important; max-width: 620px; }
.amd-old-slider .el-content { font-family: Roboto, sans-serif; color: #163e79 !important; font-size: clamp(14px, 1.15vw, 17px) !important; line-height: 1.55; max-width: 540px; margin-top: 12px !important; }
.amd-old-slider .el-content p { margin: 0; }
@media (max-width: 639px) { .amd-old-slider .el-content { display: none; } }

/* v1.11.5 · Slider antiguo: botón "Más información" más pequeño */
.amd-old-slider .el-link.uk-button { height: 40px !important; line-height: 40px !important; padding: 0 24px !important; font-size: 13px !important; letter-spacing: .8px; }
@media (max-width: 639px) { .amd-old-slider .el-link.uk-button { height: 36px !important; line-height: 36px !important; padding: 0 18px !important; font-size: 12px !important; } }

/* v1.11.6 · Slider antiguo: colores del botón invertidos (azul → roll-over celeste) */
.amd-old-slider .el-link.uk-button, .amd-old-slider .uk-slideshow-items > :nth-child(2) .el-link.uk-button { background: #0a63bc !important; }
.amd-old-slider .el-link.uk-button:hover, .amd-old-slider .el-link.uk-button:focus-visible, .amd-old-slider .uk-slideshow-items > :nth-child(2) .el-link.uk-button:hover { background: #00a4e0 !important; color: #FFFFFF !important; }

/* v1.11.7 · Slider antiguo: título blanco más bold, subtítulo en el azul que tenía el título */
.amd-old-slider .el-title, .amd-old-slider .el-title span { color: #FFFFFF !important; }
.amd-old-slider .el-title { font-weight: 600 !important; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.amd-old-slider .el-title strong { font-weight: 800; }
.amd-old-slider .el-meta { color: #00a4e0 !important; }

/* v1.12.0 · Home "Cómo llegar": mapa de Google Maps con pines propios (logo del edificio + estacionamiento) */
.amd-gmap { position: relative; height: 446px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.25); background: #E9ECEF; }
.amd-gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.amd-gmap-link { position: absolute; inset: 0; z-index: 3; }
.amd-gmap .amd-mpin { z-index: 2; }
.amd-gmap .amd-mpin--edificio .amd-mpin-label { right: auto; left: calc(100% + 8px); top: 8px; }
.amd-gmap .amd-mpin-label small { display: block; font-weight: 500; font-size: 11px; color: #5B6B7B; margin-top: 2px; }
.amd-mpin--parking .amd-mpin-shape { width: 40px; height: 40px; background: #0a63bc; }
.amd-mpin--parking .amd-mpin-shape span { font: 800 18px/1 Inter, sans-serif; }
.amd-mpin--parking .amd-mpin-label { position: absolute; right: calc(100% + 8px); top: 4px; margin: 0; }
.amd-gmap-cta { position: absolute; right: 14px; top: 14px; z-index: 4; pointer-events: none; padding: 7px 12px; border-radius: 999px; background: #FFFFFF; color: #0a63bc; font: 700 12px/1 Inter, sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
@media (max-width: 959px) { .amd-gmap { height: 360px; margin-top: 24px; } }
@media (max-width: 639px) { .amd-gmap { height: 320px; } .amd-gmap .amd-mpin--edificio .amd-mpin-label { left: 50%; right: auto; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); } .amd-mpin--parking .amd-mpin-label { display: none; } }

/* v1.12.1 · Mapa Google más pequeño */
.amd-gmap { height: 390px; }
@media (max-width: 959px) { .amd-gmap { height: 330px; } }
@media (max-width: 639px) { .amd-gmap { height: 290px; } }

/* v1.13.0 · Franja azul de títulos (páginas internas) en #1c456e */
.amd-dir-hero, .amd-nt-hero, .amd-fc-hero, .amd-art-hero, .amd-esp-hero { background-color: #1c456e !important; }

/* v1.13.1 · Botón "Aplicar filtros": más bajo, azul #0a63bc, texto más grande */
.uk-button.amd-apply { height: 38px !important; min-height: 0 !important; line-height: 38px !important; padding: 0 18px !important; background: #0a63bc !important; border-color: #0a63bc !important; color: #FFFFFF !important; font-size: 14px !important; font-weight: 600 !important; transition: background-color .2s, border-color .2s; }
.uk-button.amd-apply:hover, .uk-button.amd-apply:focus-visible { background: #00B9FF !important; border-color: #00B9FF !important; color: #FFFFFF !important; }

/* v1.13.2 · Botón "Aplicar filtros" más angosto (ancho según el texto) */
.uk-button.amd-apply { width: auto !important; padding: 0 22px !important; }
.uk-button.amd-apply { display: flex !important; margin-left: auto !important; margin-right: auto !important; align-items: center; justify-content: center; gap: 6px; }

/* v1.13.3 · Noticias: títulos en azul #0a63bc (tarjetas y subtítulos del artículo) */
.amd-fc .amd-nt-card-title, .amd-fc .amd-nt-card-title a, .amd-fc .amd-art-body h2, .amd-fc .amd-art-body h3, .amd-fc .amd-art-body h4 { color: #0a63bc !important; }
.amd-fc .amd-nt-card--alta .amd-nt-card-title a { color: #FFFFFF !important; }

/* v1.13.4 · Artículos: recuadro "¿Necesitas un especialista?" con fondo gris claro */
.amd-art-esp { background: #F1F4F7 !important; color: #12263A !important; border: 1px solid #E1E7ED; }
.amd-fc .amd-art-esp .amd-art-aside-t { color: #0a63bc !important; }
.amd-art-esp .amd-art-esp-h { color: #12263A !important; }
.amd-art-esp .amd-art-esp-h span { color: #5B6B7B !important; }
.amd-fc .amd-art-esp .amd-art-doc { color: #12263A !important; border-top-color: #DDE4EB !important; }
.amd-fc .amd-art-esp .amd-art-doc:hover { color: #0a63bc !important; }
.amd-art-esp .amd-art-doc em { color: #5B6B7B !important; }
.amd-fc .amd-art-esp .amd-nt-btn { background: #0a63bc !important; color: #FFFFFF !important; }
.amd-fc .amd-art-esp .amd-nt-btn:hover { background: #00B9FF !important; color: #FFFFFF !important; }

/* v1.13.5 · Artículos: todos los especialistas de la especialidad (lista con scroll si es larga) */
.amd-art-docs { max-height: 460px; overflow-y: auto; margin: 0 -6px 4px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #C9D4DE transparent; }

/* v1.13.6 · Menú principal: estilo indicado (azul #0c5bd9, semi-negrita, sin espaciado) */
.uk-navbar-nav > li > a { height: 100%; padding: 0 15px; color: #0c5bd9; transition: .1s ease-in-out; transition-property: color, background-color, border-color, box-shadow; position: relative; z-index: 1; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.tm-header .uk-navbar-nav > li > a { font-weight: 700 !important; letter-spacing: 0 !important; }

/* v1.13.7 · Home "Cómo llegar": 2 columnas (texto | mapa) aunque el mapa quede en la misma columna del texto en YOOtheme */
@media (min-width: 960px) {
	.amd-ubicacion .uk-grid > div:has(> .uk-panel > div > .amd-gmap) { width: 100% !important; flex: 0 0 100% !important; }
	.amd-ubicacion .uk-panel:has(> div > .amd-gmap) { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 70px; align-items: center; }
	.amd-ubicacion .uk-panel:has(> div > .amd-gmap) > * { grid-column: 1; }
	.amd-ubicacion .uk-panel:has(> div > .amd-gmap) > div:has(> .amd-gmap) { grid-column: 2; grid-row: 1 / span 3; margin: 0 !important; }
}

/* v1.14.0 · Página "Centros y clínicas" */
.amd-centros-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1199px) { .amd-centros-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .amd-centros-grid { grid-template-columns: 1fr; } }
.amd-centro { display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: #F1F4F7; border: 1px solid #E1E7ED; }
.amd-centro-nombre { margin: 0; font-family: Sora, sans-serif; font-size: 21px; line-height: 1.2; font-weight: 700; color: #12263A; }
.amd-centro-ofi { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #0a63bc; }
.amd-centro-btns { margin-top: 16px; }
.amd-centro-n { margin: 18px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5B6B7B; }
.amd-centro-docs { max-height: 380px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #C9D4DE transparent; }
.amd-fc .amd-centro .amd-art-doc { color: #12263A; border-top: 1px solid #DDE4EB; }
.amd-fc .amd-centro .amd-art-doc:hover { color: #0a63bc; }
.amd-centro .amd-art-doc em { color: #5B6B7B; }

/* v1.14.1 · Centros y clínicas con formato de directorio */
.amd-cdir-list a.amd-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; color: inherit; cursor: pointer; }
.amd-cdir-list li.amd-is-checked a.amd-check { color: #0a63bc; font-weight: 600; }
.amd-cdir-list li.amd-is-checked .amd-count { background: #0a63bc; color: #FFFFFF; }
.amd-cdir-list a.amd-check:hover { color: #0a63bc; }
.amd-cdir-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 20px 24px; border-radius: 16px; background: #F1F4F7; border: 1px solid #E1E7ED; }
.amd-cdir-nombre { margin: 0; font-family: Sora, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.2; color: #12263A; }
.amd-cdir-ofi { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #0a63bc; }
.amd-cdir-head .amd-fc-btns { margin: 0; }
