html {
  scroll-behavior: auto;
}

.hogar-page {
  position: relative;
  background: #1c1612;
  color: #3f342c;
  overflow-x: hidden;
}

.hogar-page .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: rgb(251 247 241 / 0.94);
  border-bottom-color: #e4d8c8;
}

.hogar-page .brand small,
.hogar-page .header nav a,
.hogar-page .nav-contact {
  color: #5c4e41;
}

.hogar-page .nav-contact {
  border-color: #d7c4b3;
}

.hogar-page .header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hogar-page .footer {
  position: relative;
  z-index: 2;
  background: #fbf7f1;
  border-top-color: #e4d8c8;
}

.hogar-page .footer-legal {
  border-top-color: #e4d8c8;
  color: #7a6a5c;
}

.hogar-story {
  --p: 0;
  position: relative;
}

.hogar-narrative {
  height: 1000dvh;
}

.hogar-narrative-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

.hogar-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1c1612;
  z-index: 0;
}

.hogar-video-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hogar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 46%;
  pointer-events: none;
  background: transparent;
  opacity: 1;
  visibility: visible;
}

.hogar-brand-mark {
  position: absolute;
  right: 6.4%;
  bottom: 8.6%;
  z-index: 1;
  display: block;
  width: 56px;
  height: auto;
  aspect-ratio: 760 / 320;
  transform: none;
  pointer-events: none;
}

.hogar-brand-mark .logo-window {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 320;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hogar-brand-mark .logo-window img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hogar-beat {
  position: absolute;
  top: 108px;
  right: 5.5%;
  left: auto;
  bottom: auto;
  margin: 0;
  z-index: 1;
  max-width: min(380px, 46vw);
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: #f7efe6;
  text-shadow: 0 1px 10px rgb(20 12 8 / 0.55);
  pointer-events: none;
}

.hogar-eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a45a3a;
  margin-bottom: 16px;
}

.hogar-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  max-width: none;
  padding: 120px 5.5% 48px;
}

.hogar-hero-copy {
  padding: 32px 30px 28px;
  max-width: 560px;
  background: rgb(251 247 241 / 0.7);
  border: 1px solid rgb(228 216 200 / 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgb(48 32 22 / 0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hogar-hero h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -2.4px;
  color: #3a2c24;
  font-weight: 500;
  margin: 0 0 20px;
}

.hogar-lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 440px;
  color: #5c4e41;
}

.hogar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  min-height: 48px;
  padding: 16px 22px;
  border-radius: 5px;
  background: #8b4a32;
  color: #fff8f2;
  font-size: 14px;
}

.hogar-cta:hover {
  transform: translateY(-2px);
  background: #7a3f2c;
}

.hogar-soft {
  margin-top: 22px;
  font-size: 14px;
  color: #7a6a5c;
}

.hogar-chapter-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5.5% 28px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hogar-chapter-panel {
  position: relative;
  width: min(820px, 100%);
  pointer-events: auto;
  display: grid;
}

.hogar-chapter {
  grid-area: 1 / 1;
  margin: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
}

.hogar-section,
.hogar-principle,
.hogar-close {
  position: relative;
  z-index: 1;
}

.hogar-section {
  max-width: 820px;
  margin: 28px auto;
  padding: 56px 5.5%;
  background: rgb(246 240 232 / 0.7);
  border: 1px solid rgb(228 216 200 / 0.4);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hogar-section h2,
.hogar-close h2,
.hogar-principle h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #3a2c24;
  font-weight: 500;
  margin-bottom: 18px;
}

.hogar-section p,
.hogar-close p {
  font-size: 16px;
  line-height: 1.75;
  color: #5c4e41;
  margin-bottom: 14px;
}

.hogar-section-alt {
  background: rgb(239 230 219 / 0.72);
}

.hogar-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.45;
  color: #8b4a32;
  margin-top: 28px;
}

.hogar-aside {
  font-size: 14px;
  color: #7a6a5c;
}

.hogar-examples {
  margin: 20px 0 18px;
  padding-left: 18px;
  color: #5c4e41;
}

.hogar-examples li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.hogar-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}

.hogar-modes article {
  background: rgb(251 247 241 / 0.55);
  border: 1px solid rgb(228 216 200 / 0.5);
  border-radius: 8px;
  padding: 22px 20px;
}

.hogar-modes h3 {
  font-size: 20px;
  color: #3a2c24;
  margin-bottom: 8px;
}

.hogar-modes p {
  margin: 0;
  font-size: 15px;
}

