/* Odontoschool · Formulario de contacto */
.osmc {
	--c-ink: #1d2b2b; --c-muted: #5d6e6c; --c-teal: #0f4c4c; --c-teal-2: #1a6563; --c-gold: #b8945a;
	--c-ivory: #faf6ee; --c-line: #e4dccb; --c-err: #b4382c;
	--c-serif: "Fraunces", Georgia, serif; --c-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--c-sans); color: var(--c-ink); font-size: 16px; line-height: 1.5;
	max-width: 100%; width: 100%; margin: 0 auto; container-type: inline-size; background: var(--c-ivory); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-sizing: border-box;
}
.osmc *, .osmc *::before, .osmc *::after { box-sizing: border-box; }
.osmc [hidden] { display: none !important; }
.osmc-head h2 { margin: 0 0 6px; font-family: var(--c-serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); color: var(--c-teal); line-height: 1.1; }
.osmc-head p { margin: 0 0 22px; color: var(--c-muted); }
.osmc-form { display: grid; gap: 14px; margin: 0; }
.osmc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.osmc-row .osmc-field[data-k=email] { grid-column: 1 / -1; }
@media (max-width: 560px) { .osmc-row { grid-template-columns: 1fr; } }
.osmc label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.osmc label b { color: var(--c-gold); }
.osmc label span { font-weight: 400; color: var(--c-muted); }
.osmc input[type=text], .osmc input[type=email], .osmc input[type=tel], .osmc select, .osmc textarea {
	display: block; width: 100%; margin: 0; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 16px; color: var(--c-ink);
	background: #fff; border: 1px solid #d6cdb9; border-radius: 12px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.osmc 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; }
.osmc textarea { min-height: 96px; resize: vertical; }
.osmc input:focus, .osmc select:focus, .osmc textarea:focus { border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(15,76,76,.14); }
.osmc label.osmc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--c-muted); cursor: pointer; }
.osmc-check input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--c-teal); }
.osmc-err { margin: 6px 0 0; font-size: 13px; color: var(--c-err); }
.osmc-err:empty { display: none; }
.osmc-field.has-error input, .osmc-field.has-error select { border-color: var(--c-err); }
.osmc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.osmc-btn { appearance: none; border: 0; border-radius: 999px; padding: 14px 28px; min-height: 48px; font: inherit; font-weight: 600; font-size: 15px; background: var(--c-teal); color: #fff; cursor: pointer; transition: background .15s; }
.osmc-btn:hover { background: var(--c-teal-2); }
.osmc-btn:disabled { opacity: .6; cursor: progress; }
.osmc-wa { font-size: 14px; color: #1a8a47 !important; font-weight: 500; text-decoration: none !important; }
.osmc-wa:hover { text-decoration: underline !important; }
.osmc-alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fbeceb; color: var(--c-err); font-size: 14px; }
.osmc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.osmc-done { text-align: center; padding: 26px 0 10px; }
.osmc-done-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: var(--c-teal); color: #fff; display: grid; place-items: center; font-size: 28px; }
.osmc-done h3 { margin: 0 0 6px; font-family: var(--c-serif); font-weight: 500; font-size: 26px; color: var(--c-teal); }
.osmc-done p { margin: 0; color: var(--c-muted); }

/* Pantallas anchas: texto a la izquierda, formulario a la derecha */
@container (min-width: 820px) {
	.osmc-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
	.osmc-head { position: sticky; top: 110px; padding-top: 6px; }
	.osmc-head h2 { font-size: 40px; }
	.osmc-head p { font-size: 17px; }
	.osmc-done { grid-column: 1 / -1; }
}
@container (min-width: 1040px) {
	.osmc-row { grid-template-columns: 1fr 1fr 1fr; }
	.osmc-row .osmc-field[data-k=email] { grid-column: auto; }
}
.osmc-aside { display: none; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-muted); }
@container (min-width: 820px) { .osmc-aside { display: block; } }
.osmc-aside a { color: #1a8a47; font-weight: 500; text-decoration: none; }

/* Tema oscuro: para secciones con fondo verde u oscuro */
.osmc--dark { background: var(--osmc-bg, #2c3f3d); --c-ink: #f4efe6; --c-muted: #c3cbc6; --c-line: rgba(244,239,230,.25); --c-gold: #d4b07a; }
.osmc--dark .osmc-head h2 { color: #f4efe6; }
.osmc--dark input[type=text], .osmc--dark input[type=email], .osmc--dark input[type=tel], .osmc--dark select, .osmc--dark textarea { background: rgba(255,255,255,.95); border-color: transparent; color: #1d2b2b; }
.osmc--dark input:focus, .osmc--dark select:focus, .osmc--dark textarea:focus { box-shadow: 0 0 0 3px rgba(212,176,122,.45); }
.osmc--dark label.osmc-check { color: #c3cbc6; }
.osmc--dark .osmc-check input { accent-color: #d4b07a; }
.osmc--dark .osmc-btn { background: #f4efe6; color: #1f3b39; }
.osmc--dark .osmc-btn:hover { background: #fff; }
.osmc--dark .osmc-wa, .osmc--dark .osmc-aside a { color: #8fe0ad !important; }
.osmc--dark .osmc-err { color: #ffb4a8; }
.osmc--dark .osmc-field.has-error input, .osmc--dark .osmc-field.has-error select { border-color: #ffb4a8; }
.osmc--dark .osmc-alert { background: rgba(255,180,168,.15); color: #ffd2ca; }
.osmc--dark .osmc-done-icon { background: #f4efe6; color: #1f3b39; }
.osmc--dark .osmc-done h3 { color: #f4efe6; }
