:root {
  /* Paleta Atelier Güo (logo e Instagram @atelier.guo) */
  --guo-green-dark: #183326;
  --guo-green: #1e4030;
  --guo-green-mid: #2a6f57;
  --guo-terracotta: #d9531e;
  --guo-terracotta-hover: #eb642e;
  --guo-ochre: #eb8c26;
  --guo-lilac: #cfa3c4;
  --guo-lilac-soft: #e9d5e4;
  --guo-cream: #faf6f0;
  --guo-sand: #f1eae0;

  /* Panel de gestion: misma paleta que la web publica */
  --app-bg: #faf6f0;
  --app-sidebar: #1e4030;
  --app-card: #ffffff;
  --app-card-hover: #fffdf9;
  --app-input: #fbf8f2;
  --app-border: #e6dccd;
  --app-border-strong: #d3c5b0;
  --app-text: #183326;
  --app-muted: #6b7a70;
  --app-accent: #d9531e;
  --app-accent-soft: rgba(217, 83, 30, 0.12);
  --app-success: #2a6f57;
  --app-success-soft: rgba(42, 111, 87, 0.13);
  --app-warning: #b8741a;
  --app-warning-soft: rgba(235, 140, 38, 0.2);
  --app-danger: #b9382f;
  --app-danger-soft: rgba(185, 56, 47, 0.12);
  --app-info: #7d4f74;
  --app-info-soft: rgba(207, 163, 196, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--guo-cream);
  color: var(--guo-green-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif-title {
  font-family: 'Fraunces', Georgia, serif;
}

button, input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   1. SITIO WEB PUBLICO
   ========================================================================== */
.public-site {
  min-height: 100vh;
  background: var(--guo-cream);
  color: var(--guo-green-dark);
}

.public-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 64, 48, 0.1);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--guo-green-dark);
  min-width: 0;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand-subtext {
  display: flex;
  flex-direction: column;
}

.brand-subtext strong {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--guo-green);
  line-height: 1.1;
}

.brand-subtext span {
  font-size: 0.76rem;
  color: #647068;
  font-weight: 500;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.public-nav-links a {
  text-decoration: none;
  color: var(--guo-green-dark);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.public-nav-links a:hover {
  color: var(--guo-terracotta);
}

.btn-autogestion-top {
  background: var(--guo-terracotta);
  color: #fff;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(217, 83, 30, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-autogestion-top:hover {
  background: var(--guo-green);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(30, 64, 48, 0.28);
}

.hero-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--guo-lilac-soft);
  color: var(--guo-green-dark);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  color: var(--guo-green);
  margin-bottom: 1.2rem;
}

.hero-title em {
  color: var(--guo-terracotta);
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: #46534b;
  margin-bottom: 1.8rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.btn-primary-guo {
  background: var(--guo-green);
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-primary-guo:hover {
  background: var(--guo-terracotta);
}

.btn-outline-guo {
  background: transparent;
  color: var(--guo-green);
  border: 2px solid var(--guo-green);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-outline-guo:hover {
  background: var(--guo-green);
  color: #fff;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(30, 64, 48, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--guo-terracotta);
}

.hero-stat span {
  font-size: 0.82rem;
  color: #5a675f;
}

.hero-visual-card {
  background: var(--guo-green);
  border-radius: 28px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 24px 48px rgba(24, 51, 38, 0.18);
  position: relative;
  overflow: hidden;
}

.hero-visual-card img.ig-showcase {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-ig-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-ig-caption h4 {
  font-size: 1.1rem;
  color: var(--guo-lilac-soft);
}

.hero-ig-caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.public-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.8rem;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--guo-terracotta);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--guo-green);
  margin-bottom: 0.6rem;
}

.public-talleres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.public-taller-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid rgba(30, 64, 48, 0.1);
  box-shadow: 0 10px 24px rgba(30, 64, 48, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.public-taller-card:hover {
  transform: translateY(-4px);
}

.public-techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: var(--guo-sand);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 5px solid var(--guo-terracotta);
}

.tech-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--guo-green);
}

