/* Tambogrande: sitio independiente con recursos locales y recortes transparentes. */
.tambogrande-page { --tb-ivory: #F8F7F4; --tb-deep: #0A332B; }
.tambogrande-page section[id] { scroll-margin-top: 7rem; }
.tb-brand .brand__name { font-family: "Montserrat", sans-serif; font-size: 1rem; }
.tb-brand .brand__name span { display: block; font-size: .65rem; letter-spacing: .14em; margin-top: .3rem; }
.tb-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(2rem, 6vw, 5rem); background: var(--portrait-stage); color: var(--tb-ivory); }
.tb-hero::before { content: ""; position: absolute; width: 34rem; height: 34rem; border: 1px solid rgba(235,235,223,.16); border-radius: 50%; right: -5rem; top: 3rem; z-index: -1; }
.tb-hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 1rem; }
.tb-hero__copy { padding-bottom: clamp(2rem, 5vw, 5rem); }
.tb-hero .eyebrow { color: #F8D200; }
.tb-hero h1 { color: var(--tb-ivory); font-size: clamp(2.8rem, 5.4vw, 5rem); margin-top: 1rem; }
.tb-hero__copy p { max-width: 39ch; font-size: 1.05rem; color: #EBEBDF; margin-block: 1.5rem; }
.tb-button { background: #F8B815; color: var(--tb-deep); min-height: 48px; gap: 1.2rem; white-space: normal; }
.tb-button:hover { background: #F8D200; }
.tb-hero__portrait { margin: 0; align-self: end; position: relative; }
.tb-hero__portrait img { display: block; width: 100%; height: clamp(24rem, 43vw, 39rem); object-fit: contain; object-position: center bottom; filter: var(--portrait-shadow); }
.tb-hero__portrait figcaption { padding: 1rem 0 1.5rem; color: #EBEBDF; font-size: .78rem; text-align: center; }
.tb-heading { max-width: 45rem; margin-bottom: 2.5rem; }
.tb-heading h2 { margin-top: .75rem; }
.tb-heading p { max-width: 49ch; margin-top: 1rem; }
.tb-learning__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.tb-stage { margin: 0; background: var(--portrait-stage); border-radius: 24px 24px 64px 24px; padding: 1rem 1rem 0; overflow: hidden; }
.tb-stage img { width: 100%; height: 20rem; object-fit: contain; object-position: center bottom; filter: var(--portrait-shadow); }
.tb-stage--tall { border-radius: 45% 45% 24px 24px; padding-top: 2rem; }
.tb-stage--tall img { height: clamp(25rem, 44vw, 38rem); }
.tb-feature__copy, .tb-scene__copy { position: relative; padding: 1.35rem 0 0 2.75rem; }
.tb-feature__copy h3, .tb-scene__copy h3 { font-size: 1.1rem; }
.tb-feature__copy p, .tb-scene__copy p { font-size: .9rem; }
.tb-number { position: absolute; left: 0; top: 1.4rem; font-size: .8rem; font-weight: 700; border-top: 2px solid #F8B815; padding-top: .25rem; }
.tb-learning__side { display: grid; gap: 2rem; }
.tb-community { background: var(--surface-sunken); }
.tb-community__grid { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.tb-stage--portrait { border-radius: 46% 46% 18px 18px; padding-top: 1.75rem; }
.tb-stage--portrait img { height: clamp(23rem, 40vw, 34rem); }
.tb-community__copy h2 { margin-top: 1rem; }
.tb-community__copy p { max-width: 41ch; margin-top: 1.3rem; }
.tb-community__line { padding-left: 1rem; border-left: 3px solid #F8B815; font-weight: 600; }
.tb-text-link { display: inline-flex; min-height: 44px; gap: 1rem; align-items: center; margin-top: 1rem; font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.tb-gallery-heading { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 2.5rem; }
.tb-gallery-heading h2 { margin-block: .75rem 0; }
.tb-gallery-heading > p { max-width: 32ch; font-size: .95rem; }
.tb-gallery.gallery { display: grid; columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.tb-gallery.gallery > * { margin: 0; }
.tb-gallery__item { min-width: 0; }
.tb-gallery__item--wide { grid-column: 1 / -1; }
.tb-gallery__item > img, .tb-gallery__item .photo-open { display: block; width: 100%; height: clamp(20rem, 31vw, 27rem); padding: 1rem 1rem 0; object-fit: contain; object-position: center bottom; background: var(--portrait-stage); border-radius: 24px; }
.tb-gallery__item .photo-open img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: var(--portrait-shadow); }
.tb-gallery__item > img { filter: none; }
.tb-gallery__item--wide > img, .tb-gallery__item--wide .photo-open { height: clamp(23rem, 44vw, 36rem); }
.tb-gallery__item figcaption { font-size: .95rem; font-weight: 600; color: var(--text-strong); padding-top: 1rem; }
.tb-gallery__item figcaption span { display: block; margin-bottom: .3rem; font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tb-footer__row { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.tb-footer .tb-footer__name { color: #F8F7F4; font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.tb-footer__name span { display: block; color: #F8D200; font-size: .85rem; font-weight: 500; margin-top: .3rem; }
.tb-footer nav { display: grid; gap: .7rem; font-size: .85rem; }
.tb-footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 1020px) {
  .tambogrande-page .nav { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: .65rem; }
  html:not(.js) .tambogrande-page .nav__links { display: flex; flex-wrap: wrap; }
  html:not(.js) .tambogrande-page .nav__toggle { display: none; }
}
@media (max-width: 760px) {
  .tb-hero__grid, .tb-learning__grid, .tb-community__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-hero__copy { padding-bottom: 0; }
  .tb-hero h1 { font-size: clamp(2.65rem, 10vw, 4rem); }
  .tb-hero__portrait { width: 100%; max-width: 32rem; justify-self: center; }
  .tb-hero__portrait img { height: clamp(20rem, 85vw, 30rem); }
  .tb-heading h2 br { display: none; }
  .tb-learning__grid { gap: 2.5rem; }
  .tb-stage--tall img { height: 27rem; }
  .tb-stage img { max-height: 28rem; }
  .tb-stage--portrait { width: min(100%, 24rem); justify-self: center; }
  .tb-stage--portrait img { height: 28rem; }
  .tb-community__grid { gap: 2rem; }
  .tb-gallery-heading, .tb-footer__row { display: grid; gap: 1.25rem; }
  .tb-gallery-heading > p { max-width: 42ch; }
  .tb-gallery.gallery { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .tb-gallery__item--wide { grid-column: auto; }
  .tb-gallery__item > img, .tb-gallery__item .photo-open, .tb-gallery__item--wide > img, .tb-gallery__item--wide .photo-open { height: clamp(18rem, 70vw, 26rem); padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tambogrande-page *, .tambogrande-page *::before, .tambogrande-page *::after { animation: none !important; transition: none !important; }
}
/* Identidad de Tambogrande proporcionada por el usuario. */
.tb-brand .brand__mark { width: auto; height: 54px; object-fit: contain; flex: 0 0 auto; }
@media (max-width: 600px) {
  .tb-brand .brand__mark { height: 44px; }
}

/* Segunda luz ambiental detrás del contenido. */
.tb-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 26rem; height: 26rem; left: -15rem; bottom: -14rem; border: 45px solid rgba(248,184,21,.12); border-radius: 50%; }
@media (max-width: 600px) {
  .tb-hero { padding-top: 1.7rem; }
  .tb-hero h1 { font-size: clamp(2.25rem, 10vw, 3.6rem); line-height: 1.1; text-wrap: balance; }
  .tb-hero__copy p { font-size: .95rem; line-height: 1.7; margin-block: 1.1rem; }
  .tb-button { width: 100%; justify-content: center; padding-inline: .8rem; font-size: .82rem; }
  .tb-hero__portrait img { height: clamp(16rem, 76vw, 25rem); }
  .tb-stage { border-radius: 20px; padding: .75rem .75rem 0; }
  .tb-stage--tall, .tb-stage--portrait { padding-top: 1.25rem; }
  .tb-stage--tall img, .tb-stage--portrait img { height: clamp(19rem, 90vw, 26rem); }
  .tb-heading { margin-bottom: 1.75rem; }
  .tb-feature__copy, .tb-scene__copy { padding-left: 2.2rem; }
  .tb-gallery.gallery { gap: 1.5rem; }
  .tb-gallery__item .photo-open { border-radius: 18px; }
  .tb-footer nav { gap: .2rem; }
}
