/* Panorapp — estilos del home (antes incrustados en index.html; v10) */
/* ===== Fuentes locales, mismo origen (/fonts/) ===== */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/public-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/public-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/public-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--yellow); color: var(--black); padding: 0.8rem 1.4rem; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.skip-link:focus { left: 0; }


/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: #0c0c0c;
  color: #eeebe4;
  font-family: 'Public Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* =============================================
   VARIABLES
============================================= */
:root {
  --black:  #0c0c0c;
  --dark:   #141414;
  --dark2:  #1c1c1c;
  --dark3:  #242424;
  --light:  #eeebe4;
  --muted:  #8a887f;
  --faint:  #2e2e2c;
  --yellow: #e5d62a;
  --ylow:   rgba(229,214,42,0.15);
}

/* =============================================
   UTILITIES
============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.section    { padding: 7rem 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}
h2 .eyebrow::before, .hero-h1 .eyebrow::before, .hero-h1 .hero-tag::before { flex: none; }
h2 .eyebrow { display: flex; width: fit-content; font-family: 'Public Sans', sans-serif; font-style: normal; line-height: 1.7; margin: 8px 0 calc(1.5rem + 1px); } /* línea superior dentro del h2: misma apariencia que fuera */
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--yellow); }

/* Scroll reveal — opacity + subtle slide */
.fade { opacity: 0; transform: translateY(64px) scale(0.97); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22,0.61,0.36,1); }
.fade.show { opacity: 1; transform: translateY(0) scale(1); }
.fade-d1 { transition-delay: 0.1s; }
.fade-d2 { transition-delay: 0.2s; }
.fade-d3 { transition-delay: 0.3s; }
.fade-d4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .fade { transform: none; transition: opacity 0.6s ease; }
}

/* =============================================
   NAV
============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s, padding 0.3s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#navbar.solid {
  background: rgba(12,12,12,0.96);
  padding: 1rem 2.5rem;
  border-color: var(--faint);
}

.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--light);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--light); }

.nav-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 0.6rem 1.4rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-btn:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(229,214,42,0.45); }

/* Hamburger */
.hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
}
.hamburger::before { content: ''; position: absolute; inset: -11px; }
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--light);
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu — always display:none until opened */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--muted);
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--light); }
#mobile-menu .mob-cta {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 0.8rem 2rem;
  margin-top: 1rem;
}

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 4rem 6rem 2.5rem;
  padding-left: max(2.5rem, calc((100vw - 1200px) / 2 + 2.5rem));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.3s forwards;
}
.hero-h1 .eyebrow, .hero-h1 .hero-tag { display: flex; width: fit-content; font-family: 'Public Sans', sans-serif; font-style: normal; line-height: 1.7; }
.hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--yellow); }

.hero-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.25rem, 3.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.5s forwards;
}
.hero-h1 .hl {
  font-style: normal;
  background: var(--yellow);
  color: var(--black);
  padding: 0.02em 0.32em;
  line-height: 1.25;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.85;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.7s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.8s 0.9s forwards;
}

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--black);
  padding: 0.9rem 1.8rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-fill:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(229,214,42,0.45); }
.btn-fill svg { width: 15px; height: 15px; }

.btn-line {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-line:hover { color: var(--light); border-color: var(--muted); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 0.9rem 1.8rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); }

/* Hero numbers */
.hero-numbers {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--faint);
  opacity: 0;
  animation: fadeIn 0.8s 1.1s forwards;
}
.hero-num-item {}
.hero-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 0.25rem; }
.hero-num-text { font-size: 1.15rem; font-weight: 400; line-height: 1.2; padding-top: 0.4rem; }
.hero-num-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* Hero right — image */
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) saturate(0.6);
  transform: scale(1.04) scaleX(-1);
  animation: slowzoom 18s ease forwards;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--black) 0%, transparent 30%),
    linear-gradient(165deg, rgba(229,214,42,0.07), transparent 55%),
    linear-gradient(0deg, rgba(12,12,12,0.35), transparent 45%);
}

/* =============================================
   TICKER / MARQUEE
============================================= */
.ticker {
  background: var(--yellow);
  overflow: hidden;
  padding: 0.9rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  white-space: nowrap;
  padding: 0 2rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.ticker-item::after { content: '·'; }

/* =============================================
   SERVICIOS
============================================= */
#servicios { background: var(--dark); }

.servicios-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.servicios-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}
.servicios-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.85; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--faint);
}

.servicio-item {
  position: relative;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--faint);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.servicio-item:last-child { border-right: none; }
.servicio-item:hover { background: var(--dark2); }

