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

:root {
  /* Light theme */
  --bg:          #f6f6f3;
  --bg-card:     #ffffff;
  --bg-hover:    #f0f0ec;
  --bg-input:    #f5f5f2;
  --border:      #e2e2db;
  --border-soft: #eeeeea;

  --text:        #141414;
  --text-muted:  #636363;
  --text-dim:    #b0b0aa;

  --navy:        #1b4a7a;   /* Ficomic blue */
  --navy-dim:    rgba(27,74,122,0.09);
  --navy-mid:    rgba(27,74,122,0.18);
  --red:         #e63950;   /* Manga red */
  --red-dim:     rgba(230,57,80,0.09);
  --blue:        #2a8fd9;   /* Comic blue */
  --blue-dim:    rgba(42,143,217,0.1);
  --green:       #2cb67d;
  --green-dim:   rgba(44,182,125,0.1);
  --amber:       #e09020;
  --amber-dim:   rgba(224,144,32,0.12);

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.11);

  --radius:      10px;
  --radius-sm:   6px;
  --radius-xs:   4px;
  --trans:       0.16s ease;
  --header-h:    80px;
  --font:        'Inter','Segoe UI',system-ui,sans-serif;
}

html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
button { cursor: pointer; font-family: inherit; font-size: 14px; border: none; outline: none; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; }
a { color: var(--navy); text-decoration: none; }

