/* LA MILPA · V22 · Estética editorial oaxaqueña — capa final no destructiva */
:root { --milpa-ink:#100d0b; --milpa-espresso:#201510; --milpa-cacao:#38251e; --milpa-gold:#cba66d; --milpa-ivory:#fff5e6; --milpa-muted:#bfae9b; }
html { scroll-behavior:smooth; }
body { font-synthesis:none; -webkit-font-smoothing:antialiased; }
body[data-theme="night"] { --milpa-panel:#201610; --milpa-border:rgba(229,194,140,.19); }
body[data-theme="day"] { --milpa-panel:#fcf3e6; --milpa-border:rgba(106,71,48,.17); }
/* Use smaller, coherent curves rather than rectangular surfaces. */
.boton, button.boton, .login-submit { border-radius:999px !important; font-weight:650; letter-spacing:.035em; transition:transform .25s ease,box-shadow .25s ease,filter .25s ease; }
.boton:hover,button.boton:hover { transform:translateY(-2px); filter:brightness(1.07); box-shadow:0 12px 32px rgba(0,0,0,.18); }
.boton:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible { outline:2px solid var(--milpa-gold) !important; outline-offset:3px; }
.card-platillo, .tarjeta-platillo, .card, .menu-card { border-radius:22px !important; overflow:hidden; transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease; }
.card-platillo:hover, .tarjeta-platillo:hover { transform:translateY(-6px); box-shadow:0 22px 45px rgba(0,0,0,.24); }
.card-platillo img, .tarjeta-platillo img { transition:transform .55s ease; }
.card-platillo:hover img, .tarjeta-platillo:hover img { transform:scale(1.045); }
.modal-login { border:1px solid rgba(215,180,126,.28) !important; border-radius:28px !important; box-shadow:0 32px 95px rgba(0,0,0,.55) !important; }
.modal-login::backdrop { background:rgba(12,9,7,.77); backdrop-filter:blur(8px); }
.modal-login input { border-radius:14px !important; }
.milpa-mail-intro { display:flex;align-items:flex-start;gap:13px;background:rgba(190,146,88,.09);border:1px solid rgba(202,165,105,.24);border-radius:16px;padding:13px 16px;margin:13px 0 18px;color:#f3e2c7; }
.milpa-mail-intro>span { font-size:25px;flex:none; }
.milpa-mail-intro p { margin:0;line-height:1.4; }
.milpa-mail-intro strong {display:block;font-size:14px;}
.milpa-mail-intro small {display:block;opacity:.85;margin-top:5px;font-size:12px;}
#milpa-recuperar-form { padding:16px 0; }
#milpa-recuperar-form label {display:grid;gap:9px;margin:12px 0;color:inherit;}
#milpa-recuperar-form input, .milpa-reset input {width:100%;min-height:48px;border-radius:13px;padding:11px 14px;background:#fffaf4;color:#2a1910;border:1px solid #cdbda8;box-sizing:border-box;}
#milpa-recuperar-form .boton {width:100%;margin:8px 0;}
#milpa-recuperar-form [role="status"] {line-height:1.5;font-size:13px;}
/* Standalone password reset */
body.milpa-reset {background:radial-gradient(ellipse at 20% 0%,#4a3226,#120e0b 75%);color:var(--milpa-ivory);min-height:100vh;display:grid;place-items:center;padding:18px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;}
.milpa-reset-card {box-sizing:border-box;width:min(480px,100%);border:1px solid #8f724d55;border-radius:25px;background:#211712;padding:clamp(22px,5vw,42px);box-shadow:0 24px 80px #0008;}
.milpa-reset-card img {width:68px;height:68px;object-fit:cover;border-radius:50%;}
.milpa-reset-card h1 {font-family:Georgia,serif;font-weight:500;font-size:clamp(30px,5vw,43px);}
.milpa-reset-card p {color:#d5c4b0;line-height:1.65;}
.milpa-reset-card label {display:grid;gap:8px;margin:22px 0;}
.milpa-reset-card a {color:#eac78e;}
.milpa-reset-card .boton {width:100%;padding:15px;background:#cba66d;color:#221611;border:0;cursor:pointer;}
/* Floating FAQ assistant: readable, compact, low-distraction. */
.milpa-chat {position:fixed;z-index:1100;bottom:max(20px,env(safe-area-inset-bottom));right:clamp(13px,3vw,30px);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;}
.milpa-chat-toggle {border:1px solid #e5c6986b;background:linear-gradient(145deg,#312118,#1c140f);color:#f8ebd5;border-radius:999px;padding:13px 19px;font-size:14px;font-weight:650;letter-spacing:.015em;cursor:pointer;box-shadow:0 14px 35px #0007;}
.milpa-chat-toggle:hover {background:#412b1f;}
.milpa-chat-toggle:first-letter{color:#dfbd86;}
.milpa-chat-panel {position:absolute;right:0;bottom:calc(100% + 13px);width:min(365px,calc(100vw - 26px));max-height:min(580px,calc(100dvh - 115px));background:#f8f0e6;color:#2e2119;border:1px solid #cbb594;border-radius:21px;box-shadow:0 23px 65px #0008;overflow:hidden;display:flex;flex-direction:column;}
.milpa-chat-panel[hidden] {display:none !important;}
.milpa-chat-panel>header {display:flex;justify-content:space-between;align-items:center;background:#2b1d16;color:#fff3e2;padding:15px 17px;}
.milpa-chat-panel header strong,.milpa-chat-panel header small {display:block;}
.milpa-chat-panel header small {font-size:10px;letter-spacing:.15em;color:#e0bb80;margin-bottom:4px;}
.milpa-chat-panel header button {color:#fff;background:transparent;border:0;font-size:24px;cursor:pointer;padding:2px 7px;}
.milpa-chat-messages {padding:15px;display:flex;flex-direction:column;gap:9px;min-height:130px;overflow-y:auto;}
.milpa-bubble {font-size:13px;line-height:1.5;max-width:95%;border-radius:15px;padding:11px 13px;margin:0 !important;}
.milpa-bubble.bot {align-self:flex-start;background:white;color:#34251d;border:1px solid #e9dcca;}
.milpa-bubble.user {align-self:flex-end;background:#3a291f;color:white;}
.milpa-chat-quick {display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 12px;}
.milpa-chat-quick button,.milpa-chat-action {border:1px solid #cdb89b;border-radius:999px;padding:7px 10px;color:#593f2c;background:#fff9f1;font-size:12px;cursor:pointer;}
.milpa-chat-action {align-self:flex-start;}
#milpa-chat-form {padding:11px 13px;display:flex;gap:6px;border-top:1px solid #e4d6c6;}
#milpa-chat-form input {min-width:0;flex:1;min-height:42px;border:1px solid #d1bea6;background:#fff;color:#281912;border-radius:13px;padding:0 11px;font-size:13px;}
#milpa-chat-form button {min-width:42px;border-radius:12px;background:#332218;color:#eacf9f;border:0;font-size:20px;cursor:pointer;}
.milpa-chat-foot {text-align:center;color:#7a6a59;padding:0 10px 10px;font-size:10px;}
@media(max-width:600px) {.milpa-chat{bottom:14px;right:12px}.milpa-chat-toggle{padding:12px 15px}.milpa-chat-panel{max-height:calc(100dvh - 100px)}.modal-login{max-width:calc(100vw - 24px) !important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.boton,.card-platillo,.card-platillo img{transition:none !important}}
