/**
 * Copia aislada de la plantilla visual Charlotte para construir planes sin modificar el ejemplo aprobado.
 * ✅ Última actualización: 2026-08-21
 */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --plan-theme-base: #0f0e12;
  --plan-theme-deep: #141218;
  --plan-theme-surface: #19161e;
  --plan-theme-on-base: #fff8ef;
  --plan-theme-accent: #c8b2ff;
  --plan-ink: #f8f3ef;
  --plan-primary: #c8b2ff;
  --plan-muted: rgba(248, 243, 239, 0.7);
  --plan-muted-soft: rgba(248, 243, 239, 0.48);
  --plan-line: rgba(255, 255, 255, 0.13);
  --plan-content-width: min(1320px, calc(100% - 120px));
}

* { box-sizing: border-box; }

html {
  min-width: 1180px;
  scroll-behavior: smooth;
  background: var(--plan-theme-surface);
}

body {
  min-width: 1180px;
  min-height: 100vh;
  margin: 0;
  color: var(--plan-ink);
  font-family: "Poppins", "Avenir Next", sans-serif;
  background: var(--plan-theme-base);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.plan-skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  color: #17131c;
  background: var(--plan-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-90px);
}

.plan-skip-link:focus { transform: translateY(0); }
main { width: 100%; margin: 0; }

/* Approved cover: deliberately unchanged. */
.plan-cover { position: relative; overflow: hidden; width: 100%; height: 620px; background: #0c0a0b; }
.product-header { position: absolute; z-index: 10; top: 0; right: 0; left: 0; }

.product-header-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  padding: 26px 60px;
}

.product-wordmark { display: inline-flex; align-items: center; width: 118px; }
.product-wordmark img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }

.product-context {
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-self: start;
  min-width: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.product-context span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-context strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-plan-button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(73, 67, 106, 0.9);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.share-plan-button:hover { background: rgba(62, 56, 93, 0.96); }

.plan-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}

.plan-cover-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.85) 0%, rgba(5, 4, 5, 0.55) 28%, rgba(5, 4, 5, 0.15) 55%, transparent 70%),
    linear-gradient(0deg, rgba(5, 4, 5, 0.35) 0%, transparent 42%);
  pointer-events: none;
}

.plan-identity {
  position: absolute;
  z-index: 2;
  left: 64px;
  bottom: 54px;
  width: 620px;
  max-width: 44vw;
  color: #f6eee2;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.66);
}

.plan-kicker, .plan-tagline, .plan-promise, .plan-attendance p { margin: 0; }

.plan-kicker {
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.plan-identity h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.15rem, 6.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-transform: uppercase;
}

