/* ============================================================
   SINSE CONSTRUCCIÓN S.A. — Stylesheet
   Palette: #EDE8DF · #2C2416 · #8B7355 · #F5F1EA
   ============================================================ */

:root {
  --bg:        #EDE8DF;
  --text:      #2C2416;
  --accent:    #8B7355;
  --surface:   #F5F1EA;
  --muted:     #9A8F82;
  --border:    rgba(44, 36, 22, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:     120px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 768px) { body { cursor: auto; } }
a, button, [data-gallery], .timeline-item, .service-card, .project-card { cursor: none; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
#main-nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 155px;
  width: auto;
  object-fit: contain;
}
.nav-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 4px;
}
#main-nav.scrolled .nav-tagline { color: rgba(44,36,22,0.5); }
.nav-tagline strong { font-weight: 700; }
/* Fallback: style the alt text as a wordmark when image fails */
.logo-img[src="LOGO SINSE.png"] {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-links a {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
#main-nav.scrolled .nav-links a {
  color: var(--text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: white;
  transition: background 0.3s, transform 0.3s;
}
#main-nav.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  /* NAV */
  #main-nav {
    position: relative;
    top: auto; left: auto; right: auto;
    height: auto;
    background: var(--bg);
    z-index: 200;
    padding: 20px 0 16px;
  }
  .nav-inner {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .nav-logo { width: auto; flex-direction: column; align-items: center; }
  .nav-tagline { color: rgba(44,36,22,0.5); }
  .logo-img { height: 90px; margin-top: 0; }
  .hamburger { display: flex; }
  .hamburger span { background: var(--text); }

  /* DROPDOWN — oculto con display none, no ocupa espacio */
  .nav-links {
    display: none;
    position: relative;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--text) !important;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  /* HERO — empieza justo debajo del nav */
  .hero {
    margin: 0;
    width: 100%;
    height: auto;
    background: #000;
  }
  .hero-video-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }
  #hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    padding: 12px 0;
  }
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    margin: 2%;
    width: 96%;
    background: var(--bg);
  }
  .hero-video-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }
  #hero-video {
    object-fit: contain;
    height: auto;
    width: 100%;
  }
  .scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    padding: 16px 0;
  }
}

/* Scroll chevron */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s;
  animation: scrollBounce 2.4s ease-in-out infinite;
}
.scroll-indicator:hover { opacity: 1; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: 120px 0;
}
.section-light {
  background: var(--surface);
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 72px;
}
.section-number {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  margin-top: 16px;
  width: 48px; height: 1px;
  background: var(--accent);
}

/* Reveal animation (set by JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   PROYECTOS
   ============================================================ */

