:root {
  --ink: #1b1b1a;
  --paper: #f4f0e9;
  --red: #b93232;
  --red-hover: #982323;
  --cream: #e9e0d2;
  --cream-light: #ede6d9;
  --line: rgba(27, 27, 26, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* Header */
.story-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(244, 240, 233, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.mini-brand img {
  height: 28px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.mini-brand:hover img {
  transform: scale(1.06);
}

.mini-brand span span {
  color: var(--red);
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.header-author-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.header-author-btn:hover {
  background: rgba(185, 50, 50, 0.08);
  transform: translateY(-1px);
}

.header-contact-btn {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}

.header-contact-btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}

/* Scenes & Layout */
.scene {
  min-height: 100vh;
  padding: 140px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.story-width {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.story-width.narrow {
  width: min(100%, 780px);
  margin: 0 auto;
  text-align: center;
}

.scene-dark {
  background: var(--ink);
  color: var(--paper);
}

.scene-paper {
  background: var(--paper);
  color: var(--ink);
}

.scene-red {
  background: var(--red);
  color: #fff;
}

/* Opening Section (Hero) */
.opening {
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 90px;
}

/* Logo principal: borde circular refinado e iluminación de fondo */
.opening-logo {
  width: clamp(250px, 34vw, 360px);
  height: clamp(250px, 34vw, 360px);
  padding: 14px;
  background: #fdfbf7;
  border-radius: 50%;
  margin: 16px auto 28px;
  border: 3px solid rgba(233, 178, 169, 0.6);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

/* Iluminado de fondo (Halo resplandeciente) */
.opening-logo::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1.5px solid rgba(233, 178, 169, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(233, 178, 169, 0.12), 0 0 55px rgba(233, 178, 169, 0.45);
  opacity: 0.85;
  transform: scale(1);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.opening-logo.visible::before {
  animation: logoHalo 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.opening-logo:hover::before {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 0 10px rgba(233, 178, 169, 0.18), 0 0 70px rgba(233, 178, 169, 0.6);
}

.opening-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.opening-logo.visible img {
  animation: logoDropIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.opening-logo:hover img {
  transform: scale(1.03);
}

@keyframes logoDropIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes logoHalo {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  65% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}

.opening h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.3rem, 6.5vw, 5.8rem);
  line-height: 1.1;
  max-width: 950px;
  margin: 16px auto 20px;
  text-align: center;
  font-weight: 700;
}

.main-intro {
  max-width: 820px;
  margin: 0 auto 24px;
  color: #f4f0e9;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  text-align: center;
}

.main-intro strong {
  color: #fff;
}

.opening-line {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  margin: 0 auto 20px;
  max-width: 850px;
  text-align: center;
  line-height: 1.4;
  color: #f5ede6;
}

.hero-analysis {
  max-width: 850px;
  margin: 24px auto 0;
  color: #e3dcd2;
  font-size: clamp(0.96rem, 1.5vw, 1.12rem);
  line-height: 1.68;
  text-align: center;
}

.hero-analysis strong {
  color: #fff;
}

.hero-analysis em {
  color: #e9b2a9;
}

/* Recuadro unificado para reflexiones (idéntico en todas las secciones) */
.reflection-box {
  margin: 32px auto;
  padding: 24px 32px;
  max-width: 820px;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  background: var(--cream-light);
  border: 1px solid rgba(185, 50, 50, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.reflection-box p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.08rem, 2.1vw, 1.38rem);
  line-height: 1.58;
  color: #2e2621 !important;
  margin: 0 !important;
  max-width: 100% !important;
  text-align: center;
}

.scene-dark .reflection-box {
  background: #ede6d9;
  border: 1px solid rgba(226, 122, 117, 0.55);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.scene-dark .reflection-box p {
  color: #2e2621 !important;
}

.scene-paper .reflection-box {
  background: var(--cream-light);
  border: 1px solid rgba(185, 50, 50, 0.32);
  box-shadow: 0 8px 24px rgba(27, 27, 26, 0.06);
}

.scene-paper .reflection-box p {
  color: #2e2621 !important;
}

/* Story Sections */
.story-section {
  min-height: 100vh;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--red);
  margin: 0 auto 24px;
  text-transform: uppercase;
  text-align: center;
}

.scene-red .section-label,
.scene-dark .section-label {
  color: #f0b4aa;
}

.story-section h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.9rem, 4.8vw, 3.6rem);
  line-height: 1.2;
  margin: 0 auto 28px;
  max-width: 860px;
  text-align: center;
}

.story-section p {
  max-width: 840px;
  margin: 0 auto 24px;
  text-align: center;
}

.story-section .lead {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  margin: 0 auto 32px;
  max-width: 840px;
  text-align: center;
  line-height: 1.6;
}

.highlight {
  margin: 32px auto 0 !important;
  font-weight: 400;
  font-size: 1.05rem;
  max-width: 820px !important;
  text-align: center;
}

/* Sección 3: Manifiesto */
.manifesto-item {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-item h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  margin: 0 auto 12px;
  text-align: center;
}

.manifesto-item p {
  margin: 0 auto;
  color: #fff0eb;
  max-width: 780px;
  text-align: center;
}

/* Sección 4: Oferta */
.offer-list {
  margin: 36px auto 0;
  max-width: 800px;
  text-align: center;
}

.offer-list p {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  text-align: center;
  max-width: 780px;
}

.investment {
  margin: 36px auto 0;
  padding: 26px 28px;
  background: var(--cream-light);
  border: 1px solid rgba(185, 50, 50, 0.32);
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
}

/* Sección 5: Cierre */
.closing h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.35;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Sección de Acordeones (3 Ventanitas desplegables) */
.scene-accordion-hub {
  padding: 60px 24px 100px;
  background: var(--paper);
  min-height: auto;
}

.accordion-item {
  background: #fff;
  border: 1px solid rgba(185, 50, 50, 0.22);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  margin: 0 auto 36px;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(27, 27, 26, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  text-align: center;
}

.accordion-item:hover {
  box-shadow: 0 16px 40px rgba(27, 27, 26, 0.09);
  border-color: rgba(185, 50, 50, 0.38);
}

.accordion-preview {
  padding: 38px 32px 32px;
  text-align: center;
}

.accordion-badge {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
  display: inline-block;
}

.accordion-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.28;
  margin: 0 auto 16px;
  color: var(--ink);
  max-width: 820px;
  text-align: center;
}

.accordion-summary {
  font-size: clamp(0.98rem, 1.55vw, 1.15rem);
  line-height: 1.68;
  color: #3e3833;
  margin: 0 auto 26px;
  max-width: 820px;
  text-align: center;
}

.accordion-toggle-btn {
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;
}

.accordion-toggle-btn:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 50, 50, 0.25);
}

.accordion-toggle-btn .btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.accordion-item.is-open .accordion-toggle-btn {
  background: #2b2520;
  color: #f4f0e9;
}

.accordion-item.is-open .accordion-toggle-btn:hover {
  background: #1b1b1a;
}

.accordion-item.is-open .accordion-toggle-btn .btn-arrow {
  transform: rotate(180deg);
}

/* Colapso suave usando CSS Grid */
.accordion-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 0 solid var(--line);
}

.accordion-item.is-open .accordion-collapse {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--line);
}

.accordion-body {
  overflow: hidden;
  padding: 0 32px;
  transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  background: #faf7f2;
}

.accordion-item.is-open .accordion-body {
  padding: 36px 32px 44px;
}

.accordion-body p {
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink);
}

.accordion-body strong,
.accordion-body b {
  font-weight: 700;
  color: #111;
}

.manifesto-item {
  margin: 0 auto 28px;
  max-width: 820px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(27, 27, 26, 0.1);
}

.manifesto-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.manifesto-item h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink);
  margin: 0 auto 12px;
  text-align: center;
}

