.mkt-agenda, .mkt-agenda * { box-sizing: border-box; }
.mkt-agenda .mkt-agenda__trigger, .mkt-button { appearance: none; border: 0; border-radius: 6px; background: #c1121f; color: #fff; cursor: pointer; font-weight: 700; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; }
.mkt-agenda .mkt-agenda__trigger { gap: 8px; }
.mkt-agenda .mkt-agenda__trigger:hover, .mkt-button:hover { background: #8d0801; color: #fff; }
/* Profesional oculto: boton gris y sin interaccion (los colores finales los
   fuerza el bloque mkt-btn-custom-css impreso en el head). */
.mkt-agenda .mkt-agenda__trigger--disabled, .mkt-agenda .mkt-agenda__trigger--disabled:hover { background: #e9e9ee; color: #b0b0b8; cursor: not-allowed; pointer-events: none; box-shadow: none; }
/* Reemplaza los resaltados azules del navegador/tema por la paleta pastel dentro del modal */
.mkt-agenda ::selection { background: #f7d3d6; color: #0d0d0f; }
.mkt-agenda button { -webkit-tap-highlight-color: transparent; }
.mkt-agenda button:focus, .mkt-agenda input:focus, .mkt-agenda select:focus { outline: none; }
.mkt-agenda button:focus-visible, .mkt-agenda input:focus-visible, .mkt-agenda select:focus-visible { outline: 2px solid #c1121f; outline-offset: 2px; }
.mkt-agenda .mkt-profesional-tile:focus-visible { outline: none; border-color: #c1121f; box-shadow: 0 0 0 3px rgba(193, 18, 31, .32), 0 16px 34px rgba(0, 0, 0, .12); }
.mkt-agenda .mkt-modality-choice:focus-visible { outline: none; border-color: #c1121f; box-shadow: 0 0 0 3px rgba(193, 18, 31, .28); }
.mkt-agenda .mkt-step input:focus-visible { outline: none; border-color: #c1121f; box-shadow: 0 0 0 3px rgba(193, 18, 31, .18); }
.mkt-modal { display: none; position: fixed; inset: 0; z-index: 99999; }
.mkt-modal.is-open { display: block; }
/* Con el modal abierto la pagina de atras no se desplaza (sobre todo en movil). */
body.mkt-agenda-open { overflow: hidden; }
/* Velo bajo la hoja de horas: sin el, la hoja flota sobre el calendario y no
   queda claro que hay que elegir una hora ahi. */
.mkt-modal.is-slots-open::after { content: ""; position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, .38); }
.mkt-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.mkt-modal__dialog { position: relative; width: min(960px, calc(100vw - 28px)); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow: auto; margin: 3vh auto 0; background: linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .86)), url("../../../admin/assets/img/fondo.jpg") center / cover no-repeat; border: 1px solid #f3d2d5; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); padding: 22px; color: #26262b; }
.mkt-modal__close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #f3d2d5; border-radius: 50%; background: #fdf2f3; color: #c1121f; cursor: pointer; line-height: 1; transition: background .15s ease, color .15s ease, transform .15s ease; }
.mkt-modal__close:hover { background: #111114; border-color: #111114; color: #fff; transform: scale(1.06); }
.mkt-modal__close:focus-visible { outline: 2px solid #c1121f; outline-offset: 2px; }
.mkt-modal__head p { margin: 0 0 5px; color: #c1121f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mkt-modal__head h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.12; color: #0d0d0f; }
.mkt-step { display: none; }
.mkt-step.is-active { display: block; }
.mkt-step label { display: block; margin: 14px 0 7px; color: #3f3f46; font-weight: 700; }
.mkt-step select, .mkt-step input { width: 100%; min-height: 44px; border: 1px solid #d3d3da; border-radius: 6px; padding: 0 12px; background: #fff; color: #1a1a1e; }
.mkt-profesional-intro { margin: 0 0 16px; max-width: 680px; }
.mkt-profesional-intro { transition: opacity .22s ease, transform .22s ease; }
.mkt-profesional-intro span { display: block; color: #8d0801; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mkt-profesional-intro p { margin: 6px 0 0; color: #52525b; font-size: 14px; line-height: 1.45; }
.mkt-profesional-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transition: opacity .24s ease, transform .24s ease, filter .24s ease; }
.mkt-profesional-loading { grid-column: 1 / -1; min-height: 120px; display: grid; place-items: center; border: 1px solid #e9e9ee; border-radius: 8px; background: #fafafb; color: #6b6b75; font-weight: 700; }
.mkt-profesional-tile { appearance: none; display: flex; flex-direction: column; align-items: center; min-height: 300px; overflow: hidden; border: 1px solid #f3d2d5; border-radius: 14px; background: linear-gradient(180deg, #fffafa, #fdf2f3); color: #3f3f46; cursor: pointer; padding: 0 0 18px; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .07); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; -webkit-tap-highlight-color: transparent; }
.mkt-profesional-tile:hover { border-color: #e58b93 !important; background: linear-gradient(180deg, #fef8f8, #fbe9ea) !important; color: #3f3f46 !important; box-shadow: 0 16px 34px rgba(193, 18, 31, .17); transform: translateY(-3px); }
.mkt-profesional-tile.is-selected { border-color: #c1121f !important; box-shadow: 0 0 0 3px rgba(193, 18, 31, .24), 0 16px 34px rgba(0, 0, 0, .1); }
.mkt-profesional-tile__photo { display: grid; place-items: center; width: 108px; height: 108px; margin: 22px auto 12px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 32% 26%, #fdf2f3, #f0b3b8 70%, #e58b93); color: #8d0801; font-size: 40px; font-weight: 800; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #f3d2d5, 0 12px 24px rgba(0, 0, 0, .16); }
.mkt-profesional-tile__photo img { width: 100%; height: 100%; object-fit: cover; }
.mkt-profesional-tile__body { display: flex; flex: 1; flex-direction: column; align-items: center; width: 100%; padding: 0 16px; }
.mkt-profesional-tile__body strong { color: #1a1a1e; font-size: 17px; line-height: 1.2; }
.mkt-profesional-tile__body > span { margin-top: 5px; color: #8d0801; font-size: 13px; font-weight: 800; }
.mkt-profesional-tile__body p { display: -webkit-box; min-height: 58px; margin: 10px 0 14px; overflow: hidden; color: #52525b; font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mkt-profesional-tile__meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.mkt-profesional-tile__meta span:first-child { color: #1a1a1e; font-size: 14px; font-weight: 800; line-height: 1.3; }
.mkt-profesional-tile__meta span:last-child { border-radius: 999px; background: linear-gradient(135deg, #000000, #111114); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 12px; white-space: nowrap; }
.mkt-modality-panel { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 16px; padding: 18px; border: 1px solid #f3d2d5; border-radius: 8px; background: #fdf2f3; animation: mkt-modality-enter .34s ease both; }
.mkt-modality-panel[hidden] { display: none; }
.mkt-modality-panel > strong { flex: 1 0 100%; color: #1a1a1e; font-size: 14px; }
.mkt-selected-profesional { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 0 100%; padding: 12px 14px; border: 1px solid #f3d2d5; border-radius: 8px; background: #fffafa; }
.mkt-selected-profesional span { display: block; color: #8e8e98; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mkt-selected-profesional strong { display: block; margin-top: 3px; color: #1a1a1e; font-size: 17px; }
.mkt-change-profesional { border: 1px solid #f0b3b8; border-radius: 999px; background: #fff; color: #8d0801; cursor: pointer; font-size: 12px; font-weight: 800; padding: 7px 11px; }
.mkt-change-profesional:hover { background: #fbe9ea; }
.mkt-modality-choice { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 1 1 210px; min-height: 64px; border: 1px solid #f0b3b8; border-radius: 8px; background: #fffafa; color: #8d0801; cursor: pointer; padding: 13px 15px; text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, .05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.mkt-modality-choice:hover, .mkt-modality-choice.is-selected { border-color: #c1121f; background: #fbe9ea; box-shadow: 0 12px 28px rgba(0, 0, 0, .11); transform: translateY(-1px); }
.mkt-modality-choice span { font-size: 15px; font-weight: 800; }
.mkt-modality-choice strong { color: #1a1a1e; font-size: 14px; white-space: nowrap; }
.mkt-agenda.is-choosing-modality .mkt-profesional-intro, .mkt-agenda.is-choosing-modality .mkt-profesional-grid { opacity: 0; transform: translateY(-10px) scale(.985); filter: blur(2px); pointer-events: none; }
.mkt-agenda.is-profesional-grid-hidden .mkt-profesional-intro, .mkt-agenda.is-profesional-grid-hidden .mkt-profesional-grid { display: none; }
.mkt-calendar { position: relative; margin-top: 4px; border: 1px solid #dcdce2; border-radius: 8px; overflow: hidden; background: #fff; }
.mkt-calendar__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 12px; border-bottom: 1px solid #e9e9ee; background: #f7f7f9; }
.mkt-calendar__eyebrow { display: block; color: #6b6b75; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mkt-calendar__bar strong { display: block; margin-top: 2px; color: #1a1a1e; font-size: 16px; }
.mkt-calendar__notice { margin: 0; padding: 8px 12px; border-bottom: 1px solid #e9e9ee; background: #fdf6f6; color: #52525b; font-size: 12px; line-height: 1.4; }
.mkt-calendar__nav { display: flex; gap: 6px; align-items: center; }
.mkt-calendar__nav button { min-width: 34px; height: 32px; border: 1px solid #d3d3da; border-radius: 6px; background: #fff; color: #1a1a1e; cursor: pointer; font-size: 12px; font-weight: 800; }
.mkt-calendar__nav button:hover { border-color: #0d0d0f; color: #0d0d0f; }
.mkt-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid #e9e9ee; }
.mkt-calendar__day-head { min-height: 30px; padding: 8px 6px 0; border-right: 1px solid #e9e9ee; border-bottom: 1px solid #e9e9ee; background: #fff; color: #6b6b75; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.mkt-calendar__day-head:nth-child(7n) { border-right: 0; }
.mkt-calendar__day { appearance: none; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; min-height: 64px; border: 0; border-right: 1px solid #e9e9ee; border-bottom: 1px solid #e9e9ee; background: #fff; color: #26262b; cursor: pointer; padding: 6px 8px; text-align: left; }
.mkt-calendar__day:nth-child(7n) { border-right: 0; }
.mkt-calendar__day strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; }
.mkt-calendar__day-status { overflow: hidden; color: #8e8e98; font-size: 10px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.mkt-calendar__day:hover:not(:disabled), .mkt-calendar__day.is-selected { background: #fdf2f3; box-shadow: inset 0 0 0 2px rgba(193, 18, 31, .28); }
.mkt-calendar__day.is-today strong { background: #c1121f; color: #fff; }
.mkt-calendar__day.has-slots .mkt-calendar__day-status { color: #0d0d0f; }
.mkt-calendar__day.is-outside-month, .mkt-calendar__day.is-past, .mkt-calendar__day:disabled { background: #f7f7f9; color: #b0b0b8; cursor: not-allowed; }
.mkt-calendar__day.is-outside-month strong, .mkt-calendar__day.is-past strong, .mkt-calendar__day:disabled strong { color: #b0b0b8; }
.mkt-calendar__slots { display: none; position: absolute; left: 50%; top: 55%; z-index: 5; width: min(520px, calc(100% - 32px)); max-height: min(430px, calc(100% - 42px)); overflow: auto; transform: translate(-50%, -50%); border: 1px solid #f0b3b8; border-radius: 8px; background: #fffafa; box-shadow: 0 22px 60px rgba(0, 0, 0, .24); padding: 18px; }
.mkt-calendar__slots.is-open { display: block; animation: mkt-slots-pop .18s ease both; }
.mkt-calendar__slots-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f3d2d5; }
.mkt-calendar__slots-head span { display: block; color: #8d0801; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mkt-calendar__slots-head strong { display: block; margin-top: 4px; color: #1a1a1e; font-size: 22px; line-height: 1.1; }
.mkt-calendar__slots-head small { display: block; margin-top: 7px; color: #6b6b75; font-size: 13px; font-weight: 700; }
.mkt-calendar__slots-close { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #f3d2d5; border-radius: 50%; background: #fff; color: #3f3f46; cursor: pointer; line-height: 1; }
.mkt-calendar__slots-close:hover { background: #fbe9ea; color: #8d0801; }
.mkt-calendar__slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.mkt-calendar__event { min-height: 42px; border: 1px solid #f3d2d5; border-radius: 6px; background: #fff; color: #8d0801; cursor: pointer; font-size: 14px; font-weight: 800; padding: 8px 10px; text-align: center; }
.mkt-calendar__event:hover, .mkt-calendar__event.is-selected { border-color: #c1121f; background: #c1121f; color: #fff; }
.mkt-calendar__empty { display: block; border: 1px dashed #f3d2d5; border-radius: 8px; background: #fff; color: #6b6b75; font-size: 14px; font-weight: 700; line-height: 1.4; padding: 18px; text-align: center; }
.mkt-modal__message { min-height: 18px; margin-top: 10px; color: #8d0801; font-weight: 600; }
.mkt-modal__message.is-ok { color: #8d0801; }
.mkt-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.mkt-button--ghost { background: #e9e9ee; color: #26262b; }
.mkt-button--ghost:hover { background: #dcdce2; color: #1a1a1e; }
@keyframes mkt-modality-enter {
	from { opacity: 0; transform: translateY(14px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mkt-slots-pop {
	from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 900px) {
	.mkt-profesional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.mkt-modal__dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); margin-top: 6px; padding: 14px; }
	/* Al elegir la hora, el calendario deja de desplazarse detras de la hoja. */
	.mkt-modal.is-slots-open .mkt-modal__dialog { overflow: hidden; }
	.mkt-modality-panel { padding: 14px; gap: 10px; }
	.mkt-modality-choice { flex: 1 1 100%; min-height: 56px; }
	.mkt-selected-profesional { flex-wrap: wrap; gap: 8px; }
	.mkt-profesional-intro p { font-size: 13px; }
	.mkt-modal__message { font-size: 13px; }
	/* 40px: por debajo de eso el dedo falla. El de la hoja lleva !important
	   porque su tamano se fija asi mas abajo para todas las pantallas. */
	.mkt-modal__close { top: 10px; right: 10px; width: 40px; height: 40px; }
	.mkt-calendar__slots-close { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px !important; max-height: 40px !important; }
	.mkt-modal__head p { font-size: 10px; }
	.mkt-modal__head h2 { margin-bottom: 10px; padding-right: 34px; font-size: 20px; }
	.mkt-profesional-grid { grid-template-columns: 1fr; }
	.mkt-profesional-tile { min-height: 0; }
	.mkt-profesional-tile__photo { width: 92px; height: 92px; margin-top: 18px; font-size: 34px; }
	.mkt-calendar__bar { align-items: stretch; flex-direction: column; gap: 8px; min-height: 0; padding: 9px; }
	.mkt-calendar__bar strong { font-size: 15px; }
	.mkt-calendar__nav { justify-content: space-between; }
	.mkt-calendar__nav button { flex: 1; min-width: 0; height: 32px; }
	.mkt-calendar__day-head { min-height: 26px; padding: 7px 1px 0; font-size: 9px; }
	.mkt-calendar__day { min-height: 54px; padding: 4px; }
	.mkt-calendar__day strong { width: 22px; height: 22px; font-size: 12px; }
	.mkt-calendar__day-status { font-size: 9px; }
	/* Centrada en la pantalla del telefono, no anclada abajo. Va fija al
	   viewport (no al dialogo) para que quede al centro aunque el calendario
	   este desplazado. */
	.mkt-calendar__slots {
		position: fixed; top: 50%; left: 50%; right: auto; bottom: auto;
		width: min(420px, calc(100vw - 24px));
		max-height: min(80vh, 520px); max-height: min(80dvh, 520px);
		transform: translate(-50%, -50%);
		border-width: 1px; border-radius: 12px;
		padding: 8px 14px 14px;
		box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
		overscroll-behavior: contain;
	}
	.mkt-calendar__slots.is-open { animation: mkt-slots-sheet .2s ease both; }
	/* La cabecera queda fija: el boton de cerrar sigue a mano al bajar por las horas. */
	.mkt-calendar__slots-head { position: sticky; top: 0; z-index: 1; margin-bottom: 12px; padding: 6px 0 12px; background: #fffafa; }
	.mkt-calendar__slots-head strong { font-size: 18px; }
	.mkt-calendar__slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 4px; }
	.mkt-calendar__event { min-height: 44px; font-size: 13px; padding: 6px; }
	.mkt-calendar__empty { padding: 14px; font-size: 13px; }
	.mkt-modal__actions { flex-direction: column-reverse; }
	.mkt-button { width: 100%; }
}
@keyframes mkt-slots-sheet {
	from { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
	to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.mkt-portal, .mkt-portal * { box-sizing: border-box; }
/* Linea grafica: reemplaza el azul del navegador/tema por la paleta pastel en el portal
   (accent-color pinta checkboxes, radios, inputs de fecha/hora y sliders en terracota) */
.mkt-portal { accent-color: #c1121f; }
.mkt-portal ::selection { background: #f7d3d6; color: #0d0d0f; }
.mkt-portal a, .mkt-portal button, .mkt-portal input, .mkt-portal select, .mkt-portal textarea { -webkit-tap-highlight-color: transparent; }
.mkt-portal a:focus, .mkt-portal button:focus, .mkt-portal input:focus, .mkt-portal select:focus, .mkt-portal textarea:focus { outline: none; }
.mkt-portal a:focus-visible, .mkt-portal button:focus-visible, .mkt-portal input:focus-visible, .mkt-portal select:focus-visible, .mkt-portal textarea:focus-visible { outline: 2px solid #c1121f; outline-offset: 2px; }
/* El tema del sitio pinta de azul el borde de los campos enfocados: aqui se
   sustituye por el coral del portal. */
.mkt-portal input:focus, .mkt-portal select:focus, .mkt-portal textarea:focus { border-color: #c1121f; box-shadow: 0 0 0 3px rgba(193, 18, 31, .16); }
.mkt-portal input[type="date"]:focus, .mkt-portal input[type="time"]:focus { outline: none; }
.mkt-portal { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; padding: 32px 18px; background: #f7f7f9; color: #26262b; font-family: Arial, sans-serif; }
.mkt-portal::before { content: ""; position: fixed; inset: -7%; z-index: -2; background: url("../../../admin/assets/img/fondo.jpg") center / cover no-repeat; opacity: .5; animation: mkt-portal-drift 42s ease-in-out infinite alternate; }
.mkt-portal::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.55), transparent 34%), radial-gradient(circle at 82% 12%, rgba(255,255,255,.5), transparent 28%), linear-gradient(180deg, rgba(255,255,255,.5), rgba(250,250,251,.72)); backdrop-filter: blur(1px); }
.mkt-portal-card, .mkt-portal-header { width: min(1120px, 100%); margin: 0 auto 18px; border: 1px solid rgba(233,233,238,.82); border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 18px 42px rgba(0, 0, 0, .09); backdrop-filter: blur(10px); }
.mkt-portal-card { padding: 22px; }
.mkt-portal-card h1, .mkt-portal-card h2, .mkt-portal-card h3 { margin-top: 0; color: #1a1a1e; line-height: 1.2; }
.mkt-portal-card h1 { font-size: 28px; }
.mkt-portal-card h2 { margin-bottom: 18px; font-size: 20px; }
.mkt-portal-card h3 { margin-bottom: 12px; font-size: 16px; }
.mkt-portal-card p { color: #6b6b75; }
.mkt-portal label { display: block; margin: 0 0 14px; color: #3f3f46; font-weight: 700; }
.mkt-portal input[type="text"], .mkt-portal input[type="email"], .mkt-portal input[type="password"], .mkt-portal input[type="number"], .mkt-portal input[type="time"], .mkt-portal input[type="date"], .mkt-portal input[type="file"], .mkt-portal textarea { display: block; width: 100%; min-height: 42px; margin-top: 6px; border: 1px solid #e4d3d5; border-radius: 6px; background: #fff; color: #1a1a1e; padding: 8px 10px; }
.mkt-portal textarea { min-height: 118px; resize: vertical; }
.mkt-portal-login { max-width: 460px; margin-top: 8vh; }
.mkt-portal-alert { width: min(1120px, 100%); margin: 0 auto 16px; border: 1px solid #f3d2d5; border-radius: 8px; background: #fdf2f3; color: #8d0801; padding: 12px 14px; font-weight: 700; }
.mkt-portal-alert.is-ok { border-color: #d3d3da; background: #f7f7f9; color: #1a1a1e; }
.mkt-portal-shell { width: 100%; }
.mkt-portal-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.mkt-portal-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mkt-portal-identity h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.mkt-portal-identity p { margin: 4px 0 0; color: #6b6b75; }
.mkt-portal-avatar { display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; width: 64px; height: 64px; border: 1px solid #e4d3d5; border-radius: 50%; background: #fef8f8; color: #8d0801; font-size: 24px; font-weight: 800; }
.mkt-portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mkt-portal-logout { color: #8d0801; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mkt-portal-logout:hover { color: #8d0801; }
.mkt-portal-header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mkt-portal-password-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; border: 1px solid #f0b3b8; border-radius: 6px; background: #fff; color: #8d0801; font-weight: 800; font-size: 13px; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.mkt-portal-password-trigger:hover { background: #fef8f8; }
.mkt-portal-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.mkt-portal-modal-overlay[hidden] { display: none; }
.mkt-portal-modal { width: min(440px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.mkt-portal-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mkt-portal-modal-head h2 { margin: 0; font-size: 19px; }
.mkt-portal-modal-close { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid #f3d2d5; border-radius: 50%; background: #fdf2f3; color: #c1121f; cursor: pointer; line-height: 1; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.mkt-portal-modal-close:hover { background: #111114 !important; border-color: #111114 !important; color: #fff !important; transform: scale(1.06); }
.mkt-portal-modal-close svg, .mkt-calendar__slots-close svg, .mkt-modal__close svg { display: block; width: 16px !important; height: 16px !important; flex: 0 0 auto; }
/* Forma perfecta de circulo: el tema no puede estirar estos botones a ovalo (padding/min-height) */
.mkt-portal-modal-close, .mkt-calendar__slots-close { box-sizing: border-box !important; width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; max-width: 34px !important; max-height: 34px !important; padding: 0 !important; flex: 0 0 auto !important; }
.mkt-portal-password-field { position: relative; display: block; margin-top: 6px; }
.mkt-portal-password-field input[type="password"], .mkt-portal-password-field input[type="text"] { margin-top: 0; padding-right: 44px; }
.mkt-portal-password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #b0b0b8; cursor: pointer; }
.mkt-portal-password-toggle:hover { color: #c1121f; background: #fdf2f3; }
.mkt-portal-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.mkt-portal-modal-actions .mkt-button { width: auto; }
.mkt-portal-grid, .mkt-portal-modalities, .mkt-portal-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mkt-portal-check { display: flex !important; gap: 9px; align-items: center; margin-top: 8px !important; }
.mkt-portal-check input { flex: 0 0 auto; margin: 0; }
.mkt-portal-modality, .mkt-portal-schedule-card, .mkt-portal-day { border: 1px solid #ebd9db; border-radius: 8px; background: #fdf6f6; padding: 14px; }
.mkt-portal-day { margin-bottom: 10px; background: #fff; }
.mkt-portal-day-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mkt-portal-day-top label { margin-bottom: 0; }
.mkt-portal-day-top input[type="number"] { width: 76px; display: inline-block; margin: 0 4px; }
.mkt-portal-segments { display: grid; gap: 8px; }
.mkt-portal-segment { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.mkt-portal-segment label { margin: 0; color: #8e8e98; font-size: 12px; }
.mkt-portal-segment button, .mkt-portal-small-button { min-height: 34px; border: 1px solid #f0b3b8; border-radius: 6px; background: #fff; color: #8d0801; cursor: pointer; font-weight: 800; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.mkt-portal-segment button:hover, .mkt-portal-small-button:hover { background: #fdf2f3 !important; border-color: #e58b93 !important; color: #8d0801 !important; }
.mkt-portal-segment button:active, .mkt-portal-small-button:active { background: #fbe9ea !important; }
.mkt-portal-small-button { margin-top: 10px; padding: 0 12px; }
.mkt-portal input[type="time"]::-webkit-calendar-picker-indicator, .mkt-portal input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; filter: sepia(.4) saturate(1.8) hue-rotate(-8deg); }
.mkt-portal-actions { position: sticky; bottom: 0; width: min(1120px, 100%); margin: 0 auto; padding: 14px 0; background: linear-gradient(180deg, rgba(242,242,244,0), rgba(242,242,244,.94) 35%); }
.mkt-portal-actions .mkt-button { width: auto; }
.mkt-portal-bookings-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 6px; margin-right: -6px; }
.mkt-portal-bookings-more { display: flex; justify-content: center; padding-top: 4px; }
.mkt-portal-bookings-more .mkt-portal-small-button { padding: 0 18px; }
.mkt-portal-booking-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid #ebd9db; border-radius: 8px; background: #fdf6f6; padding: 12px 14px; }
.mkt-portal-booking-row.is-cancelled { background: #f2f2f4; border-color: #e9e9ee; }
.mkt-portal-booking-row.is-cancelled .mkt-portal-booking-info strong,
.mkt-portal-booking-row.is-cancelled .mkt-portal-booking-info span:not(.mkt-portal-status) { color: #b0b0b8; }
.mkt-portal-booking-row.is-completed { background: #f7f7f9; border-color: #dcdce2; }
.mkt-portal-booking-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mkt-portal-booking-info strong { color: #1a1a1e; }
.mkt-portal-booking-info span { color: #6b6b75; font-size: 13px; }
.mkt-portal-booking-note { font-style: italic; }
.mkt-portal-status { display: inline-block; width: fit-content; margin-top: 2px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; color: #6b6b75; background: #efeff2; }
.mkt-portal-status-confirmed { color: #1a1a1e; background: #e9e9ee; }
.mkt-portal-status-pending_payment { color: #8d0801; background: #fdf2f3; }
.mkt-portal-status-cancelled, .mkt-portal-status-cancelled_no_payment { color: #8d0801; background: #fbe9ea; }
.mkt-portal-status-completed { color: #1a1a1e; background: #dcdce2; }
.mkt-portal-booking-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mkt-portal-booking-actions > form { display: contents; }
.mkt-portal-reschedule { position: relative; flex: 1 1 100%; }
.mkt-portal-reschedule summary { list-style: none; cursor: pointer; }
.mkt-portal-reschedule summary::-webkit-details-marker { display: none; }
.mkt-portal-reschedule summary::marker { content: ""; }
.mkt-portal-reschedule-panel { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 12px; border: 1px solid #ebd9db; border-radius: 8px; background: #fff; }
.mkt-portal-reschedule-panel label { margin: 0; min-width: 140px; font-size: 12px; color: #6b6b75; }
.mkt-portal-reschedule-panel input[type="date"], .mkt-portal-reschedule-panel input[type="time"] { min-height: 38px; }
.mkt-portal-reschedule-panel .mkt-button { min-height: 38px; padding: 0 14px; font-size: 13px; }
.mkt-portal-icon-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 1px solid transparent; border-radius: 6px; padding: 0 14px; font-weight: 800; font-size: 13px; cursor: pointer; transition: filter .15s ease; }
.mkt-portal-icon-button svg { flex: 0 0 auto; }
.mkt-portal-icon-button.is-finish { border-color: #d3d3da; background: #f2f2f4; color: #1a1a1e; }
.mkt-portal-icon-button.is-cancel { border-color: #f3d2d5; background: #fdf2f3; color: #8d0801; }
.mkt-portal-icon-button.is-reschedule { border-color: #dcdce2; background: #f2f2f4; color: #3f3f46; }
.mkt-portal-icon-button.is-gcal { border-color: #f3d2d5; background: #fdf2f3; color: #8d0801; text-decoration: none; }
.mkt-portal-icon-button.is-gcal:hover { filter: brightness(.97); }
.mkt-portal-icon-button:hover { filter: brightness(.95); }

/* Aqui vivia el dashboard de bloques en dos columnas (.mkt-portal-block--profile
   y --schedule). Ese layout ya no existe en el markup: lo reemplazo
   .mkt-portal-columns. Las reglas quedaron huerfanas y su
   "display:grid; grid-template-columns: repeat(2,1fr)" seguia aplicandose al
   unico .mkt-portal-blocks que si existe —el listado dentro del modal de
   bloqueos—, partiendolo en dos columnas y aplastando las filas. */

/* Botones que abren el horario de cada modalidad */
.mkt-portal-schedule-buttons { display: grid; gap: 12px; margin-top: auto; }
.mkt-portal-schedule-open { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid #ebd9db; border-radius: 12px; background: #fff; padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease; }
.mkt-portal-schedule-open:hover { border-color: #e58b93; box-shadow: 0 10px 26px rgba(193,18,31,.15); }
.mkt-portal-schedule-open:active { transform: translateY(1px); }
.mkt-portal-schedule-open-icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #000000, #c1121f); color: #fff; font-size: 17px; }
.mkt-portal-schedule-open-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.mkt-portal-schedule-open-text strong { color: #1a1a1e; font-size: 15px; }
.mkt-portal-schedule-open-text small { color: #8e8e98; font-size: 12px; }
.mkt-portal-schedule-open-chevron { flex: 0 0 auto; color: #b0b0b8; }
.mkt-portal-schedule-empty { margin: 0; color: #8e8e98; }

/* Modal de horario (mas ancho que el de contrasena) */
.mkt-portal-schedule-modal .mkt-portal-modal { width: min(640px, 100%); }
.mkt-portal-schedule-hint { margin: 0 0 14px; color: #8e8e98; font-size: 13px; }
.mkt-portal-schedule-days { display: grid; gap: 10px; }

/* ===== Portal rediseñado: cabecera profesional, indicadores y config colapsable ===== */
.mkt-portal-eyebrow { display: block; color: #8d0801; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mkt-portal-identity-text h1 { margin: 4px 0 2px; font-size: 25px; line-height: 1.1; color: #1a1a1e; }
.mkt-portal-identity-text p { margin: 0; color: #6b6b75; font-weight: 600; }
.mkt-portal-avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #f3d2d5, 0 10px 22px rgba(0, 0, 0, .14); }

/* Botones de la cabecera (arregla el "se pone blanco" al pasar el mouse: color explicito) */
.mkt-portal-ghost-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid #ebd9db; border-radius: 9px; background: #fff; color: #8d0801 !important; font-weight: 700; font-size: 13px; padding: 0 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.mkt-portal-ghost-btn:hover { background: #c1121f !important; border-color: #c1121f; color: #fff !important; box-shadow: 0 8px 18px rgba(193, 18, 31, .22); }
.mkt-portal-ghost-btn.is-logout { color: #8d0801 !important; }
.mkt-portal-ghost-btn.is-logout:hover { background: #8d0801 !important; border-color: #8d0801; color: #fff !important; }

/* Indicadores (stats) */
.mkt-portal-stats { width: min(1120px, 100%); margin: 0 auto 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mkt-portal-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(233, 233, 238, .82); border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 26px rgba(0, 0, 0, .07); backdrop-filter: blur(10px); }
.mkt-portal-stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; font-size: 18px; background: linear-gradient(135deg, #000000, #111114); color: #fff; }
.mkt-portal-stat-icon.is-pending { background: linear-gradient(135deg, #f3d2d5, #e58b93); color: #8d0801; }
.mkt-portal-stat-icon.is-done { background: linear-gradient(135deg, #d3d3da, #b0b0b8); color: #1a1a1e; }
.mkt-portal-stat-body { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.mkt-portal-stat-num { font-size: 26px; font-weight: 800; color: #1a1a1e; font-variant-numeric: tabular-nums; }
.mkt-portal-stat-label { margin-top: 3px; color: #6b6b75; font-size: 12.5px; font-weight: 600; }

/* Encabezado de la seccion de configuracion */
.mkt-portal-config-head { width: min(1120px, 100%); margin: 26px auto 12px; }
.mkt-portal-config-head h2 { margin: 0 0 3px; font-size: 17px; color: #1a1a1e; }
.mkt-portal-config-head p { margin: 0; color: #6b6b75; font-size: 13px; }

/* Paneles colapsables */
.mkt-portal-collapse { width: min(1120px, 100%); margin: 0 auto 12px; border: 1px solid rgba(233, 233, 238, .82); border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px rgba(0, 0, 0, .06); overflow: hidden; }
.mkt-portal-collapse[open] { box-shadow: 0 14px 32px rgba(0, 0, 0, .1); }
.mkt-portal-collapse-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; list-style: none; user-select: none; }
.mkt-portal-collapse-head::-webkit-details-marker { display: none; }
.mkt-portal-collapse-head::marker { content: ""; }
.mkt-portal-collapse-head:hover { background: #fdf6f6; }
.mkt-portal-collapse-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; font-size: 16px; background: linear-gradient(135deg, #000000, #c1121f); color: #fff; }
.mkt-portal-collapse-title { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mkt-portal-collapse-title strong { color: #1a1a1e; font-size: 15.5px; }
.mkt-portal-collapse-title small { margin-top: 2px; color: #8e8e98; font-size: 12.5px; }
.mkt-portal-collapse-chevron { flex: 0 0 auto; color: #b0b0b8; transition: transform .2s ease; }
.mkt-portal-collapse[open] .mkt-portal-collapse-chevron { transform: rotate(180deg); }
.mkt-portal-collapse-body { padding: 16px 18px 20px; border-top: 1px solid #efeff2; }
.mkt-portal-collapse-note { margin: 0 0 14px; color: #8e8e98; font-size: 13px; }

/* Layout de dos columnas: reservas (izquierda) + configuracion (derecha) */
.mkt-portal-columns { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mkt-portal-col-main, .mkt-portal-col-side { min-width: 0; }
.mkt-portal-columns .mkt-portal-card,
.mkt-portal-columns .mkt-portal-config-head,
.mkt-portal-columns .mkt-portal-collapse,
.mkt-portal-columns .mkt-portal-actions { width: 100%; margin-left: 0; margin-right: 0; }
.mkt-portal-columns .mkt-portal-config-head { margin-top: 0; }

/* Blindaje anti-azul del tema en TODOS los botones del portal (fondo, color, borde y sombra en hover/focus/active) */
.mkt-portal .mkt-button { background: #c1121f !important; color: #fff !important; border-color: #c1121f !important; }
.mkt-portal .mkt-button:hover, .mkt-portal .mkt-button:focus, .mkt-portal .mkt-button:active { background: #8d0801 !important; color: #fff !important; border-color: #8d0801 !important; box-shadow: none !important; }
.mkt-portal-schedule-open:hover, .mkt-portal-schedule-open:focus { background: #fef8f8 !important; border-color: #e58b93 !important; box-shadow: 0 10px 26px rgba(193, 18, 31, .15) !important; }
.mkt-portal-segment button:hover, .mkt-portal-segment button:focus, .mkt-portal-segment button:active,
.mkt-portal-small-button:hover, .mkt-portal-small-button:focus, .mkt-portal-small-button:active { background: #fdf2f3 !important; border-color: #e58b93 !important; color: #8d0801 !important; box-shadow: none !important; }

@keyframes mkt-portal-drift {
	from { transform: translate3d(-18px, -18px, 0) scale(1.02); }
	to { transform: translate3d(18px, 18px, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
	.mkt-portal::before { animation: none; }
}

@media (max-width: 760px) {
	.mkt-portal { padding: 16px 10px; }
	.mkt-portal-card { padding: 16px; }
	.mkt-portal-header { align-items: flex-start; flex-direction: column; padding: 16px; }
	.mkt-portal-columns, .mkt-portal-stats, .mkt-portal-blocks, .mkt-portal-grid, .mkt-portal-modalities, .mkt-portal-schedule, .mkt-portal-segment { grid-template-columns: 1fr; }
	.mkt-portal-day-top { align-items: flex-start; flex-direction: column; }
	.mkt-portal-actions .mkt-button { width: 100%; }
	.mkt-portal-booking-row { flex-direction: column; align-items: stretch; }
	.mkt-portal-booking-actions { justify-content: flex-start; }
	.mkt-portal-icon-button { flex: 1 1 auto; justify-content: center; }
	.mkt-portal-header-actions { width: 100%; justify-content: space-between; }
	.mkt-portal-modal { padding: 20px; }
	.mkt-portal-modal-actions { flex-direction: column-reverse; }
	.mkt-portal-modal-actions .mkt-button, .mkt-portal-modal-actions .mkt-portal-small-button { width: 100%; }
}

/* ── Portal: bloqueos puntuales ─────────────────────────────────────────── */
.mkt-portal-schedule-open.is-blocks .mkt-portal-schedule-open-icon { background: linear-gradient(135deg, #f7d3d6, #e58b93); color: #8d0801; }
.mkt-portal-modal.is-wide { width: min(620px, 100%); }
.mkt-portal-modal-sub { margin: 4px 0 0; color: #6b6b75; font-size: 13px; line-height: 1.45; }
.mkt-portal-block-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.mkt-portal-block-form .mkt-portal-modal-actions { margin-top: 8px; }
.mkt-portal-blocks { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ebd9db; }
.mkt-portal-blocks h3 { margin: 0 0 12px; color: #1a1a1e; font-size: 15px; }
.mkt-portal-blocks-empty { margin: 0; color: #6b6b75; font-size: 13px; font-style: italic; }
.mkt-portal-blocks-list { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.mkt-portal-block-row { display: flex; align-items: center; gap: 12px; border: 1px solid #ebd9db; border-radius: 8px; background: #fdf6f6; padding: 10px 12px; }
.mkt-portal-block-when { display: flex; flex-direction: column; flex: 0 0 auto; min-width: 104px; }
.mkt-portal-block-when strong { color: #1a1a1e; font-size: 14px; }
.mkt-portal-block-when span { color: #6b6b75; font-size: 12px; }
.mkt-portal-block-reason { flex: 1 1 auto; min-width: 0; color: #6b6b75; font-size: 13px; }
.mkt-portal-block-row form { flex: 0 0 auto; margin: 0; }
.mkt-portal-block-row .mkt-portal-icon-button { padding: 0 12px; }

@media (max-width: 640px) {
	.mkt-portal-block-fields { grid-template-columns: 1fr; }
	.mkt-portal-block-row { flex-wrap: wrap; }
}
.mkt-portal-block-fields label.is-full { grid-column: 1 / -1; }
.mkt-portal-block-fields small { display: block; margin-top: 4px; color: #8e8e98; font-weight: 400; font-size: 11px; }
.mkt-portal-block-note { margin: 4px 0 0; color: #8e8e98; font-size: 12px; font-style: italic; }

/* ── Portal: lenguetas de estado y orden en "Mis reservas" ──────────────
   Todo va prefijado con .mkt-portal y con los estilos de boton anulados
   a mano: el portal se renderiza dentro del tema del sitio, y sin este reset
   el tema pinta sus propios botones (azules) sobre las lenguetas. */
.mkt-portal .mkt-portal-tab,
.mkt-portal .mkt-portal-sort-option,
.mkt-portal .mkt-portal-sort-dir {
	appearance: none; -webkit-appearance: none;
	margin: 0; border: 0; border-radius: 0; background: none; background-color: transparent;
	box-shadow: none; text-shadow: none; text-transform: none; text-decoration: none;
	font-family: inherit; line-height: 1.2; letter-spacing: 0; cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

/* Barra: una sola linea siempre. Si no caben, se desplaza en horizontal. */
.mkt-portal .mkt-portal-tabs {
	position: relative; display: flex; flex-wrap: nowrap; gap: 2px;
	margin: 0 0 16px; padding: 5px;
	border: 1px solid #ebd9db; border-radius: 12px; background: #fdf6f6;
	overflow: hidden;
}
.mkt-portal .mkt-portal-tabs::-webkit-scrollbar { display: none; }

.mkt-portal .mkt-portal-tab {
	position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 36px; padding: 0 12px; border-radius: 9px;
	color: #6b6b75; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.mkt-portal .mkt-portal-tab span { overflow: hidden; text-overflow: ellipsis; }
.mkt-portal .mkt-portal-tab i { font-size: 12px; color: #b0b0b8; transition: color .2s ease; }
.mkt-portal .mkt-portal-tab:hover { color: #8d0801; background: none; }
.mkt-portal .mkt-portal-tab:hover i { color: #c1121f; }
.mkt-portal .mkt-portal-tab.is-active { color: #8d0801; font-weight: 800; }
.mkt-portal .mkt-portal-tab.is-active i { color: #c1121f; }
.mkt-portal .mkt-portal-tab:focus { outline: none; box-shadow: none; }
.mkt-portal .mkt-portal-tab:focus-visible { outline: 2px solid #c1121f; outline-offset: -2px; }

/* La pastilla blanca se desliza bajo la lengueta activa. */
.mkt-portal .mkt-portal-tab-marker {
	position: absolute; top: 0; left: 0; z-index: 0; height: 36px;
	border-radius: 9px; background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .13), 0 0 0 1px rgba(233, 233, 238, .9);
	transition: transform .3s cubic-bezier(.34, 1.24, .5, 1), width .3s cubic-bezier(.34, 1.24, .5, 1), height .3s ease;
	pointer-events: none;
}

.mkt-portal .mkt-portal-sort {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #efeff2;
	opacity: 1; max-height: 70px;
	transition: opacity .22s ease, max-height .3s ease, margin .3s ease;
}
.mkt-portal .mkt-portal-sort.is-hidden { opacity: 0; max-height: 0; margin-bottom: 0; padding-bottom: 0; border-bottom-color: transparent; overflow: hidden; pointer-events: none; }
.mkt-portal .mkt-portal-sort-label { color: #8e8e98; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.mkt-portal .mkt-portal-sort-options { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #ebd9db; border-radius: 999px; background: #fff; }
.mkt-portal .mkt-portal-sort-option { min-height: 30px; padding: 0 14px; border-radius: 999px; color: #6b6b75; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mkt-portal .mkt-portal-sort-option:hover { color: #8d0801; background-color: #fdf2f3; }
.mkt-portal .mkt-portal-sort-option.is-active { background-color: #c1121f; color: #fff; }
.mkt-portal .mkt-portal-sort-option:focus-visible { outline: 2px solid #c1121f; outline-offset: 1px; }
.mkt-portal .mkt-portal-sort-dir {
	margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px;
	border: 1px solid #f0b3b8; border-radius: 999px; background-color: #fff;
	color: #8d0801; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.mkt-portal .mkt-portal-sort-dir:hover { background-color: #fdf2f3; border-color: #e58b93; }
.mkt-portal .mkt-portal-sort-dir:focus-visible { outline: 2px solid #c1121f; outline-offset: 1px; }
.mkt-portal .mkt-portal-sort-dir i { font-size: 11px; }

.mkt-portal .mkt-portal-tab-empty { margin: 0 0 14px; padding: 26px 20px; border: 1px dashed #ebd9db; border-radius: 10px; background: #fffafa; color: #8e8e98; font-size: 13px; text-align: center; }
.mkt-portal .mkt-portal-tab-empty[hidden] { display: none; }

.mkt-portal-bookings-list .mkt-portal-booking-row { transition: opacity .24s ease, transform .24s ease; }
.mkt-portal-booking-row.is-filtered-out { display: none; }
.mkt-portal-bookings-list.is-reordering .mkt-portal-booking-row { opacity: .25; transform: translateY(4px); }

@media (prefers-reduced-motion: reduce) {
	.mkt-portal .mkt-portal-tab-marker,
	.mkt-portal .mkt-portal-sort,
	.mkt-portal-bookings-list .mkt-portal-booking-row { transition: none; }
}

@media (max-width: 430px) {
	.mkt-portal .mkt-portal-tabs { flex-wrap: wrap; }
	.mkt-portal .mkt-portal-tab { flex: 1 1 auto; }
}

@media (max-width: 600px) {
	.mkt-portal .mkt-portal-tabs { gap: 1px; padding: 4px; }
	.mkt-portal .mkt-portal-tab { gap: 5px; padding: 0 7px; font-size: 12px; }
	.mkt-portal .mkt-portal-tab i { display: none; }
	.mkt-portal .mkt-portal-sort { gap: 8px; }
	.mkt-portal .mkt-portal-sort-label { flex: 1 0 100%; }
	.mkt-portal .mkt-portal-sort-dir { margin-left: 0; }
}

.mkt-portal-bookings-more { flex-direction: column; gap: 8px; }
.mkt-portal-bookings-count { margin: 0; color: #8e8e98; font-size: 12px; text-align: center; line-height: 1.5; }

/* ── Selector de modo del bloqueo en el portal ──────────────────────────── */
.mkt-portal .mkt-portal-modes { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border: 1px solid #ebd9db; border-radius: 10px; background: #fdf6f6; }
.mkt-portal .mkt-portal-mode { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; margin: 0 !important; min-height: 38px; border-radius: 7px; color: #6b6b75; font-size: 13px; font-weight: 700 !important; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.mkt-portal .mkt-portal-mode input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mkt-portal .mkt-portal-mode i { font-size: 12px; color: #b0b0b8; }
.mkt-portal .mkt-portal-mode:hover { color: #8d0801; }
.mkt-portal .mkt-portal-mode.is-active { background: #fff; color: #8d0801; box-shadow: 0 2px 8px rgba(0, 0, 0, .13), 0 0 0 1px rgba(233, 233, 238, .9); }
.mkt-portal .mkt-portal-mode.is-active i { color: #c1121f; }
.mkt-portal .mkt-portal-check { display: flex !important; align-items: center; gap: 9px; }
.mkt-portal [data-mkt-hours][hidden], .mkt-portal [data-mkt-range-only][hidden] { display: none !important; }

/* ── Portal: enlace y modal de politicas de privacidad ──────────────────── */
.mkt-portal .mkt-portal-legal { margin: 18px 0 0; text-align: center; }
.mkt-portal .mkt-portal-legal-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: #8e8e98; font-family: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .18s ease; }
.mkt-portal .mkt-portal-legal-link:hover { color: #8d0801; }
.mkt-portal .mkt-portal-legal-link i { font-size: 11px; }
.mkt-portal .mkt-portal-legal-link:focus-visible { outline: 2px solid #c1121f; outline-offset: 2px; }

.mkt-portal .mkt-portal-legal-body { max-height: min(66vh, 560px); max-height: min(66dvh, 560px); overflow-y: auto; padding-right: 6px; color: #3f3f46; font-size: 13.5px; line-height: 1.65; overscroll-behavior: contain; }
.mkt-portal .mkt-portal-legal-body h3 { margin: 20px 0 8px; color: #1a1a1e; font-size: 14px; }
.mkt-portal .mkt-portal-legal-body h3:first-child { margin-top: 0; }
.mkt-portal .mkt-portal-legal-body p { margin: 0 0 10px; color: #52525b; }
.mkt-portal .mkt-portal-legal-body ul { margin: 0 0 12px; padding-left: 18px; }
.mkt-portal .mkt-portal-legal-body li { margin-bottom: 5px; color: #52525b; }
.mkt-portal .mkt-portal-legal-body strong { color: #1a1a1e; }

/* ═══════════════════════════════════════════════════════════════════════════
   PORTAL — capa moderna
   Va al final a proposito: el portal se renderiza dentro del tema del sitio y
   varias reglas de arriba son blindajes contra los estilos del tema. En vez de
   reescribirlas, esta capa se monta encima y se queda con la ultima palabra.
   ═══════════════════════════════════════════════════════════════════════════ */

.mkt-portal {
	--mkt-ink: #0d0d0f;
	--mkt-ink-2: #1a1a1e;
	--mkt-body: #3f3f46;
	--mkt-muted: #6b6b75;
	--mkt-muted-2: #8e8e98;
	--mkt-line: #e6e6ec;
	--mkt-surface: #f2f2f4;
	--mkt-red: #c1121f;
	--mkt-red-dark: #8d0801;
	--mkt-red-soft: #fdf2f3;
	--mkt-radius: 16px;
	--mkt-radius-sm: 11px;
	--mkt-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .07);
	--mkt-shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 20px 44px rgba(0, 0, 0, .12);
	--mkt-ease: cubic-bezier(.22, 1, .36, 1);

	background: var(--mkt-surface);
	color: var(--mkt-body);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding: 30px 18px 44px;
}

/* La foto de fondo pasa a textura neutra: el unico color con voz es el rojo. */
.mkt-portal::before { opacity: .26; filter: grayscale(1) contrast(1.08); }
.mkt-portal::after { background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(242, 242, 244, .84)); }

.mkt-portal ::selection { background: var(--mkt-red); color: #fff; }
.mkt-portal a:focus-visible, .mkt-portal button:focus-visible,
.mkt-portal input:focus-visible, .mkt-portal select:focus-visible, .mkt-portal textarea:focus-visible,
.mkt-portal summary:focus-visible { outline: 2px solid var(--mkt-red); outline-offset: 2px; border-radius: 8px; }
.mkt-portal input:focus, .mkt-portal select:focus, .mkt-portal textarea:focus {
	border-color: var(--mkt-red); box-shadow: 0 0 0 3px rgba(193, 18, 31, .13);
}

/* ── Cabecera: banda negra con acento rojo ──────────────────────────────── */
.mkt-portal-header {
	position: relative; overflow: hidden;
	padding: 26px 28px;
	border: 0; border-radius: var(--mkt-radius);
	background: linear-gradient(120deg, #000 0%, #16161a 52%, #3d0a10 100%);
	box-shadow: var(--mkt-shadow);
	backdrop-filter: none;
}
/* Halo rojo que respira: da vida a la cabecera sin distraer. */
.mkt-portal-header::after {
	content: ""; position: absolute; top: -60%; right: -10%; width: 420px; height: 420px;
	background: radial-gradient(circle, rgba(193, 18, 31, .5), transparent 62%);
	pointer-events: none; animation: mkt-portal-glow 9s ease-in-out infinite alternate;
}
.mkt-portal-header > * { position: relative; z-index: 1; }
.mkt-portal-eyebrow { color: #f0b3b8; letter-spacing: .14em; }
.mkt-portal-identity-text h1 { color: #fff; font-size: 27px; letter-spacing: -.02em; }
.mkt-portal-identity-text p { color: rgba(255, 255, 255, .66); font-weight: 500; }
.mkt-portal-avatar {
	background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 12px 28px rgba(0, 0, 0, .45);
}
.mkt-portal-header .mkt-portal-ghost-btn {
	border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .07);
	color: #fff !important; backdrop-filter: blur(6px);
}
.mkt-portal-header .mkt-portal-ghost-btn:hover {
	background: #fff !important; border-color: #fff; color: var(--mkt-ink) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.mkt-portal-header .mkt-portal-ghost-btn.is-logout { color: #f0b3b8 !important; }
.mkt-portal-header .mkt-portal-ghost-btn.is-logout:hover {
	background: var(--mkt-red) !important; border-color: var(--mkt-red); color: #fff !important;
}

/* ── Tarjetas ───────────────────────────────────────────────────────────── */
.mkt-portal-card, .mkt-portal-collapse, .mkt-portal-stat {
	border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius);
	background: rgba(255, 255, 255, .96); box-shadow: var(--mkt-shadow);
}
.mkt-portal-card { padding: 24px; }
.mkt-portal-card h1, .mkt-portal-card h2, .mkt-portal-card h3 { color: var(--mkt-ink-2); letter-spacing: -.01em; }
.mkt-portal-card p { color: var(--mkt-muted); }

/* ── Indicadores ────────────────────────────────────────────────────────── */
.mkt-portal-stat {
	padding: 18px 20px;
	transition: transform .28s var(--mkt-ease), box-shadow .28s var(--mkt-ease), border-color .28s var(--mkt-ease);
}
.mkt-portal-stat:hover { transform: translateY(-3px); box-shadow: var(--mkt-shadow-lift); border-color: #dcdce2; }
.mkt-portal-stat-icon {
	width: 48px; height: 48px; border-radius: 14px;
	background: linear-gradient(140deg, #1a1a1e, #000); color: #fff;
}
.mkt-portal-stat-icon.is-pending { background: linear-gradient(140deg, var(--mkt-red), var(--mkt-red-dark)); color: #fff; }
.mkt-portal-stat-icon.is-done { background: linear-gradient(140deg, #52525b, #26262b); color: #fff; }
.mkt-portal-stat-num { font-size: 30px; color: var(--mkt-ink); letter-spacing: -.03em; }
.mkt-portal-stat-label { color: var(--mkt-muted); }

/* ── Paneles colapsables ────────────────────────────────────────────────── */
.mkt-portal-collapse { transition: box-shadow .28s var(--mkt-ease), border-color .28s var(--mkt-ease); }
.mkt-portal-collapse[open] { box-shadow: var(--mkt-shadow-lift); border-color: #dcdce2; }
.mkt-portal-collapse-head:hover { background: var(--mkt-red-soft); }
.mkt-portal-collapse-icon {
	width: 44px; height: 44px; border-radius: 13px;
	background: linear-gradient(140deg, #1a1a1e, #000); color: #fff;
}
.mkt-portal-collapse[open] .mkt-portal-collapse-icon { background: linear-gradient(140deg, var(--mkt-red), var(--mkt-red-dark)); }
.mkt-portal-collapse-title strong { color: var(--mkt-ink-2); }
.mkt-portal-collapse-chevron { color: var(--mkt-muted-2); }
.mkt-portal-collapse-body { border-top-color: var(--mkt-line); animation: mkt-portal-reveal .34s var(--mkt-ease) backwards; }

/* ── Accesos al horario ─────────────────────────────────────────────────── */
.mkt-portal-schedule-open { border-radius: 14px; border-color: var(--mkt-line); }
.mkt-portal-schedule-open:hover, .mkt-portal-schedule-open:focus {
	border-color: var(--mkt-red) !important; background: #fff !important;
	box-shadow: 0 14px 30px rgba(193, 18, 31, .13) !important; transform: translateY(-2px);
}
.mkt-portal-schedule-open-icon,
.mkt-portal-schedule-open.is-blocks .mkt-portal-schedule-open-icon {
	background: linear-gradient(140deg, #1a1a1e, #000); color: #fff;
}
.mkt-portal-schedule-open:hover .mkt-portal-schedule-open-icon { background: linear-gradient(140deg, var(--mkt-red), var(--mkt-red-dark)); }
.mkt-portal-schedule-open-chevron { transition: transform .28s var(--mkt-ease); }
.mkt-portal-schedule-open:hover .mkt-portal-schedule-open-chevron { transform: translateX(3px); }

/* ── Lenguetas: la pastilla activa pasa a negra ─────────────────────────── */
.mkt-portal .mkt-portal-tabs { border-color: var(--mkt-line); background: #fff; border-radius: 14px; }
.mkt-portal .mkt-portal-tab { color: var(--mkt-muted); }
.mkt-portal .mkt-portal-tab i { color: var(--mkt-muted-2); }
.mkt-portal .mkt-portal-tab:hover { color: var(--mkt-ink-2); }
.mkt-portal .mkt-portal-tab:hover i { color: var(--mkt-red); }
.mkt-portal .mkt-portal-tab.is-active { color: #fff; }
.mkt-portal .mkt-portal-tab.is-active i { color: #f0b3b8; }
.mkt-portal .mkt-portal-tab-marker {
	background: var(--mkt-ink-2); border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.mkt-portal .mkt-portal-mode.is-active,
.mkt-portal .mkt-portal-modes { border-radius: 12px; }
.mkt-portal .mkt-portal-modes { border-color: var(--mkt-line); background: #fff; }
.mkt-portal .mkt-portal-mode.is-active {
	background: var(--mkt-ink-2); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .24);
}
.mkt-portal .mkt-portal-mode.is-active i { color: #f0b3b8; }
.mkt-portal .mkt-portal-sort-option.is-active { background-color: var(--mkt-red); }

/* ── Reservas: barra de estado a la izquierda ───────────────────────────── */
.mkt-portal-booking-row {
	position: relative; overflow: hidden;
	padding: 14px 16px 14px 20px;
	border-color: var(--mkt-line); border-radius: 13px; background: #fff;
	transition: transform .24s var(--mkt-ease), box-shadow .24s var(--mkt-ease), border-color .24s var(--mkt-ease);
}
.mkt-portal-booking-row::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
	background: #d3d3da; transition: background .24s ease;
}
.mkt-portal-booking-row:hover { transform: translateY(-2px); box-shadow: var(--mkt-shadow); border-color: #dcdce2; }
.mkt-portal-booking-row:has(.mkt-portal-status-confirmed)::before { background: var(--mkt-ink-2); }
.mkt-portal-booking-row:has(.mkt-portal-status-pending_payment)::before { background: var(--mkt-red); }
.mkt-portal-booking-row.is-completed { background: #fafafb; }
.mkt-portal-booking-row.is-completed::before { background: var(--mkt-ink-2); }
.mkt-portal-booking-row.is-cancelled { background: var(--mkt-surface); border-color: var(--mkt-line); }
.mkt-portal-booking-row.is-cancelled::before { background: #d3d3da; }
.mkt-portal-booking-info strong { color: var(--mkt-ink-2); font-size: 15px; }
.mkt-portal-booking-info span { color: var(--mkt-muted); }

/* Estados: cuatro niveles distinguibles solo con negro, rojo, blanco y gris. */
.mkt-portal-status { padding: 3px 11px; font-size: 11.5px; letter-spacing: .01em; }
.mkt-portal-status-confirmed { background: var(--mkt-ink-2); color: #fff; }
.mkt-portal-status-completed { background: #fff; color: var(--mkt-ink-2); box-shadow: inset 0 0 0 1.5px var(--mkt-ink-2); }
.mkt-portal-status-pending_payment { background: var(--mkt-red-soft); color: var(--mkt-red-dark); box-shadow: inset 0 0 0 1.5px #f3d2d5; }
.mkt-portal-status-cancelled, .mkt-portal-status-cancelled_no_payment { background: var(--mkt-surface); color: var(--mkt-muted-2); }

/* ── Botones de accion de cada reserva ──────────────────────────────────── */
.mkt-portal-icon-button {
	border-radius: 9px; transition: transform .18s var(--mkt-ease), background .18s ease, color .18s ease, border-color .18s ease, filter .18s ease;
}
.mkt-portal-icon-button:hover { transform: translateY(-1px); }
.mkt-portal-icon-button:active { transform: translateY(0) scale(.98); }
.mkt-portal-icon-button.is-finish { border-color: var(--mkt-ink-2); background: #fff; color: var(--mkt-ink-2); }
.mkt-portal-icon-button.is-finish:hover { background: var(--mkt-ink-2); color: #fff; filter: none; }
.mkt-portal-icon-button.is-cancel { border-color: #f3d2d5; background: var(--mkt-red-soft); color: var(--mkt-red-dark); }
.mkt-portal-icon-button.is-cancel:hover { background: var(--mkt-red); border-color: var(--mkt-red); color: #fff; filter: none; }
.mkt-portal-icon-button.is-reschedule, .mkt-portal-icon-button.is-gcal {
	border-color: var(--mkt-line); background: #fff; color: var(--mkt-body);
}
.mkt-portal-icon-button.is-reschedule:hover, .mkt-portal-icon-button.is-gcal:hover {
	border-color: var(--mkt-ink-2); color: var(--mkt-ink-2); filter: none;
}

/* ── Botones principales ────────────────────────────────────────────────── */
.mkt-portal .mkt-button {
	border-radius: 10px; font-weight: 700; letter-spacing: .01em;
	transition: transform .18s var(--mkt-ease), box-shadow .18s var(--mkt-ease), background .18s ease;
}
.mkt-portal .mkt-button:hover { box-shadow: 0 12px 26px rgba(193, 18, 31, .28); transform: translateY(-1px); }
.mkt-portal .mkt-button:active { transform: translateY(0) scale(.985); box-shadow: none !important; }
.mkt-portal-ghost-btn, .mkt-portal-small-button, .mkt-portal-segment button { border-radius: 9px; }

/* ── Campos ─────────────────────────────────────────────────────────────── */
.mkt-portal input[type="text"], .mkt-portal input[type="email"], .mkt-portal input[type="password"],
.mkt-portal input[type="number"], .mkt-portal input[type="time"], .mkt-portal input[type="date"],
.mkt-portal input[type="file"], .mkt-portal textarea, .mkt-portal select {
	border-color: var(--mkt-line); border-radius: 9px; color: var(--mkt-ink-2);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.mkt-portal label { color: var(--mkt-body); }
.mkt-portal-modality, .mkt-portal-schedule-card, .mkt-portal-day, .mkt-portal-block-row {
	border-color: var(--mkt-line); border-radius: 12px; background: #fff;
}
.mkt-portal-day { background: #fff; }
.mkt-portal input[type="time"]::-webkit-calendar-picker-indicator,
.mkt-portal input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: .6; }

/* ── Modales ────────────────────────────────────────────────────────────── */
.mkt-portal-modal-overlay { background: rgba(0, 0, 0, .58); backdrop-filter: blur(4px); animation: mkt-portal-fade .2s ease backwards; }
.mkt-portal-modal { border-radius: var(--mkt-radius); box-shadow: 0 40px 90px rgba(0, 0, 0, .42); animation: mkt-portal-pop .3s var(--mkt-ease) backwards; }
.mkt-portal-modal-head h2 { color: var(--mkt-ink-2); letter-spacing: -.01em; }
.mkt-portal-modal-close { border-color: var(--mkt-line); background: var(--mkt-surface); color: var(--mkt-body); }
.mkt-portal-modal-close:hover { background: var(--mkt-ink-2) !important; border-color: var(--mkt-ink-2) !important; color: #fff !important; }

/* ── Barra de guardado ──────────────────────────────────────────────────── */
.mkt-portal-actions { background: linear-gradient(180deg, rgba(242, 242, 244, 0), rgba(242, 242, 244, .96) 38%); }

/* ── Entrada escalonada ─────────────────────────────────────────────────── */
.mkt-portal-header, .mkt-portal-stats > *, .mkt-portal-columns > * { animation: mkt-portal-rise .5s var(--mkt-ease) backwards; }
.mkt-portal-stats > *:nth-child(1) { animation-delay: .05s; }
.mkt-portal-stats > *:nth-child(2) { animation-delay: .1s; }
.mkt-portal-stats > *:nth-child(3) { animation-delay: .15s; }
.mkt-portal-columns > *:nth-child(1) { animation-delay: .18s; }
.mkt-portal-columns > *:nth-child(2) { animation-delay: .24s; }

@keyframes mkt-portal-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mkt-portal-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes mkt-portal-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mkt-portal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mkt-portal-glow { from { transform: translate(0, 0) scale(1); opacity: .85; } to { transform: translate(-26px, 20px) scale(1.14); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.mkt-portal *, .mkt-portal *::before, .mkt-portal *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}
	.mkt-portal-stat:hover, .mkt-portal-booking-row:hover,
	.mkt-portal-schedule-open:hover, .mkt-portal .mkt-button:hover { transform: none; }
}

@media (max-width: 860px) {
	.mkt-portal-header { padding: 22px 20px; }
	.mkt-portal-identity-text h1 { font-size: 23px; }
	.mkt-portal-stat-num { font-size: 26px; }
}

/* ── Avisos: barra lateral en vez de fondo de color ─────────────────────── */
.mkt-portal-alert {
	position: relative; overflow: hidden;
	padding: 14px 16px 14px 20px;
	border: 1px solid var(--mkt-line); border-radius: 13px;
	background: #fff; color: var(--mkt-ink-2); font-weight: 600;
	box-shadow: var(--mkt-shadow);
	animation: mkt-portal-rise .4s var(--mkt-ease) backwards;
}
.mkt-portal-alert::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
	background: var(--mkt-red);
}
.mkt-portal-alert.is-ok { border-color: var(--mkt-line); background: #fff; color: var(--mkt-ink-2); }
.mkt-portal-alert.is-ok::before { background: var(--mkt-ink-2); }

/* Los campos heredan la tipografia del portal (el navegador les pone la suya). */
.mkt-portal input, .mkt-portal select, .mkt-portal textarea, .mkt-portal button {
	font-family: inherit; font-size: 14px;
}
.mkt-portal textarea { line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL DE RESERVA — misma linea que el portal
   ═══════════════════════════════════════════════════════════════════════════ */
.mkt-agenda {
	--mkt-ink: #0d0d0f; --mkt-ink-2: #1a1a1e; --mkt-body: #3f3f46;
	--mkt-muted: #6b6b75; --mkt-line: #e6e6ec; --mkt-surface: #f2f2f4;
	--mkt-red: #c1121f; --mkt-red-dark: #8d0801;
	--mkt-ease: cubic-bezier(.22, 1, .36, 1);
}
.mkt-agenda, .mkt-modal {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.mkt-agenda ::selection { background: var(--mkt-red); color: #fff; }

.mkt-agenda .mkt-agenda__trigger, .mkt-button {
	border-radius: 10px; letter-spacing: .01em;
	transition: transform .18s var(--mkt-ease), box-shadow .18s var(--mkt-ease), background .18s ease;
}
.mkt-agenda .mkt-agenda__trigger:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(193, 18, 31, .28); }
.mkt-agenda .mkt-agenda__trigger:active { transform: none; }

.mkt-modal__overlay { background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); }
.mkt-modal__dialog {
	border: 1px solid var(--mkt-line); border-radius: 18px;
	background: #fff; color: var(--mkt-body);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .4);
	padding: 26px;
	animation: mkt-portal-pop .32s var(--mkt-ease) backwards;
}
.mkt-modal__head p { color: var(--mkt-red); }
.mkt-modal__head h2 { color: var(--mkt-ink-2); letter-spacing: -.02em; }
.mkt-modal__close { border-color: var(--mkt-line); background: var(--mkt-surface); color: var(--mkt-body); }
.mkt-modal__close:hover { background: var(--mkt-ink-2); border-color: var(--mkt-ink-2); color: #fff; }

.mkt-profesional-intro span { color: var(--mkt-red); letter-spacing: .1em; }
.mkt-profesional-intro p { color: var(--mkt-muted); }

/* Fichas de profesional: blancas y neutras; el color entra solo al elegir. */
.mkt-profesional-tile {
	border: 1px solid var(--mkt-line); border-radius: 16px;
	background: #fff; color: var(--mkt-body);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .06);
	transition: transform .24s var(--mkt-ease), box-shadow .24s var(--mkt-ease), border-color .24s var(--mkt-ease);
}
.mkt-profesional-tile:hover {
	border-color: var(--mkt-red) !important; background: #fff !important; color: var(--mkt-body) !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 22px 46px rgba(193, 18, 31, .16) !important;
	transform: translateY(-4px);
}
.mkt-profesional-tile.is-selected {
	border-color: var(--mkt-red) !important;
	box-shadow: 0 0 0 2px var(--mkt-red), 0 20px 44px rgba(193, 18, 31, .18);
}
.mkt-profesional-tile__photo {
	background: linear-gradient(140deg, #26262b, #000); color: #fff;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--mkt-line), 0 14px 28px rgba(0, 0, 0, .22);
	transition: background .24s var(--mkt-ease);
}
.mkt-profesional-tile:hover .mkt-profesional-tile__photo,
.mkt-profesional-tile.is-selected .mkt-profesional-tile__photo {
	background: linear-gradient(140deg, var(--mkt-red), var(--mkt-red-dark));
}
.mkt-profesional-tile__body strong { color: var(--mkt-ink-2); }
.mkt-profesional-tile__body > span { color: var(--mkt-red); font-weight: 700; }
.mkt-profesional-tile__body p { color: var(--mkt-muted); }
.mkt-profesional-tile__meta span:first-child { color: var(--mkt-ink-2); }
/* Pastilla de modalidad: fondo negro y texto blanco (antes quedaba rojo sobre negro). */
.mkt-profesional-tile__meta span:last-child {
	background: var(--mkt-ink-2); color: #fff; font-weight: 700; padding: 6px 13px;
}
.mkt-profesional-loading { border-color: var(--mkt-line); background: var(--mkt-surface); color: var(--mkt-muted); border-radius: 14px; }

.mkt-modality-panel { border: 1px solid var(--mkt-line); border-radius: 14px; background: var(--mkt-surface); }
.mkt-modality-panel > strong { color: var(--mkt-ink-2); }
.mkt-selected-profesional { border: 1px solid var(--mkt-line); border-radius: 12px; background: #fff; }
.mkt-selected-profesional span { color: var(--mkt-muted); }
.mkt-selected-profesional strong { color: var(--mkt-ink-2); }
.mkt-change-profesional { border-color: var(--mkt-line); background: #fff; color: var(--mkt-body); transition: all .18s ease; }
.mkt-change-profesional:hover { background: var(--mkt-ink-2); border-color: var(--mkt-ink-2); color: #fff; }

.mkt-modality-choice {
	border: 1px solid var(--mkt-line); border-radius: 12px; background: #fff; color: var(--mkt-ink-2);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: transform .2s var(--mkt-ease), box-shadow .2s var(--mkt-ease), border-color .2s var(--mkt-ease);
}
.mkt-modality-choice:hover {
	border-color: var(--mkt-red); transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(193, 18, 31, .15);
}
.mkt-modality-choice span:last-child { color: var(--mkt-red); font-weight: 800; }

.mkt-step label { color: var(--mkt-body); }
.mkt-step select, .mkt-step input {
	border-color: var(--mkt-line); border-radius: 10px; color: var(--mkt-ink-2); font-family: inherit;
}
.mkt-agenda button:focus-visible, .mkt-agenda input:focus-visible, .mkt-agenda select:focus-visible {
	outline: 2px solid var(--mkt-red); outline-offset: 2px;
}
.mkt-agenda .mkt-profesional-tile:focus-visible,
.mkt-agenda .mkt-modality-choice:focus-visible {
	outline: none; border-color: var(--mkt-red);
	box-shadow: 0 0 0 3px rgba(193, 18, 31, .3), 0 16px 34px rgba(0, 0, 0, .12);
}

@media (prefers-reduced-motion: reduce) {
	.mkt-agenda *, .mkt-modal * { animation: none !important; transition-duration: .01ms !important; }
	.mkt-profesional-tile:hover, .mkt-modality-choice:hover, .mkt-agenda .mkt-agenda__trigger:hover { transform: none; }
}

/* Con la hoja de horas abierta el dialogo no debe animarse: una animacion de
   transform deja una matriz identidad, eso crea un contexto de apilamiento y
   la hoja (z-index 5) queda atrapada debajo del velo (z-index 4). */
.mkt-modal.is-slots-open .mkt-modal__dialog { animation: none; }

/* ── Bloqueos registrados: la fila respira a lo ancho ───────────────────── */
/* La columna de fecha se dimensiona a su contenido en vez de quedar fija en
   104px: un rango ("05/08/2026 -> 09/08/2026") no cabia y partia la fila en
   varias lineas, dejando el motivo en una columna de una palabra de ancho. */
.mkt-portal-block-when { min-width: 0; }
.mkt-portal-block-when strong { white-space: nowrap; }
.mkt-portal-block-row { gap: 14px; padding: 12px 14px; }
.mkt-portal-block-reason { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.mkt-portal-block-row form { margin-left: auto; }
.mkt-portal-blocks-list { max-height: 300px; padding-right: 6px; }
/* align-content: start evita que, con pocos bloqueos, las filas se estiren
   para rellenar la altura de la lista. */
.mkt-portal-blocks-list { align-content: start; }

@media (max-width: 560px) {
	.mkt-portal-block-when strong { white-space: normal; }
}

/* ── Alineacion del boton de reserva ────────────────────────────────────── */
/* El trigger es inline-flex, asi que basta con alinear el contenedor. Se
   aplica al wrapper y no al boton para que no pelee con el bloque
   #mkt-btn-custom-css, que imprime el diseñador con !important. */
.mkt-agenda--align-left { text-align: left; }
.mkt-agenda--align-center { text-align: center; }
.mkt-agenda--align-right { text-align: right; }