/* ===== Login ===== */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg);
}
.login-card {
  width: 380px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 44px 40px; box-shadow: var(--shadow-md);
}
.login-logo {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; gap: 16px;
}
.login-logo img { width: 160px; height: auto; }
.login-logo-title {
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
}
.login-form .field { margin-bottom: 16px; }
.login-form label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.login-form input {
  width: 100%; padding: 10px 13px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); transition: border-color var(--trans);
}
.login-form input:focus { border-color: var(--navy); }
.login-error { color: var(--red); font-size: 12px; margin-bottom: 12px; padding: 8px 12px; background: var(--red-dim); border-radius: var(--radius-sm); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-sm); font-weight: 600; transition: all var(--trans); white-space: nowrap;
}
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover   { background: #163d66; }
.btn-red       { background: var(--red); color: #fff; }
.btn-red:hover { background: #c42e41; }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e8e8e4; }
.btn-ghost  { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover  { background: var(--bg-hover); color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red-dim); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon {
  padding: 5px 7px; font-size: 13px; border-radius: var(--radius-xs);
  background: transparent; color: var(--text-dim); border: 1px solid transparent;
  transition: all var(--trans);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.btn-icon.active-vis { color: var(--blue); background: var(--blue-dim); border-color: rgba(42,143,217,0.3); }
.btn-icon.active-pub { color: var(--green); background: var(--green-dim); border-color: rgba(44,182,125,0.3); }

/* ===== App layout ===== */
.app-body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: var(--bg); }

/* Header */
.app-header {
  height: var(--header-h); background: var(--bg-card); border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; padding: 0 24px; flex-shrink: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-logo {
  display: flex; align-items: center; padding-right: 28px; border-right: 1px solid var(--border-soft);
  margin-right: 8px;
}
.header-logo img { height: 58px; width: auto; }

/* Code-editor style tabs */
.main-nav { display: flex; align-items: stretch; gap: 2px; }
.nav-tab {
  position: relative; display: flex; align-items: center; padding: 0 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  background: transparent; color: var(--text-muted); border: none;
  transition: color var(--trans); border-bottom: 3px solid transparent;
}
.nav-tab:hover { color: var(--text); background: var(--bg-hover); }
.nav-tab.active { color: var(--text); border-bottom-color: var(--navy); }
.nav-tab.active-manga { color: var(--red); border-bottom-color: var(--red); }
.nav-tab.active-comic { color: var(--blue); border-bottom-color: var(--blue); }

.nav-tab .tab-logo { height: 38px; width: auto; vertical-align: middle; }

.header-spacer { flex: 1; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; border-radius: 20px; background: var(--bg-hover); border: 1px solid var(--border); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.btn-pub { font-size: 12px; font-weight: 600; padding: 5px 12px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text-muted); }
.btn-pub:hover { color: var(--text); border-color: var(--border); }

/* ===== Sections ===== */
.app-main { flex: 1; overflow-y: auto; }
.app-main::-webkit-scrollbar { width: 6px; }
.app-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.section { display: none; }
.section.active { display: block; }

/* ===== Dashboard ===== */
.dashboard-wrap { display: grid; grid-template-columns: 3fr 2fr; min-height: calc(100vh - var(--header-h)); }

.dash-left { padding: 28px 24px 28px 28px; border-right: 1px solid var(--border-soft); overflow-y: auto; max-height: calc(100vh - var(--header-h)); }
.dash-right { padding: 20px 20px 32px; overflow-y: auto; max-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; gap: 14px; }
.dash-right .summary-section { margin-bottom: 0; }
.tasks-body { padding: 4px 0; }
.tasks-card { flex-shrink: 0; }

/* Calendar */
.cal-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 2px; }
.cal-subtitle { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.cal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }

.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month-label { font-size: 15px; font-weight: 800; }
.cal-nav-btns { display: flex; gap: 4px; }
.cal-nav-btns button {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-xs);
  color: var(--text-muted); font-size: 14px;
}
.cal-nav-btns button:hover { background: var(--border); color: var(--text); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-dim); padding: 4px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; flex-direction: column;
  border-radius: var(--radius-xs); font-size: 13px; cursor: pointer; gap: 3px;
  transition: background var(--trans); position: relative;
}
.cal-day:hover { background: var(--bg-hover); }
.cal-day.other-month { color: var(--text-dim); }
.cal-day.today { font-weight: 800; color: var(--navy); }
.cal-day.today .cal-day-num { background: var(--navy); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cal-day.edition-day { background: var(--red-dim); }
.cal-day.edition-day .cal-day-num { color: var(--red); font-weight: 700; }
.cal-day.selected { background: var(--navy-dim); }
.cal-day.selected .cal-day-num { color: var(--navy); font-weight: 700; }
.cal-day.today.selected .cal-day-num { background: var(--navy); color: #fff; }
.cal-day.weekend { background: #f9f9f7; }
.cal-day.weekend .cal-day-num { color: var(--text-dim); }
.cal-day.weekend:hover { background: var(--bg-hover); }
.cal-day.weekend.edition-day { background: var(--red-dim); }
.cal-day.weekend.selected { background: var(--navy-dim); }
.weekend-dow { color: var(--text-dim) !important; }
.cal-day-num { font-size: 13px; line-height: 1; }

/* Dots — bigger and more visible */
.cal-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; max-width: 30px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal-dot.event   { background: var(--blue); }
.cal-dot.meeting { background: var(--amber); }
.cal-dot.edition { background: var(--red); }

/* Today summary */
.summary-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.summary-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.summary-label .dot-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.summary-date { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.summary-date span { color: var(--text-muted); font-weight: 400; font-size: 14px; }

.evt-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.evt-row:last-child { border-bottom: none; }
.evt-row .evt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.evt-row .evt-time { font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 44px; font-family: monospace; }
.evt-row .evt-title { flex: 1; font-size: 13px; font-weight: 500; }
.evt-row .evt-del { background: none; border: none; color: var(--text-dim); font-size: 14px; padding: 0 2px; }
.evt-row .evt-del:hover { color: var(--red); }
.evt-add-btns { display: flex; gap: 6px; margin-top: 10px; }
.no-events { color: var(--text-muted); font-size: 13px; padding: 6px 0; }

/* Week summary */
.week-day-group { margin-bottom: 10px; }
.week-day-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; padding: 0 4px; }
.week-day-label.today-label { color: var(--navy); }

/* ===== Right sidebar ===== */
.user-greeting-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; margin-bottom: 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.user-avatar-big {
  width: 64px; height: 64px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; margin: 0 auto 12px;
}
.greeting-text { font-size: 16px; font-weight: 800; }
.greeting-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.tasks-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.tasks-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.tasks-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.tasks-body { padding: 8px 0; }

.task-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 16px; transition: background var(--trans); }
.task-item:hover { background: var(--bg-hover); }
.task-cb { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.task-text {
  flex: 1; background: transparent; border: none; color: var(--text); resize: none;
  font-size: 13px; line-height: 1.4; padding: 0; min-height: 18px; overflow: hidden;
  word-break: break-word; white-space: pre-wrap;
}
.task-text:focus { outline: 1px solid var(--navy); border-radius: 3px; padding: 1px 4px; }
.task-item.checked .task-text { text-decoration: line-through; color: var(--text-dim); }
.task-del { background: transparent; border: none; color: var(--text-dim); font-size: 14px; padding: 0 2px; flex-shrink: 0; }
.task-del:hover { color: var(--red); }

/* ===== Placeholder sections ===== */
.section-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h)); gap: 20px; padding: 40px;
}
.section-placeholder img { max-width: 280px; height: auto; opacity: 0.9; }
.section-placeholder p { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ===== Manga section — light theme with red accent ===== */
.manga-wrap {
  background: var(--bg); min-height: calc(100vh - var(--header-h));
}
.manga-header-bar {
  background: var(--bg-card); border-bottom: 2px solid var(--red);
  display: flex; align-items: center; gap: 4px; padding: 0 24px;
  height: 48px; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.manga-logo-img { height: 26px; width: auto; margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--border); }
.sub-btn {
  padding: 5px 14px; border-radius: var(--radius-xs); font-weight: 700; font-size: 11px;
  background: transparent; color: var(--text-muted); border: 1px solid transparent;
  text-transform: uppercase; letter-spacing: 0.5px; transition: all var(--trans);
}
.sub-btn:hover { color: var(--text); background: var(--bg-hover); }
.sub-btn.active { color: var(--red); border-color: rgba(230,57,80,0.35); background: var(--red-dim); }

/* Manga content */
.manga-tab { display: none; padding: 24px; }
.manga-tab.active { display: block; }

/* Light cards for manga */
.m-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.m-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.m-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.m-card-body { padding: 14px 18px; }

/* Guests grid */
.guests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.guest-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all var(--trans); box-shadow: var(--shadow-sm); }
.guest-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.guest-card.selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.guest-img-placeholder { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); font-size: 44px; }
.guest-info { padding: 11px 13px; }
.guest-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.guest-cat { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 7px; background: var(--red-dim); color: var(--red); border-radius: 20px; }
.guest-actions { display: flex; gap: 4px; margin-top: 8px; }

/* Guest detail */
.guest-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; display: none; box-shadow: var(--shadow-sm); }
.guest-detail.visible { display: block; }
.guest-detail-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.guest-detail-img { width: 68px; height: 68px; border-radius: 8px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; overflow: hidden; }
.guest-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.guest-detail-name { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.guest-detail-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 4px; max-height: 72px; overflow: hidden; transition: max-height 0.3s; }
.guest-detail-desc.expanded { max-height: 400px; }
.desc-toggle { font-size: 11px; color: var(--blue); cursor: pointer; margin-top: 4px; }
.guest-detail-lang-btns { display: flex; gap: 3px; margin-bottom: 6px; }

