:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #17202a;
    --muted: #687386;
    --border: #e3e8ef;

    --primary: #2156a5;
    --primary-dark: #183f7c;
    --primary-soft: #eef4ff;

    --green: #18794e;
    --green-bg: #edf9f2;

    --red: #b42318;
    --red-bg: #fff1f0;

    --amber: #a35c00;
    --amber-bg: #fff7e8;

    --grey-dot: #98a2b3;
    --grey-bg: #f5f6f7;

    --shadow: 0 10px 32px rgba(31, 50, 81, .06);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background:
      linear-gradient(180deg, #f7f9fc 0, var(--bg) 240px);
    color: var(--text);
    font-family:
      Inter, system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .card,
  .calendar-card,
  .calendar-toolbar,
  .weekdays,
  .calendar-grid {
    min-width: 0;
    max-width: 100%;
  }

  button, input {
    font: inherit;
  }

  button {
    cursor: pointer;
  }

  button:disabled {
    cursor: not-allowed;
    opacity: .58;
  }

  .app-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px 18px 56px;
  }

  .app-shell.narrow {
    max-width: 650px;
  }

  .hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 20px;
  }

  .hero-v2 {
    align-items: center;
    padding: 8px 2px;
  }

  .hero h1 {
    margin: 5px 0 7px;
    font-size: clamp(31px, 6vw, 48px);
    letter-spacing: -.04em;
    line-height: 1.04;
  }

  .hero-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 30px;
    font-weight: 800;
  }

  .danger-mark {
    color: var(--red);
    background: var(--red-bg);
  }


  .community-logo {
    width: 168px;
    min-height: 142px;
    flex: 0 0 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 12px 12px;
    border-radius: 26px;
    background: linear-gradient(145deg, #f3f7ff, #eaf2ff);
    color: var(--primary);
    border: 1px solid #e2ebf8;
  }

  .community-logo-icon {
    width: 112px;
    height: 78px;
    display: block;
  }

  .community-logo-text {
    color: var(--primary-dark);
    font-size: 15px;
    line-height: 1.15;
    font-weight: 850;
    text-align: center;
    letter-spacing: -.02em;
  }

  .subtitle,
  .muted,
  .panel-help {
    color: var(--muted);
  }

  .subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .eyebrow {
    margin: 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
  }

  .card,
  .rules-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .card {
    padding: 24px;
    margin-top: 17px;
  }

  .rules-card {
    padding: 21px;
    margin: 18px 0;
  }

  .rules-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .rules-heading h2 {
    margin: 4px 0 0;
    font-size: 20px;
  }

  .info-pill,
  .status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 10px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
  }

  .info-pill {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 17px;
  }

  .rule-item {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfcfe;
  }

  .rule-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
  }

  .rule-item strong,
  .rule-item span {
    display: block;
  }

  .rule-item strong {
    font-size: 14px;
  }

  .rule-item div > span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

  .rules-note {
    margin: 15px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }

  .flow-strip {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 18px 3px 4px;
  }

  .flow-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }

  .flow-step b {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9edf3;
    color: #596579;
    font-size: 11px;
  }

  .flow-step.active {
    color: var(--primary);
  }

  .flow-step.active b {
    background: var(--primary);
    color: white;
  }

  .flow-line {
    height: 1px;
    background: var(--border);
  }

  .calendar-card {
    padding: 20px;
  }

  .calendar-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .calendar-toolbar > div {
    min-width: 0;
  }

  .calendar-toolbar h2 {
    margin: 0;
    font-size: 23px;
  }

  .calendar-toolbar p {
    margin: 5px 0 0;
    font-size: 12px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: 28px;
  }

  .icon-btn:hover:not(:disabled) {
    border-color: #b9c6d8;
    background: #fbfdff;
  }

  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
  }

  .legend-v2 {
    justify-content: center;
    margin: 17px 0 5px;
    padding: 11px 8px;
    border-radius: 12px;
    background: #f8fafc;
  }

  .legend span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
  }

  .dot.available,
  .mini-dot.available {
    background: var(--green);
  }

  .dot.reserved,
  .mini-dot.reserved {
    background: var(--red);
  }

  .dot.blocked,
  .mini-dot.blocked {
    background: var(--amber);
  }

  .dot.future,
  .mini-dot.future {
    background: var(--grey-dot);
  }

  .weekdays,
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .weekdays {
    margin-top: 14px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    font-weight: 750;
  }

  .weekdays span {
    padding: 8px 0;
  }

  .calendar-grid {
    margin-top: 4px;
  }

  .day-placeholder {
    aspect-ratio: 1/1;
  }

  .day-btn {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 72px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9px;
    text-align: left;
  }

  .day-btn:hover {
    border-color: #afbed1;
    background: #fcfdff;
  }

  .day-btn.selected {
    border: 2px solid var(--primary);
    padding: 8px;
    box-shadow: 0 0 0 3px rgba(33, 86, 165, .08);
  }

  .day-btn.out {
    color: #8993a2;
    background: #fafbfc;
  }

  .day-btn.has-block {
    background:
      linear-gradient(135deg, #fff 0 72%, var(--amber-bg) 72%);
  }

  .day-number {
    font-weight: 850;
  }

  .day-lock {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 10px;
  }

  .day-state {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
  }

  .mini-dot {
    display: block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d5dd;
    box-shadow: 0 0 0 1px rgba(255,255,255,.9);
  }

  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .section-head h2 {
    margin: 4px 0 0;
  }

  .panel-help {
    margin: 8px 0 0;
    font-size: 13px;
  }

  .text-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 800;
    padding: 10px;
  }

  .shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .shift-btn {
    min-height: 132px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 17px;
    background: white;
    text-align: left;
  }

  .shift-btn strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
  }

  .shift-btn .time {
    color: var(--muted);
    font-size: 13px;
  }

  .shift-btn .availability {
    display: block;
    margin-top: 14px;
    font-weight: 850;
    font-size: 13px;
  }

  .shift-btn .reason {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

  .shift-btn.available {
    border-color: #b8dfca;
    background: linear-gradient(180deg, #fff, var(--green-bg));
  }

  .shift-btn.available .availability {
    color: var(--green);
  }

  .shift-btn.reserved {
    background: var(--red-bg);
  }

  .shift-btn.reserved .availability {
    color: var(--red);
  }

  .shift-btn.blocked {
    background: var(--amber-bg);
  }

  .shift-btn.blocked .availability {
    color: var(--amber);
  }

  .shift-btn.future {
    background: var(--grey-bg);
    color: #727d8d;
  }

  .shift-btn.future .availability {
    color: #667085;
  }


  .reservation-owner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(180, 35, 24, .06);
    border: 1px solid rgba(180, 35, 24, .12);
  }

  .reservation-owner-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .reservation-owner strong {
    color: var(--red);
    font-size: 13px;
    line-height: 1.35;
  }

  .booking-card {
    border-color: #cfdaea;
  }

  .booking-summary {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.4;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 19px;
  }

  label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 750;
  }

  input,
  select {
    width: 100%;
    min-height: 47px;
    border: 1px solid #cad2de;
    border-radius: 11px;
    padding: 10px 12px;
    background: white;
    color: var(--text);
    font-size: 16px;
  }

  input:focus,
  select:focus {
    outline: 3px solid rgba(33, 86, 165, .12);
    border-color: var(--primary);
  }

  select {
    appearance: auto;
    cursor: pointer;
  }

  select:disabled {
    cursor: not-allowed;
    background: #f5f6f7;
    color: var(--muted);
  }

  .booking-rules-reminder,
  .cancel-warning {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .booking-rules-reminder {
    background: #f8fafc;
    border: 1px solid var(--border);
  }

  .booking-rules-reminder strong,
  .cancel-warning strong {
    white-space: nowrap;
  }

  .booking-rules-reminder span,
  .cancel-warning span {
    color: var(--muted);
  }

  .check-row {
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 18px;
    font-weight: 500;
    line-height: 1.45;
  }

  .check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
  }

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

  .primary-btn,
  .secondary-btn,
  .danger-btn {
    min-height: 48px;
    border-radius: 11px;
    padding: 0 18px;
    font-weight: 850;
    border: 1px solid transparent;
  }

  .primary-btn {
    background: var(--primary);
    color: white;
  }

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

  .secondary-btn {
    background: white;
    border-color: var(--border);
    color: var(--text);
  }

  .danger-btn {
    width: 100%;
    background: var(--red);
    color: white;
  }

  .notice {
    border-radius: 13px;
    padding: 13px 15px;
    margin: 13px 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .notice.error {
    color: var(--red);
    background: var(--red-bg);
    border: 1px solid #f1c5c0;
  }

  .notice.success {
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid #b8dfca;
  }

  .notice.warning {
    color: var(--amber);
    background: var(--amber-bg);
    border: 1px solid #efd29a;
  }

  .hidden {
    display: none !important;
  }

  .success-card {
    text-align: center;
    padding: 36px 24px;
  }

  .success-icon {
    width: 57px;
    height: 57px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 29px;
    font-weight: 900;
  }

  .success-card h2 {
    margin: 5px 0 8px;
  }

  .success-card p {
    color: var(--muted);
  }

  .success-note {
    max-width: 500px;
    margin: 10px auto 18px;
    font-size: 13px;
    line-height: 1.45;
  }

  .loading {
    color: var(--muted);
    text-align: center;
    padding: 22px;
  }

  .cancel-policy-card {
    margin-top: 5px;
  }

  .cancel-summary-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .cancel-summary-head h2 {
    margin: 4px 0 0;
    font-size: 20px;
  }

  .status-pill {
    background: var(--green-bg);
    color: var(--green);
  }

  .status-pill.warning {
    background: var(--amber-bg);
    color: var(--amber);
  }

  .status-pill.cancelled {
    background: var(--grey-bg);
    color: #667085;
  }

  .details-list {
    margin: 0 0 20px;
  }

  .details-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
  }

  .details-list dt {
    color: var(--muted);
  }

  .details-list dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
  }

  .cancel-warning {
    background: var(--red-bg);
    border: 1px solid #f1c5c0;
    margin-bottom: 16px;
  }

  @media (max-width: 640px) {
    .app-shell {
      padding: 22px 12px 42px;
    }

    .hero {
      align-items: center;
    }

    .hero-mark {
      width: 52px;
      height: 52px;
      flex-basis: 52px;
      border-radius: 16px;
      font-size: 24px;
    }


    .community-logo {
      width: 112px;
      min-height: 104px;
      flex-basis: 112px;
      padding: 9px 8px 8px;
      border-radius: 20px;
    }

    .community-logo-icon {
      width: 78px;
      height: 57px;
    }

    .community-logo-text {
      font-size: 11px;
    }

    .rules-heading {
      display: block;
    }

    .info-pill {
      margin-top: 10px;
    }

    .rules-grid,
    .shift-grid,
    .form-grid {
      grid-template-columns: 1fr;
    }

    .flow-strip {
      grid-template-columns: 1fr;
      gap: 7px;
    }

    .flow-line {
      display: none;
    }

    .flow-step {
      white-space: normal;
    }

    .card,
    .rules-card {
      padding: 16px;
      border-radius: 16px;
    }

    .calendar-card {
      width: 100%;
      max-width: 100%;
      padding: 10px;
      overflow: hidden;
    }

    .calendar-toolbar {
      grid-template-columns: 38px minmax(0, 1fr) 38px;
      gap: 5px;
    }

    .calendar-toolbar h2 {
      font-size: 20px;
      line-height: 1.15;
    }

    .calendar-toolbar p {
      font-size: 10px;
      line-height: 1.3;
    }

    .icon-btn {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      font-size: 24px;
    }

    .weekdays,
    .calendar-grid {
      gap: 4px;
    }

    .weekdays {
      font-size: 10px;
    }

    .weekdays span {
      min-width: 0;
      padding: 6px 0;
    }

    .legend-v2 {
      justify-content: flex-start;
      gap: 9px 12px;
    }

    .day-btn {
      min-width: 0;
      min-height: 52px;
      padding: 5px;
      border-radius: 9px;
    }

    .day-btn.selected {
      padding: 4px;
    }

    .day-number {
      font-size: 12px;
    }

    .day-lock {
      top: 4px;
      right: 4px;
      font-size: 8px;
    }

    .day-state {
      left: 5px;
      bottom: 5px;
      gap: 3px;
    }

    .mini-dot {
      width: 7px;
      height: 7px;
    }

    .section-head {
      align-items: flex-start;
    }

    .details-list div {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .details-list dd {
      text-align: left;
    }

    .booking-rules-reminder,
    .cancel-warning {
      display: block;
    }

    .booking-rules-reminder strong,
    .cancel-warning strong {
      display: block;
      margin-bottom: 3px;
    }
  }


  /* ====================================================
     MIS RESERVAS
     ==================================================== */

  .my-reservations-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 16px 0;
    padding: 17px 20px;
    border: 1px solid #cfdbea;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, var(--primary-soft));
  }

  .my-reservations-entry strong,
  .my-reservations-entry span {
    display: block;
  }

  .my-reservations-entry strong {
    margin-top: 4px;
    font-size: 17px;
  }

  .my-reservations-entry span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .my-reservations-panel {
    border-color: #cfdbea;
  }

  .my-login-form {
    margin-top: 18px;
  }

  .my-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .my-account-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 18px 0;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--primary-soft);
  }

  .my-account-bar span,
  .my-account-bar strong {
    display: block;
  }

  .my-account-bar span {
    color: var(--muted);
    font-size: 12px;
  }

  .my-account-bar strong {
    margin-top: 3px;
    color: var(--primary-dark);
    font-size: 18px;
  }

  .reservation-list {
    display: grid;
    gap: 13px;
  }

  .my-reservation-card {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
  }

  .my-reservation-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .my-reservation-top strong,
  .reservation-code {
    display: block;
  }

  .my-reservation-top strong {
    margin-top: 4px;
    font-size: 16px;
    text-transform: capitalize;
  }

  .reservation-code {
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
  }

  .my-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 850;
  }

  .my-status-pill.active {
    color: var(--green);
    background: var(--green-bg);
  }

  .my-status-pill.locked {
    color: var(--amber);
    background: var(--amber-bg);
  }

  .reservation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 12px;
    color: var(--text);
    font-size: 13px;
  }

  .reservation-deadline,
  .reservation-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .danger-outline-btn {
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    border: 1px solid #efb4ae;
    border-radius: 10px;
    background: white;
    color: var(--red);
    font-weight: 800;
  }

  .danger-outline-btn:hover:not(:disabled) {
    background: var(--red-bg);
  }

  .empty-reservations {
    padding: 23px 18px;
    border: 1px dashed #cbd4df;
    border-radius: 14px;
    background: #fafbfc;
    text-align: center;
  }

  .empty-reservations strong,
  .empty-reservations span {
    display: block;
  }

  .empty-reservations span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
  }

  .pin-management {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }

  .pin-management strong,
  .pin-management span {
    display: block;
  }

  .pin-management span {
    max-width: 520px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .pin-change-form {
    margin-top: 15px;
    padding: 16px;
    border: 1px solid #cfdbea;
    border-radius: 14px;
    background: #fbfdff;
  }

  .pin-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
  }

  @media (max-width: 640px) {
    .my-reservations-entry,
    .pin-management {
      align-items: stretch;
      flex-direction: column;
    }

    .my-reservations-entry .secondary-btn,
    .pin-management .secondary-btn {
      width: 100%;
    }

    .my-login-grid {
      grid-template-columns: 1fr;
    }

    .my-reservation-top {
      display: block;
    }

    .my-status-pill {
      margin-top: 9px;
    }
  }


  @media (max-width: 380px) {
    .app-shell {
      padding-left: 8px;
      padding-right: 8px;
    }

    .calendar-card {
      padding-left: 7px;
      padding-right: 7px;
    }

    .weekdays,
    .calendar-grid {
      gap: 3px;
    }

    .day-btn {
      min-height: 48px;
      padding: 4px;
    }

    .day-btn.selected {
      padding: 3px;
    }

    .day-number {
      font-size: 11px;
    }

    .day-state {
      left: 4px;
      bottom: 4px;
    }
  }


  /* ====================================================
     V4.6.1 · LISTA DE ESPERA
     ==================================================== */

  .waitlist-inline-btn {
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #d7b15d;
    border-radius: 10px;
    background: #fffaf0;
    color: #805b10;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    cursor: pointer;
  }

  .waitlist-inline-btn:hover:not(:disabled) {
    background: #fff3d6;
  }

  .waitlist-card {
    border-color: #e2c77f;
  }

  .waitlist-note {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #ead8aa;
    border-radius: 12px;
    background: #fffaf0;
    color: #66501d;
    font-size: 13px;
    line-height: 1.5;
  }

  .my-subsection + .my-subsection {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .my-subsection h3 {
    margin: 0 0 12px;
    font-size: 16px;
  }

  .waitlist-subsection .panel-help {
    margin-top: -5px;
    margin-bottom: 12px;
  }

  .waitlist-request-card {
    border-color: #ead8aa;
    background: #fffdf8;
  }

  .my-status-pill.priority {
    color: #805b10;
    background: #fff3d6;
  }


  .shift-btn[role="group"] {
    cursor: default;
    opacity: 1;
  }


  /* ====================================================
     V5.0 · ESTADO DE CARGA DEL CALENDARIO
     ==================================================== */

  .calendar-loading-state {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 18px;
    color: var(--muted);
    text-align: center;
  }

  .calendar-loading-state strong {
    color: var(--text);
    font-size: 16px;
  }

  .calendar-loading-state > span:last-child {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.45;
  }

  .calendar-loading-spinner {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
    border: 3px solid #dfe7f2;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: calendar-spin .8s linear infinite;
  }

  .calendar-loading-error {
    min-height: 130px;
  }

  .calendar-loading-error strong {
    color: var(--red);
  }

  @keyframes calendar-spin {
    to { transform: rotate(360deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .calendar-loading-spinner {
      animation: none;
      border-top-color: #dfe7f2;
      outline: 3px solid var(--primary-soft);
    }
  }

/* ====================================================
   V5.1 · REDISEÑO VISUAL / IDENTIDAD CERRO DEL CAMPO 11
   ==================================================== */

:root {
  --brand-blue: #0e70cf;
  --brand-blue-dark: #0a5aaa;
  --brand-blue-deep: #084c91;
  --brand-blue-soft: #eaf4ff;
  --brand-blue-ultrasoft: #f5f9ff;
  --bg: #f4f8fd;
  --card: #ffffff;
  --text: #17324d;
  --muted: #65778a;
  --border: #dce7f2;
  --primary: var(--brand-blue);
  --primary-dark: var(--brand-blue-dark);
  --primary-soft: var(--brand-blue-soft);
  --shadow: 0 16px 42px rgba(29, 73, 118, .09);
  --shadow-soft: 0 8px 24px rgba(29, 73, 118, .07);
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0%, rgba(14, 112, 207, .10), transparent 31rem),
    radial-gradient(circle at 0% 18%, rgba(14, 112, 207, .055), transparent 27rem),
    linear-gradient(180deg, #fbfdff 0, var(--bg) 260px, #f7faff 100%);
  color: var(--text);
}

.app-shell {
  max-width: 960px;
  padding-top: 26px;
}

.hero.hero-v2 {
  position: relative;
  min-height: 230px;
  padding: 30px 34px;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(14, 112, 207, .15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 87% 30%, rgba(14, 112, 207, .13), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #edf6ff 100%);
  box-shadow: var(--shadow);
}

.hero.hero-v2::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -105px;
  top: -120px;
  border: 34px solid rgba(14, 112, 207, .055);
  border-radius: 50%;
  pointer-events: none;
}

.hero.hero-v2 > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  margin-top: 8px;
  margin-bottom: 10px;
  color: #12314f;
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 850;
  letter-spacing: -.045em;
}

.eyebrow {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.subtitle {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.58;
}

.community-logo.brand-logo-card {
  position: relative;
  z-index: 1;
  width: 230px;
  min-height: 0;
  flex: 0 0 230px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.community-logo-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(13, 74, 132, .10));
}

.rules-card,
.card {
  border-color: rgba(162, 187, 213, .42);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.rules-card {
  margin-top: 18px;
  padding: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

.rules-heading h2,
.section-head h2,
.calendar-toolbar h2 {
  color: #173a5d;
}

.info-pill {
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  border: 1px solid rgba(14,112,207,.10);
}

.rules-grid {
  gap: 12px;
}

.rule-item {
  padding: 15px;
  border-color: #e1eaf4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.rule-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 13px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.my-reservations-entry {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(14,112,207,.18);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(14,112,207,.09), rgba(255,255,255,.98) 46%, rgba(14,112,207,.045));
  box-shadow: 0 8px 22px rgba(29,73,118,.055);
}

.my-reservations-entry::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -50px;
  width: 135px;
  height: 135px;
  border: 24px solid rgba(14,112,207,.055);
  border-radius: 50%;
  pointer-events: none;
}

.my-reservations-entry > * {
  position: relative;
  z-index: 1;
}

.secondary-btn {
  border-color: #cbdced;
  background: #fff;
  color: #234968;
}

.secondary-btn:hover:not(:disabled) {
  border-color: rgba(14,112,207,.34);
  background: var(--brand-blue-ultrasoft);
}

.primary-btn {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  box-shadow: 0 7px 16px rgba(14,112,207,.18);
}

.primary-btn:hover:not(:disabled) {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border-radius: 13px;
}

.flow-strip {
  margin: 20px 6px 8px;
  padding: 12px 14px;
  border: 1px solid rgba(14,112,207,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
}

.flow-step b {
  background: #e8eff7;
}

.flow-step.active b {
  background: var(--brand-blue);
  box-shadow: 0 4px 10px rgba(14,112,207,.18);
}

.calendar-card {
  padding: 24px;
  border-color: rgba(14,112,207,.13);
  box-shadow: 0 18px 45px rgba(29,73,118,.095);
}

.calendar-toolbar {
  padding: 2px 4px 8px;
}

.calendar-toolbar h2 {
  font-size: 25px;
  letter-spacing: -.02em;
}

.icon-btn {
  border-color: #d6e3ef;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-blue-dark);
  box-shadow: 0 4px 12px rgba(29,73,118,.055);
}

.icon-btn:hover:not(:disabled) {
  border-color: rgba(14,112,207,.30);
  background: var(--brand-blue-soft);
}

.legend-v2 {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e5edf6;
  border-radius: 14px;
  background: #f8fbff;
}

.weekdays {
  color: #667d93;
  font-weight: 850;
}

.day-btn {
  min-height: 76px;
  border-color: #e1e8f0;
  border-radius: 15px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.day-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(14,112,207,.30);
  background: #fbfdff;
  box-shadow: 0 7px 15px rgba(29,73,118,.075);
}

.day-btn.selected {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, #fff, #f0f7ff);
  box-shadow: 0 0 0 3px rgba(14,112,207,.10), 0 8px 18px rgba(29,73,118,.08);
}

.day-number {
  color: #25435f;
}

.booking-card,
.my-reservations-panel {
  border-color: rgba(14,112,207,.16);
}

.booking-summary,
.my-account-bar {
  background: linear-gradient(135deg, #edf6ff, #f7fbff);
  border: 1px solid rgba(14,112,207,.09);
}

input,
select {
  min-height: 50px;
  border-color: #cfddea;
  border-radius: 13px;
  background: #fff;
}

input:focus,
select:focus {
  outline: 4px solid rgba(14,112,207,.10);
  border-color: var(--brand-blue);
}

.my-reservation-card,
.shift-btn {
  border-radius: 18px;
}

.my-reservation-card {
  box-shadow: 0 5px 16px rgba(29,73,118,.04);
}

.shift-btn {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.shift-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(29,73,118,.07);
}

.waitlist-inline-btn {
  border-color: #dcb866;
  border-radius: 12px;
}

.calendar-loading-state {
  min-height: 210px;
}

.calendar-loading-spinner {
  width: 38px;
  height: 38px;
  border-color: #e3edf7;
  border-top-color: var(--brand-blue);
}

.offline-shell {
  padding-top: 54px;
}

.offline-card {
  text-align: center;
  padding: 34px;
}

.offline-logo {
  width: min(280px, 82%);
  height: auto;
  margin: 0 auto 10px;
}

.cancel-hero {
  min-height: 205px !important;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px 10px 38px;
  }

  .hero.hero-v2 {
    min-height: 0;
    padding: 22px 18px 18px;
    gap: 12px;
    border-radius: 24px;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .subtitle {
    font-size: 14px;
  }

  .community-logo.brand-logo-card {
    width: 132px;
    flex-basis: 132px;
  }

  .rules-card,
  .card {
    border-radius: 20px;
  }

  .rules-card {
    padding: 18px;
  }

  .calendar-card {
    padding: 12px;
  }

  .flow-strip {
    padding: 10px 12px;
  }

  .day-btn {
    min-height: 54px;
    border-radius: 11px;
  }
}

@media (max-width: 480px) {
  .hero.hero-v2 {
    display: grid;
    grid-template-columns: minmax(0,1fr) 104px;
    padding: 19px 15px 16px;
  }

  .community-logo.brand-logo-card {
    width: 104px;
    flex-basis: auto;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .hero .eyebrow {
    font-size: 9px;
  }

  .hero .subtitle {
    font-size: 12.5px;
    line-height: 1.42;
  }

  .my-reservations-entry {
    padding: 17px;
    border-radius: 18px;
  }

  .legend-v2 {
    font-size: 11px;
  }
}