.plan-tagline { font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-style: italic; letter-spacing: -0.018em; }
.plan-promise { margin-top: 11px; color: rgba(255, 248, 237, 0.96); font-size: 0.9rem; font-weight: 500; }
.plan-metadata { margin-top: 19px; }
.plan-metadata p { margin: 0; }
.plan-metadata-primary { color: #fff8ef; font-size: 0.94rem; font-weight: 700; letter-spacing: 0.09em; }
.plan-metadata-place { margin-top: 8px !important; color: rgba(255, 248, 237, 0.86); font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.plan-metadata-place span { color: var(--plan-theme-accent); font-weight: 700; }

.plan-attendance {
  position: absolute;
  z-index: 2;
  right: 64px;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #fffaf2;
}

.plan-attendance p { font-size: 0.78rem; font-weight: 600; }
.plan-attendance p strong { font-size: 1.45rem; letter-spacing: -0.04em; }
.plan-avatar-row, .plan-mini-avatars { display: flex; align-items: center; padding-left: 12px; }

.plan-avatar-row span,
.plan-mini-avatars span,
.plan-participant-avatar,
.plan-activity-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #635a75;
  font-weight: 700;
}

.plan-avatar-row span {
  width: 40px;
  height: 40px;
  margin-left: -12px;
  border: 2px solid rgba(255, 250, 242, 0.88);
  border-radius: 14px;
  font-size: 0.63rem;
  letter-spacing: 0.03em;
}

.plan-avatar-row span:nth-child(2) { background: #a55e65; }
.plan-avatar-row span:nth-child(3) { background: #68777b; }
.plan-avatar-row span:last-child { color: #3e3943; background: #eee6da; }

/* Continuous editorial body. */
.plan-body-canvas { position: relative; overflow: hidden; width: 100%; background: var(--plan-theme-surface); }
.plan-body-canvas::before { position: absolute; inset: 0; content: ""; background: rgba(200, 178, 255, 0.015); pointer-events: none; }

.plan-about-night,
.plan-night-context,
.plan-happening,
.plan-social-life,
.plan-tool-conexa,
.plan-app-continuation {
  position: relative;
  width: var(--plan-content-width);
  margin-right: auto;
  margin-left: auto;
}

.plan-piece-label { margin: 0; color: var(--plan-primary); font-size: 0.73rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.plan-piece-label span { color: var(--plan-muted-soft); letter-spacing: 0.08em; }

.plan-about-night h2,
.plan-context-heading h2,
.plan-section-intro h2,
.plan-social-heading h2,
.plan-conexa-lead h2,
.plan-app-copy h2 {
  margin: 0;
  color: var(--plan-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.plan-about-night {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 78px;
  padding: 72px 0;
  border-bottom: 1px solid var(--plan-line);
}

.plan-about-night h2 { max-width: 560px; margin-top: 16px; font-size: clamp(2.9rem, 4.1vw, 4.45rem); }
.plan-host-line { margin: 22px 0 0; color: var(--plan-muted); font-size: 0.92rem; }
.plan-host-line strong { color: var(--plan-ink); }

.plan-description-copy {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--plan-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.plan-description-copy.is-collapsed { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.plan-about-image { overflow: hidden; aspect-ratio: 16 / 9; margin: 0; border-radius: 26px; background: #0a090b; }
.plan-about-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.plan-inline-toggle,
.plan-text-action {
  padding: 0;
  border: 0;
  color: var(--plan-primary);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-about-night .plan-inline-toggle { margin-top: 18px; }
.plan-night-context { padding: 68px 0 72px; border-bottom: 1px solid var(--plan-line); }
.plan-context-heading { display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.plan-context-heading h2 { max-width: 760px; margin-top: 13px; font-size: 3.15rem; }

.plan-routa-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px;
  padding: 0;
  margin: 54px 0 0;
  list-style: none;
}

.plan-routa-timeline::before { position: absolute; top: 50px; right: 0; left: 0; height: 1px; background: var(--plan-line); content: ""; }
.plan-routa-event { position: relative; }
.plan-routa-event:nth-child(2) { text-align: center; }
.plan-routa-event:nth-child(3) { text-align: right; }
.plan-routa-time { margin: 0 0 16px; color: var(--plan-muted); font-size: 0.78rem; font-weight: 600; }

.plan-routa-marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 20px;
  border: 4px solid var(--plan-theme-surface);
  border-radius: 50%;
  background: var(--plan-primary);
  box-shadow: 0 0 0 1px rgba(200, 178, 255, 0.64);
}

.plan-routa-event:nth-child(2) .plan-routa-marker { margin-right: auto; margin-left: auto; }
.plan-routa-event:nth-child(3) .plan-routa-marker { margin-left: auto; }
.plan-routa-event h3 { margin: 0; color: var(--plan-ink); font-size: 1.1rem; font-weight: 600; }
.plan-routa-event p:last-child { margin: 8px 0 0; color: var(--plan-muted); font-size: 0.82rem; line-height: 1.55; }

.plan-place { margin-top: 64px; }
.plan-place-copy { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 24px; }

.plan-place-copy h2 {
  max-width: 980px;
  margin: 10px 0 0;
  color: var(--plan-ink);
  font-size: clamp(2.7rem, 4.4vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.plan-place-copy > div > p:last-child { margin: 14px 0 0; color: var(--plan-muted); font-size: 0.94rem; }
.plan-directions-link { flex: 0 0 auto; padding-bottom: 5px; color: var(--plan-primary); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.plan-directions-link:hover { text-decoration: underline; }

.plan-map-frame {
  overflow: hidden;
  width: 100%;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #e8e6e2;
}

.plan-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/**
 * La participación conserva el marco de sus acciones sin duplicar el cierre de la sección.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-happening { padding: 64px 0 70px; }
.plan-section-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
.plan-section-intro h2 { margin-top: 12px; font-size: 2.65rem; }

.plan-happening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  border-top: 1px solid var(--plan-line);
  border-bottom: 1px solid var(--plan-line);
}

.plan-happening-grid[data-visible-items="1"] { grid-template-columns: 1fr; }
.plan-social-decision, .plan-personal-task { min-width: 0; padding: 32px 38px 34px 0; }
.plan-personal-task { padding-right: 0; padding-left: 38px; border-left: 1px solid var(--plan-line); }
.plan-happening-grid[data-visible-items="1"] .plan-personal-task { padding-left: 0; border-left: 0; }
.plan-decision-heading { display: flex; align-items: start; justify-content: space-between; gap: 26px; }

.plan-social-decision h3,
.plan-personal-task h3 {
  margin: 8px 0 0;
  color: var(--plan-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.plan-vote-social { display: flex; align-items: center; gap: 10px; }
.plan-mini-avatars span { width: 27px; height: 27px; margin-left: -8px; border: 2px solid var(--plan-theme-surface); border-radius: 50%; font-size: 0.48rem; }
.plan-vote-social p { max-width: 130px; margin: 0; color: var(--plan-muted); font-size: 0.72rem; line-height: 1.4; text-align: right; }
.plan-vote-form fieldset { padding: 0; border: 0; margin: 22px 0 0; }
.plan-vote-options { display: grid; }

.plan-vote-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.plan-vote-option:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.plan-vote-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--plan-primary); }
.plan-vote-option-copy { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 12px; }
.plan-vote-option-name { color: var(--plan-ink); font-size: 0.86rem; font-weight: 600; }
.plan-vote-option-meter { display: block; overflow: hidden; height: 3px; background: rgba(255, 255, 255, 0.1); }
.plan-vote-option-meter > span { display: block; width: var(--vote-share); height: 100%; background: var(--plan-primary); }
.plan-vote-option-result { color: var(--plan-muted); font-size: 0.73rem; }
.plan-vote-controls, .plan-task-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; }

.plan-primary-action,
.plan-app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #17131c;
  background: var(--plan-primary);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.plan-primary-action:disabled { color: rgba(248, 243, 239, 0.4); background: rgba(255, 255, 255, 0.08); cursor: not-allowed; }
.plan-action-status { min-height: 20px; margin: 0; color: var(--plan-muted); font-size: 0.7rem; line-height: 1.45; }
.plan-task-meta { margin: 12px 0 0; color: var(--plan-primary); font-size: 0.78rem; font-weight: 600; }
.plan-task-state { display: inline-flex; margin: 16px 0 0; padding: 7px 10px; border-radius: 999px; color: var(--plan-primary); background: rgba(200, 178, 255, 0.11); font-size: 0.69rem; font-weight: 700; }
.plan-task-note { max-width: 430px; margin: 17px 0 0; color: var(--plan-muted); font-size: 0.84rem; line-height: 1.58; }

.plan-social-life {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: 74px;
  padding: 64px 0;
  border-bottom: 1px solid var(--plan-line);
}

.plan-social-heading h2 { max-width: 520px; margin-top: 12px; font-size: 2.7rem; }
.plan-participant-list { display: flex; align-items: center; padding-left: 10px; margin-top: 26px; }
.plan-participant { position: relative; margin-left: -10px; }
.plan-participant strong, .plan-participant p { display: none; }
.plan-participant-avatar { width: 46px; height: 46px; border: 2px solid var(--plan-theme-surface); border-radius: 50%; font-size: 0.66rem; }
.plan-participant:nth-child(2) .plan-participant-avatar { background: #a55e65; }
.plan-participant:nth-child(3) .plan-participant-avatar { background: #68777b; }
.plan-participant:nth-child(4) .plan-participant-avatar { background: #765d67; }

.plan-participant-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: -10px;
  border: 2px solid var(--plan-theme-surface);
  border-radius: 50%;
  color: var(--plan-ink);
  background: rgba(200, 178, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 700;
}

.plan-participant-summary { margin: 14px 0 0; color: var(--plan-muted); font-size: 0.8rem; }
.plan-recent-activity { align-self: end; }
.plan-recent-activity ol { padding: 0; margin: 18px 0 0; list-style: none; }

.plan-recent-activity li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--plan-muted);
  font-size: 0.82rem;
}

.plan-recent-activity li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.plan-activity-avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 0.5rem; }

.plan-tool-conexa {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 76px;
  padding: 64px 0 70px;
}

.plan-conexa-lead h2 { margin-top: 12px; font-size: 2.8rem; }
.plan-conexa-lead > p:last-child { margin: 20px 0 0; color: var(--plan-muted); font-size: 0.85rem; }
.plan-conexa-lead > p:last-child strong { color: var(--plan-ink); }
.plan-playlist-count { margin: 0 0 10px; color: var(--plan-muted); font-size: 0.74rem; text-align: right; }
.plan-conexa-songs { padding: 0; margin: 0; list-style: none; }

/**
 * Conexa presenta las canciones como aportaciones sociales y no como filas de una tabla.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-conexa-song {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  padding: 6px 0;
}

.plan-conexa-song + .plan-conexa-song { margin-top: 8px; }
.plan-conexa-song-index { display: none; }
.plan-conexa-song-copy strong, .plan-conexa-song-copy span { display: block; }
.plan-conexa-song-copy strong { color: var(--plan-ink); font-size: 0.84rem; font-weight: 600; }
.plan-conexa-song-copy span, .plan-conexa-song > span:last-child { color: var(--plan-muted); font-size: 0.7rem; }

.plan-app-continuation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
  min-height: 250px;
  padding: 52px 64px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.plan-app-continuation > img,
.plan-app-continuation-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-app-continuation > img { object-fit: cover; object-position: center; }
.plan-app-continuation-overlay { background: rgba(7, 6, 8, 0.66); }
.plan-app-copy, .plan-app-action { position: relative; z-index: 1; }
.plan-app-copy h2 { max-width: 680px; margin-top: 10px; font-size: 2.65rem; }
.plan-app-copy > p:last-child { max-width: 650px; margin: 14px 0 0; color: rgba(255, 248, 239, 0.78); font-size: 0.88rem; line-height: 1.6; }
.plan-app-action { min-width: 160px; color: #17131c; background: #fff8ef; }

.plan-share-status {
  position: fixed;
  z-index: 50;
  right: 28px;
  bottom: 26px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  background: #231f29;
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.plan-share-status.is-visible { opacity: 1; transform: translateY(0); }

/**
 * La franja social del hero da prioridad a la anfitriona y reúne a las personas en una fila.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-identity { bottom: 106px; }

.plan-people-summary {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
}

.plan-host {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  margin-top: 0;
}

.plan-host-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 248, 239, 0.72);
  border-radius: 50%;
  color: #fff;
  background: #756270;
  font-size: 0.62rem;
  font-weight: 700;
}

.plan-host p,
.plan-host span,
.plan-host strong { margin: 0; }
.plan-host p { display: grid; gap: 1px; }
.plan-host p span { color: rgba(255, 248, 239, 0.72); font-size: 0.66rem; }
.plan-host p strong { color: #fff; font-size: 0.84rem; }

.plan-identity .plan-attendance {
  position: static;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 0;
}

.plan-identity .plan-avatar-row span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.plan-identity .plan-attendance p { font-size: 0.72rem; }

.plan-cover-app-action {
  position: absolute;
  z-index: 3;
  right: 64px;
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  color: #17131c;
  background: #fff8ef;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plan-about-night {
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  align-items: center;
  gap: 62px;
  padding: 48px 0;
}

.plan-about-night h2 {
  max-width: 540px;
  margin-top: 12px;
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.02;
}

.plan-description-copy {
  max-width: 570px;
  margin-top: 20px;
  font-size: 0.86rem;
  line-height: 1.68;
}

.plan-about-image {
  justify-self: end;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

/**
 * La ausencia de fotografía complementaria convierte la introducción en una composición editorial completa.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-about-night--without-image {
  grid-template-columns: minmax(0, 1fr);
  padding: 56px 0 60px;
}

.plan-about-night--without-image .plan-about-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 92px;
  align-items: start;
}

.plan-about-night--without-image .plan-piece-label {
  grid-column: 1;
  grid-row: 1;
}

.plan-about-night--without-image h2 {
  grid-column: 1;
  grid-row: 2;
}

.plan-about-night--without-image .plan-description-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 610px;
  margin-top: 0;
  padding-top: 27px;
}

.plan-about-night--without-image .plan-inline-toggle {
  grid-column: 2;
  grid-row: 3;
}

.plan-night-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 72px;
  padding: 42px 0 46px;
}

.plan-context-heading { display: block; }
.plan-routa-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 0;
}

.plan-routa-timeline::before {
  top: 13px;
  right: auto;
  bottom: 21px;
  left: 10px;
  width: 1px;
  height: auto;
}

.plan-routa-event,
.plan-routa-event:nth-child(2),
.plan-routa-event:nth-child(3) {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-areas:
    "marker title time"
    "marker location time";
  column-gap: 14px;
  min-height: 78px;
  text-align: left;
}

.plan-routa-time {
  grid-area: time;
  margin: 1px 0 0;
  color: var(--plan-ink);
  font-size: 0.7rem;
}

.plan-routa-marker,
.plan-routa-event:nth-child(2) .plan-routa-marker,
.plan-routa-event:nth-child(3) .plan-routa-marker {
  grid-area: marker;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgba(200, 178, 255, 0.55);
  background: var(--plan-theme-surface);
  box-shadow: inset 0 0 0 5px var(--plan-theme-surface);
}

.plan-routa-event h3 {
  grid-area: title;
  font-size: 0.9rem;
}

.plan-routa-event p:last-child {
  grid-area: location;
  max-width: 330px;
  margin: 5px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
}

.plan-place { min-width: 0; margin: 0; }
.plan-place-copy { align-items: start; gap: 18px; margin-bottom: 16px; }
.plan-place-copy h2 {
  max-width: 470px;
  margin-top: 8px;
  font-size: clamp(1.8rem, 2.5vw, 2.65rem);
  line-height: 1;
}

.plan-place-copy > div > p:last-child { margin-top: 9px; font-size: 0.76rem; }
.plan-directions-link { padding-top: 23px; font-size: 0.72rem; }
.plan-map-frame { height: 210px; border-radius: 18px; }

.plan-happening { padding: 26px 0 32px; }
.plan-section-intro { margin-bottom: 14px; }
.plan-happening-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-social-decision,
.plan-personal-task { padding: 0; }
.plan-personal-task { border-left: 1px solid var(--plan-line); }

.plan-action-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 86px;
  padding: 14px 26px;
  border: 0;
  color: var(--plan-ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.plan-social-decision .plan-action-summary { padding-left: 0; }
.plan-action-summary > span:first-child { display: grid; gap: 4px; }
.plan-action-summary strong { font-size: 0.9rem; font-weight: 500; }
.plan-action-summary small { color: var(--plan-muted); font-size: 0.7rem; }
.plan-action-open-copy { color: var(--plan-primary); font-size: 0.68rem; font-weight: 700; }
.plan-action-detail { padding: 24px 26px 28px 0; border-top: 1px solid var(--plan-line); }
.plan-personal-task .plan-action-detail { padding-left: 26px; }

.plan-social-life {
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 72px;
  padding: 32px 0;
}

.plan-participant-list { margin-top: 16px; }
.plan-participant-avatar,
.plan-participant-more { width: 40px; height: 40px; }
.plan-participant-summary { margin-top: 10px; font-size: 0.72rem; }
/**
 * Convite mantiene el acceso a invitados cómodo sin convertirlo en un CTA protagonista.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-guests-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--plan-line);
  border-radius: 10px;
  margin-top: 12px;
  color: var(--plan-ink);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}
.plan-recent-activity { align-self: start; }
.plan-recent-activity ol { margin-top: 10px; }
.plan-recent-activity li { min-height: 38px; border-top: 0; font-size: 0.72rem; }
.plan-recent-activity li:last-child { border-bottom: 0; }
.plan-activity-avatar { width: 24px; height: 24px; }

.plan-tool-conexa {
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 72px;
  padding: 34px 0 38px;
}

.plan-playlist-title {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
}

.plan-playlist-title strong { color: var(--plan-ink); font-size: 0.9rem; font-weight: 500; }
.plan-playlist-title > span { color: var(--plan-muted); font-size: 0.7rem; }
.plan-playlist-count { margin-bottom: 4px; }
.plan-conexa-song { min-height: 46px; }

.plan-app-continuation {
  width: 100%;
  min-height: 178px;
  padding: 30px 56px 30px max(360px, calc((100vw - 1320px) / 2 + 330px));
  border-radius: 0;
}

.plan-app-continuation > img {
  right: auto;
  width: min(330px, 25vw);
  object-position: center;
}

.plan-app-continuation-overlay {
  background:
    linear-gradient(90deg, rgba(7, 6, 8, 0.06) 0 20%, rgba(7, 6, 8, 0.94) 31% 100%),
    rgba(7, 6, 8, 0.25);
}

/**
 * El cierre sin fotografía mantiene la atmósfera del plan sin simular un recurso visual inexistente.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-app-continuation--without-image {
  padding-right: max(64px, calc((100vw - 1320px) / 2 + 64px));
  padding-left: max(64px, calc((100vw - 1320px) / 2 + 64px));
  background: var(--plan-theme-deep);
}

.plan-app-continuation--without-image .plan-app-continuation-overlay {
  background: linear-gradient(100deg, rgba(255, 248, 239, 0.025), rgba(200, 178, 255, 0.08));
}

.plan-app-copy h2 { margin-top: 8px; font-size: 2rem; }
.plan-app-copy > p:last-child { max-width: 560px; margin-top: 9px; font-size: 0.76rem; }
.plan-app-action { min-width: 150px; }

/**
 * La escala tipográfica del cuerpo mantiene una jerarquía legible y fluida en desktop.
 * ✅ LastUpdate: 19/08/2026
 */
.plan-body-canvas {
  --plan-type-label: clamp(0.78rem, 0.72rem + 0.08vw, 0.82rem);
  --plan-type-caption: clamp(0.86rem, 0.8rem + 0.1vw, 0.92rem);
  --plan-type-meta: clamp(0.92rem, 0.85rem + 0.12vw, 1rem);
  --plan-type-body: clamp(0.98rem, 0.9rem + 0.15vw, 1.06rem);
  --plan-type-item-title: clamp(1.08rem, 0.98rem + 0.18vw, 1.2rem);
  --plan-type-section-title: clamp(2.35rem, 1.95rem + 0.9vw, 3rem);
}

.plan-piece-label {
  font-size: var(--plan-type-label);
  line-height: 1.4;
}

.plan-description-copy {
  font-size: var(--plan-type-body);
  line-height: 1.7;
}

.plan-about-night h2 {
  font-size: var(--plan-type-section-title);
}

.plan-routa-event,
.plan-routa-event:nth-child(2),
.plan-routa-event:nth-child(3) {
  min-height: 88px;
}

.plan-routa-time {
  font-size: var(--plan-type-caption);
  line-height: 1.45;
}

.plan-routa-event h3 {
  font-size: var(--plan-type-item-title);
  line-height: 1.32;
}

.plan-routa-event p:last-child {
  font-size: var(--plan-type-caption);
  line-height: 1.5;
}

.plan-place-copy h2 {
  font-size: clamp(2.25rem, 1.95rem + 0.65vw, 2.75rem);
  line-height: 1.02;
}

.plan-place-copy > div > p:last-child {
  font-size: var(--plan-type-meta);
  line-height: 1.55;
}

.plan-directions-link,
.plan-action-open-copy,
.plan-guests-action,
.plan-playlist-count {
  font-size: var(--plan-type-label);
}

.plan-action-summary strong,
.plan-playlist-title strong {
  font-size: var(--plan-type-item-title);
  line-height: 1.35;
}

.plan-action-summary small,
.plan-participant-summary,
.plan-recent-activity li,
.plan-playlist-title > span {
  font-size: var(--plan-type-caption);
  line-height: 1.5;
}

.plan-social-decision h3,
.plan-personal-task h3 {
  font-size: clamp(1.8rem, 1.55rem + 0.45vw, 2.15rem);
}

.plan-vote-social p,
.plan-vote-option-result,
.plan-action-status,
.plan-task-state,
.plan-conexa-song-index {
  font-size: var(--plan-type-label);
}

.plan-vote-option-name,
.plan-task-meta,
.plan-task-note {
  font-size: var(--plan-type-caption);
}

.plan-conexa-song-copy strong {
  font-size: var(--plan-type-item-title);
  line-height: 1.4;
}

.plan-conexa-song-copy span,
.plan-conexa-song > span:last-child,
.plan-app-copy > p:last-child {
  font-size: var(--plan-type-caption);
  line-height: 1.5;
}

button:focus-visible,
a:focus-visible,
input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/**
 * La adaptación responsive conserva la dirección editorial aprobada y reorganiza el plan sin reducir su legibilidad.
 * ✅ LastUpdate: 19/08/2026
 */
@media (max-width: 1179px) {
  :root { --plan-content-width: min(100% - 72px, 1040px); }

  html,
  body { min-width: 0; }

  .product-header-inner {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    padding: 24px 36px;
  }

  .product-wordmark { width: 104px; min-height: 44px; }
  .plan-cover { height: 680px; }
  .plan-identity { left: 40px; max-width: 58vw; }
  .plan-cover-app-action { right: 40px; }

  .plan-about-night {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 44px;
  }

  .plan-about-night--without-image .plan-about-copy {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    column-gap: 60px;
  }

  .plan-night-context,
  .plan-social-life,
  .plan-tool-conexa { gap: 48px; }

  .plan-social-life { grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr); }

  .plan-app-continuation {
    padding-right: 36px;
    padding-left: 300px;
  }

  .plan-app-continuation--without-image {
    padding-right: 36px;
    padding-left: 36px;
  }
}

@media (max-width: 900px) {
  :root { --plan-content-width: calc(100% - 56px); }

  .plan-cover { height: 700px; }
  .plan-cover-photo { object-position: 58% 52%; }
  .plan-identity { width: min(620px, calc(100% - 80px)); max-width: none; }
  .plan-identity h1 { font-size: clamp(4.65rem, 10vw, 5.45rem); }

  .plan-about-night,
  .plan-night-context,
  .plan-social-life,
  .plan-tool-conexa { grid-template-columns: minmax(0, 1fr); }

  .plan-about-night { gap: 34px; }
  .plan-about-image { justify-self: stretch; width: 100%; max-width: none; }

  .plan-about-night--without-image .plan-about-copy {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 48px;
  }

  .plan-night-context { gap: 42px; }
  .plan-place { padding-top: 40px; border-top: 1px solid var(--plan-line); }
  .plan-place-copy h2 { max-width: 680px; }

  .plan-happening-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-personal-task { border-top: 1px solid var(--plan-line); border-left: 0; }
  .plan-social-decision .plan-action-summary,
  .plan-personal-task .plan-action-summary { padding-right: 0; padding-left: 0; }
  .plan-action-detail,
  .plan-personal-task .plan-action-detail { padding-right: 0; padding-left: 0; }

  .plan-social-life { gap: 42px; }
  .plan-recent-activity { align-self: stretch; }
  .plan-tool-conexa { gap: 30px; }

  .plan-app-continuation {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 260px;
  }

  .plan-app-continuation > img { width: 230px; object-position: left center; }

  .plan-app-continuation--without-image {
    padding-left: 36px;
  }
}

@media (max-width: 720px) {
  :root { --plan-content-width: calc(100% - 40px); }

  .product-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 20px;
  }

  .product-wordmark { width: 96px; min-height: 44px; }
  .product-context { display: none; }
  .share-plan-button { min-height: 44px; padding: 0 17px; border-radius: 11px; }

  .plan-cover { height: 780px; min-height: 100svh; }
  .plan-cover-photo {
    inset: 82px 0 auto;
    height: min(110vw, 470px);
    object-position: right center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 78%, transparent 100%);
  }
  .plan-cover-atmosphere {
    background:
      linear-gradient(180deg, rgba(5, 4, 5, 0.78) 0%, rgba(5, 4, 5, 0.08) 28%, rgba(5, 4, 5, 0.18) 45%, rgba(5, 4, 5, 0.94) 75%, #090809 100%),
      linear-gradient(90deg, rgba(5, 4, 5, 0.32), transparent 68%);
  }

  .plan-identity {
    right: 20px;
    bottom: 92px;
    left: 20px;
    width: auto;
    max-width: none;
  }

  .plan-kicker { font-size: 0.9rem; }
  .plan-identity h1 { margin-bottom: 8px; font-size: clamp(3rem, 15vw, 4rem); line-height: 0.88; }
  .plan-tagline { max-width: 340px; font-size: 1.04rem; line-height: 1.25; }
  .plan-metadata { margin-top: 15px; }
  .plan-metadata-primary { font-size: 0.78rem; letter-spacing: 0.055em; }
  .plan-metadata-place { max-width: 340px; margin-top: 6px !important; font-size: 0.76rem; line-height: 1.4; }

  .plan-people-summary { gap: 17px; margin-top: 15px; }
  .plan-host { gap: 8px; }
  .plan-host-avatar { width: 34px; height: 34px; }
  .plan-host p span { font-size: 0.58rem; }
  .plan-host p strong { font-size: 0.74rem; }
  .plan-identity .plan-attendance { gap: 9px; }
  .plan-identity .plan-avatar-row span { width: 30px; height: 30px; }
  .plan-identity .plan-attendance p { font-size: 0.64rem; white-space: nowrap; }

  .plan-cover-app-action {
    right: 20px;
    bottom: 20px;
    left: 20px;
    min-width: 0;
    min-height: 52px;
  }

  .plan-body-canvas {
    --plan-type-label: 0.72rem;
    --plan-type-caption: 0.84rem;
    --plan-type-meta: 0.9rem;
    --plan-type-body: 0.98rem;
    --plan-type-item-title: 1.06rem;
    --plan-type-section-title: clamp(2.15rem, 10vw, 2.65rem);
  }

  .plan-about-night { gap: 28px; padding: 42px 0; }
  .plan-about-night h2 { margin-top: 10px; }
  .plan-description-copy { margin-top: 17px; line-height: 1.62; }
  .plan-about-image { border-radius: 15px; }

  .plan-about-night--without-image { padding: 44px 0 46px; }
  .plan-about-night--without-image .plan-about-copy { display: block; }
  .plan-about-night--without-image .plan-description-copy { max-width: none; margin-top: 18px; padding-top: 0; }
  .plan-about-night--without-image .plan-inline-toggle { margin-top: 12px; }

  .plan-inline-toggle,
  .plan-text-action { min-height: 44px; }

  .plan-night-context { gap: 36px; padding: 36px 0 40px; }
  .plan-routa-timeline { margin-top: 22px; }
  .plan-routa-timeline::before { left: 9px; }
  .plan-routa-event,
  .plan-routa-event:nth-child(2),
  .plan-routa-event:nth-child(3) {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    column-gap: 11px;
    min-height: 92px;
  }
  .plan-routa-marker,
  .plan-routa-event:nth-child(2) .plan-routa-marker,
  .plan-routa-event:nth-child(3) .plan-routa-marker { width: 18px; height: 18px; }
  .plan-routa-time { padding-left: 8px; white-space: nowrap; }
  .plan-routa-event p:last-child { margin-top: 4px; }

  .plan-place { padding-top: 34px; }
  .plan-place-copy { display: grid; gap: 12px; margin-bottom: 18px; }
  .plan-place-copy h2 { max-width: none; font-size: clamp(2rem, 10vw, 2.45rem); }
  .plan-directions-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 0; }
  .plan-map-frame { height: 235px; border-radius: 15px; }

  .plan-happening { padding: 34px 0 38px; }
  .plan-section-intro { margin-bottom: 10px; }
  .plan-action-summary { min-height: 92px; gap: 14px; padding-top: 17px; padding-bottom: 17px; }
  .plan-action-summary > span:first-child { gap: 5px; }
  .plan-action-open-copy { flex: 0 0 auto; }
  .plan-action-detail,
  .plan-personal-task .plan-action-detail { padding-top: 22px; padding-bottom: 26px; }
  .plan-decision-heading { display: grid; gap: 16px; }
  .plan-vote-social { justify-content: flex-start; }
  .plan-vote-social p { max-width: none; text-align: left; }
  .plan-vote-option { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; min-height: 60px; }
  .plan-vote-option-copy { grid-template-columns: minmax(72px, 0.72fr) minmax(54px, 1fr); gap: 9px; }
  .plan-vote-controls,
  .plan-task-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .plan-primary-action { width: 100%; }
  .plan-action-status { min-height: 0; }

  .plan-social-life { gap: 34px; padding: 38px 0; }
  .plan-recent-activity { padding-top: 32px; border-top: 1px solid var(--plan-line); }
  .plan-recent-activity li { grid-template-columns: 28px minmax(0, 1fr); min-height: 48px; }

  .plan-tool-conexa { gap: 24px; padding: 36px 0 40px; }
  .plan-playlist-title { margin-top: 14px; }
  .plan-playlist-count { margin-bottom: 8px; text-align: left; }
  .plan-conexa-song { gap: 12px; min-height: 58px; }
  .plan-conexa-song > span:last-child { max-width: 100px; text-align: right; }

  .plan-app-continuation {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 390px;
    padding: 190px 20px 26px;
  }
  .plan-app-continuation > img { right: 0; width: 100%; height: 190px; object-position: left center; }
  .plan-app-continuation-overlay {
    background: linear-gradient(180deg, rgba(7, 6, 8, 0.06) 0 22%, rgba(7, 6, 8, 0.98) 48% 100%);
  }
  .plan-app-copy h2 { font-size: 2rem; line-height: 1.03; }
  .plan-app-copy > p:last-child { margin-top: 10px; }
  .plan-app-action { width: 100%; min-height: 50px; }

  .plan-app-continuation--without-image {
    min-height: 290px;
    padding: 34px 20px 28px;
  }
  .plan-app-continuation--without-image .plan-app-continuation-overlay {
    background: linear-gradient(135deg, rgba(255, 248, 239, 0.025), rgba(200, 178, 255, 0.08));
  }

  .plan-share-status { right: 16px; bottom: 16px; left: 16px; text-align: center; }
}

@media (max-width: 359px) {
  :root { --plan-content-width: calc(100% - 32px); }
  .product-header-inner { padding-right: 16px; padding-left: 16px; }
  .product-wordmark { width: 88px; }
  .share-plan-button { padding-right: 14px; padding-left: 14px; font-size: 0.73rem; }
  .plan-identity { right: 16px; left: 16px; }
  .plan-identity h1 { font-size: 3rem; }
  .plan-people-summary { gap: 12px; }
  .plan-identity .plan-avatar-row span { width: 28px; height: 28px; }
  .plan-identity .plan-attendance p { font-size: 0.6rem; }
  .plan-cover-app-action { right: 16px; left: 16px; }
  .plan-vote-option-copy { grid-template-columns: minmax(66px, 0.72fr) minmax(46px, 1fr); }
  .plan-conexa-song > span:last-child { max-width: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