.servicio-n {
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.servicio-n::before { content: ''; width: 18px; height: 1px; background: var(--faint); transition: background 0.3s; }
.servicio-item:hover .servicio-n::before { background: var(--yellow); }
.servicio-item:hover .servicio-n { color: var(--yellow); }

.servicio-h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.servicio-p { font-size: 0.82rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.servicio-proof { font-size: 0.75rem; color: var(--yellow); line-height: 1.6; margin-bottom: 1.25rem; padding-left: 0.75rem; border-left: 1px solid rgba(229,214,42,0.4); }
.servicio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.servicio-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow);
  transition: gap 0.2s;
}
.servicio-link::before { content: ''; position: absolute; inset: 0; }
.servicio-link:hover { gap: 0.7rem; }
.servicio-link svg { width: 12px; height: 12px; }
.stag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--faint);
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  transition: border-color 0.3s, color 0.3s;
}
.servicio-item:hover .stag { border-color: var(--yellow); color: var(--yellow); }

/* =============================================
   PROCESO
============================================= */
#proceso { background: var(--black); }

.proceso-top { margin-bottom: 4rem; }
.proceso-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

.proceso-list { display: flex; flex-direction: column; }

.proceso-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--faint);
  transition: background 0.3s;
  cursor: default;
}
.proceso-step:first-child { border-top: 1px solid var(--faint); }

/* Marker column: icon + number, with vertical connector */
.proceso-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.proceso-marker::after {
  content: '';
  position: absolute;
  top: 56px;
  bottom: -2.5rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, var(--faint), transparent 90%);
  transform: translateX(-50%);
}
.proceso-step:last-child .proceso-marker::after { display: none; }

.proceso-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: var(--black);
  transition: border-color 0.35s, color 0.35s, transform 0.35s;
  z-index: 1;
}
.proceso-icon svg { width: 19px; height: 19px; }
.proceso-step:hover .proceso-icon { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }

.proceso-num {
  font-family: 'Public Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1;
  transition: color 0.3s;
}
.proceso-step:hover .proceso-num { color: var(--yellow); }

.proceso-body {}
.proceso-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.proceso-badge {
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ylow);
  color: var(--yellow);
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(229,214,42,0.3);
}
.proceso-text { font-size: 0.88rem; color: var(--muted); line-height: 1.8; max-width: 72ch; }

/* =============================================
   PORTAFOLIO
============================================= */
#portafolio { background: var(--dark); }

.portafolio-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.portafolio-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
}

.port-tabs { display: flex; border: 1px solid var(--faint); }
.port-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.port-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.port-tab + .port-tab { border-left: 1px solid var(--faint); }
.port-tab.active { background: var(--yellow); color: var(--black); font-weight: 500; }
.port-tab:not(.active):hover { color: var(--light); }

.port-panel { display: none; }
.port-panel.active { display: block; }

/* Photo filters */
.photo-filters { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 2rem; }
.photo-filter {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--faint);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.photo-filter.active, .photo-filter:hover { color: var(--yellow); border-color: var(--yellow); }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.photo-cell { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--dark2); }
.photo-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(229,214,42,0.06), transparent 55%),
    linear-gradient(0deg, rgba(12,12,12,0.4), transparent 45%);
}
.photo-cell.span2 { grid-column: span 2; aspect-ratio: 2/1; }
.photo-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.6s ease, filter 0.4s;
}
.photo-cell:hover img { transform: scale(1.06); filter: brightness(0.95); }
.photo-info {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-cell:hover .photo-info { opacity: 1; }
.photo-cat { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.2rem; }
.photo-name { font-family: 'Fraunces', serif; font-size: 1.05rem; }

/* Video section */
.video-row { margin-bottom: 2.5rem; }
.video-row-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.video-row-title > span:first-child { flex-shrink: 0; }
.video-row-title::after { content: ''; flex: 1; height: 1px; background: var(--faint); order: 1; }
.video-row-title .scroll-hint { order: 2; }

.video-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.video-scroll::-webkit-scrollbar { height: 2px; }
.video-scroll::-webkit-scrollbar-thumb { background: #333; }

/* Wrapper to host the right-edge fade cue */
.video-scroll-wrap { position: relative; }
.video-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0.5rem;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--dark));
  opacity: 1;
  transition: opacity 0.3s;
}
.video-scroll-wrap.at-end::after { opacity: 0; }

/* Scroll hint next to the row title */
.scroll-hint {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.scroll-hint svg { width: 13px; height: 13px; animation: nudge 1.6s ease-in-out infinite; }
.video-scroll-wrap.scrolled .scroll-hint { opacity: 0; }
@keyframes nudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }

