/* «Tu mesa de hoy», los 10 pilares (pilares.js). Una carta, no un tablero: el plato visto desde arriba, tres tiempos,
   líneas finas y mucho aire. Colores del Club (--ink, --paper, --line, --muted, --sage) más el crema de la marca.
   Tarjetas de 16px y botones en píldora, como el resto del Club. Sin degradados, sin brillos, sin grillas. */
#pilares { --pl-crema: #F3EFE6; --pl-suave: color-mix(in srgb, var(--ink) 55%, var(--paper)); max-width: 520px; }
@media (prefers-color-scheme: dark) { #pilares { --pl-crema: #1C1E1A; } }
.pl { font-variant-numeric: tabular-nums; }
.pl h2, .pl h3, .pl p { margin: 0; }

/* cabecera */
.pl-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-ceja { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pl-ceja::before { content: ""; width: 22px; height: 1px; background: var(--sage); }
#pilares .pl-tit { text-transform: none; margin-top: 10px !important; font-size: clamp(30px, 8vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
#pilares .pl-tit span { text-transform: none; display: block; margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pl-dia { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.pl-dia button { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.pl-dia button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* el plato */
.pl-plato { position: relative; width: min(260px, 74vw); aspect-ratio: 1; margin: 30px auto 0; }
.pl-plato svg { width: 100%; height: 100%; display: block; }
.pl-ala { fill: none; stroke: var(--line); stroke-width: 1; }
.pl-trazo { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; transition: stroke .45s ease; }
.pl-trazo.si { stroke: var(--sage); }
.pl-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pl-centro b { font-size: 64px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.pl-centro small { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pl-estado { margin-top: 18px !important; text-align: center; font-size: 15px; color: var(--muted); min-height: 24px; }
.pl-estado.pleno { color: var(--ink); font-weight: 700; }
.pl-estado.pleno::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--sage); vertical-align: 1px; }

/* la carta */
.pl-carta { margin-top: 34px; display: grid; gap: 14px; }
.pl-tiempo { background: var(--pl-crema); border-radius: 16px; padding: 18px 18px 6px; }
.pl-tiempo > header, .pl-semana > header, .pl-nivel > header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pl-tiempo > header span { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
#pilares .pl-tiempo h3 { text-transform: none; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pl-tiempo > header em, .pl-semana > header em, .pl-nivel > header em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.pl-tiempo ul { list-style: none; margin: 8px 0 0; padding: 0; }
.pl-fila { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pl-fila:first-child { border-top: 0; }
.pl-marca { width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); background: none; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .3s, border-color .3s, transform .15s; }
.pl-marca svg { width: 18px; height: 18px; fill: none; stroke: #121212; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s ease .05s; }
.pl-marca:active { transform: scale(.92); }
.pl-fila.si .pl-marca { background: var(--sage); border-color: var(--sage); }
.pl-fila.si .pl-marca svg { stroke-dashoffset: 0; }
.pl-plato-t { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pl-n { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.pl-txt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pl-txt span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pl-fila.si .pl-txt b { color: var(--muted); }
.pl-mas { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; transition: transform .3s; }
.pl-fila.ab .pl-mas { transform: rotate(45deg); }
.pl-det { grid-column: 2; padding: 12px 0 6px; font-size: 14px; line-height: 1.55; }
.pl-linea { color: var(--ink); font-weight: 500; }
.pl-dato { margin-top: 10px !important; }
.pl-dato cite, .pl-ancestral b { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.pl-ancestral { margin-top: 12px !important; padding-left: 12px; border-left: 2px solid var(--sage); color: var(--muted); }
.pl-ancestral b { margin: 0 0 4px; font-weight: 700; color: var(--ink); }

/* semana y nivel */
.pl-semana, .pl-nivel { margin-top: 30px; }
#pilares .pl-semana h3, #pilares .pl-nivel h3 { text-transform: none; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pl-semana ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pl-semana li.pl-d { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pl-semana i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); }
.pl-semana li.pl-pleno i { background: var(--sage); border-color: var(--sage); }
.pl-semana li.pl-hoy i { border-color: var(--ink); }
.pl-semana li.pl-hoy span { color: var(--ink); font-weight: 700; }
.pl-semana li.pl-fut i { border-style: dashed; }
.pl-nota { margin-top: 10px !important; font-size: 13px; color: var(--muted); }
.pl-barra { margin-top: 12px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pl-barra i { display: block; height: 100%; border-radius: 999px; background: var(--sage); transition: width .6s ease; }

/* pie */
.pl-pie { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.pl-pie button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* entrada */
.pl-intro { max-width: 460px; }
.pl-foto { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }
.pl-lead { margin-top: 14px !important; font-size: 16px; line-height: 1.6; }
.pl-btn { margin-top: 22px; border: 0; border-radius: 999px; background: var(--sage); color: #121212; font-weight: 800; font-size: 15px; padding: 15px 34px; cursor: pointer; transition: transform .15s; }
.pl-btn:active { transform: scale(.97); }
.pl-priv { margin-top: 14px !important; font-size: 13px; color: var(--muted); }

.pl :focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pl * { transition: none !important; } }