.tech-card p {
  font-size: 0.88rem;
  color: #4f5d54;
}

.waitlist-banner {
  background: var(--guo-green);
  color: #fff;
  border-radius: 28px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.waitlist-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.waitlist-form .input-dark {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff;
}

.waitlist-form .input-dark::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.waitlist-form select option {
  color: #183326;
  background: #fff;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.public-footer {
  background: var(--guo-green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.public-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* ==========================================================================
   2. PANEL DE GESTION Y AUTOGESTION
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  background-color: var(--app-bg);
  color: var(--app-text);
  display: flex;
}

.mobile-topbar,
.sidebar-overlay {
  display: none;
}

/* Sidebar verde del logo */
.app-sidebar {
  width: 262px;
  background-color: var(--app-sidebar);
  color: var(--guo-lilac-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 0.9rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 0.9rem;
}

.sidebar-logo-img {
  height: 44px;
  background: var(--guo-cream);
  padding: 4px 10px;
  border-radius: 10px;
}

.role-pill-badge {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--guo-terracotta);
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.studio-selector-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.1rem;
}

.studio-selector-box strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}

.studio-selector-box span {
  font-size: 0.74rem;
  color: var(--guo-lilac-soft);
  opacity: 0.8;
}

.sidebar-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(233, 213, 228, 0.55);
  font-weight: 700;
  padding: 0.6rem 0.65rem 0.35rem;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--guo-lilac-soft);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  border-left: 3px solid transparent;
}

.sidebar-btn-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.sidebar-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  border-left-color: var(--guo-terracotta);
}

.nav-counter {
  background: var(--guo-terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.9rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-footer strong {
  color: #fff;
}

.sidebar-footer span {
  color: var(--guo-lilac-soft);
}

.app-sidebar .btn-app {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.app-sidebar .btn-app:hover {
  background: rgba(255, 255, 255, 0.18);
}

.app-sidebar .btn-app-danger {
  background: rgba(217, 83, 30, 0.22);
  color: #ffd9c9;
  border-color: rgba(217, 83, 30, 0.5);
}

.user-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

/* Area principal */
.app-main {
  flex: 1;
  min-width: 0;
  padding: 1.8rem 2.2rem 3.5rem;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.top-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--app-border);
}

.role-switcher-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.role-switch-btn {
  background: #fff;
  border: 1px solid var(--app-border);
  color: var(--app-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.role-switch-btn:hover,
.role-switch-btn.active {
  border-color: var(--guo-green);
  background: var(--guo-green);
  color: #fff;
}

/* Banner de saludo */
.warm-greeting-banner {
  background: var(--guo-green);
  color: var(--guo-cream);
  border-radius: 20px;
  padding: 1.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 12px 28px rgba(24, 51, 38, 0.18);
  position: relative;
  overflow: hidden;
}

.warm-greeting-banner .date-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--guo-lilac);
  margin-bottom: 0.25rem;
}

.warm-greeting-banner h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.warm-greeting-banner p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--guo-lilac-soft);
}

/* Forma decorativa con los circulos del logo */
.vase-illustration {
  width: 104px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}

.vase-illustration::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--guo-lilac);
}

.vase-illustration::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--guo-terracotta);
  box-shadow: -34px 16px 0 -10px var(--guo-ochre);
}

/* KPIs */
.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.kpi-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 14px rgba(30, 64, 48, 0.04);
}

.kpi-card .kpi-val {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--guo-green);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.kpi-card .kpi-label {
  font-size: 0.8rem;
  color: var(--app-muted);
  margin-top: 0.2rem;
}

.kpi-progress-bar {
  height: 6px;
  background: #efe7da;
  border-radius: 999px;
  margin: 0.65rem 0 0.35rem;
  overflow: hidden;
}

.kpi-progress-fill {
  height: 100%;
  background: var(--app-accent);
  border-radius: 999px;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--app-success);
  font-weight: 600;
}

.dashboard-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.dashboard-cols > * {
  min-width: 0;
}