.manifesto-item p {
  margin-bottom: 14px;
}

/* Conclusiones destacadas con enter debajo y resalte de color */
.conclusion-highlight {
  display: block;
  margin: 14px auto 0;
  padding: 10px 20px;
  background: rgba(185, 50, 50, 0.08);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.55;
  color: var(--ink);
  text-align: center;
  max-width: 780px;
  box-sizing: border-box;
}

.accordion-preview .conclusion-highlight {
  margin: 14px auto 26px;
}

.conclusion-highlight strong,
.conclusion-highlight .conclusion-tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-label-inner {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--red);
  margin: 0 auto 24px !important;
  text-transform: uppercase;
  text-align: center;
}

.accordion-closing-box {
  margin-top: 36px;
  padding: 36px 28px;
  background: #1b1b1a;
  color: #f7f4ef;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(233, 178, 169, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.accordion-closing-box h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 780px;
  color: #f7f4ef;
  text-align: center;
}

.accordion-closing-box h3 strong,
.accordion-closing-box strong,
.accordion-closing-box p {
  color: #f7f4ef !important;
  font-weight: 700;
}

.accordion-closing-box .section-label-inner {
  color: #e9b2a9 !important;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px !important;
}

@media (max-width: 700px) {
  .scene-accordion-hub {
    padding: 40px 16px 60px;
  }
  .accordion-preview {
    padding: 26px 18px 24px;
  }
  .accordion-item.is-open .accordion-body {
    padding: 24px 18px 32px;
  }
  .accordion-toggle-btn {
    font-size: 0.88rem;
    padding: 11px 22px;
  }
}

