/* tuinsta.design — Bootstrap theme */
:root {
  --bs-primary: #8249FF;
  --bs-primary-rgb: 130, 73, 255;
  --bs-body-font-family: "Noto Sans", system-ui, sans-serif;
  --bs-body-font-weight: 300;
  --bs-body-color: #1a1a1a;
  --bs-body-bg: #ffffff;
  --bs-link-color: #1a1a1a;
  --bs-link-hover-color: #8249FF;
  --font-geist: "Geist", system-ui, sans-serif;
  --bg-alt: #f7f5f2;
  --text-muted: #5c5c5c;
  --border: rgba(26, 26, 26, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 4.25rem;
  --site-inset-x: 5%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.site {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

body.site .container,
body.site .container-fluid {
  --bs-gutter-x: 0;
  max-width: 100%;
}

.hero .navbar,
.hero__inner,
main > section > .container,
.site-closing > .container,
body.site .footer > .container,
#category-page-main > .container,
#project-detail > .container,
#nosotras-main > .container {
  padding-left: var(--site-inset-x) !important;
  padding-right: var(--site-inset-x) !important;
}

body.site.portfolio-drawer-open {
  overflow: hidden;
}

.font-geist-black {
  font-family: var(--font-geist);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-eyebrow {
  letter-spacing: 0.14em;
}

.page-title {
  font-family: var(--font-geist);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #6d3ee6;
  --bs-btn-hover-border-color: #6d3ee6;
  --bs-btn-active-bg: #5c32c9;
  --bs-btn-active-border-color: #5c32c9;
  --bs-btn-color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}

.btn-outline-primary {
  --bs-btn-color: #1a1a1a;
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-color: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-bg: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}

.offcanvas-header--close-only {
  justify-content: flex-end;
}

.offcanvas-body {
  text-align: left;
}

.offcanvas-nav {
  width: 100%;
}

.offcanvas .nav-link {
  font-family: var(--font-geist);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.offcanvas .nav-link.is-active {
  color: var(--bs-primary) !important;
}

/* —— Hero —— */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
}

.hero .navbar {
  flex-shrink: 0;
  min-height: var(--header-h);
}

.hero__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
  box-sizing: border-box;
  padding: clamp(0.75rem, 2vh, 1.5rem) 0 clamp(2rem, 5vh, 3.5rem);
  container-type: inline-size;
  container-name: hero;
}

.hero__title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
  font-family: var(--font-geist);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-size: clamp(2.5rem, 22vw, 8rem);
  white-space: nowrap;
}

@supports (width: 1cqw) {
  .hero__title {
    font-size: clamp(2.5rem, 26cqw, 8rem);
  }
}

.hero__title-brand {
  display: inline;
}

.hero__title-word {
  display: inline;
}

.hero__title-word--design {
  font-family: var(--font-geist);
  font-style: italic;
  font-weight: 400;
  margin-left: 0.12em;
}

.hero__text {
  margin: 0 0 1.25rem;
  max-width: min(42rem, 100%);
  font-size: clamp(1.25rem, 4.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

@media (max-width: 1199.98px) {
  .hero__title-word--design {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: clamp(3rem, 12vw, 16rem);
  }

  @supports (width: 1cqw) {
    .hero__title {
      font-size: clamp(3rem, 17cqw, 16rem);
    }
  }

  .hero__text {
    max-width: min(62rem, 95%);
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 100svh;
  }

  .hero__inner {
    flex: 1 1 auto;
    justify-content: flex-end;
    padding-bottom: clamp(1.5rem, 3vh, 2rem);
  }

  .hero__title {
    display: flex;
    flex-direction: column;
    white-space: normal;
  }

  .hero__title-brand {
    display: contents;
  }

  .hero__title-word {
    display: block;
  }

  .hero__title-word--design {
    display: block;
    margin-left: 0;
  }
}

#rrss,
#branding,
#fotografia,
#diseno-web {
  scroll-margin-top: 1rem;
}

.section--alt {
  background: var(--bg-alt);
  width: 100%;
}

.display-section-title {
  font-family: var(--font-geist);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* —— Portfolio —— */

.portfolio-panel {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

#rrss .portfolio-panel__layout,
#branding .portfolio-panel__layout,
#fotografia .portfolio-panel__layout,
#diseno-web .portfolio-panel__layout,
.category-portfolio-panel .portfolio-panel__layout {
  min-height: 0;
}

@media (min-width: 992px) {
  #rrss .portfolio-panel__layout,
  #branding .portfolio-panel__layout,
  #fotografia .portfolio-panel__layout,
  #diseno-web .portfolio-panel__layout,
  .category-portfolio-panel .portfolio-panel__layout {
    height: 90vh;
    max-height: 90vh;
  }

  .portfolio-panel__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .portfolio-panel__chips {
    flex: 1 1 58%;
    min-height: 0;
    overflow-y: auto;
  }

  .portfolio-panel__sidebar .portfolio-panel__detail {
    flex: 1 1 42%;
    min-height: 0;
    overflow-y: auto;
  }

  .portfolio-panel__drawer {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .portfolio-panel__drawer-detail {
    display: none;
  }

  .portfolio-panel__media {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

.portfolio-panel__back {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}

.portfolio-panel__back:hover {
  color: var(--bs-primary);
}

.portfolio-panel__drawer-detail {
  display: none;
}

@media (max-width: 991.98px) {
  .portfolio-panel__sidebar .portfolio-panel__detail {
    display: none;
  }

  .portfolio-panel__drawer {
    display: none;
  }

  .portfolio-panel--open .portfolio-panel__drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 108;
    overflow-y: auto;
    padding: calc(var(--header-h) + 1rem) var(--site-inset-x) 2rem;
    background: var(--bs-body-bg);
  }

  .portfolio-panel--open .portfolio-panel__back {
    display: inline-block;
  }

  .portfolio-panel--open .portfolio-panel__drawer-detail {
    display: block;
  }

  .panel-detail__link {
    display: none;
  }

  .portfolio-panel__chips {
    gap: 0.5rem;
  }

  .portfolio-panel__chips .portfolio-chip {
    grid-column: auto !important;
    grid-row: auto !important;
    border-radius: 4px;
    border-width: 0;
  }

  .portfolio-panel__chips .portfolio-chip::before,
  .portfolio-panel__chips .portfolio-chip--half::before,
  .portfolio-panel__chips .portfolio-chip--full::before {
    padding-top: 40%;
  }

  .portfolio-panel__media {
    max-height: none;
  }
}

.portfolio-panel__chips {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

@media (min-width: 992px) {
  .portfolio-panel__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-gallery__grid,
.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 576px) {
  .panel-gallery__grid,
  .project-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portfolio-chip {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #e8e4de;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: border-color 0.2s var(--ease);
}

.portfolio-chip::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.portfolio-chip--full::before {
  padding-top: 50%;
}

.portfolio-chip--half::before {
  padding-top: 100%;
}

.portfolio-chip__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.portfolio-chip__name {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  font-family: var(--font-geist);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  opacity: 1;
  pointer-events: none;
}

.portfolio-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

@media (hover: hover) {
  .portfolio-chip:hover .portfolio-chip__media,
  .portfolio-chip.is-active .portfolio-chip__media {
    transform: scale(1.02);
  }
}

.portfolio-chip.is-active {
  border-color: var(--bs-primary);
}

.panel-gallery__item,
.project-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e8e4de;
  line-height: 0;
}

.panel-gallery__item::before,
.project-gallery__item::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

.panel-gallery__item img,
.panel-gallery__item video,
.project-gallery__item img,
.project-gallery__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-detail__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

/* —— Closing —— */

.site-closing {
  padding: clamp(4rem, 14vh, 10rem) 0;
  text-align: right;
}

.site-closing__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.site-closing__link:hover {
  color: var(--bs-primary);
}

.site-closing__text {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-geist);
  font-weight: 900;
  font-size: clamp(2rem, 18vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.site-closing__text.is-fitted {
  font-size: var(--closing-size, clamp(2rem, 18vw, 12rem));
}

.site-closing__accent {
  font-family: var(--font-geist);
  font-style: italic;
  font-weight: 400;
  color: var(--bs-primary);
}

.site-closing__meta {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
}

/* —— Project / category pages —— */

.project-page .project-cover {
  max-width: 100%;
}

.project-cover {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  background: #e8e4de;
  border-radius: 0.25rem;
}

.project-cover::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.project-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.project-back:hover {
  color: var(--bs-primary);
}

.project-not-found {
  padding: 4rem 0;
  text-align: center;
}

.project-not-found h1 {
  font-family: var(--font-geist);
  font-weight: 900;
  margin-bottom: 1rem;
}

.works-grid .work-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ddd;
  text-decoration: none;
  color: #fff;
}

.work-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Service page: Clientes + floating contact —— */

.clients-heading {
  margin: 0 0 1rem;
}

.site-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 110;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-fab--menu {
  position: static;
  margin-top: 0.5rem;
}

body.portfolio-drawer-open .site-fab {
  opacity: 0;
  pointer-events: none;
}

/* —— Nosotras —— */

.nosotras-profile__photo {
  position: relative;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: #e8e4de;
  aspect-ratio: 4 / 5;
}

.nosotras-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nosotras-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.nosotras-gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e8e4de;
  line-height: 0;
}

.nosotras-gallery__item::before {
  content: "";
  display: block;
  padding-top: 75%;
}

.nosotras-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 576px) {
  .nosotras-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .nosotras-gallery {
    grid-template-columns: 1fr;
  }
}

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

  .portfolio-chip,
  .portfolio-chip__media {
    transition: none;
  }
}
