/* ═══════════════════════════════════════════════════
   Planchado Express — styles.css
   Responsive mejorado para desktop, laptop, tablet y móvil
═══════════════════════════════════════════════════ */

:root {
  --bg:        #ede8e3;
  --surface:   #ffffff;
  --red:       #e63329;
  --red-dark:  #c0281f;
  --dark:      #1a1a1a;
  --dark-2:    #2d2d2d;
  --gray:      #888;
  --gray-lt:   #ccc;
  --border:    #d8d2cb;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --t: .2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .04em;
}

a, button {
  cursor: pointer;
}

input, select, textarea, button {
  font-family: 'Nunito', sans-serif;
}

button, input, select, textarea {
  font-size: 1rem;
}

/* ── UTILS ── */
.hidden { display: none !important; }
.active { display: flex !important; }

/* ══════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════ */
.screen {
  display: none;
  min-height: 100vh;
  background: var(--bg);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.screen.active {
  display: flex;
}

.screen.admin-layout-screen {
  display: none;
  min-height: 100vh;
  background: #f4f4f4;
  width: 100%;
}

.screen.admin-layout-screen.active {
  display: flex;
}

.phone-wrap {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  padding: 0 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-inline: auto;
}

/* ══════════════════════════════════════════════
   LOGO / ÍCONO PLANCHA
══════════════════════════════════════════════ */
.iron-icon { display: block; }
.iron-icon.lg { width: 80px; height: 60px; }
.iron-icon.sm { width: 48px; height: 36px; }
.iron-icon.xs { width: 36px; height: 27px; }

.iron-icon.white-icon path,
.iron-icon.white-icon rect,
.iron-icon.white-icon circle {
  fill: white !important;
  stroke: white !important;
}

/* ══════════════════════════════════════════════
   SPLASH
══════════════════════════════════════════════ */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .08em;
  margin-top: .5rem;
  color: var(--dark);
  text-align: center;
}

.splash-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.splash-welcome {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.45;
  margin-bottom: .35rem;
}

.splash-brand-red {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--red);
  letter-spacing: .08em;
  margin-bottom: .6rem;
}

.splash-sub {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.admin-link-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: .82rem;
  margin-top: 1.25rem;
  align-self: center;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
}

.admin-link-btn:hover {
  color: var(--dark);
}

/* ══════════════════════════════════════════════
   TOPBAR PEQUEÑA
══════════════════════════════════════════════ */
.topbar-sm {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 0 .75rem;
  width: 100%;
}

.topbar-sm.center {
  justify-content: center;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--dark);
  padding: .25rem .5rem;
  border-radius: var(--r-sm);
  line-height: 1;
  transition: background var(--t);
  flex-shrink: 0;
}

.back-btn:hover {
  background: rgba(0,0,0,.07);
}

.back-btn.light {
  color: rgba(255,255,255,.8);
}

/* NUEVO: botón regresar con texto */
.topbar-back-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.back-btn-labeled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}

.back-arrow {
  font-size: 45px; /* tamaño de la flecha */
  line-height: 1;
  font-weight: 700;
  color: var(--dark);
}

.back-text {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}

/* ══════════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════════ */
.form-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  margin-top: .5rem;
  width: 100%;
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: .25rem;
  line-height: 1;
}

.form-subtitle {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
}

.form-hint {
  font-size: .82rem;
  text-align: center;
  color: var(--gray);
  margin-top: .9rem;
}

.link-span {
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   INPUTS
══════════════════════════════════════════════ */
.field {
  width: 100%;
  padding: .72rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: .95rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  margin-bottom: .75rem;
  min-width: 0;
}

.field:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, .08);
}

.field.solo {
  display: block;
}

.field.admin-field {
  background: #f9f9f9;
  border-color: #ddd;
}

.input-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  min-width: 0;
}

.input-row .field {
  margin-bottom: 0;
}

.flag {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.eye-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray);
  padding: .35rem;
  flex-shrink: 0;
}

.eye-btn.light {
  color: rgba(255,255,255,.6);
}

.textarea-field {
  width: 100%;
  padding: .72rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: .9rem;
  min-height: 100px;
  resize: vertical;
  outline: none;
  font-family: 'Nunito', sans-serif;
  transition: border-color var(--t), box-shadow var(--t);
  margin-bottom: .75rem;
}

