:root {
  --bg: #f7f1e7;
  --paper: #fffaf0;
  --white: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --soft-muted: #f8fafc;
  --brand: #93612f;
  --brand-dark: #5f3b1c;
  --brand-soft: #fff3d1;
  --gold: #efbf62;
  --line: rgba(30, 41, 59, .13);
  --event: #dc2626;
  --event-soft: #fff1f2;
  --today: #2563eb;
  --today-soft: #dbeafe;
  --green: #166534;
  --green-soft: #dcfce7;
  --violet: #6d28d9;
  --violet-soft: #ede9fe;
  --weekend: #e5e7eb;
  --shadow: 0 24px 60px rgba(45, 35, 20, .13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 191, 98, .45), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(147, 97, 47, .14), transparent 28rem),
    var(--bg);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: .88rem;
}

.eyebrow::before {
  content: "✦";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  letter-spacing: -.052em;
  line-height: 1.02;
}

.hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}

.today-panel {
  padding: 20px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.today-label {
  display: block;
  color: var(--brand);
  font-weight: 1000;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .075em;
  margin-bottom: 8px;
}

.today-panel strong {
  display: block;
  line-height: 1.3;
  font-size: 1.12rem;
}

.mini-btn,
.back-btn,
.nav-btn {
  border: 0;
  cursor: pointer;
  font-weight: 1000;
}

.mini-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 0 14px;
  box-shadow: 0 10px 22px rgba(147, 97, 47, .22);
}

.mini-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.calendar-shell,
.detail-card {
  background: rgba(255, 250, 240, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

.calendar-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.calendar-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.nav-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(45, 35, 20, .1);
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
  gap: 10px;
  margin-bottom: 10px;
}

.weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calendar-grid {
  gap: 10px;
}

.day {
  position: relative;
  display: block;
  width: 100%;
  min-height: 136px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: default;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.day.empty {
  visibility: hidden;
}

.day.has-devotional {
  background: linear-gradient(180deg, #fff6d7, #fffaf0);
  cursor: pointer;
}

.day.has-devotional:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 97, 47, .38);
  box-shadow: 0 16px 34px rgba(45, 35, 20, .14);
}

.day.weekend {
  background: var(--weekend);
  color: #64748b;
}

.day.today {
  border: 2px solid var(--today);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.day.today::before {
  content: "Hoy";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--today);
  color: white;
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.day-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(147, 97, 47, .12);
  color: var(--brand-dark);
  font-weight: 1000;
}

.day-title {
  display: block;
  margin-top: 12px;
  font-weight: 1000;
}

.day-topic {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: .88rem;
  line-height: 1.35;
}

.event-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--event-soft);
  color: #991b1b;
  font-size: .72rem;
  font-weight: 1000;
}

.day.has-event {
  border-color: rgba(220, 38, 38, .35);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .92rem;
}

.legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  line-height: 1.25;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.devotional {
  background: var(--gold);
}

.dot.current {
  background: var(--today);
}

.dot.weekend {
  background: #cbd5e1;
}

.dot.event {
  background: var(--event);
}

.detail-view {
  animation: fadeIn .18s ease;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(45, 35, 20, .1);
}

.detail-card {
  padding: 28px;
}

.detail-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.detail-date {
  color: var(--brand);
  font-weight: 1000;
  margin-bottom: 8px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.detail-topic {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1.05rem;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 1000;
}

.video-wrap {
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.meditation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  gap: 16px;
  align-items: start;
}

.card-stack {
  display: grid;
  gap: 16px;
}

.info-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 1rem;
}

.info-card p,
.info-card li {
  color: #536987;
  line-height: 1.72;
}

.info-card p {
  margin-bottom: 0;
}

.idea-card {
  background: linear-gradient(180deg, #fff7db, #ffffff);
  border-color: rgba(147, 97, 47, .18);
}

.teaching-card {
  background: #ffffff;
}

.application-card {
  background: #fbfdff;
}

.verses-card {
  background: #ffffff;
}

.verse-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.verse-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-muted);
}

.verse-ref {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-weight: 1000;
}

.verse-phrase {
  display: block;
  color: #536987;
  line-height: 1.55;
}

.reflection-card {
  background: var(--brand);
  color: white;
  border-color: transparent;
}

