/* Yonggi: un paisaje compartido, desde la señal hasta el siguiente paso. */
:root {
  --paper: #f8f2ec;
  --ink: #352047;
  --muted: #655373;
  --purple: #573074;
  --line: #c2b1cd;
  --lavender: #dfd1eb;
  --silver: #ddd4e5;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  background: radial-gradient(ellipse at 12% 8%, #f0e5ed 0, transparent 38%),
              radial-gradient(ellipse at 90% 15%, #d2c1df 0, transparent 46%),
              linear-gradient(145deg, #e9dfef, #e5dced 52%, #d0beda);
}

body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238c759c' opacity='.24' filter='url(%23grain)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid #8255a3;
  outline-offset: 6px;
  border-radius: 5px;
}
.closing a:focus-visible {
  outline-color: #f7eafb;
}

.wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
  position: relative;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  z-index: 10;
}
.skip-link:focus {
  transform: none;
}

/* Header & Marca */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding-bottom: 6px;
  border-bottom: 1px solid #a48caf40;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 20px;
}

.brand-logo-img {
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(65, 51, 79, 0.25));
  mix-blend-mode: multiply;
}

.hub-manifest {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
  padding-block: 8px;
}
nav a:hover {
  text-decoration: underline;
}

main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.journey {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  stroke: #9874b1;
  stroke-width: 1.5;
  opacity: .4;
}
.journey path + path {
  stroke: #fff8ff;
  stroke-width: 2;
}

/* Hero Section (Ajuste a 1 sola línea responsiva hasta el margen) */
.hero {
  padding-top: 12px;
  padding-bottom: 24px;
}

.hero .section-heading {
  margin-bottom: 0;
  width: 100%;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.035em;
  font-size: clamp(24px, 2.7vw, 40px);
  line-height: 1.2;
  margin-top: 6px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

.hero .section-heading p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.small-line {
  width: 30px;
  height: 1px;
  border-top: 1px solid #8f6aa9;
  position: relative;
}

.small-line:after {
  content: '✧';
  position: absolute;
  right: -5px;
  top: -12px;
  font-size: 15px;
}

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Fila de acciones compacta en escritorio */
.actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  width: 100%;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.4;
  min-height: 42px;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .2s;
}

.primary {
  background: linear-gradient(115deg, #6c4188, #3e2059);
  color: #fff9f3;
  border: 1px solid #a286b5;
  box-shadow: inset 0 1px 0 #cfb8de66, 0 6px 16px #51316417;
}

.primary:hover {
  background: linear-gradient(115deg, #593370, #35194c);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.3);
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.6);
}

.suite-btn-direct {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 10px 16px;
  min-height: 42px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line, #c2b1cd);
  backdrop-filter: blur(6px);
  color: var(--ink, #352047);
  box-shadow: 0 2px 8px rgba(65, 51, 79, 0.05);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.suite-btn-direct:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

/* Secciones & Grillas generales */
.section {
  padding-block: 32px;
}

.section-heading {
  margin-bottom: 20px;
}

/* Estilos específicos para las tarjetas de situaciones de dolor */
.pain-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--line);
}

.pain-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pain-title {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.pain-description {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.pain-action-wrap {
  margin-top: 16px;
  text-align: center;
}

.pain-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 50px;
  text-decoration: none;
}

.pain-btn strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.grid-subblocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sub-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sub-card.inactive {
  opacity: 0.55;
  filter: grayscale(30%);
}

.badge-sub {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: var(--purple);
  color: #ffffff;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

/* Filosofía YONGGI & Arte Integrado */
.philosophy {
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(65, 51, 79, 0.12);
  border-bottom: 1px solid rgba(65, 51, 79, 0.12);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.philosophy-art {
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.philosophy-art .landscape-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(65, 51, 79, 0.1);
  mask-image: linear-gradient(to bottom, #000 95%, transparent);
}

.philosophy-quote {
  margin-top: 8px;
  color: #705682;
  font-size: 12px;
  font-style: italic;
  letter-spacing: .02em;
}

.text-center {
  text-align: center;
}

.kr-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #41334f;
  display: block;
  margin: 0.15rem 0;
  letter-spacing: 0.05em;
}

.quote-subtitle {
  font-size: 0.98rem;
  color: #6b5c77;
  margin-top: 0.2rem;
  font-style: italic;
}

.triad-container {
  margin: 1.75rem 0;
  gap: 1.25rem;
}

.triad-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(65, 51, 79, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.triad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(65, 51, 79, 0.08);
}

.triad-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.triad-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 2px 4px rgba(65, 51, 79, 0.15));
}

.triad-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
  color: #41334f;
}

.triad-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #8c789c;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.triad-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #524461;
  font-style: italic;
}

.philosophy-manifest {
  max-width: 680px;
  margin: 0 auto;
}

.manifest-main {
  font-size: 1.05rem;
  color: #41334f;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.manifest-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b5c77;
  letter-spacing: 0.03em;
}

/* Cierre & Pie de página */
.closing {
  background: radial-gradient(ellipse at 10% 100%, #806193 0, transparent 70%),
              linear-gradient(120deg, #51316b, #332042);
  color: #fbf4ed;
  position: relative;
  overflow: hidden;
  border-radius: 36% 36% 0 0 / 7% 7% 0 0;
}
.closing h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.2vw, 44px);
  margin-bottom: 14px;
}

.closing-inner {
  padding-block: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.light {
  background: linear-gradient(130deg, #faf2f6, #d9cce5);
  border: 1px solid #e9daee;
  box-shadow: inset 0 1px 0 white;
  color: #452b5a;
}
.light:hover {
  background: #fff6ee;
}

.contact {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}
.contact span {
  color: #d9c7e5;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 16px;
  font-size: 12px;
  color: var(--muted);
}
footer p {
  margin: 0;
}

/* Media Queries Responsivos */
@media(max-width:1050px) {
  .actions {
    flex-wrap: wrap; /* Permite salto de línea fluido en pantallas medianas antes de móvil */
  }
}

@media(max-width:700px) {
  .wrap { 
    width: calc(100% - 32px); 
  }
  .site-header { 
    min-height: 100px; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
  }
  nav { 
    width: 100%; 
    justify-content: space-between; 
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero { 
    padding-block: 20px 28px; 
  }
  .actions { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 10px;
  }
  .button, .suite-btn-direct { 
    width: 100%; 
    text-align: center; 
    white-space: normal;
  }
  .profile-toggle-container {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
  }
  .profile-tab {
    width: 100%;
    text-align: center;
  }
  .closing { 
    border-radius: 30% 30% 0 0 / 4% 4% 0 0; 
  }
  .contact { 
    flex-direction: column; 
    gap: 4px; 
  }
  footer { 
    flex-direction: column; 
    text-align: center; 
  }
}

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}