/* =====================================================================
   CIMA Especialistas — estilos
   Para ajustar el diseño toca SOLO las variables de abajo (o sobrescríbelas en
   Apariencia > Personalizar > CSS adicional, así no se pierden al actualizar):
   .cima-ep { --ep-card-radius: 16px; --ep-card-border: #cfd8ea; }
   La tipografía se hereda del tema (Red Hat Display, configurada en Kadence).
   Todos los selectores empiezan por .cima-ep para ganarle a los estilos
   generales del tema (inputs, botones, títulos, párrafos).
   ===================================================================== */
.cima-ep {
	/* Tarjeta */
	--ep-card-radius: 30px;
	--ep-card-border: #e1e7f5;
	--ep-card-border-w: 3px;
	--ep-card-bg: #ffffff;
	--ep-card-pad: 26px 28px 28px;
	--ep-gap: 24px;
	/* Barra de búsqueda */
	--ep-field-radius: 999px;
	--ep-field-h: 56px;
	--ep-field-bg: #f4f4f4;
	--ep-field-border: #e3e7ee;
	--ep-btn-h: 46px;
	--ep-btn-bg: #194fbc; --ep-btn-text: #ffffff; --ep-btn-radius: 999px;
	/* Etiquetas de procedimientos */
	--ep-chip-radius: 999px; --ep-chip-bg: #f1f3f7; --ep-chip-border: #e1e6ee; --ep-chip-text: #4f5b6b;
	/* Texto */
	--ep-text: #14181f; --ep-muted: #5b6876; --ep-label: #6b7788; --ep-focus: #194fbc;
	/* Pabellones: relleno de la etiqueta, color del texto sobre ese relleno y color de la especialidad */
	--ep-azul: #194fbc;     --ep-azul-on: #ffffff;     --ep-azul-ink: #194fbc;
	--ep-amarillo: #ecab47; --ep-amarillo-on: #1d2733; --ep-amarillo-ink: #8a6500;
	--ep-naranja: #bf5326;  --ep-naranja-on: #ffffff;  --ep-naranja-ink: #b04a1c;
	font-family: var(--ep-font, inherit);
	color: var(--ep-text);
	box-sizing: border-box;
	line-height: 1.4;
}
.cima-ep *, .cima-ep *::before, .cima-ep *::after { box-sizing: border-box; }
.cima-ep [hidden] { display: none !important; }
.cima-ep ul { list-style: none; margin: 0; padding: 0; }
.cima-ep li { margin: 0; }
.cima-ep h3, .cima-ep p { text-transform: none; letter-spacing: normal; }
.cima-ep button, .cima-ep input, .cima-ep select { font-family: inherit; box-shadow: none; text-shadow: none; }
.cima-ep :focus-visible { outline: 3px solid var(--ep-focus); outline-offset: 2px; }
.cima-ep .ep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra de búsqueda */
.cima-ep .ep-bar { display: flex; gap: 16px; align-items: center; margin: 0; padding: 0 0 26px; border-bottom: 3px solid var(--ep-card-border); }
.cima-ep .ep-search { position: relative; flex: 2 1 280px; min-width: 0; margin: 0; }
.cima-ep .ep-selwrap { position: relative; flex: 1 1 200px; min-width: 0; display: block; margin: 0; }
.cima-ep .ep-input, .cima-ep .ep-select { display: block; width: 100%; max-width: none; height: var(--ep-field-h); margin: 0; border: 3px solid var(--ep-field-border); border-radius: var(--ep-field-radius); background-color: var(--ep-field-bg); color: var(--ep-text); font-size: 1.05rem; font-weight: 400; line-height: 1.2; box-shadow: none; }
.cima-ep .ep-input { padding: 0 1.3em 0 3.4em; -webkit-appearance: none; appearance: none; }
.cima-ep .ep-input::-webkit-search-decoration, .cima-ep .ep-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cima-ep .ep-input::placeholder { color: var(--ep-muted); opacity: 1; }
.cima-ep .ep-ico { position: absolute; top: 0; bottom: 0; left: 20px; z-index: 1; display: flex; align-items: center; color: var(--ep-muted); pointer-events: none; }
.cima-ep .ep-ico svg { display: block; width: 22px; height: 22px; }
.cima-ep .ep-select { -webkit-appearance: none; appearance: none; padding: 0 3em 0 1.5em; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2733' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 20px center; background-size: 18px; }
.cima-ep .ep-go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: var(--ep-btn-h); min-height: 0; margin: 0; padding: 0 2.2em; border: 0; border-radius: var(--ep-btn-radius); background: var(--ep-btn-bg); color: var(--ep-btn-text); font-size: 1.05rem; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: normal; cursor: pointer; transition: filter .15s; }
.cima-ep .ep-go:hover, .cima-ep .ep-go:focus { background: var(--ep-btn-bg); color: var(--ep-btn-text); filter: brightness(1.15); }