/* Featured blueprint */
.featured-project {
  margin-bottom: 48px;
}
.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.featured-img-wrap:hover .featured-img {
  transform: scale(1.03);
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,0.55) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 32px 40px;
}
.featured-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* Logo Marquee */
.marquee-section {
  background: var(--text);
  padding: 20px 0;
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-inner:hover {
  animation-play-state: paused;
}
.marquee-logo {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0 32px;
  transition: color 0.3s;
  white-space: nowrap;
}
.marquee-logo:hover {
  color: rgba(255,255,255,0.9);
}
.marquee-dot {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0.6;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Project Showcases */
.project-showcase {
  margin-bottom: 72px;
}
.project-showcase-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.showcase-type {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.showcase-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}
.project-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.project-media-grid img,
.project-media-grid video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.project-media-grid video {
  background: #000;
  object-fit: contain;
}
@media (max-width: 768px) {
  .project-media-grid { grid-template-columns: 1fr 1fr; }
  .showcase-name { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .project-media-grid { grid-template-columns: 1fr; }
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.project-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .project-bg {
  transform: scale(1.05);
}

/* Gradient fills per card */
.project-card[data-gradient="1"] .project-bg {
  background: linear-gradient(145deg, #C9BBA8 0%, #A08060 60%, #7A5E42 100%);
}
.project-card[data-gradient="2"] .project-bg {
  background: linear-gradient(145deg, #8A9BA8 0%, #607080 60%, #3A4E5C 100%);
}
.project-card[data-gradient="3"] .project-bg {
  background: linear-gradient(145deg, #BFB49E 0%, #9A8A74 60%, #756050 100%);
}
.project-card[data-gradient="4"] .project-bg {
  background: linear-gradient(145deg, #D4C8B2 0%, #B0A08A 60%, #8A7260 100%);
}
.project-card[data-gradient="5"] .project-bg {
  background: linear-gradient(145deg, #A8B89A 0%, #7E9870 60%, #547050 100%);
}
.project-card[data-gradient="6"] .project-bg {
  background: linear-gradient(145deg, #B8A898 0%, #907060 60%, #6A4E40 100%);
}

/* Info overlay */
.project-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 10, 0.72) 0%, rgba(30, 22, 10, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s var(--ease-out);
}
.project-card:hover .project-info {
  background: linear-gradient(to top, rgba(30, 22, 10, 0.88) 0%, rgba(30, 22, 10, 0.45) 60%, transparent 100%);
}
.project-type {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transform: translateY(4px);
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.project-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  transform: translateY(4px);
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out) 0.03s;
  line-height: 1.2;
}
.project-card:hover .project-type,
.project-card:hover .project-name {
  color: #fff;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .featured-img-wrap { height: 260px; }
}


/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}
.about-video {
  width: 100%;
  margin-top: 32px;
  border-radius: 2px;
  display: block;
}
.about-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.35;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 32px;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.85;
}
.about-text p:last-child { margin-bottom: 0; }

/* Nuestros Valores */
.valores {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin: 80px 0 0;
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.valor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 40px;
}
.valor-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}
.valor-numeral {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
}
.valor-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}
.valor-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .valores {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .valor { padding: 32px 0; }
  .valor-divider { width: 100%; height: 1px; }
}

/* CEO Section */
.ceo-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  margin: 80px 0;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ceo-photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.ceo-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ceo-photo-img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.ceo-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceo-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.4;
}
.ceo-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ceo-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.ceo-name {
  font-family: 'Pinyon Script', cursive;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}
.ceo-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.8;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .ceo-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ceo-photo-wrap {
    aspect-ratio: 1/1;
    max-width: 280px;
    margin: 0 auto;
  }
  .ceo-name { font-size: 1.8rem; }
}

/* Timeline */
.timeline {
  position: relative;
  margin: 80px 0;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  margin-bottom: 40px;
  align-items: start;
  cursor: pointer;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Dot */
.timeline-dot {
  position: absolute;
  left: -52px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 0 6px rgba(139, 115, 85, 0.18);
}
.timeline-item:hover .timeline-dot::after {
  opacity: 1;
  transform: scale(1);
}
.timeline-item.active .timeline-dot,
.timeline-item--present .timeline-dot {
  background: var(--accent);
  transform: scale(1.6);
  box-shadow: 0 0 0 7px rgba(139, 115, 85, 0.22);
}
.timeline-item.active .timeline-dot::after {
  opacity: 1;
  transform: scale(1);
}

/* Year */
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  padding-top: 4px;
  transition: color 0.3s, font-size 0.3s var(--ease-out), opacity 0.3s;
}
.timeline-item:hover .timeline-year {
  color: var(--accent);
  font-size: 2rem;
}
.timeline-item.active .timeline-year {
  color: var(--accent);
  font-size: 2rem;
}

/* Content box */
.timeline-content {
  padding: 12px 16px;
  border-left: 2px solid transparent;
  background: transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  transform: translateX(0);
  border-radius: 2px;
}
.timeline-item:hover .timeline-content {
  transform: translateX(10px);
  border-left-color: rgba(139, 115, 85, 0.4);
  background: var(--surface);
  box-shadow: 0 2px 16px rgba(44, 36, 22, 0.06);
}
.timeline-item.active .timeline-content {
  border-left-color: var(--accent);
  background: var(--surface);
  transform: translateX(6px);
}

/* Title */
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.3s, font-size 0.3s var(--ease-out);
}
.timeline-item:hover .timeline-title {
  color: var(--accent);
  font-size: 1.2rem;
}
.timeline-title::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.6;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  flex-shrink: 0;
}
.timeline-item.active .timeline-title::after {
  content: '—';
  opacity: 1;
}

/* Text — hidden by default, expands on active */
.timeline-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity 0.4s var(--ease-out), max-height 0.5s var(--ease-out), margin-top 0.4s;
}
.timeline-item.active .timeline-text {
  opacity: 0.8;
  max-height: 200px;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .timeline { padding-left: 32px; }
  .timeline-item { grid-template-columns: 56px 1fr; gap: 0 16px; }
  .timeline-dot { left: -36px; }
  .timeline-year { font-size: 1.2rem; }
}