.reflection-card h3,
.reflection-card p {
  color: white;
}

.prayer-card {
  background: var(--violet-soft);
  border-color: rgba(109, 40, 217, .14);
}

.action-card {
  background: var(--green-soft);
  border-color: rgba(22, 101, 52, .16);
}

.event-card {
  background: var(--event-soft);
  border-color: rgba(220, 38, 38, .22);
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(147, 97, 47, .12);
  color: var(--brand-dark);
  font-size: .9rem;
}

.reflection-card .section-icon {
  background: rgba(255,255,255,.18);
  color: white;
}

.prayer-card .section-icon {
  background: rgba(109, 40, 217, .12);
  color: var(--violet);
}

.action-card .section-icon {
  background: rgba(22, 101, 52, .12);
  color: var(--green);
}

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

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 1000;
  background: var(--brand);
  color: white;
  cursor: pointer;
}

.action-link.secondary {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #94a3b8;
}

.loading,
.error {
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding: 20px 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .calendar-shell,
  .detail-card {
    border-radius: 24px;
    padding: 14px;
  }

  .calendar-header {
    gap: 10px;
  }

  .calendar-header p {
    display: none;
  }

  .weekdays {
    display: none;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .day,
  .day.empty {
    visibility: visible;
    min-height: auto;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
  }

  .day.empty {
    display: none;
  }

  .day.today::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .day-title,
  .day-topic {
    margin-top: 0;
  }

  .detail-top,
  .meditation-layout {
    grid-template-columns: 1fr;
  }

  .source-pill {
    justify-self: start;
    white-space: normal;
  }

  .detail-card {
    padding: 18px;
  }

  .info-card {
    border-radius: 20px;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .app {
    width: min(100% - 16px, 1180px);
    padding: 16px 0;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .calendar-header h2 {
    font-size: 1.25rem;
  }

  .nav-btn {
    width: 42px;
    height: 42px;
  }

  .video-wrap {
    border-radius: 18px;
  }

  .detail-title {
    font-size: 2rem;
  }

  .actions {
    flex-direction: column;
  }

  .action-link {
    width: 100%;
  }
}

/* Ajuste de detalle devocional: menos cajas y mejor distribución */
.devotional-detail-layout {
  display: grid;
  gap: 16px;
}

.two-column-row {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .96fr);
  gap: 16px;
  align-items: stretch;
}

.wide-card {
  width: 100%;
}

.summary-card {
  background: #ffffff;
}

.summary-card p,
.application-card p,
.reflection-card p,
.prayer-card p,
.action-card p {
  font-size: 1rem;
}

.summary-card p {
  line-height: 1.82;
}

.application-card p {
  line-height: 1.78;
}

.reflection-card,
.prayer-card,
.action-card {
  padding: 20px;
}

.verses-card .verse-list {
  gap: 10px;
}

/* Mantiene compatibilidad si hubiera vistas antiguas en caché */
.meditation-layout {
  display: block;
}

@media (max-width: 900px) {
  .two-column-row {
    grid-template-columns: 1fr;
  }

  .summary-card p,
  .application-card p {
    font-size: .98rem;
  }
}

/* Vista móvil tipo calendario: mantiene 7 columnas y usa referencias cortas */
@media (max-width: 900px) {
  .weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 7px;
  }

  .weekdays span {
    font-size: .66rem;
    letter-spacing: .02em;
  }

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

  .day,
  .day.empty {
    visibility: visible;
    display: block;
    min-height: 72px;
    padding: 6px 5px;
    border-radius: 13px;
  }

  .day.empty {
    visibility: hidden;
  }

  .day.has-devotional:hover {
    transform: none;
    box-shadow: none;
  }

  .day-number {
    width: 24px;
    height: 23px;
    border-radius: 8px;
    font-size: .72rem;
  }

  .day-title {
    margin-top: 5px;
    font-size: .7rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .day-topic {
    display: none;
  }

  .event-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    overflow: hidden;
  }

  .day.today {
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
  }

  .day.today::before {
    content: "";
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    transform: none;
  }

  .day.today.has-event::before {
    right: 18px;
  }

  .calendar-header {
    padding-bottom: 12px;
  }

  .legend {
    gap: 10px;
    font-size: .82rem;
  }
}

@media (max-width: 430px) {
  .calendar-shell {
    padding: 10px;
  }

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

  .day,
  .day.empty {
    min-height: 66px;
    padding: 5px 4px;
    border-radius: 11px;
  }

  .day-number {
    width: 22px;
    height: 21px;
    font-size: .66rem;
  }

  .day-title {
    font-size: .62rem;
    line-height: 1.05;
  }

  .weekdays span {
    font-size: .58rem;
  }

  .legend {
    font-size: .78rem;
  }
}

@media (max-width: 360px) {
  .day,
  .day.empty {
    min-height: 60px;
  }

  .day-title {
    font-size: .58rem;
  }
}

/* V5: calendario móvil con nombres completos y estilo tipo agenda */
@media (max-width: 900px) {
  .weekdays {
    display: none !important;
  }

  .calendar-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .day,
  .day.empty {
    visibility: visible;
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 12px !important;
    border-radius: 18px !important;
  }

  .day.empty {
    display: none !important;
  }

  .day.has-devotional:hover {
    transform: none;
    box-shadow: none;
  }

  .day-number {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    font-size: .86rem !important;
  }

  .day-title {
    margin-top: 0 !important;
    font-size: .96rem !important;
    line-height: 1.22 !important;
    overflow-wrap: normal !important;
  }

  .day-topic {
    display: block !important;
    margin-top: 3px !important;
    font-size: .82rem !important;
    line-height: 1.25 !important;
  }

  .event-badge {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    font-size: .7rem !important;
    overflow: visible !important;
    margin-top: 7px !important;
  }

  .day.today::before {
    content: "Hoy" !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    font-size: .68rem !important;
  }

  .day.today.has-event::before {
    right: 12px !important;
  }
}

@media (max-width: 430px) {
  .day,
  .day.empty {
    grid-template-columns: 42px 1fr;
    padding: 10px 11px !important;
  }

  .day-title {
    font-size: .9rem !important;
  }

  .day-topic {
    font-size: .78rem !important;
  }
}

/* V5: distribución limpia de la vista devocional */
.improved-detail-layout {
  display: grid;
  gap: 16px;
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.left-flow,
.right-flow {
  display: grid;
  gap: 16px;
  align-items: start;
}

.bottom-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bottom-cards .info-card {
  min-height: 100%;
}

.summary-card p {
  line-height: 1.8;
}

.application-card p {
  line-height: 1.78;
}

.video-empty {
  display: grid;
  place-items: center;
  color: #cbd5e1;
  text-align: center;
}

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

.video-empty strong {
  color: white;
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .content-columns,
  .bottom-cards {
    grid-template-columns: 1fr;
  }
}

/* V6: aplicación a todo el ancho + 4 versículos en 2 columnas */
.improved-detail-layout .application-card,
.improved-detail-layout .verses-card,
.improved-detail-layout .summary-card,
.improved-detail-layout .event-card {
  width: 100%;
}

.verse-list-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.verse-list-two-columns .verse-item {
  height: 100%;
}

@media (max-width: 900px) {
  .verse-list-two-columns {
    grid-template-columns: 1fr;
  }
}

/* V7: menos texto arriba, mejor respiración en móvil y sin mención de fuente */
.hero-copy {
  max-width: 860px;
}

@media (max-width: 900px) {
  .hero {
    gap: 18px;
    margin-bottom: 18px;
  }

  .hero-copy {
    padding-top: 4px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    margin-bottom: 14px;
    line-height: 1.04;
  }

  .hero p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.65;
  }

  .today-panel {
    margin-top: 4px;
    padding: 18px;
  }

  .back-btn {
    margin-bottom: 14px;
  }

  .detail-top {
    gap: 12px;
    margin-bottom: 16px;
  }

  .detail-date {
    margin-bottom: 10px;
    font-size: 1.02rem;
  }

  .detail-title {
    line-height: 1.06;
    margin-bottom: 8px;
  }

  .detail-topic {
    margin-top: 6px;
    line-height: 1.4;
  }

  .source-pill {
    font-size: .8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .app {
    padding-top: 18px;
  }

  .hero {
    gap: 16px;
    margin-bottom: 16px;
  }

  .hero-copy {
    padding-top: 6px;
  }

  h1 {
    font-size: 2.05rem;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: .98rem;
    line-height: 1.6;
  }

  .today-panel {
    padding: 16px;
  }

  .detail-card {
    padding: 16px;
  }

  .detail-top {
    margin-bottom: 14px;
  }

  .detail-title {
    font-size: 2.05rem;
  }

  .source-pill {
    align-self: start;
  }
}

/* V8: navegación entre devocionales */
.detail-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.detail-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.detail-nav-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 97, 47, .28);
  box-shadow: 0 12px 26px rgba(45, 35, 20, .08);
}

