/* Mi cuenta — estilos específicos */

.header-cta .btn-outline { display: inline-flex; }
@media (max-width: 640px) { .header-cta .btn-outline:not(:first-child) { display: none; } }

.account-main {
  padding: 3rem 0 5rem;
  min-height: 70vh;
  background:
    radial-gradient(44rem 22rem at 100% -10%, hsl(var(--primary) / 0.14), transparent 60%),
    radial-gradient(36rem 20rem at -5% 40%, hsl(var(--accent) / 0.08), transparent 60%);
}
.account-shell { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .account-shell { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; padding-top: 1.5rem; } }
.account-aside { display: none; }
@media (min-width: 980px) { .account-aside { display: block; } }
.account-aside h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin: 0.9rem 0 1.4rem; letter-spacing: -0.01em; }
.account-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.account-aside li { display: flex; gap: 0.7rem; color: hsl(var(--fg-muted)); }
.account-aside li .icon { color: hsl(var(--primary)); stroke-width: 2.6; margin-top: 0.2rem; }
.aside-note { margin-top: 2rem; font-size: 0.8rem; color: hsl(var(--fg-muted)); padding-top: 1.2rem; border-top: 1px solid hsl(var(--border) / 0.6); max-width: 24rem; }

.account-panel {
  background: hsl(var(--bg-elevated));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 30px 60px -30px hsl(var(--shadow-color) / 0.9);
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}
@media (max-width: 520px) { .account-panel { padding: 1.4rem 1.1rem; border-radius: 1rem; } }
.account-panel .view[hidden] { display: none; }
@keyframes apx-view { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .account-panel .view:not([hidden]) { animation: apx-view 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; } }

.account-panel h2 { font-size: 1.35rem; }
.sub { color: hsl(var(--fg-muted)); font-size: 0.9rem; margin: 0.4rem 0 1.4rem; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: hsl(var(--bg)); border: 1px solid hsl(var(--border)); margin-bottom: 1.4rem; }
.tabs button { border: none; background: transparent; color: hsl(var(--fg-muted)); font-weight: 700; font-size: 0.88rem; padding: 0.6rem 0.8rem; border-radius: 999px; transition: background-color 0.2s ease, color 0.2s ease; }
.tabs button:hover { color: hsl(var(--fg)); }
.tabs button[aria-selected="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }

.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 0.7rem; margin-bottom: 0; }
.btn-google:hover { background: #f4f4f4; }
.btn-google[hidden], .or[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0; color: hsl(var(--fg-muted)); font-size: 0.78rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: hsl(var(--border)); }

.links { margin-top: 1rem; text-align: center; font-size: 0.85rem; }
.linklike { background: none; border: none; padding: 0; color: hsl(var(--primary)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.84rem; font-weight: 400; color: hsl(var(--fg-muted)); margin: 0.6rem 0; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; padding: 0; margin-top: 0.15rem; flex: none; accent-color: hsl(var(--primary)); }
.check a { text-decoration: underline; text-underline-offset: 2px; color: hsl(var(--fg)); }
.fine { font-size: 0.78rem; color: hsl(var(--fg-muted)); margin-top: 0.8rem; text-align: center; }

.center { text-align: center; }
.center p { color: hsl(var(--fg-muted)); margin-top: 0.6rem; font-size: 0.94rem; }
.big-icon { width: 4rem; height: 4rem; margin: 0 auto 1.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: hsl(var(--primary) / 0.14); color: hsl(var(--primary)); }
.big-icon .icon { width: 1.8rem; height: 1.8rem; }
.big-icon.small { width: 3.2rem; height: 3.2rem; margin-left: 0; }
.big-icon.small .icon { width: 1.4rem; height: 1.4rem; }

.acc-head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.avatar-lg { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-fg)); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; flex: none; }
.acc-head .who { flex: 1; min-width: 0; }
.acc-head .who h2 { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head .who span { font-size: 0.82rem; color: hsl(var(--fg-muted)); display: block; overflow: hidden; text-overflow: ellipsis; }

#paneProfile[hidden], #paneOrders[hidden], #paneLogin[hidden], #paneRegister[hidden] { display: none; }
input:disabled { opacity: 0.6; cursor: not-allowed; }

.danger { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid hsl(var(--border)); }
.danger summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: hsl(0 75% 70%); }
.danger p { font-size: 0.82rem; color: hsl(var(--fg-muted)); margin: 0.8rem 0; }
.btn-danger { background: hsl(0 70% 48%); color: #fff; }
.btn-danger:hover { background: hsl(0 70% 55%); }

/* Pedidos */
.order-card { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.9rem; background: hsl(var(--bg) / 0.5); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.order-top strong { font-size: 0.98rem; }
.order-top .date { font-size: 0.78rem; color: hsl(var(--fg-muted)); }
.pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0; }
.pill { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid hsl(var(--border)); color: hsl(var(--fg-muted)); }
.pill.ok { color: hsl(140 60% 68%); border-color: hsl(140 50% 45% / 0.5); background: hsl(140 55% 45% / 0.1); }
.pill.warn { color: hsl(40 90% 65%); border-color: hsl(40 80% 50% / 0.5); background: hsl(40 80% 50% / 0.1); }
.pill.bad { color: hsl(0 80% 74%); border-color: hsl(0 70% 50% / 0.5); background: hsl(0 70% 50% / 0.1); }
.order-items { list-style: none; padding: 0; margin: 0.4rem 0 0; font-size: 0.85rem; color: hsl(var(--fg-muted)); }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; }
.order-total { display: flex; justify-content: space-between; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid hsl(var(--border)); font-weight: 800; }
.order-total span:last-child { color: hsl(var(--primary)); font-variant-numeric: tabular-nums; }
.empty-orders { text-align: center; padding: 2.5rem 1rem; color: hsl(var(--fg-muted)); }
.empty-orders .icon { width: 2.2rem; height: 2.2rem; color: hsl(var(--primary)); margin-bottom: 0.6rem; }
.empty-orders .btn { margin-top: 1rem; }
