/* ── Topbar ──────────────────────────────────────────────────── */
.g2-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: #5d807a;
}

.g2-topbar__logo img {
  height: 57px;
  width: auto;
  display: block;
}

/* Nav centrada */
.g2-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g2-nav__item {
  position: relative;
}

.g2-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.g2-nav__link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.g2-nav__chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.g2-nav__dropdown-btn[aria-expanded="true"] .g2-nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.g2-nav__dropdown-wrap {
  position: relative;
}

.g2-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 200;
}

.g2-nav__dropdown-menu[hidden] { display: none; }

.g2-nav__dropdown-item {
  display: block;
  padding: 9px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.g2-nav__dropdown-item:hover {
  background: var(--color-surface);
  color: var(--color-accent);
}

/* ── Hamburger ───────────────────────────────────────────────── */
.g2-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.g2-hamburger:hover {
  background: rgba(255,255,255,0.12);
}

.g2-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.g2-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.g2-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.g2-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menú mobile ─────────────────────────────────────────────── */
.g2-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #5d807a;
  z-index: 48;
  padding: 6px 0 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.g2-mobile-menu.is-open { display: block; }

.g2-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.g2-mobile-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.g2-mobile-chevron {
  transition: transform 0.25s ease;
}

.g2-mobile-link.open .g2-mobile-chevron { transform: rotate(180deg); }

.g2-mobile-submenu {
  display: none;
  background: rgba(0,0,0,0.12);
}

.g2-mobile-submenu.is-open { display: block; }

.g2-mobile-subitem {
  display: block;
  padding: 11px 40px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

.g2-mobile-subitem:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ── Hero Carousel ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Imágenes apiladas, cross-fade */
.hero__images {
  position: absolute;
  inset: 0;
}

.hero__img-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero__img-wrap.is-active {
  opacity: 1;
}

.hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Texto fijo, encima de la imagen, fondo transparente */
.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(64px + 72px) 64px 72px 64px;
  background-color: rgba(250, 248, 245, 0.4);
  z-index: 2;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text, #2a2a2a);
  line-height: 1.1;
  margin: 0;
}

.hero__line {
  width: 48px;
  height: 1px;
  background: var(--color-text, #2a2a2a);
  margin: 32px 0;
  flex-shrink: 0;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.75;
  max-width: 340px;
  margin: 0;
  font-weight: bold;
}

.hero__btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 40px;
  padding: 15px 32px;
  background: #5d807a;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero__btn:hover {
  background: #4a6b66;
  color: #fff;
}

/* Dots */
.hero__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.75);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero__dot.is-active {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

/* ── Sobre Mí ────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 64px;
  background: var(--color-surface, #faf8f5);
}

.about__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about__title {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text, #2a2a2a);
  margin: 0;
}

.about__line {
  width: 40px;
  height: 1px;
  background: var(--color-text, #2a2a2a);
  margin: 20px 0 24px;
  flex-shrink: 0;
}

.about__text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin: 0 0 36px;
  max-width: 480px;
}

/* ── Proyectos Destacados ────────────────────────────────────── */
.featured {
  padding: 80px 64px;
  background: var(--color-bg, #faf8f5);
}

.featured__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.featured__line {
  flex: 1;
  height: 1px;
  background: var(--color-border, #ddd);
}

.featured__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--color-accent, #2a2a2a);
  white-space: nowrap;
  margin: 0;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.featured__card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.featured__card:hover .featured__img {
  transform: scale(1.04);
}

.featured__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.58) 40%);
  color: #fff;
}

.featured__cat {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.featured__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
}

.featured__footer {
  display: flex;
  justify-content: center;
}

.featured__btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid var(--color-text, #2a2a2a);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text, #2a2a2a);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.featured__btn:hover {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__content {
    width: 55%;
    padding: calc(64px + 48px) 40px 48px;
  }

  .featured {
    padding: 60px 40px;
  }

  .about {
    gap: 48px;
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .g2-nav { display: none; }
  .g2-hamburger { display: flex; }

  .featured {
    padding: 48px 24px;
  }

  .featured__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured__card {
    aspect-ratio: 3/2;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .about__img-wrap {
    aspect-ratio: 3/2;
  }

  .about__text {
    max-width: 100%;
  }

  .hero {
    height: 70vh;
    min-height: 480px;
  }

  .hero__content {
    width: 75%;
    padding: calc(64px + 32px) 28px 32px;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    letter-spacing: 0.12em;
  }

  .hero__line {
    margin: 20px 0;
  }

  .hero__subtitle {
    font-size: 0.84rem;
    max-width: 100%;
  }

  .hero__btn {
    margin-top: 24px;
    padding: 12px 24px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .featured {
    padding: 40px 16px;
  }

  .featured__title {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .featured__btn {
    padding: 13px 28px;
    font-size: 0.7rem;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero__content {
    width: 88%;
    padding: calc(64px + 22px) 20px 22px;
  }

  .hero__title {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
    letter-spacing: 0.1em;
  }

  .hero__line {
    margin: 14px 0;
    width: 36px;
  }

  .hero__subtitle {
    font-size: 0.78rem;
  }

  .hero__btn {
    margin-top: 18px;
    padding: 10px 20px;
  }

  .hero__dots {
    bottom: 16px;
  }

  .about {
    padding: 40px 16px;
    gap: 24px;
  }

  .about__title {
    font-size: 1.2rem;
  }

  .about__text {
    font-size: 0.85rem;
  }
}

/* ── Servicios ───────────────────────────────────────────────── */
.services {
  padding: 80px 64px;
  background: var(--color-bg, #faf8f5);
}

.services__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 0;
}

.services__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 32px;
  text-align: center;
}

.services__divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border, #ddd);
  flex-shrink: 0;
}

.services__icon {
  /* width: 100px; */
  height: 200px;
  object-fit: contain;
  color: var(--color-text-muted, #8a7d72);
}

.services__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted, #8a7d72);
  line-height: 1.8;
  margin: 0;
}

.services__desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #888;
  line-height: 1.75;
  margin: 0;
  max-width: 220px;
}

.services__label::after {
  content: '';
  display: block;
  /* width: 32px; */
  height: 1px;
  background: var(--color-border, #ddd);
  margin: 12px auto 0;
}

@media (max-width: 768px) {
  .services {
    padding: 48px 24px;
  }

  .services__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .services__divider {
    width: 48px;
    height: 1px;
  }

  .services__item {
    padding: 28px 16px;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .services {
    padding: 40px 16px;
  }
}

/* ── Logo CSS mark ───────────────────────────────────────────── */
.logo-mark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 18px 12px 16px;
}

.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #8a7968;
  border-style: solid;
}

.logo-mark::before {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}

.logo-mark::after {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.logo-mark__name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7968;
  line-height: 1.2;
}

.logo-mark__sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #b0a090;
}

/* ── Footer ──────────────────────────────────────────────────── */
.g2-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 64px;
}

.g2-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.g2-footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.g2-footer__nav {
  display: flex;
  gap: 32px;
}

.g2-footer__link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.g2-footer__link:hover {
  color: var(--color-accent);
}

.g2-footer__copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.g2-footer__social {
  display: flex;
  gap: 14px;
  padding-right: 64px;
}

.g2-footer__social-link {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.g2-footer__social-link:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .g2-footer {
    padding: 28px 24px;
  }

  .g2-footer__inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .g2-footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  .g2-footer {
    padding: 24px 16px;
  }

  .g2-footer__nav {
    gap: 12px 20px;
  }
}

/* ── Scroll to top ───────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: #5d807a;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #4a6b66;
}

@media (max-width: 480px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
