/* Odontoschool · Matrícula — puedes cambiar los colores sobrescribiendo estas variables en tu tema. */
.osm {
	--osm-ink: #1d2b2b;
	--osm-muted: #5d6e6c;
	--osm-teal: #0f4c4c;
	--osm-teal-2: #1a6563;
	--osm-gold: #b8945a;
	--osm-gold-soft: #efe5d1;
	--osm-ivory: #faf6ee;
	--osm-card: #ffffff;
	--osm-line: #e4dccb;
	--osm-error: #b4382c;
	--osm-radius: 14px;
	--osm-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--osm-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--osm-sans);
	color: var(--osm-ink);
	background: var(--osm-ivory);
	border-radius: calc(var(--osm-radius) + 6px);
	padding: clamp(20px, 4vw, 44px);
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	container-type: inline-size;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
}
.osm *, .osm *::before, .osm *::after { box-sizing: border-box; }
.osm [hidden] { display: none !important; }

/* Cabecera */
.osm-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--osm-gold); }
.osm-title { margin: 0 0 14px; font-family: var(--osm-serif); font-weight: 500; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; color: var(--osm-teal); letter-spacing: -.01em; }
.osm-chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osm-chips li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; background: var(--osm-card); border: 1px solid var(--osm-line); border-radius: 999px; font-size: 14px; color: var(--osm-ink); }
.osm-ico { width: 16px; height: 16px; flex: none; color: var(--osm-gold); }
.osm-intro { margin: 0; color: var(--osm-muted); max-width: 62ch; }
.osm-head { margin-bottom: 26px; }

/* Progreso */
.osm-progress { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.osm-progress li { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.osm-progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--osm-line); transition: background .3s; }
.osm-progress li span { display: none; }
.osm-progress li em { font-style: normal; font-size: 12px; color: var(--osm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osm-progress li.is-done::before { background: var(--osm-gold); }
.osm-progress li.is-current::before { background: var(--osm-teal); }
.osm-progress li.is-current em { color: var(--osm-teal); font-weight: 600; }
@media (max-width: 600px) {
	.osm-progress li em { display: none; }
	.osm-progress li.is-current em { display: block; position: absolute; }
	.osm-progress { position: relative; margin-bottom: 40px; }
}

/* Pasos */
.osm-form { margin: 0; }
.osm-step { border: 0; margin: 0; padding: clamp(18px, 3vw, 30px); background: var(--osm-card); border: 1px solid var(--osm-line); border-radius: var(--osm-radius); min-width: 0; animation: osm-in .35s ease; }
@keyframes osm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.osm-legend { float: left; width: 100%; padding: 0; margin: 0 0 20px; font-family: var(--osm-serif); font-size: 22px; font-weight: 500; color: var(--osm-teal); }
.osm-legend small { display: block; font-family: var(--osm-sans); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--osm-muted); margin-bottom: 2px; }
.osm-legend + * { clear: both; }
.osm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.osm-field { grid-column: 1 / -1; min-width: 0; }
.osm-w-half { grid-column: span 1; }
@media (max-width: 600px) { .osm-grid { grid-template-columns: 1fr; } .osm-w-half { grid-column: 1 / -1; } }

/* Campos */
.osm label, .osm .osm-label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--osm-ink); }
.osm-req { color: var(--osm-gold); font-weight: 600; }
.osm input[type=text], .osm input[type=email], .osm input[type=tel], .osm input[type=date], .osm input[type=number], .osm select, .osm textarea {
	display: block; width: 100%; margin: 0; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--osm-ink);
	background: #fff; border: 1px solid #d6cdb9; border-radius: 10px; box-shadow: none; outline: none; min-height: 46px;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.osm select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6e6c' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.osm textarea { min-height: 92px; resize: vertical; }
.osm input:focus, .osm select:focus, .osm textarea:focus { border-color: var(--osm-teal); box-shadow: 0 0 0 3px rgba(15, 76, 76, .14); }
.osm input[readonly] { background: var(--osm-ivory); color: var(--osm-muted); }
.osm-help { margin: 6px 0 0; font-size: 13px; color: var(--osm-muted); }
.osm-help-inline { font-weight: 400; color: var(--osm-muted); }
.osm-err { margin: 6px 0 0; font-size: 13px; color: var(--osm-error); min-height: 0; }
.osm-err:empty { display: none; }
.osm-field.has-error input, .osm-field.has-error select, .osm-field.has-error textarea { border-color: var(--osm-error); }
.osm-field.has-error .osm-drop, .osm-field.has-error .osm-pad { border-color: var(--osm-error); }

/* Opciones */
.osm-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.osm label.osm-choice { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.osm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.osm-choice span { display: inline-block; padding: 10px 15px; border: 1px solid #d6cdb9; border-radius: 999px; background: #fff; font-size: 15px; transition: all .15s; }
.osm-choice:hover span { border-color: var(--osm-teal-2); }
.osm-choice input:checked + span { background: var(--osm-teal); border-color: var(--osm-teal); color: #fff; }
.osm-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15, 76, 76, .2); }

.osm label.osm-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; margin: 0; padding: 12px 14px; border: 1px solid var(--osm-line); border-radius: 10px; background: #fff; }
.osm-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--osm-teal); }
.osm-check a { color: var(--osm-teal); }