.textarea-field:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, .08);
}

.field-lbl {
  font-size: .82rem;
  font-weight: 700;
  color: #555;
  display: block;
  margin-bottom: .3rem;
}

.field-lbl.light {
  color: rgba(255,255,255,.75);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.full { width: 100%; }

.btn-dark,
.btn-outline,
.btn-red,
.btn-red-sq,
.btn-outline-dark,
.btn-danger-red {
  min-height: 44px;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: .8rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  transition: background var(--t), transform var(--t);
  margin-bottom: .5rem;
}

.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
  border-radius: var(--r-md);
  padding: .78rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--t);
  margin-bottom: .5rem;
}

.btn-outline:hover {
  background: rgba(0,0,0,.06);
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: .72rem 1.3rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-red-sq {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: .65rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .65rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--t);
}

.btn-outline-dark:hover {
  background: #f0f0f0;
}

.btn-danger-red {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: .65rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
}

.btn-danger-red:hover {
  background: #b91c1c;
}

.logout-link-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: .82rem;
  margin-top: .75rem;
  align-self: center;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
}

.menu-policy-link {
  background: none;
  border: none;
  color: var(--gray);
  font-size: .82rem;
  margin-top: .5rem;
  margin-bottom: 1.4rem;
  align-self: center;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
}

.menu-register-btn {
  margin-top: .5rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.menu-policy-link:hover {
  color: var(--dark);
}

/* ══════════════════════════════════════════════
   MENÚ CLIENTE
══════════════════════════════════════════════ */
.menu-welcome {
  text-align: center;
  margin: .75rem 0 1.25rem;
}

.welcome-text {
  font-size: .9rem;
  color: #555;
  margin-bottom: .2rem;
}

.welcome-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  letter-spacing: .06em;
  line-height: 1;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.menu-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem .85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: transform var(--t), box-shadow var(--t);
  min-height: 150px;
  justify-content: center;
}

.menu-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tile-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   SCREEN TITLE
══════════════════════════════════════════════ */
.screen-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  letter-spacing: .06em;
  text-align: center;
  margin: 1rem 0 1.25rem;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   TRACKING
══════════════════════════════════════════════ */
.tracking-box {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.1rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: .85rem;
  border: 1px solid var(--border);
}

.info-lbl {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .25rem;
}

.info-val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  overflow-wrap: anywhere;
}

.tracking-id-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
  color: var(--dark);
  word-break: break-word;
}

.info-hint {
  font-size: .73rem;
  color: var(--gray);
  margin-top: .2rem;
}

.estado-card {
  border-left: 4px solid var(--red);
}

.estado-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  color: var(--red);
  margin-top: .25rem;
  line-height: 1;
}

