/* Estilos pensados para los temas por defecto de WordPress (Twenty Twenty-Four / Twenty Twenty-Five).
   Usan las variables del tema y heredan tipografía y colores. */
.rm-app{
	--rm-fg:var(--wp--preset--color--contrast,currentColor);
	--rm-bg:var(--wp--preset--color--base,#fff);
	--rm-line:color-mix(in srgb,var(--rm-fg) 25%,transparent);
	--rm-soft:color-mix(in srgb,var(--rm-fg) 7%,transparent);
	--rm-primary:var(--rm-fg);
	--rm-primary-text:var(--rm-bg);
	--rm-radius:var(--wp--custom--border-radius,.33rem);
	max-width:100%;margin:0 auto;font:inherit;color:inherit;
}
.rm-app *,.rm-app *::before,.rm-app *::after{box-sizing:border-box}
.rm-step{margin-bottom:var(--wp--preset--spacing--40,2rem)}
.rm-step h3,.rm-resultado h3{margin:0 0 .6em;font-family:var(--wp--preset--font-family--heading,inherit);font-size:var(--wp--preset--font-size--large,1.35em);font-weight:inherit;line-height:1.2}

/* Calendario */
.rm-cal{max-width:var(--rm-cal-w,340px);border:1px solid var(--rm-line);border-radius:var(--rm-radius);padding:.6rem;background:transparent;font-size:.92em}
.rm-cal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.rm-cal-head button{border:1px solid var(--rm-line);background:transparent;color:inherit;border-radius:var(--rm-radius);width:2rem;height:2rem;font:inherit;font-size:1.2em;line-height:1;cursor:pointer;padding:0}
.rm-cal-head button:hover:not(:disabled){background:var(--rm-primary);color:var(--rm-primary-text)}
.rm-cal-head button:disabled{opacity:.3;cursor:default}
.rm-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.2rem}
.rm-dow{text-align:center;font-size:.8em;opacity:.65;padding:.15rem 0}
.rm-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.18em;line-height:1.1;aspect-ratio:1/1;border:1px solid var(--rm-line);border-radius:var(--rm-radius);font:inherit;color:inherit;background:transparent;cursor:pointer;padding:0}
/* Nivel de ocupación: punto de color bajo el número (el texto está en title/aria-label y en la leyenda) */
.rm-day.rm-ok::after{content:"";width:.5em;height:.5em;border-radius:50%;background:var(--rm-oc,transparent)}
.rm-o-baja{--rm-oc:var(--rm-oc-baja,#2e9e5b)}
.rm-o-media{--rm-oc:var(--rm-oc-media,#e0a100)}
.rm-o-alta{--rm-oc:var(--rm-oc-alta,#d64545)}
.rm-dot.rm-d-baja{background:var(--rm-oc-baja,#2e9e5b);border-color:transparent}
.rm-dot.rm-d-media{background:var(--rm-oc-media,#e0a100);border-color:transparent}
.rm-dot.rm-d-alta{background:var(--rm-oc-alta,#d64545);border-color:transparent}
.rm-day.rm-ok:hover{background:var(--rm-soft);border-color:var(--rm-fg)}
.rm-day.rm-sel,.rm-day.rm-sel:hover{background:var(--rm-primary);color:var(--rm-primary-text);border-color:var(--rm-primary)}
.rm-day.rm-completo{background:var(--rm-soft);opacity:.55;border-style:dashed}
.rm-day.rm-cerrado{border-color:transparent;background:var(--rm-soft);opacity:.45;text-decoration:line-through}
.rm-day.rm-pasado,.rm-day.rm-fuera{border-color:transparent;opacity:.25}
.rm-day:disabled{cursor:not-allowed}
.rm-legend{max-width:var(--rm-cal-w,340px);font-size:.8em;opacity:.8;margin-top:.5rem}
.rm-dot{display:inline-block;width:.8em;height:.8em;border-radius:50%;margin:0 .35em 0 .9em;vertical-align:-.1em;border:1px solid var(--rm-fg)}
.rm-dot.rm-ok{background:transparent}
.rm-dot.rm-completo{background:var(--rm-soft);border-style:dashed}
.rm-dot.rm-cerrado{background:var(--rm-fg);opacity:.35}

/* Turnos */
.rm-fecha{margin:0 0 .75rem;text-transform:capitalize;opacity:.75}
.rm-franja{margin-bottom:1rem}
.rm-franja>span{display:block;margin-bottom:.4rem;font-weight:600}
.rm-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(7.5rem,1fr));gap:.5rem}
.rm-slot{border:1px solid var(--rm-line);background:transparent;color:inherit;font:inherit;border-radius:var(--rm-radius);padding:.55rem .4rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:.1rem}
.rm-slot small{font-size:var(--wp--preset--font-size--small,.8em);opacity:.75}
.rm-slot:hover:not(:disabled){border-color:var(--rm-fg);background:var(--rm-soft)}
.rm-slot.rm-sel{background:var(--rm-primary);color:var(--rm-primary-text);border-color:var(--rm-primary)}
.rm-slot:disabled{opacity:.4;cursor:not-allowed;border-style:dashed}

/* Formulario */
.rm-form label{display:block;margin-bottom:1rem;font-size:var(--wp--preset--font-size--small,.95em)}
.rm-form input[type=text],.rm-form input[type=email],.rm-form input[type=tel],.rm-form select,.rm-form textarea{
	display:block;width:100%;margin-top:.3rem;padding:.65rem .8rem;font:inherit;font-size:var(--wp--preset--font-size--medium,1rem);color:inherit;
	background:transparent;border:1px solid var(--rm-fg);border-radius:var(--rm-radius)}
.rm-form input:focus,.rm-form select:focus{outline:2px solid var(--rm-fg);outline-offset:2px}
.rm-form .rm-check{display:flex;gap:.6rem;align-items:flex-start}
.rm-form .rm-check input{margin-top:.25em}
.rm-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.rm-resumen{background:var(--rm-soft);padding:.7rem 1rem;border-radius:var(--rm-radius);margin:0 0 1rem}
.rm-submit{width:100%;cursor:pointer}
.rm-submit:disabled{opacity:.6;cursor:wait}
.rm-btn{display:inline-block;text-decoration:none;cursor:pointer}

/* Mensajes y resultados */
.rm-msg:empty{display:none}
.rm-msg-err,.rm-msg-ok{padding:.75rem 1rem;border-radius:var(--rm-radius);border:1px solid var(--rm-fg)}
.rm-msg-err{border-left-width:6px}
.rm-msg-ok{background:var(--rm-soft)}
.rm-resultado{border:1px solid var(--rm-line);border-radius:var(--rm-radius);padding:1.25rem 1.5rem}
.rm-resultado.rm-ok{border-color:var(--rm-fg)}
.rm-resultado p:last-child{margin-bottom:0}
.rm-loading{opacity:.7}

/* Respaldo (especificidad cero): el tema manda si define .wp-element-button */
:where(.rm-app .wp-element-button){background-color:var(--rm-primary);color:var(--rm-primary-text);border:0;border-radius:var(--rm-radius);padding:.8rem 1.4rem;font:inherit;font-weight:500}
.rm-langbar{display:flex;justify-content:flex-end;margin-bottom:1rem;font-size:var(--wp--preset--font-size--small,.9em)}
.rm-langbar select{margin-left:.4rem;padding:.3rem .5rem;font:inherit;color:inherit;background:transparent;border:1px solid var(--rm-line);border-radius:var(--rm-radius)}

/* Tipo de visita y observaciones */
.rm-form textarea{display:block;width:100%;margin-top:.3rem;padding:.65rem .8rem;font:inherit;color:inherit;background:transparent;border:1px solid var(--rm-fg);border-radius:var(--rm-radius);resize:vertical}
.rm-form textarea:focus{outline:2px solid var(--rm-fg);outline-offset:2px}
.rm-tipo{border:0;padding:0;margin:0 0 1rem}
.rm-tipo legend{padding:0;margin-bottom:.4rem;font-size:var(--wp--preset--font-size--small,.95em)}
.rm-form .rm-radio{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.5rem}
.rm-form .rm-radio input{margin-top:.25em}
.rm-form .rm-radio input:disabled+*,.rm-form .rm-radio:has(input:disabled){opacity:.55}

/* Botón de WhatsApp (verde oscuro con texto blanco: contraste suficiente) */
.rm-app .rm-btn.rm-wa{background:#128c7e;color:#fff;border-color:#128c7e;margin-left:.4rem}
.rm-app .rm-btn.rm-wa:hover{background:#0e6f64;color:#fff}