.video-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--dark2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover { transform: scale(1.02) translateY(-4px); box-shadow: 0 24px 48px -20px rgba(0,0,0,0.75); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: filter 0.3s; }
.video-card:hover .video-thumb img { filter: brightness(0.8); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}
.video-card:hover .play-btn { border-color: var(--yellow); transform: scale(1.1); }
.play-btn svg { width: 14px; height: 14px; color: white; margin-left: 3px; }
.video-dur { position: absolute; bottom: 0.5rem; right: 0.5rem; font-size: 12px; background: rgba(0,0,0,0.7); padding: 0.15rem 0.4rem; }
.video-meta { padding: 0.75rem; }
.video-title { font-size: 0.87rem; margin-bottom: 0.2rem; }
.video-sub { font-size: 12px; color: var(--muted); }

/* Tours */
.tours-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.tour-card {
  background: var(--dark2);
  border: 1px solid var(--faint);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tour-card:hover { border-color: rgba(229,214,42,0.4); transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(0,0,0,0.75); }
.tour-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transition: transform 0.5s, filter 0.3s; }
.tour-card:hover .tour-thumb img { transform: scale(1.05); filter: brightness(0.7); }
.tour-badge {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(229,214,42,0.4);
  padding: 0.3rem 0.65rem;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow);
}
.tour-dot { position: relative; width: 5px; height: 5px; background: var(--yellow); border-radius: 50%; }
.tour-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  animation: pulse360 2s ease-out infinite;
}
.tour-info { padding: 1.1rem; }
.tour-name { font-family: 'Fraunces', serif; font-size: 1rem; margin-bottom: 0.4rem; }
.tour-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.tour-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: gap 0.2s;
}
.tour-cta:hover { gap: 0.7rem; }
.tour-cta svg { width: 12px; height: 12px; }

/* =============================================
   NOSOTROS
============================================= */
#nosotros { background: var(--black); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.nos-images { position: relative; }
.nos-images::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, rgba(229,214,42,0.06), transparent 55%),
    linear-gradient(0deg, rgba(12,12,12,0.3), transparent 40%);
}
.nos-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.75);
}
.nos-img-accent {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  bottom: -2rem;
  right: -2rem;
  border: 4px solid var(--black);
  filter: brightness(0.75);
}
.nos-year-badge {
  position: absolute;
  top: 2rem; left: -1rem;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  writing-mode: vertical-rl;
  line-height: 1;
}

.nos-content {}
.nos-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 1.75rem;
  line-height: 1.2;
}
.nos-p { font-size: 0.95rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.25rem; }

.nos-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--faint);
}
.nos-val-title { font-size: 0.85rem; font-weight: 500; color: var(--yellow); margin-bottom: 0.2rem; }
.nos-val-text { font-size: 0.8rem; color: var(--muted); }

/* =============================================
   PRINCIPIOS (Cómo nos gusta trabajar)
============================================= */
#principios { background: var(--dark); }

.princ-head { text-align: center; margin-bottom: 3rem; }
.princ-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400;
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.2;
}

/* Toggle global mercado / panorapp */
.princ-toggle {
  position: relative;
  display: inline-flex;
  margin-top: 1.75rem;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 3px;
  background: var(--black);
}
.princ-toggle-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  transition: color 0.3s;
}
.princ-toggle-btn.active { color: var(--black); }
.princ-toggle-btn[data-side="mercado"].active { color: var(--light); }
.princ-toggle-slider {
  position: absolute;
  top: 3px; bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--yellow);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), background 0.3s;
  z-index: 0;
}
.princ-toggle[data-active="mercado"] .princ-toggle-slider { transform: translateX(0); background: var(--dark3); }
.princ-toggle[data-active="panorapp"] .princ-toggle-slider { transform: translateX(100%); background: var(--yellow); }

.princ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--faint);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.princ-card {
  position: relative;
  background: var(--dark);
  padding: 2.5rem 1.75rem;
  min-height: 240px;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}
.princ-card:hover { background: var(--dark2); }
.princ-n {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--faint);
  line-height: 1;
  transition: color 0.3s;
  margin-bottom: 1.5rem;
}

/* Las dos caras: mercado (apagada) y panorapp (marca) */
.princ-face {
  position: absolute;
  left: 1.75rem; right: 1.75rem; bottom: 2.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.princ-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.princ-mercado .princ-label { color: var(--muted); }
.princ-panorapp .princ-label { color: var(--yellow); }
.princ-text {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
}
.princ-mercado .princ-text { color: var(--muted); }
.princ-panorapp .princ-text { color: var(--light); }

/* Estado por card: data-show controla qué cara se ve (gana sobre el global) */
.princ-card[data-show="panorapp"] .princ-panorapp,
.princ-card[data-show="mercado"] .princ-mercado { opacity: 1; transform: translateY(0); }
.princ-card[data-show="mercado"] .princ-n { color: var(--muted); }
.princ-card[data-show="panorapp"]:hover .princ-n { color: var(--yellow); }

.princ-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: opacity 0.4s;
}
.princ-hint.hide { opacity: 0; }