.hogar-principle {
  text-align: center;
  max-width: 820px;
  margin: 28px auto;
  padding: 64px 5.5%;
  background: rgb(232 213 196 / 0.72);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hogar-principle h2 {
  max-width: 720px;
  margin: 0 auto 16px;
}

.hogar-principle p {
  font-size: 16px;
  color: #5c4e41;
}

.hogar-close {
  max-width: 760px;
  margin: 28px auto 72px;
  padding: 56px 5.5% 48px;
  background: rgb(251 247 241 / 0.7);
  border: 1px solid rgb(228 216 200 / 0.4);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hogar-chapter--dense .hogar-modes {
  gap: 12px;
  margin: 16px 0 4px;
}

.hogar-chapter--dense .hogar-modes article {
  padding: 14px 16px;
}

.hogar-chapter--dense .hogar-modes h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.hogar-chapter--dense .hogar-quote {
  margin-top: 16px;
}

.hogar-chapter--dense .hogar-examples {
  margin: 12px 0 10px;
}

.hogar-chapter--dense .hogar-examples li {
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .hogar-beat {
    top: max(10px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: auto;
    max-width: none;
    text-align: left;
    font-size: 11px;
  }
  .hogar-brand-mark,
  .hogar-brand-mark .logo-window {
    width: 44px;
    height: auto;
  }
  .hogar-hero {
    min-height: 0;
    align-items: flex-end;
    padding: calc(env(safe-area-inset-top) + 72px) 16px calc(env(safe-area-inset-bottom) + 20px);
  }
  .hogar-hero-copy {
    width: calc(100% - 0px);
    max-width: none;
    padding: 28px 24px;
  }
  .hogar-hero h1 {
    font-size: clamp(32px, 8vw, 42px);
    letter-spacing: -1.2px;
    margin-bottom: 12px;
  }
  .hogar-lead {
    font-size: 17px;
    line-height: 1.55;
  }
  .hogar-cta {
    width: 100%;
    margin-top: 16px;
  }
  .hogar-soft {
    margin-top: 14px;
    font-size: 14px;
  }
  .hogar-chapter-stage {
    align-items: center;
    padding: calc(env(safe-area-inset-top) + 48px) 16px calc(env(safe-area-inset-bottom) + 16px);
  }
  .hogar-chapter-panel {
    width: calc(100% - 32px);
  }
  .hogar-chapter {
    padding: 28px 24px;
  }
  .hogar-section,
  .hogar-close,
  .hogar-principle {
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hogar-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hogar-principle {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hogar-close {
    padding-top: 28px;
    padding-bottom: 28px;
    margin-bottom: 0;
  }
  .hogar-section h2,
  .hogar-close h2,
  .hogar-principle h2 {
    font-size: clamp(32px, 7.2vw, 42px);
    line-height: 1.18;
    margin-bottom: 12px;
  }
  .hogar-section p,
  .hogar-close p,
  .hogar-principle p {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .hogar-quote {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 14px;
  }
  .hogar-aside {
    font-size: 14px;
  }
  .hogar-examples {
    margin: 10px 0 8px;
  }
  .hogar-examples li {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .hogar-modes {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0 4px;
  }
  .hogar-modes article {
    padding: 10px 12px;
  }
  .hogar-modes h3 {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .hogar-modes p {
    font-size: 15px;
  }
  .hogar-chapter--dense {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hogar-chapter--dense .hogar-modes article {
    padding: 8px 12px;
  }
  .hogar-chapter--dense h2 {
    margin-bottom: 8px;
  }
}

@media (max-width: 430px) {
  .hogar-hero-copy,
  .hogar-chapter {
    padding: 24px 20px;
  }
}

@media (max-height: 800px) {
  .hogar-hero {
    padding-top: 88px;
    padding-bottom: 28px;
  }
  .hogar-chapter-stage {
    padding-top: 72px;
    padding-bottom: 20px;
  }
  .hogar-section,
  .hogar-close,
  .hogar-principle {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hogar-section h2,
  .hogar-close h2,
  .hogar-principle h2 {
    margin-bottom: 12px;
  }
  .hogar-modes {
    gap: 10px;
    margin: 14px 0 4px;
  }
  .hogar-modes article {
    padding: 12px 14px;
  }
  .hogar-quote {
    margin-top: 14px;
  }
}

@media (max-height: 700px) {
  .hogar-beat {
    font-size: 11px;
  }
  .hogar-hero-copy,
  .hogar-chapter {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .hogar-section h2,
  .hogar-close h2,
  .hogar-principle h2 {
    font-size: clamp(28px, 3.2vw, 36px);
  }
  .hogar-modes article {
    padding: 8px 12px;
  }
  .hogar-modes h3 {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .hogar-hero h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hogar-beat { display: none; }
}