.empty-msg {
  color: var(--gray);
  font-size: .88rem;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ══════════════════════════════════════════════
   MIS PRENDAS
══════════════════════════════════════════════ */
.mis-prendas-status-link {
  background: none;
  border: none;
  color: var(--gray);
  font-size: .82rem;
  margin: 1rem auto 0;
  align-self: center;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
  display: block;
}

.mis-prendas-status-link:hover {
  color: var(--dark);
}

.prenda-item {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.prenda-item-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.prenda-item-name {
  font-weight: 800;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.prenda-item-sub {
  font-size: .78rem;
  color: var(--gray);
  overflow-wrap: anywhere;
}

.prenda-item-id {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--red);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   FOTOS EN HISTORIAL
══════════════════════════════════════════════ */
.pedido-card-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.prenda-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pedido-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.pedido-foto-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pedido-foto-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8d2cb;
  background: #f5f5f5;
}

.pedido-foto-item span {
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.sin-fotos {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   NUEVA PRENDA — MATERIALES
══════════════════════════════════════════════ */
.material-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.mat-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  transition: background var(--t), border-color var(--t), color var(--t);
}

.mat-btn:hover {
  border-color: var(--red);
}

.mat-btn.selected {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ══════════════════════════════════════════════
   CUENTA CLIENTE
══════════════════════════════════════════════ */
.cuenta-block {
  text-align: center;
  margin-top: 1.5rem;
}

.cuenta-avatar-big {
  font-size: 4rem;
  margin-bottom: .75rem;
}

.cuenta-name-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.cuenta-email-sm {
  font-size: .85rem;
  color: var(--gray);
  margin-top: .2rem;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════
   POLÍTICA
══════════════════════════════════════════════ */
.politica-body {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.politica-body h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  margin: 1rem 0 .3rem;
  color: var(--red);
}

.politica-body h4:first-child {
  margin-top: 0;
}

.politica-body p {
  font-size: .85rem;
  line-height: 1.6;
  color: #444;
}

/* ══════════════════════════════════════════════
   LOGIN ADMIN
══════════════════════════════════════════════ */
.admin-bg {
  background: #1a1a1a !important;
}

.admin-bg .phone-wrap {
  background: #1a1a1a;
}

.admin-topbar-sm {
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.admin-login-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 2rem 1.5rem;
  margin-top: 1rem;
}

.admin-badge-pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  padding: .25rem .85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.admin-title {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: .25rem;
  line-height: 1;
}

.admin-subtitle {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
}

.admin-field {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.admin-field::placeholder {
  color: rgba(255,255,255,.35);
}

.admin-field:focus {
  border-color: var(--red) !important;
}

.admin-login-box .btn-dark {
  background: var(--red);
}

.admin-login-box .btn-dark:hover {
  background: var(--red-dark);
}

/* ══════════════════════════════════════════════
   PANEL ADMIN — LAYOUT
══════════════════════════════════════════════ */
.adm-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0 0 1.5rem;
  transition: transform var(--t);
}

.adm-sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1.1rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .5rem;
}

.adm-sidebar-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .04em;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 0 .75rem;
  flex: 1;
}

.adm-nav-btn {
  background: none;
  border: none;
  text-align: left;
  padding: .75rem .9rem;
  border-radius: var(--r-sm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: background var(--t), color var(--t);
}

.adm-nav-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.adm-nav-btn.active {
  background: var(--red);
  color: #fff;
}

.adm-logout {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  font-family: 'Nunito', sans-serif;
  padding: .75rem 1.25rem 0;
  text-align: left;
}

.adm-logout:hover {
  color: rgba(255,255,255,.8);
}

.adm-body {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  width: calc(100% - 220px);
}

.adm-topbar {
  min-height: 60px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #555;
}

.adm-topbar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .04em;
  line-height: 1;
}

.adm-user-pill {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .9rem;
  border-radius: 99px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-content {
  padding: 1.5rem;
  flex: 1;
  width: 100%;
  max-width: 1400px;
}

/* VISTAS ADMIN */
.adm-view {
  display: none;
  animation: fadeUp .25s ease;
}

.adm-view.active-adm-view {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* MÉTRICAS */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .85rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: #fff;
  border-radius: var(--r-md);
  padding: 1.1rem;
  border-left: 4px solid;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.metric-box.c-red    { border-color: var(--red); }
.metric-box.c-yellow { border-color: #f59e0b; }
.metric-box.c-blue   { border-color: #3b82f6; }
.metric-box.c-green  { border-color: #10b981; }
.metric-box.c-purple { border-color: #8b5cf6; }

.mn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.ml {
  font-size: .75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* CARD */
.adm-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 1.25rem;
}

.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .75rem;
  flex-wrap: wrap;
}

.adm-card-head h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
}

.link-txt {
  background: none;
  border: none;
  color: var(--red);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
}

/* TABLA */
.tbl-wrap {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.adm-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  white-space: nowrap;
  min-width: 760px;
}

.adm-tbl th {
  background: #f9f9f9;
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray);
  border-bottom: 1px solid #eee;
}

.adm-tbl td {
  padding: .75rem .9rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.adm-tbl tbody tr:last-child td {
  border-bottom: none;
}

.adm-tbl tbody tr:hover {
  background: #fafafa;
}

.t-empty {
  text-align: center;
  color: var(--gray);
  padding: 2rem !important;
  font-style: italic;
}

/* ACCIONES EN TABLA */
.tbl-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.tbl-btn {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: var(--r-sm);
  padding: .42rem .56rem;
  font-size: .78rem;
  line-height: 1;
  transition: background var(--t);
}

.tbl-btn:hover {
  background: #e8e8e8;
}

.tbl-btn.del:hover {
  background: #fee2e2;
  border-color: var(--red);
}

/* FILTROS */
.adm-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.adm-search-input {
  flex: 1;
  min-width: 220px;
  padding: .7rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r-md);
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--t);
}

.adm-search-input:focus {
  border-color: var(--red);
}

.adm-sel {
  padding: .7rem .9rem;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r-md);
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  outline: none;
  min-width: 180px;
}

/* FORMULARIO ADMIN */
.form-section-lbl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem;
  color: var(--red);
  letter-spacing: .06em;
  margin: 1.25rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #fde8e6;
}

.form-section-lbl:first-of-type {
  margin-top: 0;
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: .75rem;
}

.form-fld {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.form-fld label {
  font-size: .8rem;
  font-weight: 700;
  color: #555;
}

.form-fld.full-fld {
  grid-column: 1 / -1;
}

.adm-input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r-sm);
  background: #f9f9f9;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.adm-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, .08);
}

.adm-textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--r-sm);
  background: #f9f9f9;
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.adm-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, .08);
}