.detail-nav-btn strong,
.detail-nav-label {
  display: block;
}

.detail-nav-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .01em;
  margin-bottom: 5px;
}

.detail-nav-btn strong {
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.25;
}

.detail-nav-btn-next {
  text-align: right;
}

@media (max-width: 900px) {
  .detail-nav {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .detail-nav-btn,
  .detail-nav-btn-next {
    text-align: left;
  }
}

/* V9: ayuda rápida colapsable en móvil */
.help-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(147, 97, 47, .18);
  border-radius: 999px;
  background: rgba(255, 247, 219, .9);
  color: var(--brand-dark);
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}

.hero-help {
  display: block;
}

@media (max-width: 900px) {
  .help-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }

  .hero-help {
    display: none;
  }

  .hero-help.is-open {
    display: block;
  }

  .hero-help p {
    margin-top: 2px;
    margin-bottom: 0;
  }

  /* En móvil, mantener anterior y siguiente en 2 columnas */
  .detail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .detail-nav-btn,
  .detail-nav-btn-next {
    text-align: left;
    padding: 12px 12px;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .detail-nav-label {
    font-size: .76rem;
    margin-bottom: 4px;
  }

  .detail-nav-btn strong {
    font-size: .92rem;
    line-height: 1.2;
  }
}

@media (max-width: 430px) {
  .detail-nav {
    gap: 8px;
  }

  .detail-nav-btn,
  .detail-nav-btn-next {
    padding: 11px 10px;
    min-height: 76px;
    border-radius: 16px;
  }

  .detail-nav-label {
    font-size: .72rem;
  }

  .detail-nav-btn strong {
    font-size: .86rem;
  }
}