/* Contador + limpiar filtros */
.cima-ep .ep-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 26px 0 0; }
.cima-ep .ep-count { margin: 0; color: var(--ep-muted); font-size: 1.05rem; }
.cima-ep .ep-clear { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 4px; border: 0; background: none; color: var(--ep-btn-bg); font-size: 1rem; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer; }
.cima-ep .ep-clear:hover, .cima-ep .ep-clear:focus { background: none; color: var(--ep-btn-bg); text-decoration: underline; text-underline-offset: 3px; }

/* Tarjetas */
.cima-ep .ep-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--ep-gap); margin: 24px 0 0; }
.cima-ep .ep-card { display: flex; flex-direction: column; margin: 0; padding: var(--ep-card-pad); border: var(--ep-card-border-w) solid var(--ep-card-border); border-radius: var(--ep-card-radius); background: var(--ep-card-bg); }
.cima-ep .ep-cname { margin: 0; padding: 0; font-family: inherit; font-size: 1.15rem; font-weight: 500; line-height: 1.3; color: var(--ep-text); overflow-wrap: anywhere; }
.cima-ep .ep-spec { margin: 4px 0 0; padding: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.3; color: var(--ep-azul-ink); }
.cima-ep .ep-t-azul { color: var(--ep-azul-ink); } .cima-ep .ep-t-amarillo { color: var(--ep-amarillo-ink); } .cima-ep .ep-t-naranja { color: var(--ep-naranja-ink); }
.cima-ep .ep-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cima-ep .ep-badge { display: inline-block; margin: 0; padding: .28em 1.15em; border-radius: 999px; background: var(--ep-pav, var(--ep-azul)); color: var(--ep-pav-on, var(--ep-azul-on)); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.cima-ep .ep-b-azul { --ep-pav: var(--ep-azul); --ep-pav-on: var(--ep-azul-on); }
.cima-ep .ep-b-amarillo { --ep-pav: var(--ep-amarillo); --ep-pav-on: var(--ep-amarillo-on); }
.cima-ep .ep-b-naranja { --ep-pav: var(--ep-naranja); --ep-pav-on: var(--ep-naranja-on); }
.cima-ep .ep-plabel { margin: 22px 0 10px; padding: 0; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ep-label); line-height: 1.3; }
.cima-ep .ep-card .ep-procs { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin: 0 !important; padding: 0 !important; list-style: none; }
.cima-ep .ep-card .ep-proc { display: inline-block !important; float: none !important; width: auto !important; max-width: 100%; margin: 0 !important; padding: .3em 1em; border: 2px solid var(--ep-chip-border); border-radius: var(--ep-chip-radius); background: var(--ep-chip-bg); color: var(--ep-chip-text); font-size: .9rem; font-weight: 400; line-height: 1.4; list-style: none; }

.cima-ep .ep-empty { margin: 28px 0; color: var(--ep-muted); }
.cima-ep .ep-morewrap { margin-top: 32px; text-align: center; }
.cima-ep .ep-more { margin: 0; padding: 6px 4px; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: none; color: var(--ep-text); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer; }
.cima-ep .ep-more:hover, .cima-ep .ep-more:focus { background: none; color: var(--ep-text); }

@media (max-width: 800px) {
	.cima-ep .ep-bar { flex-wrap: wrap; }
	.cima-ep .ep-search { flex: 1 1 100%; }
	.cima-ep .ep-selwrap { flex: 1 1 calc(50% - 8px); }
	.cima-ep .ep-go { flex: 1 1 100%; }
}
@media (max-width: 520px) {
	.cima-ep { --ep-card-radius: 24px; --ep-card-pad: 22px; --ep-field-h: 54px; }
	.cima-ep .ep-selwrap { flex: 1 1 100%; }
}