.form-actions-row {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}

/* ══════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.b-pendiente  { background: #fef3c7; color: #d97706; }
.b-en_proceso { background: #dbeafe; color: #2563eb; }
.b-planchado  { background: #fce7f3; color: #db2777; }
.b-listo      { background: #d1fae5; color: #059669; }
.b-entregado  { background: #ede9fe; color: #7c3aed; }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .15s ease;
}

.modal-overlay.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #eee;
  gap: .75rem;
}

.modal-hd h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.modal-x {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--gray);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-x:hover {
  background: #f0f0f0;
}

.modal-bd {
  padding: 1.25rem 1.4rem;
  max-height: 55vh;
  overflow-y: auto;
}

.modal-ft {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  padding: 1rem 1.4rem;
  border-top: 1px solid #eee;
  justify-content: flex-end;
}

.det-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.25rem;
}

.det-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.det-item.full {
  grid-column: 1 / -1;
}

.det-lbl {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray);
}

.det-val {
  font-size: .92rem;
  color: var(--dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════
   SIDEBAR OVERLAY
══════════════════════════════════════════════ */
.sidebar-ov {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.sidebar-ov.hidden {
  display: none !important;
}

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.toast {
  background: var(--dark);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-md);
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 230px;
  max-width: 340px;
  border-left: 4px solid var(--red);
  animation: toastIn .3s ease both, toastOut .3s ease 3.7s both;
  pointer-events: all;
}

