/* ===== Palette: Pastel Feminine Aesthetic ===== */
:root {
  --bg-primary: #FBF5F3;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF8F6;
  --bg-elevated: #F5EDED;
  --bg-blush: #FCEEE9;
  --bg-lavender: #F0ECF5;
  --bg-sage: #EDF3ED;
  --text-primary: #3D2C2C;
  --text-secondary: #8B7272;
  --text-tertiary: #BBA9A9;
  --accent: #C48B9F;
  --accent-light: #E8C5D0;
  --accent-soft: rgba(196, 139, 159, 0.12);
  --accent-gradient: linear-gradient(135deg, #D4A0B0, #C48B9F, #B0A0D4);
  --accent-gradient-warm: linear-gradient(135deg, #E8C5D0, #D4A0B0);
  --rose: #D4A0A0;
  --lavender: #B0A0D4;
  --sage: #A0BFA0;
  --gold: #D4B896;
  --success: #A8C5A0;
  --warning: #D4B896;
  --border: rgba(180, 150, 150, 0.10);
  --border-accent: rgba(196, 139, 159, 0.20);
  --shadow-soft: 0 2px 16px rgba(60, 40, 40, 0.06);
  --shadow-md: 0 4px 24px rgba(60, 40, 40, 0.08);
  --shadow-lg: 0 8px 40px rgba(60, 40, 40, 0.10);
  --shadow-glow: 0 4px 20px rgba(196, 139, 159, 0.20);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --nav-height: 72px;
  --header-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --gradient-card-warm: linear-gradient(135deg, #fdf0f4 0%, #f0e6f6 100%);
  --gradient-card-stats: linear-gradient(135deg, #f0f4fd 0%, #eef0fa 100%);
  --gradient-card-trips: linear-gradient(135deg, #eef6f0 0%, #eaf2fb 100%);
  --gradient-weather: linear-gradient(135deg, #eaf3fb 0%, #f3eefb 100%);
  --gradient-reminder: linear-gradient(135deg, #fff5ec 0%, #fdeef4 100%);
  --gradient-suggestion: linear-gradient(135deg, #fff8f5 0%, #fdf0f4 50%, #f0e6f6 100%);
  --gradient-ai: linear-gradient(135deg, #fbeef6 0%, #ece4fb 100%);
  --gradient-worn-ok: linear-gradient(135deg, #f0faf0 0%, #e8f5e8 100%);
  --worn-ok-border: #c8e6c8;
  --worn-ok-text: #4a8c4a;
  --gradient-outfit-day: linear-gradient(135deg, #fdf0f4 0%, #f5eef8 100%);
  --gradient-plan-day: linear-gradient(135deg, #fff6ea 0%, #fdeede 100%);
  --lookbook-bg: linear-gradient(135deg, #f4eef0 0%, #ece6f2 100%);
  --share-bg: linear-gradient(135deg, #e3f0ff 0%, #f0e6f6 100%);
  --share-border: rgba(100, 140, 200, 0.25);
  --share-color: #4a6fa5;
  --share-bg-hover: linear-gradient(135deg, #d0e4ff 0%, #e6d8f0 100%);
  --gradient-ai-settings: linear-gradient(135deg, #fbf0f6 0%, #eee8fb 100%);
  --ai-settings-border: rgba(160, 130, 220, 0.25);
  --gradient-avatar-hint: linear-gradient(135deg, #fdf3f7 0%, #f0eaf8 100%);
  --gradient-btn-regen: linear-gradient(135deg, #fbeef3 0%, #efe6f7 100%);
  --gradient-btn-regen-hover: linear-gradient(135deg, #f7e2ec 0%, #e6d8f3 100%);
  --btn-regen-border: rgba(196, 139, 159, 0.35);
  --gradient-stylist-avatar: linear-gradient(135deg, #fbeef3, #ece4fb);
  --gradient-btn-ai: linear-gradient(135deg, #fbeef6 0%, #ece4fb 100%);
  --btn-ai-border: rgba(160, 130, 220, 0.3);
  --stats-accent-border: rgba(196, 139, 159, 0.3);
  --weather-border: rgba(120, 160, 210, 0.2);
  --reminder-border: rgba(224, 164, 88, 0.25);
  --plan-day-border-color: var(--accent);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-primary: #1a1520;
  --bg-secondary: #221c28;
  --bg-card: #2a2230;
  --bg-card-hover: #342a38;
  --bg-elevated: #322838;
  --bg-blush: #3a2535;
  --bg-lavender: #2e2540;
  --bg-sage: #253028;
  --text-primary: #F0E6EC;
  --text-secondary: #B8A8B0;
  --text-tertiary: #887080;
  --accent: #D4A0B8;
  --accent-light: #4a3545;
  --accent-soft: rgba(212, 160, 184, 0.15);
  --accent-gradient: linear-gradient(135deg, #D4A0B8, #C890A8, #B8A0D8);
  --accent-gradient-warm: linear-gradient(135deg, #5a3a4a, #4a3040);
  --rose: #C89090;
  --lavender: #A898C8;
  --sage: #90B890;
  --gold: #C8A880;
  --success: #90B888;
  --warning: #C8A878;
  --border: rgba(200, 170, 180, 0.12);
  --border-accent: rgba(212, 160, 184, 0.25);
  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 20px rgba(212, 160, 184, 0.18);
  --gradient-card-warm: linear-gradient(135deg, #3a2535 0%, #2e2540 100%);
  --gradient-card-stats: linear-gradient(135deg, #252838 0%, #282540 100%);
  --gradient-card-trips: linear-gradient(135deg, #253028 0%, #252838 100%);
  --gradient-weather: linear-gradient(135deg, #1e2838 0%, #281e38 100%);
  --gradient-reminder: linear-gradient(135deg, #302518 0%, #382030 100%);
  --gradient-suggestion: linear-gradient(135deg, #2a2028 0%, #3a2535 50%, #2e2540 100%);
  --gradient-ai: linear-gradient(135deg, #382030 0%, #2e2540 100%);
  --gradient-worn-ok: linear-gradient(135deg, #1a3020 0%, #1e2820 100%);
  --worn-ok-border: #2a5a2a;
  --worn-ok-text: #78c878;
  --gradient-outfit-day: linear-gradient(135deg, #3a2535 0%, #302840 100%);
  --gradient-plan-day: linear-gradient(135deg, #352a18 0%, #382520 100%);
  --lookbook-bg: linear-gradient(135deg, #2a2230 0%, #282040 100%);
  --share-bg: linear-gradient(135deg, #1e2838 0%, #2e2540 100%);
  --share-border: rgba(100, 140, 200, 0.20);
  --share-color: #88b0d8;
  --share-bg-hover: linear-gradient(135deg, #253040 0%, #352848 100%);
  --gradient-ai-settings: linear-gradient(135deg, #302030 0%, #282040 100%);
  --ai-settings-border: rgba(160, 130, 220, 0.20);
  --gradient-avatar-hint: linear-gradient(135deg, #352030 0%, #2e2540 100%);
  --gradient-btn-regen: linear-gradient(135deg, #382030 0%, #302040 100%);
  --gradient-btn-regen-hover: linear-gradient(135deg, #482838 0%, #382848 100%);
  --btn-regen-border: rgba(196, 139, 159, 0.25);
  --gradient-stylist-avatar: linear-gradient(135deg, #382030, #2e2540);
  --gradient-btn-ai: linear-gradient(135deg, #382030 0%, #2e2540 100%);
  --btn-ai-border: rgba(160, 130, 220, 0.20);
  --stats-accent-border: rgba(212, 160, 184, 0.25);
  --weather-border: rgba(120, 160, 210, 0.15);
  --reminder-border: rgba(224, 164, 88, 0.20);
  --plan-day-border-color: var(--accent);
}

/* ===== Dark Theme Element Overrides ===== */
[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .clothing-card .card-delete { background: rgba(42, 34, 48, 0.85); }
[data-theme="dark"] .avatar-slot-label { background: rgba(42, 34, 48, 0.85); }
[data-theme="dark"] .btn-toggle-bg { background: rgba(42, 34, 48, 0.90); }
[data-theme="dark"] .btn-enhance-ai { box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25); }
[data-theme="dark"] .suggestion-shuffle { background: rgba(42, 34, 48, 0.7); }
[data-theme="dark"] .btn-suggestion-detail { background: rgba(42, 34, 48, 0.7); }
[data-theme="dark"] .lookbook-fav { background: rgba(42, 34, 48, 0.85); }
[data-theme="dark"] .laundry-badge { background: rgba(42, 34, 48, 0.9); }
[data-theme="dark"] .pill.laundry-pill { background: #352a18; border-color: #5a4520; color: #c8a060; }
[data-theme="dark"] .btn-suggestion-wear:disabled { background: #2a5a2a; color: #78c878; }
[data-theme="dark"] .toast { background: var(--bg-elevated); color: var(--text-primary); }
[data-theme="dark"] .ios-install-banner { background: rgba(26, 21, 32, 0.96); }
[data-theme="dark"] .ios-install-text h4 { color: var(--text-primary); }
[data-theme="dark"] .ios-install-text p { color: var(--text-secondary); }
[data-theme="dark"] .ios-install-close { background: rgba(212, 160, 184, 0.12); color: var(--text-secondary); }

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

button, input, select, textarea {
  font-family: inherit; font-size: inherit;
  border: none; outline: none; background: none; color: inherit;
}

button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 4px; }

/* ===== App Shell ===== */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 481px) {
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 60px rgba(196, 139, 159, 0.06);
  }
}

/* ===== Header ===== */
#app-header {
  position: fixed;
  top: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(251, 245, 243, 0.80);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] #app-header { background: rgba(26, 21, 32, 0.82); }

.header-content {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: var(--bg-blush);
  color: var(--accent);
}

/* ===== Main Content ===== */
#main-content {
  flex: 1;
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  min-height: 100dvh;
}

.page {
  padding: 20px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Bottom Navigation ===== */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
}
[data-theme="dark"] #bottom-nav { background: rgba(26, 21, 32, 0.85); }

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 14px;
  color: var(--text-tertiary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-item span {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.04em;
}

.nav-item.active { color: var(--accent); }

.nav-add .add-btn-wrapper {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-add:hover .add-btn-wrapper,
.nav-add:active .add-btn-wrapper {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(196, 139, 159, 0.35);
}

/* ===== Home ===== */
.home-hero {
  text-align: center;
  padding: 28px 0 20px;
}

.home-hero h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.15;
  font-style: italic;
}

.home-hero p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  font-weight: 500;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 14px;
}

.section-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
}

.section-header a {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== Category Pills ===== */
.category-pills {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 4px 0;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  color: var(--text-secondary);
  box-shadow: var(--shadow-soft);
}

.pill.active {
  background: var(--accent-gradient-warm);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
}

.pill:hover:not(.active) {
  background: var(--bg-blush);
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ===== Clothing Grid ===== */
.clothing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.clothing-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.clothing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.clothing-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--bg-card); /* respeta tema claro/oscuro */
  padding: 6px;
  box-sizing: border-box;
}

.clothing-card .card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 8px 8px;
  background: linear-gradient(transparent, rgba(61, 44, 44, 0.65));
  font-size: 0.68rem; font-weight: 500;
  text-align: center;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.card-subcat {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 1px;
}

.clothing-card .card-delete {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.clothing-card:hover .card-delete { opacity: 1; }

/* ===== Add Item ===== */
.add-page { padding: 16px 20px; }

.add-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
  font-style: italic;
  font-weight: 600;
}

.upload-zone {
  border: 2px dashed var(--accent-light);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--bg-blush);
  box-shadow: var(--shadow-glow);
}

.upload-zone.has-image {
  padding: 0;
  border-style: solid;
  border-color: var(--accent-light);
}

.upload-zone.has-image img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.upload-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
}

.upload-zone .upload-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.upload-zone input[type="file"] { display: none; }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input::placeholder { color: var(--text-tertiary); }

.category-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-option {
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  text-align: center;
  font-size: 0.78rem; font-weight: 500;
  transition: all 0.25s ease;
  color: var(--text-secondary);
  box-shadow: var(--shadow-soft);
}

.category-option:hover {
  background: var(--bg-blush);
  border-color: var(--border-accent);
}

.category-option.selected {
  background: var(--bg-blush);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.category-option .cat-icon {
  font-size: 1.5rem; display: block; margin-bottom: 6px;
}

.color-picker-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}

.color-swatch {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--bg-elevated);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.color-swatch:hover { transform: scale(1.15); }

.color-swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-soft);
}

.color-swatch.selected::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.btn-primary {
  width: 100%; padding: 16px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-glow);
  margin-top: 8px;
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(196, 139, 159, 0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
  box-shadow: none;
}

.btn-secondary {
  width: 100%; padding: 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.92rem; font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--bg-blush);
  border-color: var(--border-accent);
}

/* ===== Outfits ===== */
.outfits-header {
  text-align: center;
  padding: 16px 0 4px;
}

.outfits-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 4px;
  font-style: italic;
  font-weight: 600;
}

.outfits-header p {
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 300;
}

.generate-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px;
  margin: 18px 0;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.92rem; font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
}

.generate-btn:hover {
  box-shadow: 0 6px 28px rgba(196, 139, 159, 0.35);
  transform: translateY(-1px);
}

.generate-btn svg { animation: none; }
.generate-btn.generating svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.outfit-list {
  display: flex; flex-direction: column; gap: 16px;
}

.outfit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.outfit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.outfit-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px;
}

.outfit-style-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.outfit-style-badge.elegant { background: var(--bg-lavender); color: #7B6BA0; }
.outfit-style-badge.casual  { background: var(--bg-sage); color: #6B8F6B; }
.outfit-style-badge.sport   { background: #E8F0E8; color: #5A8A5A; }
.outfit-style-badge.boho    { background: #F5EDE0; color: #A08060; }
.outfit-style-badge.chic    { background: var(--bg-blush); color: var(--accent); }
.outfit-style-badge.classic { background: var(--bg-elevated); color: var(--text-secondary); }

.outfit-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  margin-top: 4px;
  font-style: italic;
}

.outfit-favorite-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  color: var(--text-tertiary);
}

.outfit-favorite-btn:hover { background: var(--bg-blush); }
.outfit-favorite-btn.favorited { color: var(--accent); }
.outfit-favorite-btn.favorited svg { fill: var(--accent); }

.outfit-preview {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px 18px;
  min-height: 180px;
  background: var(--bg-primary);
}

.outfit-preview-item {
  width: 28%; aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.outfit-preview-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== Outfit Detail ===== */
.outfit-detail { padding: 20px; }

.outfit-detail-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 4px;
}

.outfit-detail-style { text-align: center; margin-bottom: 20px; }

.avatar-container {
  position: relative;
  width: 280px; max-width: 100%;
  margin: 0 auto 24px;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-card));
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.avatar-mannequin {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

.avatar-slot {
  width: 85%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.avatar-slot img { width: 100%; height: 100%; object-fit: cover; }

.avatar-slot.slot-top      { aspect-ratio: 4/3.5; }
.avatar-slot.slot-bottom   { aspect-ratio: 4/4.5; }
.avatar-slot.slot-shoes    { aspect-ratio: 4/2; }
.avatar-slot.slot-outerwear{ aspect-ratio: 4/3.5; }
.avatar-slot.slot-vestido  { aspect-ratio: 3/5; }
.avatar-slot.slot-accesorio{ aspect-ratio: 4/2.5; }

.avatar-slot-label {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.58rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.outfit-detail-actions {
  display: flex; gap: 10px; margin-top: 20px;
}

.outfit-detail-actions button {
  flex: 1; padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.25s ease;
}

.btn-fav {
  background: var(--bg-blush);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn-fav:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

.btn-shuffle {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-shuffle:hover { background: var(--bg-elevated); }

/* ===== Empty States ===== */
.favorites-empty,
.wardrobe-empty,
.outfits-empty {
  text-align: center; padding: 60px 24px;
}

.empty-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-light);
}

.empty-icon svg { width: 36px; height: 36px; }

.favorites-empty h3,
.wardrobe-empty h3,
.outfits-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-style: italic;
  font-weight: 600;
}

.favorites-empty p,
.wardrobe-empty p,
.outfits-empty p {
  color: var(--text-secondary); font-size: 0.85rem;
  line-height: 1.5; font-weight: 300;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(61, 44, 44, 0.25);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal-content {
  width: 100%; max-width: 480px;
  max-height: 92dvh;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 40px rgba(60, 40, 40, 0.12);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: var(--accent-light);
  margin: 14px auto;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  left: 50%; transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  color: var(--text-primary);
}

.toast.hidden { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Wardrobe Sections ===== */
.wardrobe-section { margin-bottom: 28px; }

.wardrobe-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.wardrobe-section-header h3 {
  font-size: 0.95rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

.wardrobe-section-header .count {
  font-size: 0.72rem;
  color: var(--text-tertiary); font-weight: 400;
}

/* ===== Horizontal Scroll ===== */
.horizontal-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }
.horizontal-scroll .clothing-card { flex-shrink: 0; width: 120px; }

/* ===== Onboarding ===== */
.onboarding {
  text-align: center;
  padding: 36px 24px;
}

.onboarding-illustration {
  width: 160px; height: 160px;
  margin: 0 auto 28px;
  background: var(--bg-blush);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.onboarding h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
  font-style: italic;
  font-weight: 600;
}

.onboarding p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

.feature-list {
  display: flex; flex-direction: column;
  gap: 12px; text-align: left;
  margin-bottom: 32px;
}

.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}

.feature-item:nth-child(1) .feature-icon { background: var(--bg-blush); }
.feature-item:nth-child(2) .feature-icon { background: var(--bg-lavender); }
.feature-item:nth-child(3) .feature-icon { background: var(--bg-sage); }

.feature-text h4 {
  font-size: 0.88rem; font-weight: 600; margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.75rem; color: var(--text-tertiary); margin: 0; font-weight: 400;
}

/* ===== Settings ===== */
.settings-panel { padding: 24px 20px; }

.settings-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
  font-style: italic;
  font-weight: 600;
}

.settings-group { margin-bottom: 24px; }

.settings-group label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.avatar-upload-zone {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--accent-light);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.avatar-upload-zone:hover {
  background: var(--bg-blush);
  border-color: var(--accent);
}

.avatar-preview {
  width: 90px; height: 90px;
  border-radius: var(--radius-full);
  background: var(--bg-blush);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  border: 2.5px solid var(--accent-light);
}

.avatar-preview img {
  width: 100%; height: 100%; object-fit: cover;
}

.avatar-upload-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.avatar-upload-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}

.btn-remove-avatar {
  margin-top: 8px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid rgba(196, 139, 159, 0.3);
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-avatar:hover {
  border-color: #d47;
  color: #d47;
}

.danger-zone {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(196, 139, 159, 0.25);
  border-radius: var(--radius-md);
  background: var(--bg-blush);
}

.danger-zone h4 {
  color: var(--accent); font-size: 0.82rem; margin-bottom: 12px;
}

.btn-danger {
  width: 100%; padding: 12px;
  border-radius: var(--radius-full);
  background: rgba(196, 139, 159, 0.12);
  color: var(--accent);
  font-weight: 600; font-size: 0.82rem;
  transition: all 0.25s ease;
}

.btn-danger:hover { background: rgba(196, 139, 159, 0.22); }

/* ===== Processing ===== */
.processing-indicator {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; gap: 12px;
}

.processing-indicator p {
  color: var(--text-secondary);
  font-size: 0.88rem; font-weight: 500;
}

.processing-spinner {
  width: 36px; height: 36px;
  border: 2.5px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== Toggle BG ===== */
.btn-toggle-bg {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); z-index: 2;
  transition: all 0.2s;
  box-shadow: var(--shadow-soft);
}

.btn-toggle-bg:hover { background: var(--bg-blush); }

.upload-actions {
  position: absolute; bottom: 10px; right: 10px;
  display: flex; gap: 6px; z-index: 2;
}
.upload-actions .btn-toggle-bg {
  position: static;
}

.btn-enhance-ai {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #a855f7, #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}
.btn-enhance-ai:hover { transform: scale(1.1); box-shadow: 0 3px 14px rgba(139, 92, 246, 0.5); }
.btn-enhance-ai:disabled { opacity: 0.7; transform: none; }

/* ===== Avatar Render ===== */
.avatar-render-container {
  width: 100%; max-width: 320px;
  margin: 0 auto 18px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}

.avatar-render-img {
  width: 100%; display: block;
  border-radius: var(--radius-xl);
  animation: avatarFadeIn 0.3s ease;
}

@keyframes avatarFadeIn {
  from { opacity: 0.4; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Outfit Card Avatar ===== */
.outfit-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 16px;
  min-height: 200px;
  background: var(--bg-primary);
}

.outfit-card-avatar {
  width: auto;
  max-width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: contain;
  animation: avatarFadeIn 0.4s ease;
}

/* ===== Interactive Outfit Editor ===== */
.outfit-editor {
  padding: 16px 20px 32px;
}

.outfit-editor-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 4px;
}

.outfit-editor-badge {
  text-align: center;
  margin-bottom: 16px;
}

.outfit-avatar-live {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-card));
  border: 1px solid var(--border);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.outfit-avatar-live .avatar-render-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

/* Avatar try-on: fade-in más suave cuando llega la imagen de Gemini */
.avatar-tryon-img {
  animation: tryonReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tryonReveal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Badge "Generando look con IA..." sobre el collage */
.avatar-gen-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42, 28, 28, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
  pointer-events: none;
}
.avatar-gen-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: genPulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes genPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Hint cuando no hay prendas */
.avatar-empty-hint {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
}

/* Zone Carousels */
.zone-carousels {
  margin: 8px 0 20px;
}

.zone-carousels-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zone-carousels-hint svg {
  animation: slideHint 1.5s ease-in-out infinite;
}

@keyframes slideHint {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

.zone-section {
  margin-bottom: 14px;
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.zone-emoji {
  font-size: 0.95rem;
}

.zone-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.zone-sel-name {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
  margin-left: auto;
  font-style: italic;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.zone-strip::-webkit-scrollbar {
  display: none;
}

.zone-item {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.zone-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.zone-item:hover {
  border-color: var(--accent-light);
  transform: scale(1.06);
}

.zone-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-glow);
  transform: scale(1.08);
}

.zone-item-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  transition: all 0.2s ease;
}

.zone-item.active .zone-item-empty {
  color: var(--accent);
  background: var(--bg-blush);
}

.outfit-editor-tip {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 300;
}

.outfit-save-btn {
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

.outfit-save-btn.hidden {
  display: none;
}

/* ===== Garment Chips ===== */
.outfit-garment-list {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 4px 0 16px;
  scrollbar-width: none;
}
.outfit-garment-list::-webkit-scrollbar { display: none; }

.garment-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.garment-chip img {
  width: 30px; height: 30px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.garment-chip span {
  font-size: 0.72rem; color: var(--text-secondary);
  font-weight: 500;
}

/* ===== Occasion Tags ===== */
.occasion-select {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.occasion-tag {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.occasion-tag.selected {
  background: var(--bg-blush);
  border-color: var(--accent);
  color: var(--accent);
}

.subcategory-select {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.subcategory-tag {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
}

.subcategory-tag.selected {
  background: var(--bg-lavender);
  border-color: var(--lavender);
  color: var(--lavender);
}

.subcategory-group { animation: fadeIn 0.25s ease; }

.season-select {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.season-tag {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
}

.season-tag.selected {
  background: var(--bg-sage);
  border-color: var(--sage);
  color: var(--sage);
}

/* ===== Shimmer Loading ===== */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Daily Phrase ===== */
.daily-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem 1.2rem;
  line-height: 1.5;
  opacity: 0;
  animation: phraseIn 0.8s ease forwards 0.3s;
}

@keyframes phraseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Calendar Link Card (Home) ===== */
.calendar-link-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  background: var(--gradient-card-warm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.calendar-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.calendar-link-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.calendar-link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.calendar-link-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.calendar-link-text p {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
}

.calendar-link-card svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ===== Calendar Page ===== */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1rem;
}

.calendar-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cal-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.cal-arrow:hover {
  background: var(--bg-blush);
  border-color: var(--accent);
  color: var(--accent);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.3rem;
}

.cal-weekdays span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: var(--bg-card);
  border: 1px solid transparent;
  overflow: hidden;
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

.cal-day:not(.empty):hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.cal-day.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 139, 159, 0.3);
}

.cal-day.today {
  border-color: var(--accent);
  background: var(--bg-blush);
}

.cal-day.today .cal-day-num {
  color: var(--accent);
  font-weight: 700;
}

.cal-day-num {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 2;
}

.cal-day-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 2px;
  z-index: 2;
}

.cal-day-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 1;
}

.cal-day.has-selfie .cal-day-num {
  text-shadow: 0 0 4px rgba(255,255,255,0.9);
}

.cal-day.has-outfit {
  background: var(--gradient-outfit-day);
}

.cal-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.cal-stat {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Calendar Day Detail */
.cal-detail-empty {
  text-align: center;
  padding: 1.5rem;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.cal-detail-empty p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cal-detail-empty span {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.cal-detail-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.cal-detail-card {
  margin-top: 0.5rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  animation: phraseIn 0.3s ease forwards;
}

.cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cal-detail-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cal-detail-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.cal-selfie-container {
  margin-bottom: 0.8rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cal-selfie-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cal-detail-garments {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cal-garment-mini {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cal-garment-mini img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== Wear Today Button & Selfie ===== */
.wear-today-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-wear-today {
  width: 100%;
  padding: 0.8rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(196,139,159,0.08) 0%, rgba(180,160,220,0.08) 100%);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-wear-today:hover {
  background: linear-gradient(135deg, rgba(196,139,159,0.15) 0%, rgba(180,160,220,0.15) 100%);
  border-style: solid;
  transform: translateY(-1px);
}

.worn-today-status {
  text-align: center;
  padding: 0.8rem;
  background: var(--gradient-worn-ok);
  border-radius: var(--radius-lg);
  border: 1px solid var(--worn-ok-border);
}

.worn-today-status .check {
  font-size: 1.2rem;
}

.worn-today-status span {
  font-size: 0.85rem;
  color: #4a8c4a;
  font-weight: 600;
}

.selfie-upload-area {
  margin-top: 0.8rem;
  text-align: center;
}

.selfie-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selfie-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.selfie-preview {
  margin-top: 0.5rem;
}

.selfie-preview img {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
}

.btn-selfie {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-selfie:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.worn-selfie-preview {
  display: block;
  margin: 0.5rem auto;
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
}

/* ===== Daily Suggestion Card ===== */
.suggestion-card {
  margin: 1rem 0;
  padding: 1.2rem;
  background: var(--gradient-suggestion);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-soft);
  animation: phraseIn 0.5s ease forwards;
}

.suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.suggestion-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestion-emoji {
  font-size: 1.3rem;
}

.suggestion-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.suggestion-shuffle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.suggestion-shuffle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(180deg);
}

.suggestion-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: 0.8rem;
}

.suggestion-img {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(60, 40, 40, 0.12);
}

.suggestion-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.suggestion-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.suggestion-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-suggestion-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-suggestion-wear {
  background: var(--accent);
  color: white;
}

.btn-suggestion-wear:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-suggestion-wear:disabled {
  background: #c8e6c8;
  color: #4a8c4a;
}

.btn-suggestion-detail {
  background: rgba(255,255,255,0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-suggestion-detail:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Home Links Row ===== */
.home-links-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.stats-link-card {
  background: var(--gradient-card-stats) !important;
}

/* ===== Share Button ===== */
.btn-share {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: var(--share-bg);
  border: 1px solid var(--share-border);
  color: var(--share-color);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-share:hover {
  background: var(--share-bg-hover);
  transform: translateY(-1px);
}

.btn-share:disabled {
  opacity: 0.6;
}

/* ===== Garment Detail / Edit Modal ===== */
.garment-detail {
  padding: 0 4px;
}

.garment-detail-img {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.garment-detail-img img {
  max-height: 280px;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(60, 40, 40, 0.1);
}

.garment-edit-form .form-group {
  margin-bottom: 1rem;
}

.garment-edit-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  display: block;
}

.garment-edit-form .category-select.compact {
  gap: 0.4rem;
}

.garment-edit-form .category-select.compact .category-option {
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
}

.garment-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.btn-danger-outline {
  padding: 0.7rem;
  border: 1px solid #e57373;
  border-radius: var(--radius-lg);
  background: transparent;
  color: #e57373;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger-outline:hover {
  background: #fff0f0;
}

.garment-detail-meta {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ===== Style Stats Page ===== */
.stats-page-header {
  text-align: center;
  padding: 0.5rem 0 1.2rem;
}

.stats-page-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.stats-page-header p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.stats-overview-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.stats-big-card {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stats-big-card.accent {
  background: var(--gradient-card-warm);
  border-color: var(--stats-accent-border);
}

.stats-big-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stats-big-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 0.1rem;
}

.stats-section-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.stats-section-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.color-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-bar-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.color-bar-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 60px;
  flex-shrink: 0;
}

.color-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.color-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 4px;
}

.color-bar-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
  min-width: 20px;
  text-align: right;
}

.most-worn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.most-worn-item:last-child {
  border-bottom: none;
}

.most-worn-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.most-worn-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-blush);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.stats-empty-hint {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0.5rem;
}

.occasion-chips-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.occasion-chip-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg-blush);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.occasion-chip-emoji {
  font-size: 1rem;
}

.occasion-chip-name {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.occasion-chip-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-activity-row {
  display: flex;
  gap: 0.8rem;
}

.stats-activity-item {
  flex: 1;
  text-align: center;
  padding: 0.8rem 0.4rem;
  background: var(--bg-blush);
  border-radius: var(--radius-md);
}

.stats-activity-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-activity-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ===== Lookbook Grid (Outfits con avatar IA) ===== */
.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1rem;
}

.lookbook-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--lookbook-bg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lookbook-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.lookbook-card.dragging {
  position: fixed;
  z-index: 1000;
  opacity: 0.9;
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: none;
}

.drag-placeholder {
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
  background: var(--card-bg);
  opacity: 0.4;
  aspect-ratio: 3 / 4;
}

.lookbook-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lookbook-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lookbook-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem;
}

.lookbook-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.lookbook-fav.favorited {
  color: var(--accent);
  background: #fff;
}

.lookbook-fav:hover {
  transform: scale(1.1);
}

.lookbook-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.6rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: linear-gradient(to top, rgba(40, 25, 30, 0.78) 0%, rgba(40, 25, 30, 0.35) 55%, transparent 100%);
}

.lookbook-label .outfit-style-badge {
  align-self: flex-start;
}

.lookbook-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

/* ===== Crear look realista (asistido) ===== */
.reallook-section {
  margin: 0.6rem 0 0.2rem;
}

.btn-reallook-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--btn-ai-border);
  background: var(--gradient-btn-ai);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reallook-toggle:hover { transform: translateY(-1px); }
.btn-reallook-toggle .chev { transition: transform 0.3s ease; }
.btn-reallook-toggle.open .chev { transform: rotate(180deg); }

.reallook-steps {
  margin-top: 0.7rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: phraseIn 0.3s ease forwards;
}

.reallook-steps.hidden { display: none; }

.reallook-intro {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

.reallook-step {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.reallook-step:last-child { margin-bottom: 0; }

.reallook-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reallook-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.btn-reallook {
  display: inline-block;
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-blush);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-reallook:hover { border-color: var(--accent); color: var(--accent); }
.btn-reallook.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-reallook.primary:hover { background: var(--accent-dark); color: #fff; }
.btn-reallook.link { background: transparent; border-style: dashed; }

.reallook-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

/* ===== Ajustes IA (Gemini Try-On) ===== */
.ai-settings-group {
  background: var(--gradient-ai-settings);
  border: 1px solid var(--ai-settings-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.ai-settings-desc {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.4;
  margin: 0.2rem 0 0.7rem;
}

.ai-key-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.ai-key-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.gemini-status {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 1rem;
  word-break: break-word;
}

/* ===== Banner: sube tu foto de avatar ===== */
.avatar-hint-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0.8rem 0 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--accent);
  background: var(--gradient-avatar-hint);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.avatar-hint-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.avatar-hint-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.avatar-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

.avatar-hint-text strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1px;
}

.avatar-hint-banner svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Banner "Organizar looks repetidos" ===== */
.organize-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0.8rem 0 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196, 139, 159, 0.35);
  background: linear-gradient(135deg, rgba(196,139,159,0.10), rgba(184,164,220,0.10));
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}
.organize-banner:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.organize-banner:active { transform: scale(0.99); }
.organize-icon { font-size: 1.35rem; flex-shrink: 0; }
.organize-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}
.organize-text strong {
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1px;
}
.organize-cta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ===== Botón Regenerar Avatar IA (editor) ===== */
.btn-regen-ai {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0.6rem 0 0.2rem;
  padding: 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--btn-regen-border);
  background: var(--gradient-btn-regen);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-regen-ai:hover:not(:disabled) {
  background: var(--gradient-btn-regen-hover);
  transform: translateY(-1px);
}

.btn-regen-ai:disabled {
  opacity: 0.75;
  cursor: default;
}

.btn-regen-ai.highlight {
  animation: regenPulse 1.6s ease-in-out infinite;
  border-color: var(--accent);
}

@keyframes regenPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 139, 159, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(196, 139, 159, 0); }
}

/* ===== Buscador del closet ===== */
.wardrobe-search {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0.8rem;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.search-input-wrap svg { color: var(--text-tertiary); flex-shrink: 0; }

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
}

.search-clear {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 2px;
}

.color-filter-select {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 0 0.8rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  max-width: 120px;
}

.wardrobe-no-results {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* ===== ¿Qué combina? (detalle de prenda) ===== */
.garment-matches {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.garment-matches label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.6rem;
}

.matches-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.match-item {
  flex-shrink: 0;
  width: 76px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.match-item img {
  width: 76px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: repeating-conic-gradient(#f0e8e5 0% 25%, #f8f2f0 0% 50%) 50%/12px 12px;
  transition: border-color 0.2s ease;
}

.match-item:hover img { border-color: var(--accent); }

.match-item span {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Tarjeta del clima (inicio) ===== */
.weather-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-weather);
  border: 1px solid var(--weather-border);
  box-shadow: var(--shadow-soft);
}

.weather-icon { font-size: 2.4rem; flex-shrink: 0; }
.weather-info { flex: 1; }
.weather-temp {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.weather-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.weather-suggestion { font-size: 0.76rem; color: var(--text-tertiary); margin-top: 4px; }
.weather-loading { font-size: 0.82rem; color: var(--text-tertiary); }

/* ===== Calendario: modo planear ===== */
.cal-mode-toggle {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  margin: 0 auto 0.8rem;
  width: fit-content;
}
.cal-mode-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cal-mode-btn.active { background: var(--accent); color: #fff; }

.cal-day.planned {
  background: var(--gradient-plan-day);
  border: 1px dashed var(--plan-day-border-color);
}
.cal-day-plan-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #e0a458;
  margin-top: 2px;
  z-index: 2;
}

/* ===== Próximos looks planeados (inicio) ===== */
.upcoming-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
}
.upcoming-date {
  text-align: center;
  flex-shrink: 0;
  width: 48px;
}
.upcoming-day { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.upcoming-month { font-size: 0.65rem; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 0.05em; }
.upcoming-info { flex: 1; }
.upcoming-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.upcoming-label { font-size: 0.72rem; color: var(--text-tertiary); }
.upcoming-thumb { width: 44px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }

/* ===== Prendas olvidadas (stats) ===== */
.forgotten-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.forgotten-item { flex-shrink: 0; width: 72px; }
.forgotten-item img {
  width: 72px; height: 86px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  filter: grayscale(0.3);
}
.forgotten-item span { font-size: 0.66rem; color: var(--text-tertiary); display: block; text-align: center; margin-top: 2px; }

/* ===== Botones respaldo (settings) ===== */
.backup-row { display: flex; gap: 0.5rem; }
.backup-row .btn-secondary { flex: 1; }

/* ===== Lavandería ===== */
.laundry-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  z-index: 2;
}
.clothing-card.is-laundry img { opacity: 0.78; }
.pill.laundry-pill { background: #fff3e6; border-color: #f0c896; color: #b07a30; }
.pill.laundry-pill.active { background: #e0a458; color: #fff; border-color: #e0a458; }

.status-select { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.status-tag {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.status-tag.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Maleta de viaje ===== */
.trips-link-card { background: var(--gradient-card-trips) !important; }

.trip-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.trip-form.hidden { display: none; }
.trip-dates { display: flex; gap: 0.6rem; }
.trip-dates > div { flex: 1; }
.trip-dates label { font-size: 0.72rem; color: var(--text-tertiary); display: block; margin-bottom: 0.2rem; }

.trips-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-tertiary); }
.trips-empty-icon { font-size: 3rem; margin-bottom: 0.6rem; }

.trips-list { display: flex; flex-direction: column; gap: 0.6rem; }
.trip-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.trip-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.trip-card-icon { font-size: 1.8rem; }
.trip-card-info { flex: 1; }
.trip-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.trip-card-meta { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; }
.trip-card-dates { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 1px; }
.trip-card svg { color: var(--text-tertiary); }

.trip-detail { padding: 0 4px; }
.trip-section { margin-bottom: 1.2rem; }
.trip-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.trip-section-head h3 { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }

.trip-outfit-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
}
.trip-remove-outfit { margin-left: auto; border: none; background: transparent; color: var(--text-tertiary); cursor: pointer; font-size: 0.9rem; }

.pack-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.pack-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.pack-item img { width: 100%; height: 70px; object-fit: cover; display: block; opacity: 0.55; }
.pack-item.packed img { opacity: 1; }
.pack-item.packed { border-color: var(--accent); }
.pack-check {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  opacity: 0;
}
.pack-item.packed .pack-check { opacity: 1; }
.pack-name { display: block; font-size: 0.6rem; color: var(--text-tertiary); padding: 2px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-check { margin-left: auto; font-weight: 700; color: var(--accent); }
.plan-outfit-item.selected-trip { border-color: var(--accent); background: var(--bg-blush); }

/* ===== Selector de outfit para planear ===== */
.plan-picker { padding: 0 4px; }
.plan-outfit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
}
.plan-outfit-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.plan-outfit-item:hover { border-color: var(--accent); transform: translateX(2px); }
.plan-outfit-name { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.plan-outfit-item svg { color: var(--text-tertiary); }

/* ===== Animaciones: confeti + corazones ===== */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; opacity: 0.9; animation: confettiFall linear forwards; }
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.7; }
}
.heart-particle {
  position: fixed; z-index: 9999; pointer-events: none;
  color: var(--accent); font-size: 1.1rem;
  animation: heartFly 0.85s ease-out forwards;
}
@keyframes heartFly {
  0% { transform: translate(0,0) scale(0.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}

/* ===== Acciones rápidas (inicio) ===== */
.quick-actions { display: flex; gap: 0.5rem; margin: 0.6rem 0 0.4rem; }
.quick-action {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.7rem 0.3rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.quick-action span { font-size: 1.3rem; }
.quick-action:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* ===== Recordatorios ===== */
.reminder-banner {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.9rem; margin-bottom: 0.5rem;
  background: var(--gradient-reminder);
  border: 1px solid var(--reminder-border); border-radius: var(--radius-lg);
}
.reminder-icon { font-size: 1.3rem; }
.reminder-text { flex: 1; font-size: 0.82rem; color: var(--text-secondary); }
.reminder-btn {
  border: none; background: var(--accent); color: #fff;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-full);
  font-size: 0.76rem; font-weight: 600; cursor: pointer;
}

/* ===== 👍👎 en sugerencia ===== */
.suggestion-rate { margin-left: auto; display: flex; gap: 0.3rem; }
.rate-btn {
  border: 1px solid var(--border); background: var(--bg-card);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; transition: all 0.2s ease;
}
.rate-btn:hover { transform: scale(1.12); border-color: var(--accent); }
.rate-btn.rated { background: var(--bg-blush); border-color: var(--accent); }

/* ===== Galería de looks usados ===== */
.gallery-month { font-size: 0.85rem; color: var(--text-tertiary); font-weight: 600; margin: 1rem 0 0.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-item {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--bg-blush);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.gallery-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 0.4rem 0.3rem;
  background: linear-gradient(to top, rgba(40,25,30,0.7), transparent);
  display: flex; flex-direction: column;
}
.gallery-day { color: #fff; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.gallery-name { color: #fff; font-size: 0.62rem; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-selfie-tag { position: absolute; top: 5px; right: 5px; font-size: 0.8rem; }

/* ===== Colorimetría ===== */
.skin-swatch {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto;
  border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.palette-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.palette-chip {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; background: var(--bg-blush);
  border-radius: var(--radius-full); font-size: 0.82rem; color: var(--text-secondary);
}
.palette-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* ===== Estilista IA (chat) ===== */
.stylist { padding: 0 4px; display: flex; flex-direction: column; }
.stylist-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.stylist-avatar {
  font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-stylist-avatar);
  display: flex; align-items: center; justify-content: center;
}
.stylist-chat {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-height: 42vh; overflow-y: auto; padding: 0.5rem 0;
}
.stylist-msg {
  max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 16px;
  font-size: 0.86rem; line-height: 1.4;
}
.stylist-msg.bot { background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text-secondary); }
.stylist-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.stylist-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.stylist-chip {
  border: 1px solid var(--border); background: var(--bg-blush);
  padding: 0.4rem 0.8rem; border-radius: var(--radius-full);
  font-size: 0.76rem; color: var(--text-secondary); cursor: pointer;
}
.stylist-chip:hover { border-color: var(--accent); color: var(--accent); }
.stylist-input-row { display: flex; gap: 0.5rem; align-items: center; }
.stylist-input-row .form-input { flex: 1; margin: 0; }
.btn-stylist-send {
  width: 44px; height: 44px; flex-shrink: 0; border: none; cursor: pointer;
  background: var(--accent); color: #fff; border-radius: 50%; font-size: 1.1rem;
}
.typing { display: inline-flex; gap: 3px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary);
  animation: typingBlink 1s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ===== Optimización de rendimiento (evita congelar el inicio al hacer scroll) ===== */
.horizontal-scroll, .outfit-list, .lookbook-grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
.suggestion-card, .weather-card, .upcoming-card, .reminder-banner {
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.outfit-card-avatar, .suggestion-img, .clothing-card img {
  content-visibility: auto;
}

/* ===== Mood chips (sugerencia por ocasión) ===== */
.mood-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.2rem 0 0.6rem;
}
.mood-chips::-webkit-scrollbar { display: none; }
.mood-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mood-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Formulario en dos columnas (precio / marca) ===== */
.form-row-2 { display: flex; gap: 0.6rem; }
.form-row-2 .form-group { flex: 1; }

/* ===== Préstamos ===== */
.loan-badge { top: 34px; }
.loan-row { display: flex; gap: 0.5rem; align-items: center; }
.loan-row .form-input { flex: 1; margin: 0; }
.loan-row .btn-secondary { flex-shrink: 0; width: auto; padding: 0.7rem 1rem; }
.loan-status {
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ===== Wishlist ===== */
.wish-list { display: flex; flex-direction: column; gap: 0.7rem; }
.wish-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.7rem;
}
.wish-img {
  width: 64px; height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.wish-img img { width: 100%; height: 100%; object-fit: cover; }
.wish-info { flex: 1; min-width: 0; }
.wish-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.wish-meta { font-size: 0.76rem; color: var(--text-tertiary); margin-top: 2px; }
.wish-match { font-size: 0.74rem; color: var(--accent); margin-top: 4px; }
.wish-link {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-decoration: underline;
  margin-top: 4px;
}
.wish-actions { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.wish-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.wish-btn:hover { transform: scale(1.08); border-color: var(--accent); }
.wish-delete { color: var(--text-tertiary); font-size: 0.8rem; }
.wish-photo-preview {
  width: 80px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 0.4rem;
}
#wish-color.form-input { appearance: none; -webkit-appearance: none; }

/* ===== Valor del closet / costo por uso ===== */
.closet-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.2rem 0 0.4rem;
}
.cpu-title {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.3rem;
}
.wear-count-tag {
  display: inline-block;
  background: var(--bg-blush);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}

/* ===== Perfil ===== */
.profile-head {
  text-align: center;
  padding: 1.2rem 0 0.8rem;
}
.profile-photo {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid var(--accent);
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  overflow: visible;
  cursor: pointer;
  padding: 0;
}
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-photo-edit {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.profile-name-input {
  display: block;
  margin: 0.8rem auto 0;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 80%;
  outline: none;
}
.profile-name-input::placeholder { color: var(--text-tertiary); }
.profile-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}
.backup-status {
  font-size: 0.84rem;
  color: var(--text-secondary);
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.8rem;
}
.backup-status.ok { color: var(--text-secondary); }
.howto-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ===== Generar por ocasión ===== */
.gen-occasion-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.2rem 0 0.8rem;
}
.gen-occasion-row::-webkit-scrollbar { display: none; }

/* ===== % de match en tarjetas lookbook ===== */
.lookbook-score {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(60, 30, 40, 0.12);
  z-index: 2;
}
[data-theme="dark"] .lookbook-score { background: rgba(42, 34, 48, 0.92); }

/* ===== Completa mi look ===== */
.btn-complete-look {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c48b9f, #b8a4dc);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  box-shadow: 0 3px 14px rgba(196, 139, 159, 0.35);
  transition: transform 0.2s ease;
}
.btn-complete-look:active { transform: scale(0.98); }
.btn-complete-look:disabled { opacity: 0.7; }

.complete-look-list { display: flex; flex-direction: column; gap: 0.7rem; }
.complete-look-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
}
.cl-thumb {
  width: 72px; height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.cl-thumb-empty {
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cl-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cl-score { font-size: 0.72rem; color: var(--accent); font-weight: 600; }
.cl-save { flex-shrink: 0; }

/* ===== Transiciones de página (sensación de app nativa) ===== */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.page { animation: pageIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }

/* ===== Skeleton shimmer (cargas elegantes) ===== */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-blush) 25%, rgba(255,255,255,0.55) 50%, var(--bg-blush) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a2230 25%, #3a3042 50%, #2a2230 75%);
  background-size: 200% 100%;
}
.lookbook-loading.skeleton { width: 100%; height: 100%; min-height: 220px; border-radius: 0; }

/* ===== Quick actions en cuadrícula ===== */
.quick-actions { display: grid !important; grid-template-columns: repeat(3, 1fr); }

/* ===== Modo Descubre 🔥 ===== */
.discover-stack {
  position: relative;
  height: 62vh;
  max-height: 560px;
  margin: 0.4rem auto 1rem;
  max-width: 380px;
}
.discover-loading { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.discover-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(60, 30, 40, 0.14);
  display: none;
  flex-direction: column;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.discover-card.top { display: flex; z-index: 3; }
.discover-card.next { display: flex; z-index: 2; transform: scale(0.95) translateY(14px); pointer-events: none; }
.discover-card.fly-right { transform: translate(130%, -8%) rotate(18deg) !important; opacity: 0; }
.discover-card.fly-left { transform: translate(-130%, -8%) rotate(-18deg) !important; opacity: 0; }
.discover-img { flex: 1; min-height: 0; }
.discover-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.discover-label {
  padding: 0.7rem 1rem calc(0.7rem + 2px);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  background: var(--bg-card);
}
.discover-name { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.discover-score { font-size: 0.72rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.discover-stamp {
  position: absolute; top: 18px; font-size: 2rem; opacity: 0;
  padding: 4px 14px; border-radius: 12px; border: 3px solid;
  transform: rotate(-12deg); pointer-events: none;
}
.discover-stamp.like { left: 16px; border-color: #5cb85c; }
.discover-stamp.nope { right: 16px; border-color: #d9534f; transform: rotate(12deg); }
.discover-actions {
  display: flex; justify-content: center; gap: 1.6rem; padding-bottom: 0.6rem;
}
.discover-btn {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 30, 40, 0.12);
  transition: transform 0.15s ease;
}
.discover-btn:active { transform: scale(0.88); }
.discover-no { color: #d9534f; }
.discover-done { text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); }
.discover-done span { font-size: 2.4rem; display: block; margin-bottom: 0.6rem; }

/* ===== Insignias de logros ===== */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0.6rem 0.2rem;
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  opacity: 0.38;
  filter: grayscale(0.8);
  transition: all 0.3s ease;
}
.badge-item.unlocked { opacity: 1; filter: none; box-shadow: 0 2px 8px rgba(196, 139, 159, 0.18); }
.badge-icon { font-size: 1.4rem; }
.badge-name { font-size: 0.58rem; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.2; }

/* ===== ✨ Planea mi semana ===== */
.btn-plan-week {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #b8a4dc, #c48b9f);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  box-shadow: 0 3px 14px rgba(184, 164, 220, 0.35);
  transition: transform 0.2s ease;
}
.btn-plan-week:active { transform: scale(0.98); }
.btn-plan-week:disabled { opacity: 0.7; }

/* ===== 🎁 CappuWrapped ===== */
.wrapped-stage {
  position: relative;
  min-height: 58vh;
  max-height: 540px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 36px rgba(60, 30, 40, 0.22);
  user-select: none;
  -webkit-user-select: none;
}
.wrap-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.5rem;
  color: #fff;
  animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ws-1 { background: linear-gradient(160deg, #3d2438, #6b3a55, #c48b9f); }
.ws-2 { background: linear-gradient(160deg, #1e2a4a, #4f74b3, #8fb3e0); }
.ws-3 { background: linear-gradient(160deg, #4a2d1e, #a06b43, #e0b894); }
.ws-4 { background: linear-gradient(160deg, #2d1e4a, #6b4aa0, #b894e0); }
.ws-5 { background: linear-gradient(160deg, #1e4a3a, #43a07a, #94e0c0); }
.ws-6 { background: linear-gradient(160deg, #4a1e2d, #c44d6b, #f0a8bc); }
.wrap-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  opacity: 0.8;
}
.wrap-big {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.wrap-sub { font-size: 0.92rem; opacity: 0.85; }
.wrap-mega {
  font-size: 6rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.wrap-color-dot {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.85);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin: 0.6rem 0;
}
.wrap-garment {
  width: 170px; height: 190px;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin: 0.4rem 0;
}
.wrap-garment img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wrap-look {
  width: 180px; height: 240px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  margin: 0.4rem 0;
}
.wrap-look img { width: 100%; height: 100%; object-fit: cover; }
.wrap-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1rem;
  margin-top: 0.6rem;
}
.wrap-stats > div { display: flex; flex-direction: column; gap: 2px; }
.wrap-stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  text-transform: capitalize;
}
.wrap-stat-label { font-size: 0.7rem; opacity: 0.8; }
.wrap-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 0.8rem 0 0.3rem;
}
.wrap-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  transition: all 0.25s ease;
}
.wrap-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }

/* ===== 📁 Colecciones ===== */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.collection-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.2s ease;
}
.collection-card:active { transform: scale(0.97); }
.collection-cover {
  aspect-ratio: 4 / 3;
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.collection-cover img { width: 100%; height: 100%; object-fit: cover; }
.collection-cover-emoji { font-size: 2.4rem; }
.collection-info {
  padding: 0.6rem 0.8rem;
  display: flex; flex-direction: column; gap: 2px;
}
.collection-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.collection-count { font-size: 0.7rem; color: var(--text-tertiary); }
.emoji-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.emoji-option {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 1.2rem;
  cursor: pointer;
}
.emoji-option.selected { border-color: var(--accent); background: var(--bg-blush); }
.col-outfit-row {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  cursor: pointer;
}

/* ===== Micro-interacciones ===== */
.btn-primary:active, .btn-secondary:active, .generate-btn:active, .quick-action:active { transform: scale(0.97); }
.clothing-card:active { transform: scale(0.97); transition: transform 0.12s ease; }
.lookbook-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
@media (hover: hover) {
  .lookbook-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(60, 30, 40, 0.14); }
}

/* ===== Photo Zoom Overlay ===== */
.photo-zoom-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
  touch-action: none;
}
.photo-zoom-overlay.visible { opacity: 1; }
.photo-zoom-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.12); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1;
}
.photo-zoom-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; color: rgba(255,255,255,0.45);
  white-space: nowrap; pointer-events: none;
}
.photo-zoom-container {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo-zoom-img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.garment-zoom-hint {
  text-align: center; font-size: 0.7rem;
  color: var(--text-tertiary); margin-top: 4px;
}

/* ===== Indicador auto-detección IA ===== */
.ai-detect-status {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.76rem; color: var(--accent);
  margin-top: 10px; min-height: 18px; text-align: center;
}
.ai-detect-status:empty { display: none; }
.ai-detect-spin {
  width: 13px; height: 13px; flex-shrink: 0;
  border: 2px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== Rating Modal ===== */
.rating-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.rating-modal-overlay.visible { opacity: 1; }
.rating-modal {
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  width: 100%; max-width: 480px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.rating-modal-overlay.visible .rating-modal { transform: translateY(0); }
.rating-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-style: italic;
  color: var(--text-primary); margin-bottom: 4px;
}
.rating-modal-name {
  font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 20px;
}
.rating-stars {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 8px;
}
.star-btn {
  font-size: 2.2rem; background: none; border: none; cursor: pointer;
  color: #d1d5db;
  transition: color 0.15s, transform 0.15s;
  line-height: 1; padding: 4px;
}
.star-btn.lit, .star-btn.selected { color: #f59e0b; }
.star-btn:active { transform: scale(1.25); }
.rating-labels {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-tertiary);
  padding: 0 4px; margin-bottom: 20px;
}
.rating-skip {
  background: none; border: none; color: var(--text-tertiary);
  font-size: 0.82rem; cursor: pointer; text-decoration: underline;
}
.rating-badge {
  font-size: 0.65rem; color: #f59e0b;
  letter-spacing: -1px;
}

/* ===== Comparar Outfits ===== */
.outfits-top-row {
  display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px;
}
.compare-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  font-size: 0.82rem; color: var(--text-secondary);
  white-space: nowrap; transition: all 0.18s;
}
.compare-toggle-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--bg-blush);
}
.compare-hint {
  text-align: center; font-size: 0.78rem;
  color: var(--accent); margin-bottom: 12px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.compare-select-indicator {
  position: absolute; top: 8px; right: 36px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; color: transparent;
}
.compare-select-indicator.selected {
  background: var(--accent); border-color: var(--accent);
  color: white;
}
.compare-modal { padding: 8px 0; }
.compare-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-style: italic;
  text-align: center; margin-bottom: 16px;
}
.compare-grid {
  display: flex; gap: 8px; align-items: flex-start;
}
.compare-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.compare-divider {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--text-tertiary);
  padding-top: 60px; flex-shrink: 0;
}
.compare-col-img {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
}
.compare-col-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumbs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 8px;
}
.compare-col-name {
  font-size: 0.82rem; font-weight: 600;
  text-align: center; color: var(--text-primary);
}
.compare-col-badge { }
.compare-col-score {
  font-size: 0.78rem; color: var(--accent);
}
.compare-col-stars { font-size: 0.9rem; color: #f59e0b; letter-spacing: -1px; }
.btn-cmp-wear {
  background: var(--accent); color: white;
  border: none; border-radius: var(--radius-lg);
  padding: 10px 14px; font-size: 0.8rem;
  cursor: pointer; width: 100%;
}

/* ===== Tour Interactivo ===== */
.tour-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,0.72);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: all;
}
.tour-overlay.visible { opacity: 1; }
.tour-highlight {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(0,0,0,0.72);
  animation: tour-pulse 1.8s ease-in-out infinite;
  pointer-events: none; z-index: 9501;
}
@keyframes tour-pulse {
  0%,100% { box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(0,0,0,0.72); }
  50% { box-shadow: 0 0 0 8px var(--accent), 0 0 0 9999px rgba(0,0,0,0.72); }
}
.tour-tooltip {
  position: fixed; bottom: 80px; left: 16px; right: 16px;
  background: var(--bg-card);
  border-radius: 20px; padding: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  z-index: 9502;
}
.tour-step-count {
  font-size: 0.7rem; color: var(--text-tertiary);
  margin-bottom: 4px;
}
.tour-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
}
.tour-step-text {
  font-size: 0.87rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 16px;
}
.tour-actions {
  display: flex; justify-content: space-between; align-items: center;
}
.tour-skip {
  background: none; border: none;
  font-size: 0.8rem; color: var(--text-tertiary);
  cursor: pointer; text-decoration: underline;
}
.tour-next { padding: 10px 24px; }

/* ===== Notificación diaria (banner) ===== */
.notif-banner {
  display: none; align-items: center; gap: 10px;
  background: var(--bg-blush); border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg); padding: 12px 14px;
  margin-bottom: 16px; font-size: 0.82rem; color: var(--text-primary);
}
.notif-banner.show { display: flex; }
.notif-banner span { flex: 1; }
.notif-banner button:first-of-type {
  background: var(--accent); color: white; border: none;
  border-radius: var(--radius-md); padding: 7px 14px;
  font-size: 0.8rem; cursor: pointer; white-space: nowrap;
}
.notif-banner button:last-of-type {
  background: none; border: none; color: var(--text-tertiary);
  font-size: 1rem; cursor: pointer; padding: 4px;
}

/* ===== Toques personales: notitas de amor ===== */
.love-note-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--bg-blush), var(--bg-lavender));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 14px 16px; margin: 0 0 14px;
  box-shadow: var(--shadow-soft);
}
.love-note-icon { font-size: 1.4rem; flex-shrink: 0; }
.love-note-text {
  flex: 1; margin: 0;
  font-family: var(--font-display);
  font-style: italic; font-size: 1.02rem;
  color: var(--text-primary); line-height: 1.35;
}
.love-note-more {
  background: rgba(255,255,255,0.6); border: none;
  border-radius: var(--radius-full);
  width: 34px; height: 34px; flex-shrink: 0;
  font-size: 0.95rem; cursor: pointer;
  transition: transform 0.25s ease;
}
.love-note-more:active { transform: rotate(180deg) scale(0.9); }
.love-note-card.pulse { animation: love-pulse 0.5s ease; }
@keyframes love-pulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Mensaje de bienvenida personalizado */
.love-welcome-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 14px 16px 14px 18px; margin: 0 0 14px;
  box-shadow: var(--shadow-soft);
}
.love-welcome-emoji { font-size: 1.3rem; }
.love-welcome-text {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem; font-style: italic;
  color: var(--text-primary); line-height: 1.4;
}
.love-welcome-sign {
  display: block; margin-top: 8px; text-align: right;
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
}

/* Banner de fecha especial */
.special-day-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--accent-gradient-warm);
  border-radius: var(--radius-lg);
  padding: 14px 16px; margin: 0 0 14px;
  box-shadow: var(--shadow-glow);
  animation: love-pulse 0.6s ease;
}
.special-day-emoji { font-size: 1.8rem; flex-shrink: 0; }
.special-day-text { display: flex; flex-direction: column; gap: 2px; color: #5a3a44; }
.special-day-text strong { font-size: 1.02rem; }
.special-day-text span { font-size: 0.8rem; opacity: 0.9; }
.special-soon-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 14px; margin: 0 0 14px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.special-soon-emoji { font-size: 1.1rem; }

/* Notita revelada tras calificar */
.rating-love-reveal {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px 4px 4px; gap: 10px;
  animation: love-pulse 0.5s ease;
}
.rating-love-emoji { font-size: 2.6rem; }
.rating-love-sub { font-size: 0.85rem; color: var(--text-secondary); }
.rating-love-note {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: 1.18rem; color: var(--text-primary); line-height: 1.4;
}

/* ===== Recuerdos del outfit ===== */
.memories-section {
  margin: 18px 0 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.memories-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.memories-emoji { font-size: 1.1rem; }
.memories-head h4 { margin: 0; font-size: 0.98rem; color: var(--text-primary); }
.memories-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.memories-empty { font-size: 0.82rem; color: var(--text-tertiary); margin: 0; line-height: 1.4; }
.memory-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.memory-item-body { flex: 1; }
.memory-date { display: block; font-size: 0.72rem; color: var(--accent); font-weight: 600; margin-bottom: 3px; }
.memory-text { margin: 0; font-size: 0.9rem; color: var(--text-primary); line-height: 1.35; }
.memory-del {
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; opacity: 0.6; padding: 2px; flex-shrink: 0;
}
.memory-del:active { opacity: 1; }
.btn-add-memory {
  width: 100%; background: var(--accent-soft);
  border: 1px dashed var(--border-accent); color: var(--accent);
  border-radius: var(--radius-md); padding: 9px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.memory-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.memory-form.hidden { display: none; }
.memory-textarea, .memory-date-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 0.9rem;
  color: var(--text-primary); font-family: var(--font-body, inherit);
  resize: vertical;
}
.memory-form-actions { display: flex; gap: 8px; }
.memory-form-actions button { flex: 1; }

/* ===== Sección Toques personales (Perfil) ===== */
.personal-touch-card { border: 1px solid var(--border-accent); }
.personal-touch-intro { font-size: 0.83rem; color: var(--text-secondary); margin: 0 0 12px; }
.personal-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary); margin: 14px 0 6px;
}
.personal-textarea, .personal-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 0.9rem;
  color: var(--text-primary); font-family: inherit;
  resize: vertical;
}
.personal-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.personal-add-row .personal-input { flex: 1; min-width: 120px; }
.personal-add-row .btn-secondary { flex-shrink: 0; }
.personal-chip-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.personal-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-blush); border-radius: var(--radius-md);
  padding: 8px 12px; font-size: 0.85rem; color: var(--text-primary);
}
.personal-chip span { line-height: 1.3; }
.personal-chip-del {
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 0.9rem; flex-shrink: 0; padding: 2px 4px;
}
.personal-empty { font-size: 0.78rem; color: var(--text-tertiary); margin: 4px 0; }