/* Archivos */
.osm label.osm-drop { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px; border: 1.5px dashed #cbbf9f; border-radius: 12px; background: var(--osm-ivory); cursor: pointer; font-weight: 400; transition: all .15s; }
.osm-drop:hover, .osm-drop.is-over { border-color: var(--osm-teal); background: #f3f0e6; }
.osm-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.osm-drop .osm-ico { width: 28px; height: 28px; color: var(--osm-teal); }
.osm-drop-text { font-size: 15px; }
.osm-drop-text small { display: block; color: var(--osm-muted); font-size: 13px; margin-top: 2px; }
.osm-drop-file { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; position: relative; z-index: 2; }
.osm-drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.osm-drop-remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--osm-gold-soft); color: var(--osm-ink); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.osm-drop.has-file { border-style: solid; border-color: var(--osm-teal); background: #fff; }
.osm-drop.has-file .osm-drop-text { display: none; }
.osm-drop.has-file input[type=file] { pointer-events: none; }

/* Firma */
.osm-sub { font-family: var(--osm-serif); font-weight: 500; font-size: 18px; color: var(--osm-teal); margin: 22px 0 10px; }
.osm-cond { max-height: 240px; overflow: auto; padding: 16px 18px; margin-bottom: 14px; background: var(--osm-ivory); border: 1px solid var(--osm-line); border-radius: 12px; font-size: 14px; color: #34403f; }
.osm-cond p { margin: 0 0 10px; }
.osm-step--firma .osm-grid { margin: 16px 0; }
.osm-pad { position: relative; height: 190px; border: 1.5px solid #d6cdb9; border-radius: 12px; background: #fff; overflow: hidden; touch-action: none; }
.osm-pad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid var(--osm-line); pointer-events: none; }
.osm-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; z-index: 1; }
.osm-pad-hint { position: absolute; left: 26px; bottom: 50px; color: #c9bfa8; font-family: var(--osm-serif); font-style: italic; font-size: 18px; pointer-events: none; }
.osm-pad.is-signed .osm-pad-hint { display: none; }
.osm-pad-clear { position: absolute; top: 10px; right: 10px; z-index: 2; border: 1px solid var(--osm-line); background: #fff; color: var(--osm-muted); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }

.osm-summary { margin: 0 0 6px; border: 1px solid var(--osm-line); border-radius: 12px; background: #fff; }
.osm-summary > summary { cursor: pointer; padding: 13px 16px; font-weight: 500; color: var(--osm-teal); }
.osm-summary-body { padding: 0 16px 14px; font-size: 14px; }
.osm-summary-body h4 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--osm-gold); }
.osm-summary-body dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 4px 12px; margin: 0; }
.osm-summary-body dt { color: var(--osm-muted); }
.osm-summary-body dd { margin: 0; word-break: break-word; }

/* Navegación */
.osm-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.osm-nav .osm-next, .osm-nav .osm-submit { margin-left: auto; }
.osm-btn { appearance: none; border: 0; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 600; font-size: 15px; background: var(--osm-teal); color: #fff; cursor: pointer; transition: background .15s, transform .1s; min-height: 48px; }
.osm-btn:hover { background: var(--osm-teal-2); color: #fff; }
.osm-btn:active { transform: translateY(1px); }
.osm-btn:disabled { opacity: .6; cursor: progress; }
.osm-btn--ghost { background: transparent; color: var(--osm-teal); border: 1px solid #cfc5ae; }
.osm-btn--ghost:hover { background: #fff; color: var(--osm-teal); }
.osm-alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: #fbeceb; color: var(--osm-error); font-size: 14px; }
.osm-uploading { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--osm-muted); }
.osm-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--osm-line); overflow: hidden; }
.osm-bar i { display: block; height: 100%; width: 0; background: var(--osm-teal); transition: width .2s; }

.osm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.osm-closed { padding: 22px; background: var(--osm-card); border: 1px solid var(--osm-line); border-radius: var(--osm-radius); color: var(--osm-muted); }

.osm-done { text-align: center; padding: 40px 20px; background: var(--osm-card); border: 1px solid var(--osm-line); border-radius: var(--osm-radius); animation: osm-in .4s ease; }
.osm-done-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--osm-teal); display: grid; place-items: center; }
.osm-done-icon .osm-ico { width: 32px; height: 32px; color: #fff; }
.osm-done h3 { font-family: var(--osm-serif); font-weight: 500; font-size: 26px; color: var(--osm-teal); margin: 0 0 8px; }
.osm-done p { margin: 0 auto; max-width: 48ch; color: var(--osm-muted); }

/* Pago */
.osm-pay { margin: 26px auto 0; max-width: 460px; padding-top: 22px; border-top: 1px solid var(--osm-line); }
.osm-pay-title { font-family: var(--osm-serif); font-size: 19px; color: var(--osm-teal) !important; margin: 0 0 14px !important; }
.osm-pay-btns { display: flex; flex-direction: column; gap: 10px; }
.osm-pay-btns .osm-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; text-align: left; }
.osm-pay-btns .osm-btn span { font-weight: 500; }
.osm-pay-btns .osm-btn strong { white-space: nowrap; font-size: 17px; }
.osm-pay-btns .osm-btn { border-radius: 16px; padding: 14px 20px; }
.osm-pay-note, .osm-pay-transfer { font-size: 13px !important; margin-top: 12px !important; }
.osm-pay-transfer:empty { display: none; }
.osm-head--mini .osm-title { font-size: clamp(22px, 3vw, 28px); }

/* Pantallas anchas: aprovecha el espacio */
@container (min-width: 960px) {
	.osm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; }
	.osm-w-half { grid-column: span 2; }
	.osm-t-text.osm-w-half, .osm-t-email.osm-w-half, .osm-t-tel.osm-w-half, .osm-t-date.osm-w-half, .osm-t-number.osm-w-half, .osm-t-select.osm-w-half { grid-column: span 1; }
	.osm-step--firma .osm-grid { grid-template-columns: 1fr 1fr; }
	.osm-step--firma .osm-w-half { grid-column: span 1; }
	.osm-cond { max-height: 320px; }
	.osm-pad { height: 220px; }
	.osm-done { padding: 56px 40px; }
}