.toast.success { border-color: #10b981; }
.toast.error   { border-color: var(--red); }
.toast.info    { border-color: #3b82f6; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ══════════════════════════════════════════════
   FOTO COMPLETA
══════════════════════════════════════════════ */
.clickable-photo {
  cursor: zoom-in;
}

.photo-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.photo-viewer-overlay.hidden {
  display: none !important;
}

.photo-viewer-box {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.photo-viewer-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (min-width: 481px) {
  .phone-wrap {
    max-width: 560px;
    padding-inline: 1.5rem;
  }

  .pedido-fotos {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .pedido-foto-item img {
    height: 110px;
  }
}

@media (min-width: 769px) {
  .phone-wrap {
    max-width: 680px;
    padding-inline: 2rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pedido-fotos {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .pedido-foto-item img {
    height: 130px;
  }

  .tracking-box,
  .info-card,
  .politica-body,
  .form-card {
    padding: 1.35rem 1.4rem;
  }
}

@media (min-width: 1024px) {
  .phone-wrap {
    max-width: 760px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .pedido-fotos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .pedido-foto-item img {
    height: 145px;
  }

  .adm-content {
    padding: 1.75rem;
  }

  .adm-card {
    padding: 1.4rem;
  }
}

@media (min-width: 1280px) {
  .adm-content {
    max-width: 1500px;
  }

  .metrics-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .adm-topbar {
    padding: .9rem 1rem;
  }

  .adm-content {
    padding: 1rem;
  }

  .photo-viewer-close {
    top: -6px;
    right: -2px;
  }
}

@media (max-width: 768px) {
  .adm-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .adm-sidebar.open {
    transform: translateX(0);
  }

  .adm-body {
    margin-left: 0;
    width: 100%;
  }

  .hamburger-btn {
    display: block;
  }

  .form-2col {
    grid-template-columns: 1fr;
  }

  .adm-filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-search-input,
  .adm-sel {
    width: 100%;
    min-width: 0;
  }

  .form-actions-row {
    justify-content: stretch;
  }

  .form-actions-row > * {
    width: 100%;
  }

  .det-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    max-width: 100%;
    border-radius: 22px;
  }

  #toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .phone-wrap {
    max-width: 100%;
    padding: 0 1rem 1.5rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-tile {
    min-height: 120px;
  }

  .prenda-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .prenda-item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .prenda-item-id {
    align-self: flex-start;
  }

  .pedido-fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-hd,
  .modal-bd,
  .modal-ft {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .adm-user-pill {
    margin-left: 0;
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .adm-topbar {
    gap: .6rem;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  body.ui-mobile-large .phone-wrap {
    max-width: 640px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  body.ui-mobile-large .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ui-mobile-large .menu-tile {
    min-height: 132px;
  }

  body.ui-mobile-large .pedido-fotos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.ui-mobile-large .pedido-foto-item img {
    height: 110px;
  }

  body.ui-mobile-large .prenda-item {
    padding: 1rem;
  }

  body.ui-mobile-large .screen-title {
    font-size: 1.55rem;
  }

  body.ui-mobile-large .tracking-box,
  body.ui-mobile-large .info-card,
  body.ui-mobile-large .form-card {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .phone-wrap {
    padding: 0 .9rem 1.25rem;
  }

  .logo-block {
    padding-top: 1.5rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .form-card,
  .tracking-box,
  .info-card,
  .politica-body {
    padding: 1rem;
  }

  .screen-title {
    margin: .85rem 0 1rem;
  }

  .pedido-fotos {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pedido-foto-item img {
    height: 84px;
  }

  .pedido-foto-item span,
  .sin-fotos {
    font-size: 10px;
  }

  .metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
  }

  .mn {
    font-size: 1.7rem;
  }

  .adm-content {
    padding: .85rem;
  }

  .adm-card {
    padding: 1rem;
  }

  .adm-card-head {
    align-items: flex-start;
  }

  .btn-red,
  .btn-dark,
  .btn-outline {
    width: 100%;
  }

  .photo-viewer-overlay {
    padding: 10px;
  }

  .photo-viewer-close {
    width: 38px;
    height: 38px;
    font-size: 18px;
    top: 8px;
    right: 8px;
  }

  .photo-viewer-img {
    max-height: 82vh;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .pedido-fotos {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .prenda-item {
    padding: .9rem;
  }

  .modal-box {
    border-radius: 18px;
  }
}

/* =====================
   MODAL CONFIRMACIÓN PEDIDO
===================== */
.conf-modal-box {
  max-width: 360px;
}

.conf-modal-hd h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.conf-folio-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}

.conf-folio-lbl {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.conf-folio-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: .04em;
}

.conf-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
  padding: .9rem;
  background: #f9f9f9;
  border-radius: var(--r-lg);
}

.conf-qr-wrap canvas {
  border-radius: 6px;
}

.conf-qr-hint {
  font-size: .72rem;
  color: var(--gray);
  text-align: center;
  margin: 0;
}

.conf-datos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.conf-dato {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: #f5f5f5;
  border-radius: var(--r-lg);
  padding: .65rem .75rem;
}

.conf-dato-full {
  grid-column: 1 / -1;
}

.conf-dato-lbl {
  font-size: .68rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.conf-dato-val {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
}

.conf-dato-cola {
  font-size: 1.4rem;
  color: var(--red);
}

.conf-aviso-tiempo {
  flex-direction: row !important;
  align-items: flex-start;
  gap: .6rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.conf-aviso-icono {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.conf-aviso-txt {
  font-size: .82rem;
  color: #6d5200;
  line-height: 1.45;
  font-weight: 500;
}

.conf-aviso-txt strong {
  color: #e63329;
}