.panel-section-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dark-item-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dark-item-card:hover {
  border-color: var(--app-border-strong);
  box-shadow: 0 6px 18px rgba(30, 64, 48, 0.06);
}

.time-pill {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--guo-green);
  padding-right: 0.9rem;
  border-right: 3px solid var(--app-accent);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
}

.badge-green { background: var(--app-success-soft); color: var(--app-success); }
.badge-orange { background: var(--app-warning-soft); color: var(--app-warning); }
.badge-red { background: var(--app-danger-soft); color: var(--app-danger); }
.badge-blue { background: var(--app-info-soft); color: var(--app-info); }

/* Botones del panel */
.btn-app {
  background: #fff;
  color: var(--guo-green);
  border: 1px solid var(--app-border-strong);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-app:hover {
  background: var(--guo-sand);
}

.btn-app-accent {
  background: var(--app-accent);
  color: #fff;
  border: none;
  padding: 0.58rem 1.1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s;
}

.btn-app-accent:hover {
  background: var(--guo-green);
}

.btn-app-success {
  background: var(--guo-green);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-app-success:hover {
  background: var(--guo-green-mid);
}

.btn-app-danger {
  background: var(--app-danger-soft);
  color: var(--app-danger);
  border: 1px solid rgba(185, 56, 47, 0.3);
  padding: 0.47rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Agenda semanal */
.week-scroll {
  overflow-x: auto;
  margin-bottom: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--app-border);
  background: var(--app-card);
  -webkit-overflow-scrolling: touch;
}

.week-calendar-grid {
  display: grid;
  grid-template-columns: 64px repeat(6, minmax(130px, 1fr));
  min-width: 860px;
}

.week-col-header {
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-muted);
  border-bottom: 1px solid var(--app-border);
  border-left: 1px solid var(--app-border);
  background: var(--guo-sand);
}

.week-col-header:first-child {
  border-left: none;
}

.week-col-header.today {
  color: #fff;
  background: var(--guo-green);
}

.week-time-cell {
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--app-muted);
  border-bottom: 1px solid var(--app-border);
}

.week-slot-cell {
  padding: 0.55rem;
  border-left: 1px solid var(--app-border);
  border-bottom: 1px solid var(--app-border);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.agenda-event-chip {
  background: var(--guo-cream);
  border-left: 4px solid var(--app-accent);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.agenda-event-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(30, 64, 48, 0.1);
}

.agenda-event-chip strong {
  display: block;
  font-size: 0.8rem;
  color: var(--guo-green);
}

.agenda-event-chip span {
  font-size: 0.71rem;
  color: var(--app-muted);
}

/* Talleres */
.talleres-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 1.15rem;
  margin-bottom: 2.2rem;
}

.taller-box-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: 0 4px 14px rgba(30, 64, 48, 0.04);
}

.avatar-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Filtros */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.filter-pill {
  background: #fff;
  border: 1px solid var(--app-border-strong);
  color: var(--app-muted);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--guo-green);
  color: #fff;
  border-color: var(--guo-green);
}

.search-input-dark {
  width: 100%;
  background: #fff;
  border: 1px solid var(--app-border-strong);
  color: var(--app-text);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.search-input-dark:focus {
  outline: none;
  border-color: var(--app-accent);
}

/* Horno */
.horno-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.horno-col {
  background: var(--guo-sand);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 0.9rem;
}

.horno-col-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--guo-green);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pieza-card {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
}

/* Portal alumno / tutor */
.student-portal-container {
  max-width: 720px;
  margin: 0 auto;
}