/* =============================================
   CONTACTO
============================================= */
#contacto { background: var(--black); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.con-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.con-desc { font-size: 0.95rem; color: var(--muted); margin-bottom: 2.5rem; }

.con-info { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.con-info-row { display: flex; align-items: flex-start; gap: 1rem; }
.con-icon {
  width: 34px; height: 34px;
  border: 1px solid var(--faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  flex-shrink: 0;
}
.con-icon svg { width: 15px; height: 15px; stroke-width: 1.5; fill: none; stroke: currentColor; }
.con-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.con-value { font-size: 0.9rem; }
.con-value-link { position: relative; display: inline-block; }
.con-value-link::before { content: ''; position: absolute; inset: -11px -6px; }
.con-value-link {
  font-size: 0.9rem;
  color: var(--light);
  display: inline-block;
  transition: color 0.2s;
}
.con-value-link:hover { color: var(--yellow); }

.con-socials { display: flex; gap: 0.75rem; }
.con-trust { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; padding: 1.5rem; border: 1px solid var(--faint); background: rgba(255,255,255,0.015); }
.con-trust-row { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.con-trust-row svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--yellow); margin-top: 2px; }
.con-trust-row strong { color: var(--light); font-weight: 500; }
.con-social {
  width: 38px; height: 38px;
  border: 1px solid var(--faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.con-social:hover { border-color: var(--yellow); color: var(--yellow); }

/* Form */
.form-wrap { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  background: var(--dark2);
  border: 1px solid var(--faint);
  color: var(--light);
  padding: 0.8rem 1rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(229,214,42,0.5); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-select {
  cursor: pointer;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7870' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
}
.form-select option { background: var(--dark2); }
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--yellow);
  color: var(--black);
  border: none;
  padding: 0.95rem 2rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  margin-top: 0.25rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.form-submit:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(229,214,42,0.45); }
.form-submit svg { width: 15px; height: 15px; }

/* Honeypot — invisible para humanos, bots lo llenan */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Turnstile widget container */
.form-turnstile {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.form-turnstile .cf-turnstile { width: 100%; max-width: 320px; }
.form-turnstile-fallback { font-size: 12px; color: var(--muted); text-align: center; margin: -0.75rem 0 1.25rem; line-height: 1.6; }
.form-turnstile-fallback a { color: var(--yellow); }

/* Disclaimer de consentimiento bajo el botón */
.form-disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 0.5rem 0 0;
  opacity: 0.85;
}
.form-disclaimer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(122,120,112,0.4);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.form-disclaimer a:hover {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 0.5rem; opacity: 0.85; cursor: pointer; text-align: left; }
.form-consent input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; min-width: 16px; accent-color: var(--yellow); flex-shrink: 0; cursor: pointer; }
.form-consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--yellow); }

/* Mensaje de estado del formulario */
.form-status {
  display: none;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  border: 1px solid var(--faint);
  text-align: center;
  margin-top: 0.25rem;
  line-height: 1.5;
}
.form-status.success {
  color: var(--yellow);
  border-color: rgba(229,214,42,0.4);
  background: var(--ylow);
  display: block;
}
.form-status.error {
  color: #ff8a8a;
  border-color: rgba(255,138,138,0.35);
  background: rgba(255,138,138,0.08);
  display: block;
}