/* V10: tipografía más amigable + ayuda rápida inline + navegación compacta */
body {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, .detail-title, .calendar-header h2, .today-panel strong, .day-title, .back-btn, .action-link, .mini-btn {
  font-family: "Poppins", "Nunito Sans", system-ui, sans-serif;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.eyebrow {
  margin-bottom: 0;
}

.help-toggle {
  margin-bottom: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: .88rem;
}

.hero-help p {
  font-size: 1rem;
}

.info-card p,
.info-card li,
.detail-topic,
.hero p,
.day-topic {
  letter-spacing: .003em;
}

@media (max-width: 900px) {
  .hero-topline {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .help-toggle {
    min-height: 34px;
    padding: 0 11px;
    font-size: .82rem;
  }

  .detail-nav {
    gap: 8px;
  }

  .detail-nav-btn,
  .detail-nav-btn-next {
    min-height: 64px !important;
    padding: 10px 11px !important;
    border-radius: 15px;
  }

  .detail-nav-label {
    font-size: .7rem;
    margin-bottom: 2px;
  }

  .detail-nav-btn strong {
    font-size: .84rem;
    line-height: 1.15;
  }
}

@media (max-width: 430px) {
  .help-toggle {
    min-height: 32px;
    padding: 0 10px;
    font-size: .78rem;
  }

  .detail-nav-btn,
  .detail-nav-btn-next {
    min-height: 58px !important;
    padding: 9px 10px !important;
  }

  .detail-nav-label {
    font-size: .67rem;
  }

  .detail-nav-btn strong {
    font-size: .79rem;
  }
}

/* V11: compartir devocional por URL única */
.action-link.share-link {
  background: #166534;
  color: white;
}

.action-link.share-link:disabled {
  opacity: .75;
  cursor: default;
}

@media (max-width: 520px) {
  .action-link.share-link {
    order: -1;
  }
}

/* Enlaces a lectura bíblica externa */
.verse-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 97, 47, .28);
  transition: color .15s ease, border-color .15s ease;
}

.verse-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.verse-link span[aria-hidden="true"] {
  font-size: .8em;
  opacity: .72;
}
