:root {
  --navy: #0d1520;
  --navy-alt: #111d2e;
  --navy-light: #162030;
  --gold: #c8a45a;
  --text: #e8e0d0;
  --text-muted: #8a8070;
  --text-dim: #4a4840;
  --footer-bg: #080e18;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
}

/* Section header */
.section-header {
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  font-weight: 300;
}

/* Nav */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

#navbar.scrolled .nav-logo img {
  opacity: 1;
}

#navbar.scrolled .nav-links a {
  color: #0d1520;
}

#navbar.scrolled .nav-links a:hover {
  color: var(--gold);
}

#navbar.scrolled .nav-hamburger span {
  background: #0d1520;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 96px;
  width: auto;
  background: white;
  padding: 6px 14px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-lang span {
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
}

.nav-lang a {
  font-size: 0.65rem !important;
  letter-spacing: 0.18em;
}

.nav-lang a.active {
  color: var(--gold) !important;
}

#navbar.scrolled .nav-lang {
  border-left-color: rgba(13,21,32,0.15);
}

#navbar.scrolled .nav-lang span {
  color: rgba(13,21,32,0.2);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 21, 32, 0.5) 0%,
    rgba(13, 21, 32, 0.6) 50%,
    rgba(13, 21, 32, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo-wrap {
  margin-bottom: 0.5rem;
}

.hero-logo {
  height: 140px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hero-sub {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(232, 224, 208, 0.5);
  transition: color var(--transition);
  animation: bounce 2.5s infinite;
  text-decoration: none;
}

.hero-scroll:hover {
  color: var(--gold);
}

.hero-scroll svg {
  width: 30px;
  height: 30px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* Sobre Nós */
#sobre-nos {
  background: var(--navy);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.sobre-col p {
  font-size: 0.88rem;
  color: #b0a898;
  line-height: 1.9;
  margin-bottom: 1.3rem;
}

.sobre-col p:last-child {
  margin-bottom: 0;
}

.sobre-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(200, 164, 90, 0.2);
  padding-top: 3rem;
}

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: rgba(200, 164, 90, 0.2);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pillar h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pillar p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Portfolio */
#portfolio {
  background: var(--navy-alt);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.property-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-image-wrap > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.property-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.card-image-wrap > a:first-child:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
}

.card-info {
  padding: 1.4rem 1.6rem 1.8rem;
}

.card-tags {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card-info h3 {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.card-location {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.78rem;
  color: #6e6760;
  line-height: 1.75;
}

/* Contacto */
#contacto {
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
}

.contact-logo img {
  width: 200px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item > span:not(.contact-label),
.contact-item a {
  font-size: 0.88rem;
  color: #b0a898;
  text-decoration: none;
  line-height: 1.7;
}

.contact-item a:hover {
  color: var(--text);
}

/* PhotoSwipe custom theme */
.pswp {
  --pswp-bg: #0a1018;
  --pswp-icon-color: #c8a45a;
  --pswp-icon-color-secondary: rgba(200, 164, 90, 0.3);
  --pswp-icon-stroke-color: #0a1018;
  --pswp-icon-stroke-width: 1px;
}

.pswp__top-bar {
  background: linear-gradient(to bottom, rgba(10,16,24,0.85), transparent);
}

.pswp__counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #c8a45a;
  opacity: 1;
}

.pswp__button--arrow {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* Footer */
footer {
  background: var(--footer-bg);
  padding: 2.2rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border-top: 1px solid rgba(200, 164, 90, 0.07);
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--navy-alt);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1005;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .sobre-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-logo img {
    width: 160px;
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .sobre-pillars {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hero-logo {
    height: 90px;
  }

  .nav-logo img {
    height: 70px;
  }

  .hero-tagline {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}