.alias-copy-box {
  background: var(--guo-sand);
  border: 1px dashed var(--app-border-strong);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24, 51, 38, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal-card {
  background: #fff;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  border-radius: 22px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(24, 51, 38, 0.3);
  -webkit-overflow-scrolling: touch;
}

.modal-card.modal-lg {
  max-width: 880px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-size: 1.4rem;
  color: var(--guo-green);
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--app-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.input-dark {
  width: 100%;
  background: var(--app-input);
  border: 1px solid var(--app-border-strong);
  color: var(--app-text);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.input-dark:focus {
  outline: none;
  border-color: var(--app-accent);
  background: #fff;
}

.chip-selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.concept-chip {
  background: #fff;
  border: 1px solid var(--app-border-strong);
  color: var(--guo-green);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.concept-chip.active,
.concept-chip:hover {
  background: var(--app-accent);
  color: #fff;
  border-color: var(--app-accent);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast-item {
  background: var(--guo-green-dark);
  color: var(--guo-cream);
  border-left: 4px solid var(--app-accent);
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(24, 51, 38, 0.35);
  font-size: 0.88rem;
  max-width: 380px;
}

/* ==========================================================================
   3. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .public-nav-links {
    gap: 1.1rem;
  }
  .public-nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 960px) {
  /* Web publica */
  .public-navbar {
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
    gap: 0.6rem 1rem;
  }
  .public-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 1.2rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }
  .hero-section,
  .waitlist-banner,
  .dashboard-cols {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 2rem 1.25rem 2.5rem;
    gap: 2rem;
  }
  .public-section {
    padding: 2.5rem 1.25rem;
  }
  .section-header h2 {
    font-size: 1.7rem;
  }
  .waitlist-banner {
    padding: 1.6rem;
    gap: 1.6rem;
  }
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Panel: barra superior movil y menu lateral deslizable */
  .app-shell {
    flex-direction: column;
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 800;
    background: var(--guo-green);
    padding: 0.6rem 1rem;
  }
  .mobile-topbar img {
    height: 36px;
    background: var(--guo-cream);
    padding: 3px 8px;
    border-radius: 8px;
  }
  .mobile-topbar .role-pill-badge {
    margin-left: auto;
  }
  .hamburger {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 950;
    width: min(290px, 86vw);
    height: 100%;
    transform: translateX(-102%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(24, 51, 38, 0.5);
  }
  .app-shell.sidebar-open .sidebar-overlay {
    display: block;
  }
  .app-main {
    padding: 1.1rem 1rem 3rem;
  }
  .top-utility-bar {
    margin-bottom: 1.1rem;
  }
  .role-switcher-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .top-utility-bar > div:last-child {
    width: 100%;
  }
  .top-utility-bar > div:last-child .btn-app {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .brand-logo-img {
    height: 44px;
  }
  .brand-subtext span {
    display: none;
  }
  .btn-autogestion-top {
    padding: 0.6rem 1.05rem;
    font-size: 0.85rem;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions > * {
    width: 100%;
  }
  .hero-visual-card {
    padding: 1rem;
    border-radius: 22px;
  }
  .hero-visual-card img.ig-showcase {
    height: 240px;
  }
  .hero-ig-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .public-footer {
    padding: 2rem 1.25rem;
  }
  .public-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cualquier grilla de columnas en linea pasa a una sola columna */
  .form-grid-2,
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .warm-greeting-banner {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .warm-greeting-banner h1 {
    font-size: 1.55rem;
  }
  .vase-illustration {
    display: none;
  }

  .dark-item-card {
    flex-wrap: wrap;
    padding: 0.85rem 0.95rem;
  }
  .dark-item-card > div:last-child {
    flex-wrap: wrap;
  }
  .time-pill {
    min-width: 0 !important;
  }

  .panel-section-title .btn-app,
  .panel-section-title .btn-app-accent {
    width: 100%;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card,
  .modal-card.modal-lg {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    padding: 1.15rem;
  }
  .modal-header h3 {
    font-size: 1.15rem;
  }

  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .toast-item {
    max-width: none;
  }
  .horno-kanban {
    grid-template-columns: repeat(5, 230px);
  }
}

@media (max-width: 480px) {
  .kpi-grid-4 {
    grid-template-columns: 1fr;
  }
  .kpi-card .kpi-val {
    font-size: 1.5rem;
  }
  .app-main h1 {
    font-size: 1.6rem !important;
  }
}