/* Stats */
.stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 40px;
}
.stat:first-child { padding-left: 0; }
.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; }
  .stat { padding: 0; }
  .stat-divider { width: 48px; height: 1px; }
}


/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 2px solid transparent;
  border-left: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:nth-child(1)::before { background: linear-gradient(135deg, rgba(139,115,85,0.08) 0%, rgba(139,115,85,0.03) 100%); }
.service-card:nth-child(2)::before { background: linear-gradient(135deg, rgba(120,100,75,0.08) 0%, rgba(120,100,75,0.03) 100%); }
.service-card:nth-child(3)::before { background: linear-gradient(135deg, rgba(100,130,100,0.07) 0%, rgba(100,130,100,0.02) 100%); }
.service-card:nth-child(4)::before { background: linear-gradient(135deg, rgba(80,100,120,0.07) 0%, rgba(80,100,120,0.02) 100%); }
.service-card:nth-child(5)::before { background: linear-gradient(135deg, rgba(139,115,85,0.08) 0%, rgba(180,160,130,0.04) 100%); }
.service-card:nth-child(6)::before { background: linear-gradient(135deg, rgba(60,50,40,0.06) 0%, rgba(60,50,40,0.02) 100%); }
.service-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,36,22,0.08);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.service-icon svg {
  width: 100%; height: 100%;
}
.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
.service-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.75;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.75;
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 40px 32px; }
}
@media (max-width: 480px) {
  .service-card { padding: 32px 24px; }
}

/* Custom Cursor — Crosshair */
.cursor-cross {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  top: 0; left: 0;
  transition: transform 0.1s, opacity 0.3s;
}
.cursor-cross-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.cursor-cross-v {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform: translateX(-50%);
}
.cursor-cross-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
body.cursor-hover .cursor-cross {
  width: 44px;
  height: 44px;
  opacity: 0.6;
}
@media (max-width: 768px) {
  .cursor-cross { display: none; }
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
}
.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.25s, background 0.25s;
  line-height: 1;
}
.lang-divider {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  user-select: none;
}
#main-nav.scrolled .lang-divider { color: rgba(44,36,22,0.2); }
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn.lang-active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
#main-nav.scrolled .lang-btn { color: rgba(44,36,22,0.45); }
#main-nav.scrolled .lang-btn:hover { color: var(--text); }
#main-nav.scrolled .lang-btn.lang-active {
  color: var(--text);
  background: rgba(44,36,22,0.08);
}
@media (max-width: 768px) {
  .lang-switcher { margin-left: 0; }
  .lang-btn { color: rgba(44,36,22,0.5); }
  .lang-btn.lang-active { color: var(--text); background: rgba(44,36,22,0.08); }
}

/* Costa Rica Map */
.cr-map-wrap {
  width: 100%;
  margin-top: 20px;
}
.cr-map-img-wrap {
  position: relative;
  width: 100%;
}
.cr-map-img {
  width: 100%;
  height: auto;
  display: block;
}
.cr-pins-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cr-pin {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}
.cr-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--text);
  text-anchor: middle;
  font-weight: 500;
}

/* WhatsApp links in contact section */
.whatsapp-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #25D366;
  text-decoration: none;
  transition: opacity 0.2s;
}
.whatsapp-link:hover {
  opacity: 0.75;
}
.whatsapp-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.phone-primary {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.whatsapp-link--primary {
  font-size: 1.05rem;
  font-weight: 500;
}
.whatsapp-link--primary svg {
  width: 22px;
  height: 22px;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.96);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.gallery-modal.active {
  display: flex;
}
.gallery-media-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
.gallery-media-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}
.gallery-media-wrap video {
  max-width: 100%;
  max-height: 100%;
  outline: none;
}
.gallery-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.gallery-close:hover { color: #fff; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 16px;
  transition: color 0.2s;
  z-index: 10;
  user-select: none;
}
.gallery-nav:hover { color: #fff; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}
.project-card[data-gallery] { cursor: pointer; }


/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.form-field {
  position: relative;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}
.field-line {
  display: none; /* border-bottom handles it */
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 32px;
  border: 1px solid var(--text);
  transition: background 0.3s, color 0.3s;
}
.btn-submit:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 96px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy,
.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   MOBILE NAV OVERLAY FIX
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
}