/* =============================================
   FOOTER
============================================= */
#footer {
  background: var(--dark);
  border-top: 1px solid var(--faint);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
}
.footer-tagline { font-size: 0.85rem; color: var(--muted); max-width: 28ch; line-height: 1.7; }
.footer-col-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; position: relative; display: inline-block; }
.footer-links a::before { content: ''; position: absolute; inset: -12px -8px; }
.footer-links a:hover { color: var(--light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--faint);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a {
  position: relative;
  display: inline-block;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-bottom a::before { content: ''; position: absolute; inset: -12px -8px; }
.footer-bottom a:hover { color: var(--yellow); }

/* =============================================
   MODALS
============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  transition: border-color 0.2s, color 0.2s;
}
.modal-fullscreen {
  position: absolute;
  top: 1.5rem; right: 5rem;
  width: 40px; height: 40px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  z-index: 5;
}
.modal-fullscreen svg { width: 18px; height: 18px; }
.modal-fullscreen:hover { color: var(--light); border-color: var(--muted); }

.modal-close:hover { border-color: var(--yellow); color: var(--yellow); }
.modal-body-video { width: min(90vw, 880px); aspect-ratio: 16/9; background: #000; }
.modal-video-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.modal-cta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: center; width: min(90vw, 880px); }
.modal-cta .btn-fill { font-size: .85rem; padding: .8rem 1.4rem; }
.modal-cta-link { font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.modal-cta-link:hover { color: var(--light); }
.modal-body-tour  { width: min(94vw, 1080px); height: min(88vh, 640px); background: #000; }
.modal-body-video iframe,
.modal-body-tour  iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   GLIGHTBOX — visibilidad de navegación en móvil
============================================= */
/* Mantener flechas visibles también en pantallas táctiles/pequeñas */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(12,12,12,0.55);
  width: 44px; height: 44px;
  border-radius: 50%;
  opacity: 0.9;
}
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg { width: 18px; height: 18px; }
.glightbox-clean .gprev { left: 12px; }
.glightbox-clean .gnext { right: 12px; }
.glightbox-clean .gclose { opacity: 0.9; }
.glightbox-clean .gslide-description { display: none !important; }

/* Contador de imágenes (1 / 9) */
.glightbox-counter {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #eeebe4;
  background: rgba(12,12,12,0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glightbox-counter.show { opacity: 1; }
/* Pista de deslizar, solo primera vez */
.gswipe-hint {
  position: fixed;
  bottom: 70px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000000;
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0c0c;
  background: var(--yellow);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  pointer-events: none;
  display: flex; align-items: center; gap: 0.4rem;
  animation: hintFade 3.2s ease forwards;
}
.gswipe-hint svg { width: 14px; height: 14px; }
@keyframes hintFade { 0%{opacity:0} 12%{opacity:1} 75%{opacity:1} 100%{opacity:0} }
@media (prefers-reduced-motion: reduce) { .gswipe-hint { animation: none; opacity: 0.95; } }
/* Evita que el navegador capture el gesto (zoom/arrastre) sobre la imagen */
.glightbox-container {
  touch-action: pan-y !important; /* el navegador deja pasar el gesto horizontal */
}
.glightbox-clean .gslide-media,
.glightbox-clean .gslide-image,
.glightbox-clean .gslide-image img {
  touch-action: pan-y !important;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none; /* el gesto pasa al contenedor, que es quien lo detecta */
}

/* =============================================
   ANIMATIONS & KEYFRAMES
============================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slowzoom { from { transform: scale(1.04) scaleX(-1); } to { transform: scale(1) scaleX(-1); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes pulse360 { 0%{transform:scale(1);opacity:0.8} 70%{transform:scale(2.4);opacity:0} 100%{transform:scale(2.4);opacity:0} }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .princ-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  #navbar { padding: 1.1rem 1.5rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 8rem 1.5rem 4rem; }
  .hero-numbers { gap: 1.5rem; }

  .servicios-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicio-item { border-right: none; border-bottom: 1px solid var(--faint); }
  .servicio-item:last-child { border-bottom: none; }

  .proceso-step { grid-template-columns: 56px 1fr; gap: 1.25rem; }
  .proceso-marker::after { top: 48px; }

  .portafolio-top { flex-direction: column; align-items: flex-start; }
  .port-tabs { width: 100%; }
  .port-tab { flex: 1; font-size: 12px; padding: 0.65rem 0.5rem; }

  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-cell.span2 { grid-column: span 1; aspect-ratio: 4/3; }

  /* En móvil la tarjeta ocupa ~80% del ancho para que la siguiente asome */
  .video-card { flex-basis: 78vw; max-width: 300px; }
  .video-scroll-wrap::after { width: 40px; }

  .tours-grid { grid-template-columns: 1fr 1fr; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nos-img-accent { display: none; }
  .nos-images { max-width: 480px; }

  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nos-values { grid-template-columns: 1fr; }

  .princ-grid { grid-template-columns: 1fr; }
  .princ-card { padding: 2rem 1.5rem; min-height: 170px; }
  .princ-face { left: 1.5rem; right: 1.5rem; bottom: 2rem; }
  .princ-card .princ-n { margin-bottom: 1rem; }
}

/* =============================================
   SUPERFICIES · fondos solidos (reemplaza capa frosted anterior)
============================================= */
:root{
  --glass-bg:   var(--dark2);
  --glass-bg2:  var(--dark3);
  --glass-brd:  rgba(255,255,255,0.14);
  --glass-hi:   rgba(255,255,255,0.10);
}

/* Sutil variacion tonal monocroma de fondo */
body{ background: #0c0c0c; }
body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 680px at 72% -4%, #17171b 0%, rgba(12,12,12,0) 58%),
    radial-gradient(900px 600px at 0% 40%, #131316 0%, rgba(12,12,12,0) 55%),
    #0c0c0c;
}
/* ---- Grano cinematografico sutil ---- */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Nav: superficie solida al hacer scroll ---- */
#navbar.solid{
  background: var(--black);
  border-color: var(--glass-brd);
}

/* ---- Menu movil ---- */
#mobile-menu{
  background: var(--black);
}

/* ---- Servicios: tarjetas con borde fino ---- */
.servicios-grid{
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-top: none;
}
.servicio-item{
  border: 1px solid var(--glass-brd);
  border-right: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 22px 44px -30px rgba(0,0,0,0.85);
}
.servicio-item:last-child{ border-right: 1px solid var(--glass-brd); }
.servicio-item:hover{ background: var(--glass-bg2); border-color: rgba(229,214,42,0.4); transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(0,0,0,0.75); }

/* ---- Proceso: iconos y filas ---- */
.proceso-icon{
  background: var(--glass-bg);
  border-color: var(--glass-brd);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.proceso-step{ border-radius: 14px; }
.proceso-step:hover{
  background: var(--glass-bg);
}

/* ---- Portafolio: tabs y tarjetas ---- */
.port-tabs{
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  padding: 4px;
  background: var(--glass-bg);
}
.port-tab{ border-radius: 999px; }
.port-tab + .port-tab{ border-left: none; }

.photo-filter{
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass-bg);
}

.video-card{
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 22px 44px -30px rgba(0,0,0,0.85);
}
.play-btn{
  background: rgba(12,12,12,0.75);
}

.tour-card{
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 22px 44px -30px rgba(0,0,0,0.85);
}
.tour-badge{
  background: rgba(12,12,12,0.85);
}

/* ---- Principios: toggle y tarjetas ---- */
.princ-toggle{
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
}
.princ-grid{ gap: 14px; background: transparent; border: none; }
.princ-card{
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 22px 44px -30px rgba(0,0,0,0.85);
}
.princ-card:hover{ background: var(--glass-bg2); }

/* ---- Contacto: caja de confianza, iconos y formulario ---- */
.con-icon{
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  background: var(--glass-bg);
}
.con-trust{
  border: 1px solid var(--glass-brd);
  border-radius: 18px;
  background: var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.con-social{
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  background: var(--glass-bg);
}
.form-wrap{
  padding: 1.75rem;
  border: 1px solid rgba(229,214,42,0.45);
  border-radius: 18px;
  background: var(--dark2);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 44px -14px rgba(229,214,42,0.3);
}
.form-input, .form-select, .form-textarea{
  background: var(--dark2);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
}
.form-submit{ border-radius: 12px; }

/* ---- Modales ---- */
.modal-overlay{
  background: rgba(8,8,8,0.9);
}
.modal-close{
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
}

/* ---- Responsive: respeta los breakpoints originales ---- */
@media (max-width: 1024px){ .servicios-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px){
  .servicios-grid{ grid-template-columns: 1fr; }
  .servicio-item{ border-right: 1px solid var(--glass-brd); border-bottom: 1px solid var(--glass-brd); }
}

/* =============================================
   MOTION & POLISH · scrollytelling, parallax,
   reveals, grano, portafolio vivo, WhatsApp
============================================= */

/* ---- Proceso · scrollytelling ----
   La línea conectora se "llena" de amarillo y cada paso
   se enciende cuando entra al viewport (clase .active vía JS) */
.proceso-marker::before{
  content: '';
  position: absolute;
  top: 56px;
  bottom: -2.5rem;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), rgba(229,214,42,0.3));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.22,0.61,0.36,1) 0.2s;
  z-index: 0;
}
.proceso-step.active .proceso-marker::before{ transform: translateX(-50%) scaleY(1); }
.proceso-step:last-child .proceso-marker::before{ display: none; }
.proceso-step .proceso-icon,
.proceso-step .proceso-num{ transition: border-color 0.5s, color 0.5s, transform 0.5s, box-shadow 0.5s; }
.proceso-step.active .proceso-icon{
  border-color: var(--yellow);
  color: var(--yellow);
  transform: scale(1.22);
  box-shadow: 0 0 34px rgba(229,214,42,0.45);
}
.proceso-step.active .proceso-num{ color: var(--yellow); }
.proceso-step .proceso-body{ opacity: 0.22; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.proceso-step.active .proceso-body{ opacity: 1; transform: translateY(0); }
@media (max-width: 768px){
  .proceso-marker::before{ top: 48px; }
}
@media (prefers-reduced-motion: reduce){
  .proceso-marker::before{ transition: none; }
  .proceso-step .proceso-body{ opacity: 1; transform: none; transition: none; }
}

/* ---- Reveal de titulares por palabras (máscara + slide) ---- */
.wreveal .w{ display: inline-block; overflow: hidden; vertical-align: bottom; }
.wreveal .w > span{
  display: inline-block;
  transform: translateY(125%) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform 1.15s cubic-bezier(0.22,0.61,0.36,1);
  transition-delay: calc(var(--wi, 0) * 90ms);
  will-change: transform;
}
.wreveal.shown .w > span{ transform: translateY(0) rotate(0deg); }
@media (prefers-reduced-motion: reduce){
  .wreveal .w > span{ transform: none; transition: none; }
}

/* ---- Barra de progreso de scroll ---- */
#scrollProgress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 940;
  pointer-events: none;
}

