.lunar-calendar {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(179, 156, 195, 0.22);
    border-radius: 28px;
    padding: 2rem 1.8rem;
    box-shadow: 0 12px 36px rgba(139, 122, 156, 0.12);
    margin: 40px 0 40px;
    position: relative;
    overflow: hidden;
  }

.lunar-calendar h2 {
   font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px, 4vw, 34px);
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #C97FA0 45%, var(--turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.15;
}

.lunar-calendar #desc{
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto;
}

  .lunar-calendar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9B9B, #B39CC3, #9BC4CB);
    background-size: 200% 100%;
    animation: shimmerLine 4s linear infinite;
  }

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

  .calendar-header {
    text-align: center;
    margin-bottom: 1.6rem;
  }

  .calendar-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: #8B7A9C;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.75;
  }

  .calendar-header h2 {
    font-family: "Playfair Display", serif;
    color: #3D3446;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
  }

  /* ── Month nav ── */
  .cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    gap: 0.5rem;
  }

  .cal-nav button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #F7A7A7 0%, #C9A8D8 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(199, 140, 195, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    flex-shrink: 0;
  }

  .cal-nav button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(199, 140, 195, 0.45);
    filter: brightness(1.06);
  }

  .cal-nav button:active:not(:disabled) { transform: scale(0.94); }

  .cal-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
  }

  .cal-month-label {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3D3446;
    text-align: center;
    min-width: 180px;
    letter-spacing: 0.01em;
  }

  /* ── Weekday headers ── */
  .cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 6px;
    background-color: #ebebeb42;
    border-radius: 5px;
  }

  .cal-weekdays span {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A8D8;
    padding: 6px 0 10px;
  }

  /* ── Day grid ── */
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 2px;
    margin-bottom: 1.6rem;
    background-color: #ebebeb42;
    border-radius: 5px;

  }

  /* ── Base cell ── */
  .cal-day {
    border: none;
    background: transparent;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #3D3446;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    margin: 0 auto;
    border-radius: 50%;
    transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.18s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  /* FIX: excluir seleccionado del hover genérico para evitar el efecto raro */
  .cal-day:not(.cal-disabled):not(.cal-blank):not(.cal-selected-day):hover {
    background: rgba(201, 168, 216, 0.15);
    color: #8B7A9C;
    transform: scale(1.12);
  }

  .cal-day:not(.cal-disabled):not(.cal-blank):active {
    transform: scale(0.92);
  }

  /* Hoy — número en coral con punto abajo */
  .cal-day.cal-today {
    color: #d4737b;
    font-weight: 700;
  }

  .cal-day.cal-today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F7A7A7;
  }

  /* Seleccionado — círculo degradado */
  .cal-day.cal-selected-day {
    background: linear-gradient(135deg, #F7A7A7 0%, #C9A8D8 100%);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(199, 140, 195, 0.4);
    transform: scale(1.08);
  }

  /* FIX: hover del seleccionado — sutil, sin aclarar el color */
  .cal-day.cal-selected-day:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(199, 140, 195, 0.55);
  }

  .cal-day.cal-selected-day::after {
    display: none;
  }

  /* FIX: deshabilitados — más visibles, legibles pero claramente inactivos */
  .cal-day.cal-disabled {
    background: transparent;
    color: rgba(140, 128, 158, 0.52);
    cursor: not-allowed;
    font-weight: 400;
    font-size: 1rem;
  }

  .cal-day.cal-blank {
    background: transparent;
    pointer-events: none;
  }

  /* ── Fila de fecha seleccionada ── */
  .cal-selected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.1rem;
    background: rgba(139, 127, 212, 0.05);
    border: 1px solid rgba(201, 168, 216, 0.2);
    border-radius: 14px;
  }

  .cal-selected-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C9A8D8;
    font-weight: 700;
  }

  #cal-selected-date {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #3D3446;
    flex: 1;
    min-width: 120px;
  }

  #open-lunar-page {
    margin-left: auto;
    font-family: "Karla", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 22px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #F7A7A7 0%, #B39CC3 55%, #9BC4CB 100%);
    box-shadow: 0 4px 14px rgba(179, 156, 195, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, opacity 0.2s;
    white-space: nowrap;
  }

  #open-lunar-page:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(179, 156, 195, 0.45);
    filter: brightness(1.05);
  }

  #open-lunar-page:active:not(:disabled) { transform: translateY(0); }

  #open-lunar-page:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
  }

  @media (max-width: 440px) {
    .lunar-calendar { padding: 1.4rem 1rem; }
    .cal-day { font-size: 1rem; height: 38px; width: 38px; }
    .cal-grid { gap: 2px 0; }
    .cal-month-label { font-size: 0.95rem; min-width: 140px; }
    #open-lunar-page { width: 100%; margin-left: 0; }
    .cal-selected { flex-direction: column; align-items: flex-start; }
  }