/* Activity list */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.activity-list { }
.day-group { margin-bottom: 22px; }
.day-header {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); padding: 5px 0; border-bottom: 2px solid var(--border); margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.day-header .edition-badge { font-size: 9px; padding: 1px 6px; background: var(--red-dim); color: var(--red); border-radius: 10px; border: 1px solid rgba(230,57,80,0.3); }
.act-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); transition: background var(--trans); border: 1px solid transparent; margin-bottom: 2px; }
.act-item:hover { background: var(--bg-hover); border-color: var(--border); }
.act-time { font-size: 11px; font-weight: 700; color: var(--text-muted); min-width: 88px; white-space: nowrap; font-family: monospace; }
.act-title { flex: 1; font-size: 13px; color: var(--text); }
.act-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 9px; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.tag-zone { background: var(--blue-dim); color: var(--blue); }
.tag-type { background: var(--amber-dim); color: var(--amber); }
.tag-guest { background: var(--green-dim); color: var(--green); }
.act-btns { display: flex; gap: 2px; flex-shrink: 0; }

/* Manga buttons — now use light theme variables */
.m-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; transition: all var(--trans); white-space: nowrap; }
.m-btn-primary { background: var(--red); color: #fff; }
.m-btn-primary:hover { background: #c82d42; }
.m-btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.m-btn-secondary:hover { background: var(--border); }
.m-btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.m-btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.m-btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.m-btn-danger:hover { background: var(--red-dim); }
.m-btn-sm { padding: 4px 9px; font-size: 11px; }
.m-btn-xs { padding: 2px 7px; font-size: 10px; }
.m-btn-icon { padding: 5px 7px; font-size: 13px; border-radius: var(--radius-xs); background: transparent; color: var(--text-dim); border: 1px solid transparent; transition: all var(--trans); }
.m-btn-icon:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.m-btn-icon.active-vis { color: var(--blue); background: var(--blue-dim); border-color: rgba(42,143,217,0.3); }
.m-btn-icon.active-pub { color: var(--green); background: var(--green-dim); border-color: rgba(44,182,125,0.3); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-select { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: var(--radius-sm); font-size: 12px; }
.filter-select:focus { border-color: var(--red); outline: none; }

/* Programación */
.prog-subtabs { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; }
.prog-tab { padding: 5px 16px; border-radius: var(--radius-xs); font-weight: 600; font-size: 12px; background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border); transition: all var(--trans); }
.prog-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.prog-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; }
.prog-empty span { display: block; font-size: 30px; margin-bottom: 8px; }

/* Edición */
.edicion-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 680px; box-shadow: var(--shadow-sm); }
.edicion-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 14px; }
.edicion-date-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.edicion-date-row label { font-size: 11px; font-weight: 600; color: var(--text-muted); min-width: 50px; }
.edicion-date-row input[type="date"] { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 7px 10px; border-radius: var(--radius-sm); }
.edicion-date-row input[type="date"]:focus { border-color: var(--red); outline: none; }
.section-sep { height: 1px; background: var(--border); margin: 16px 0; }
.schedule-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-hover); border-radius: var(--radius-sm); margin-bottom: 5px; }
.schedule-day-label { font-size: 12px; font-weight: 700; color: var(--text); min-width: 100px; }
.schedule-time { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.schedule-time input { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 4px 7px; border-radius: var(--radius-xs); width: 76px; outline: none; }
.schedule-time input:focus { border-color: var(--red); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 540px; max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-size: 15px; font-weight: 800; }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 20px; padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 8px 11px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); transition: border-color var(--trans);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field textarea { resize: vertical; min-height: 75px; line-height: 1.5; }
.field select option { background: var(--bg-card); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-tabs { display: flex; gap: 2px; margin-bottom: 6px; }
.lang-tab { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.lang-tab.active { background: var(--bg-hover); color: var(--text); border-color: var(--navy); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }
.img-upload { display: flex; align-items: center; gap: 12px; }
.img-preview { width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--bg-hover); border: 1px solid var(--border); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; flex-shrink: 0; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Guest internal info rows (interpreter, contacto) */
.guest-internal-rows { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.guest-info-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.gir-label { color: var(--text-muted); font-weight: 700; white-space: nowrap; min-width: 90px; }
.gir-value { color: var(--text); font-weight: 600; }
.gir-phone { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.gir-empty { color: var(--text-dim); font-style: italic; }

/* Translate button */
.btn-translate { font-size: 11px; font-weight: 700; padding: 4px 10px; background: var(--navy-dim); color: var(--navy); border: 1px solid var(--navy-mid); border-radius: var(--radius-xs); white-space: nowrap; }
.btn-translate:hover { background: var(--navy-mid); }
.btn-translate:disabled { opacity: 0.5; cursor: not-allowed; }

/* Activity language toggle */
.act-del-btn { opacity: 0; transition: opacity var(--trans); }
.act-item:hover .act-del-btn { opacity: 1; }
.act-del-btn:hover { background: var(--red-dim) !important; }
.act-lang-btns { display: flex; gap: 3px; margin-left: auto; }
.lang-toggle-btn { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border); transition: var(--trans); }
.lang-toggle-btn:hover { background: var(--border); color: var(--text); }
.lang-toggle-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 9px; }
.badge-red { background: rgba(230,57,80,0.15); color: #e63950; }
.badge-blue { background: rgba(74,144,217,0.15); color: #4a90d9; }
.badge-green { background: rgba(62,207,142,0.15); color: #3ecf8e; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 22px; right: 22px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 16px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md); z-index: 9999; transition: all 0.25s ease;
  display: flex; align-items: center; gap: 8px; max-width: 300px;
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red);   }
.toast.info    { border-color: var(--navy);  color: var(--navy);  }
.toast.hide    { transform: translateY(16px); opacity: 0; pointer-events: none; }

/* ===== Public Calendar ===== */
.pub-body { min-height: 100vh; background: #f8f7f5; color: #1a1a2e; font-family: var(--font); }
.pub-hero { background: linear-gradient(135deg, #1a0820 0%, #0d0d1a 60%, #1a0820 100%); padding: 44px 32px 38px; text-align: center; border-bottom: 3px solid #e63950; }
.pub-hero-logo { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pub-hero-img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.pub-hero-year { font-size: 13px; color: rgba(255,255,255,0.45); letter-spacing: 2px; font-weight: 600; }
.pub-hero-dates { font-size: 15px; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 3px; }
.pub-tabs { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.pub-tabs-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 2px; padding: 8px 16px; overflow-x: auto; }
.pub-tab-btn { padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 12px; background: transparent; border: 1px solid transparent; color: #666; cursor: pointer; transition: all 0.15s; white-space: nowrap; text-align: center; }
.pub-tab-btn:hover { background: #f5f5f5; color: #1a1a2e; }
.pub-tab-btn.active { background: #e63950; color: #fff; border-color: #e63950; }
.pub-tab-btn .dow { display: block; font-size: 10px; font-weight: 600; opacity: 0.8; }
.pub-tab-btn .day-num { display: block; font-size: 20px; font-weight: 900; line-height: 1; }
.pub-tab-btn .month { display: block; font-size: 9px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.pub-content { max-width: 960px; margin: 0 auto; padding: 28px 20px 56px; }
.pub-day-header { margin-bottom: 22px; }
.pub-day-header h2 { font-size: 30px; font-weight: 900; color: #1a1a2e; margin-bottom: 2px; }
.pub-day-header p { font-size: 13px; color: #888; font-weight: 600; }
.pub-sched { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; background: #fff3f5; color: #e63950; padding: 3px 10px; border-radius: 20px; font-weight: 700; border: 1px solid #ffd4d9; margin-top: 6px; }
.zone-section { margin-bottom: 28px; }
.zone-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #999; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.zone-title::after { content: ''; flex: 1; height: 1px; background: #eee; }
.pub-act { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; background: #fff; border-radius: 9px; margin-bottom: 5px; border: 1px solid #eee; transition: all 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.pub-act:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); border-color: #ffd4d9; }
.pub-act-time-col { min-width: 74px; padding-top: 1px; }
.pub-act-time { font-size: 13px; font-weight: 800; color: #e63950; font-family: monospace; }
.pub-act-time-end { font-size: 10px; color: #bbb; font-family: monospace; font-weight: 600; }
.pub-act-body { flex: 1; }
.pub-act-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.pub-act-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pub-act-type-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; background: #e63950; color: #fff; border-radius: 9px; letter-spacing: 0.3px; }
.pub-act-guest-badge { font-size: 11px; font-weight: 700; color: #e63950; }
.pub-empty { text-align: center; padding: 70px 20px; color: #bbb; }
.pub-empty span { display: block; font-size: 44px; margin-bottom: 12px; }
.pub-footer { background: #1a1a2e; color: rgba(255,255,255,0.4); text-align: center; padding: 22px; font-size: 12px; }

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* Responsive */
@media (max-width: 900px) {
  .dashboard-wrap { grid-template-columns: 1fr; }
  .dash-right { border-top: 1px solid var(--border-soft); }
}
@media (max-width: 600px) {
  .guests-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .act-tags { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