/* Footer Bar */
.site-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(18px, 4vw, 64px);
  background: var(--ink);
  border-top: 1px solid rgba(233, 224, 210, 0.22);
  color: #c9c0b5;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f0e9;
  font-weight: 700;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #f8f4ec;
  border-radius: 50%;
  padding: 3px;
}

.footer-brand span span {
  color: #e27a75;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-author-btn,
.footer-contact-btn {
  background: transparent;
  border: 1px solid rgba(233, 178, 169, 0.45);
  color: #f4f0e9;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-author-btn:hover,
.footer-contact-btn:hover {
  background: rgba(233, 178, 169, 0.15);
  border-color: #e9b2a9;
  color: #fff;
}

.site-footer-bar small {
  color: #918980;
}

/* Modales */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 18, 17, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--paper);
  color: var(--ink);
  width: min(100%, 540px);
  max-height: min(92vh, 700px);
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(27, 27, 26, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 27, 26, 0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-close:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.08);
}

/* Modal Autor Media & Content */
.author-modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1918;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.modal-content {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modal-badge {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
  display: block;
}

.modal-content h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.55rem;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: #635d55;
  margin: 0 0 18px;
  line-height: 1.45;
}

.author-creds {
  font-size: 0.88rem;
  font-weight: 700;
  color: #635d55;
  margin: 0 0 14px;
  line-height: 1.4;
}

.author-bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3a3632;
  margin-bottom: 20px;
}

.author-bio p {
  margin: 0 0 10px;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

.author-book-note {
  font-size: 0.85rem;
  color: #6b645b;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.modal-cta-btn:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

/* Contact Form inside Modal */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c5bcb2;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 50, 50, 0.15);
}

.contact-submit-btn {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 13px 20px;
  font: 700 0.95rem 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 4px;
}

.contact-submit-btn:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-feedback {
  margin: 4px 0 0 !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b211e;
  text-align: center;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Animations / Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.scroll-cue {
  display: none;
}

/* Responsive */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .story-header {
    padding: 12px 16px;
  }
  .header-nav-btn {
    font-size: 0.74rem;
    padding: 5px 10px;
  }
  .scene {
    padding: 110px 18px 80px;
  }
  .opening {
    padding-top: 90px;
  }
  .opening-logo {
    width: clamp(210px, 58vw, 270px);
    height: clamp(210px, 58vw, 270px);
    padding: 12px;
    margin-top: 10px;
  }
  .reflection-box {
    padding: 18px 20px;
    margin: 24px auto;
  }
  .site-footer-bar {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .site-footer-bar.is-visible {
    display: flex;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-actions {
    justify-content: center;
  }
  .modal-content {
    padding: 20px 18px 22px;
  }
  .modal-content h3 {
    font-size: 1.35rem;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 12px;
  }
  .whatsapp-float span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gate-mouse,
  .gate-mouse i {
    animation: none;
  }
}

/* SweetAlert2 Custom Styling */
.swal2-popup.swal2-custom-popup,
div:where(.swal2-container) div:where(.swal2-popup) {
  font-family: 'DM Sans', Arial, sans-serif !important;
  background-color: var(--paper, #f4f0e9) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(27, 27, 26, 0.14) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28) !important;
  padding: 30px 24px 28px !important;
}

div:where(.swal2-container) .swal2-title {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  font-size: 1.42rem !important;
  font-weight: 700 !important;
  color: var(--ink, #1b1b1a) !important;
  padding: 10px 0 6px !important;
}

div:where(.swal2-container) .swal2-html-container {
  color: var(--ink, #1b1b1a) !important;
  margin: 10px 0 0 !important;
}

div:where(.swal2-container) button.swal2-confirm {
  background-color: var(--red, #b93232) !important;
  color: #ffffff !important;
  font-family: 'DM Sans', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(185, 50, 50, 0.3) !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

div:where(.swal2-container) button.swal2-confirm:hover {
  background-color: var(--red-hover, #982323) !important;
  transform: translateY(-1px) !important;
}

div:where(.swal2-container) button.swal2-cancel {
  font-family: 'DM Sans', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
}