/* ---- Portafolio vivo · tours 360 con paneo automático al hover ---- */
@media (pointer: fine){
  .tour-card:hover .tour-thumb img{
    animation: tourDrift 7s ease-in-out infinite alternate;
    filter: brightness(0.75);
  }
}
@keyframes tourDrift{
  from{ transform: scale(1.22) translateX(5%); }
  to{   transform: scale(1.22) translateX(-5%); }
}
@media (prefers-reduced-motion: reduce){
  .tour-card:hover .tour-thumb img{ animation: none; }
}

/* ---- Cursor "Ver +" sobre el portafolio (solo desktop) ---- */
#cursorBadge{
  position: fixed;
  top: 0; left: 0;
  z-index: 960;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0);
  transition: transform 0.25s ease;
  will-change: left, top;
}
#cursorBadge.on{ transform: translate(-50%,-50%) scale(1); }
@media (pointer: coarse){ #cursorBadge{ display: none; } }

/* ---- Filtros de fotografía funcionales ---- */
.photo-cell.hidden-cat{ display: none; }

/* ---- WhatsApp flotante ---- */
.wa-float{
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 890;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover{ transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,0.35); }
.wa-float svg{ width: 30px; height: 30px; }
@media (max-width: 768px){
  .wa-float { width: 44px; height: 44px; right: 1rem; bottom: 1rem; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ---- Franja de clientes ---- */
.clientes{
  background: var(--black);
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--faint);
}
.clientes-label{
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.75rem;
}
.clientes-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 3.25rem;
}
.cliente{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  color: var(--muted);
  opacity: 0.8;
  white-space: nowrap;
  transition: color 0.3s, opacity 0.3s;
  cursor: default;
}
.cliente:hover{ color: var(--light); opacity: 1; }
.cliente-logo{ height: 30px; width: auto; opacity: 0.65; filter: grayscale(1) brightness(1.6); transition: opacity 0.3s, filter 0.3s; }
.cliente-logo:hover{ opacity: 1; filter: grayscale(0) brightness(1); }
@media (max-width: 768px){
  .clientes-row{ gap: 1rem 1.75rem; }
  .cliente{ font-size: 1.05rem; }
}

/* ---- Hero: wipe cinematográfico de la imagen al cargar ---- */
@media (min-width: 769px){
  .hero-right img{
    animation: heroWipe 1.4s cubic-bezier(0.22,0.61,0.36,1) 0.2s backwards,
               slowzoom 18s ease forwards;
  }
}
@keyframes heroWipe{
  from{ clip-path: inset(0 0 0 100%); }
  to{   clip-path: inset(0 0 0 0); }
}

/* ---- Fotos: desaturadas hasta el hover (el color "enciende") ---- */
.photo-cell img{
  filter: brightness(0.7) saturate(0.3);
  transition: transform 0.8s cubic-bezier(0.22,0.61,0.36,1), filter 0.5s ease;
}
.photo-cell:hover img{
  transform: scale(1.1);
  filter: brightness(1) saturate(1);
}

/* ---- Portafolio: las tarjetas entran en cascada al cambiar de pestaña ---- */
.port-panel.active .photo-cell,
.port-panel.active .video-card,
.port-panel.active .tour-card{
  animation: cardIn 0.7s cubic-bezier(0.22,0.61,0.36,1) backwards;
}
@keyframes cardIn{
  from{ opacity: 0; transform: translateY(36px) scale(0.95); }
}
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(1){ animation-delay: 0.04s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(2){ animation-delay: 0.09s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(3){ animation-delay: 0.14s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(4){ animation-delay: 0.19s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(5){ animation-delay: 0.24s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(6){ animation-delay: 0.29s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(7){ animation-delay: 0.34s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(8){ animation-delay: 0.39s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(9){ animation-delay: 0.44s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(10){ animation-delay: 0.49s; }
.port-panel.active :is(.photo-cell, .video-card, .tour-card):nth-child(n+11){ animation-delay: 0.54s; }

/* ---- Eyebrow: la línea amarilla se dibuja al aparecer ---- */
.fade .eyebrow::before, .fade.eyebrow::before{ width: 0; transition: width 0.7s ease 0.45s; }
.fade.show .eyebrow::before, .fade.show.eyebrow::before{ width: 24px; }

/* ---- Nav: subrayado animado en los links ---- */
.nav-links a{ position: relative; }
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1);
}
.nav-links a:hover::after{ transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce){
  .fade{ filter: none; transform: none; }
  .hero-right img{ animation: none; }
  .ticker-track{ animation: none; }
  .port-panel.active .photo-cell,
  .port-panel.active .video-card,
  .port-panel.active .tour-card{ animation: none; }
}

/* =============================================
   CTA INTERMEDIO
============================================= */
.cta-band {
  background: var(--black);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  padding: 4.5rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.proceso-h2 em, .nos-h2 em, .con-h2 em, .cta-band-h2 em {
  font-style: normal;
  background: var(--yellow);
  color: var(--black);
  padding: 0.02em 0.3em;
  line-height: 1.3;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cta-band-p { color: var(--muted); font-size: 0.92rem; max-width: 48ch; line-height: 1.8; }
.cta-band-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 768px) {
  .cta-band { padding: 3.5rem 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
}

/* =============================================
   FAQ
============================================= */
#faq { background: var(--black); }
.faq-head { text-align: center; margin-bottom: 3rem; }
.faq-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
}
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--faint); }
.faq-item { border-bottom: 1px solid var(--faint); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.12rem;
  font-weight: 400;
  list-style: none;
  transition: color 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--yellow); }
.faq-item[open] .faq-q { color: var(--yellow); }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease;
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); }
.faq-a { padding: 0 2.5rem 1.75rem 0; }
.faq-a p { color: var(--muted); font-size: 0.92rem; line-height: 1.85; }
@media (max-width: 768px) {
  .faq-q { font-size: 1rem; padding: 1.3rem 0; }
  .faq-a { padding-right: 1rem; }
}

/* ---- Accesibilidad: foco visible solo con teclado ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Loader del recorrido 360 (mientras carga el iframe) ---- */
.modal-body-tour { position: relative; }
.tour-loader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background: #0c0c0c;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.tour-loader.on { opacity: 1; }
.tour-loader-ring {
  width: 46px; height: 46px;
  border: 2px solid var(--faint);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: tourSpin 0.9s linear infinite;
}
.tour-loader-text {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
@keyframes tourSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tour-loader-ring { animation-duration: 2.5s; } }

/* WCAG 2.5.8: área táctil ampliada sin cambio visual */
.btn-line{ position: relative; }
.btn-line::before{ content: ''; position: absolute; inset: -13px -6px; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Los h3 semánticos conservan el peso tipográfico original */
.tour-name, .ind-title, .dif-box-title { font-weight: 400; }
.video-title { font-weight: 300; }

/* ---- Nav: submenu de Servicios y enlaces a servicios en el hero (T17) ---- */
.nav-links .has-sub{ position: relative; }
.nav-sub{
  display: none; position: absolute; top: calc(100% + 14px); left: -1.25rem;
  min-width: 240px; padding: 0.6rem 0; list-style: none;
  background: rgba(12,12,12,0.98); border: 1px solid var(--faint); border-radius: 12px;
  z-index: 900;
}
.nav-sub::before{ content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub{ display: block; }
.nav-sub a{ display: block; padding: 0.6rem 1.25rem; white-space: nowrap; }
.nav-sub a::after{ display: none; }
#mobile-menu a.mob-sub{ font-size: 1.35rem; margin-top: -0.9rem; }
#mobile-menu{ justify-content: safe center; overflow-y: auto; padding: 4.5rem 0 2rem; }
@media (max-height: 720px){
  #mobile-menu{ gap: 1.2rem; }
  #mobile-menu a{ font-size: 1.8rem; }
  #mobile-menu a.mob-sub{ font-size: 1.15rem; margin-top: -0.5rem; }
  #mobile-menu .mob-cta{ font-size: 13px; }
}
.hero-links{
  margin-top: 1.4rem; font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
  opacity: 0; animation: fadeIn 0.8s 1.05s forwards;
}
.hero-links a{ color: var(--light); border-bottom: 1px solid var(--yellow); padding-bottom: 1px; }
.hero-links a:hover{ color: var(--yellow); }
.hero-links .sep{ margin: 0 0.55rem; color: var(--muted); }
.port-cta{ display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
