/* ============================================================
   GloboMondo — Auth + Mi cuenta
   ============================================================ */

/* ---------- AUTH ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }

.auth-side { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 900px) { .auth-side { display: none; } }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12), transparent 45%); }
.auth-side .as-top, .auth-side .as-mid, .auth-side .as-bot { position: relative; }
.auth-side h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; max-width: 18ch; }
.auth-side p { font-size: 16px; color: rgba(255,255,255,0.9); margin-top: 14px; max-width: 36ch; }
.auth-quotes { display: flex; flex-direction: column; gap: 14px; }
.auth-q { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 16px; backdrop-filter: blur(4px); }
.auth-q p { color: #fff; font-size: 14.5px; margin: 0; }
.auth-q .who { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.85); }
.auth-q .av { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.25); display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 11px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .a-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-tabs { display: flex; background: var(--muted); border-radius: var(--radius); padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted-foreground); transition: all 0.18s ease; }
.auth-tabs button.on { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-xs); }
.auth-h { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.auth-sub { font-size: 14px; color: var(--muted-foreground); text-align: center; margin-top: 6px; margin-bottom: 22px; }
.auth-form { display: none; }
.auth-form.on { display: block; animation: stepIn 0.3s cubic-bezier(0.16,0.84,0.34,1); }
.oauth-btn { width: 100%; height: 46px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; font-weight: 550; transition: all 0.15s ease; }
.oauth-btn:hover { border-color: var(--primary); background: var(--muted); }
.oauth-btn .g-ic { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-foreground); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-field .hint { font-size: 12px; color: var(--muted-foreground); margin-top: 6px; }
.auth-field .inp-ic .inp { padding-right: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted-foreground); transition: color 0.15s ease, background 0.15s ease; }
.pw-toggle:hover { color: var(--foreground); background: var(--muted); }
.pw-toggle svg { width: 17px; height: 17px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--subtle-foreground); }
.auth-check input { display: none; }
.auth-check .box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; }
.auth-check .box svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.auth-check input:checked + .box { background: var(--primary); border-color: var(--primary); }
.auth-check input:checked + .box svg { opacity: 1; }
.auth-link { color: var(--primary); font-weight: 550; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted-foreground); margin-top: 18px; }
.magic-sent { text-align: center; padding: 10px 0; }
.magic-sent .mi { width: 56px; height: 56px; border-radius: 50%; background: oklch(0.71 0.13 185 / 0.14); color: var(--teal-strong); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.magic-sent .mi svg { width: 28px; height: 28px; }

/* ---------- MI CUENTA ---------- */
.acc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 0 100px; align-items: start; }
@media (max-width: 860px) { .acc-layout { grid-template-columns: 1fr; } }
.acc-nav { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; }
.acc-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius); font-size: 14.5px; font-weight: 550; color: var(--subtle-foreground); transition: all 0.15s ease; white-space: nowrap; }
.acc-nav a svg { width: 18px; height: 18px; }
.acc-nav a:hover { background: var(--muted); }
.acc-nav a.on { background: oklch(0.5 0.16 262 / 0.1); color: var(--primary); }
@media (max-width: 860px) {
  .acc-nav { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; background: transparent; border: none; padding: 2px 0 6px; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav .acc-profile { display: none; }
  .acc-nav a { flex: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 15px; }
  .acc-nav a.on { background: var(--primary); color: #fff; border-color: transparent; }
}
.acc-profile { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.acc-profile .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; }
.acc-profile .nm { font-size: 14px; font-weight: 650; }
.acc-profile .em { font-size: 12px; color: var(--muted-foreground); }

.acc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.acc-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.acc-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.acc-tabs button { padding: 11px 14px; font-size: 14px; font-weight: 550; color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s ease; }
.acc-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.acc-view { display: none; }
.acc-view.on { display: block; animation: stepIn 0.3s cubic-bezier(0.16,0.84,0.34,1); }
.acc-settings { display: grid; gap: 18px; max-width: 640px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-row .st-l { font-size: 14px; font-weight: 600; }
.set-row .st-d { font-size: 12.5px; color: var(--muted-foreground); margin-top: 2px; }
.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background 0.2s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(18px); }

/* reservation card */
.res-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; align-items: center; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.res-card + .res-card { margin-top: 14px; }
.res-card:hover { box-shadow: var(--shadow-sm); }
@media (max-width: 620px) { .res-card { grid-template-columns: 1fr; } .res-card .res-qr { display: none; } }
.res-thumb { width: 96px; height: 96px; border-radius: var(--radius); }
@media (max-width: 620px) { .res-thumb { width: 100%; height: 120px; } }
.res-info .r-cat { font-size: 12px; color: var(--muted-foreground); font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.res-info .r-name { font-size: 16px; font-weight: 650; margin-top: 2px; }
.res-info .r-meta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; color: var(--subtle-foreground); font-size: 13px; }
.res-info .r-meta span { display: inline-flex; align-items: center; gap: 5px; }
.res-info .r-meta svg { width: 14px; height: 14px; color: var(--muted-foreground); }
.res-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.res-qr { width: 64px; height: 64px; padding: 5px; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.res-qr .qr { width: 54px; height: 54px; grid-template-columns: repeat(21,1fr); }
.res-actions { display: flex; gap: 8px; }

/* empty state */
.empty { text-align: center; padding: 70px 20px; }
.empty .ei { width: 76px; height: 76px; border-radius: 50%; background: var(--muted); display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); margin-bottom: 16px; }
.empty .ei svg { width: 34px; height: 34px; }
.empty h3 { font-size: 18px; font-weight: 650; }
.empty p { font-size: 14px; color: var(--muted-foreground); margin-top: 6px; max-width: 36ch; margin-left: auto; margin-right: auto; }

/* settings form */
.set-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; max-width: 540px; }
.set-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 16px; }

/* support */
.sup-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .sup-grid { grid-template-columns: 1fr; } }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.faq-q svg { width: 18px; height: 18px; color: var(--muted-foreground); flex: none; transition: transform 0.2s ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { font-size: 13.5px; color: var(--muted-foreground); line-height: 1.6; padding: 0 0 14px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.cm { display: flex; gap: 13px; align-items: flex-start; }
.cm .ci { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cm .ci svg { width: 19px; height: 19px; }
.cm .ct { font-size: 14px; font-weight: 600; }
.cm .cd { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.cm a { color: var(--primary); }
.sup-ticket { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.sup-ticket:last-child { border-bottom: none; }
.sup-ticket .si { width: 32px; height: 32px; border-radius: 9px; background: var(--muted); color: var(--subtle-foreground); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sup-ticket .si svg { width: 15px; height: 15px; }
.sup-ticket .nm { font-size: 13.5px; font-weight: 600; }
.sup-ticket .mt { font-size: 12px; color: var(--muted-foreground); font-family: var(--ff-mono); }
.sup-ticket .badge { margin-left: auto; }
