/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #cfc4b5;   /* microcemento beige cálido */
  --bg-2:       #c8bdb0;   /* microcemento beige más profundo */
  --bg-dark:    #16130f;
  --ink:        #1a1714;
  --ink-soft:   #2e2b27;
  --ink-mute:   #7a7068;
  --cream:      #f0ece6;   /* off-white cálido */
  --accent:     #c8a882;
  --accent-2:   #8b7355;
  --line:       rgba(26,23,20,0.12);

  /* Textura estuque veneciano / microcemento */
  --tex: url("assets/img/texture-plaster.jpg");
  --tex-size: 360px 360px;

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

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h:      72px;
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --container:  1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: #c8bba8;
  background-image:
    linear-gradient(rgba(207,196,181,0.28), rgba(207,196,181,0.28)),
    var(--tex);
  background-size: auto, var(--tex-size);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 4px; font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-kicker {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-2);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* =============================================================
   4. Cursor
   ============================================================= */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9000; opacity: 0; transition: opacity 0.3s ease; }
.cursor.is-ready { opacity: 1; }

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  top: -3px; left: -3px;
  will-change: transform;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: absolute;
  top: -18px; left: -18px;
  will-change: transform;
  transition: transform 0.12s var(--ease-out), width 0.18s var(--ease-out), height 0.18s var(--ease-out), border-color 0.18s ease;
}

.cursor-ring.is-hovering {
  width: 56px; height: 56px;
  top: -28px; left: -28px;
  border-color: var(--accent);
}

@media (hover: none) { .cursor { display: none; } }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
  background: var(--cream);
  color: var(--ink);
}
.btn-light:hover { background: #fff; }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: var(--ink-soft); }

/* =============================================================
   6. Reveal animations
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  transition: background 0.36s ease, box-shadow 0.36s ease;
}

.nav.is-solid {
  background-color: #c4b49e;
  background-image:
    linear-gradient(rgba(202,190,172,0.65), rgba(202,190,172,0.65)),
    var(--tex);
  background-size: auto, var(--tex-size);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 2rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav.hero-mode .nav-logo { color: #fff; }

.nav-logo-suffix {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  vertical-align: super;
  margin-left: 0.1em;
  color: var(--accent);
}

.nav.hero-mode .nav-logo-suffix { color: rgba(255,255,255,0.6); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s ease;
  position: relative;
}

.nav.hero-mode .nav-link { color: rgba(255,255,255,0.85); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.22s ease, color 0.22s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }
.nav.hero-mode .nav-cta { color: #fff; border-color: rgba(255,255,255,0.5); }
.nav.hero-mode .nav-cta:hover { background: rgba(255,255,255,0.15); }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
@media (min-width: 960px) { .nav-burger { display: none; } }

.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav.hero-mode .nav-burger span { background: #fff; }

.nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2rem;
  gap: 1.2rem;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile .nav-link {
  font-size: 1rem;
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,16,12,0.25) 0%,
    rgba(20,16,12,0.1) 40%,
    rgba(20,16,12,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

.hero-kicker {
  font-family: var(--sans);
  font-size: clamp(0.65rem, 1vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 1.02;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 1.4rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: block; } }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.4); opacity: 1; }
}

.hero-scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* =============================================================
   9. Ticker
   ============================================================= */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
}

.ticker-wrap--dark {
  background: var(--bg-dark);
  border-color: rgba(255,255,255,0.08);
}

.ticker-wrap--dark .ticker-track { color: rgba(255,255,255,0.55); }
.ticker-wrap--dark .ticker-sep   { color: var(--accent); }

.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-mute);
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-track--rtl {
  animation: tickerScrollRtl 30s linear infinite;
}

.ticker-sep { color: var(--accent); font-style: normal; }

@keyframes tickerScroll    { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tickerScrollRtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* =============================================================
   10. Services
   ============================================================= */
.services {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--cream);
}

.services-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background-color: #d4c9b8;
  background-image:
    linear-gradient(rgba(210,198,180,0.30), rgba(210,198,180,0.30)),
    var(--tex);
  background-size: auto, var(--tex-size);
  padding: clamp(2rem, 4vw, 3.5rem);
  transition: background-color 0.28s ease;
}

.service-card:hover {
  background-color: #c8bcaa;
  background-image:
    linear-gradient(rgba(196,184,168,0.30), rgba(196,184,168,0.30)),
    var(--tex);
  background-size: auto, var(--tex-size);
}

.service-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

.service-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--ink-mute);
  line-height: 1.72;
}

/* =============================================================
   11. About
   ============================================================= */
.about {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg);
}

.about-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-visual {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92);
  transition: filter 0.4s ease;
}

.about-photo:hover { filter: saturate(1.05); }

.about-body {
  font-size: clamp(0.9375rem, 1.3vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about-cta { margin-top: 2rem; }

/* =============================================================
   12. Portfolio
   ============================================================= */
.portfolio {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-2);
}

.portfolio-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Carousel outer — edge-to-edge scroll */
.carousel-outer {
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-outer::-webkit-scrollbar { display: none; }
.carousel-outer.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.portfolio-track {
  display: flex;
  gap: 1rem;
  padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  padding-bottom: 0.5rem;
}

.portfolio-slide {
  flex: 0 0 clamp(260px, 38vw, 460px);
  scroll-snap-align: start;
  cursor: pointer;
}

.portfolio-slide.is-hidden {
  display: none;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  background: var(--bg);
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s ease;
  filter: saturate(0.9);
  pointer-events: none;
}

.portfolio-slide:hover .portfolio-img-wrap img {
  transform: scale(1.07);
  filter: saturate(1.1) brightness(1.03);
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  background: rgba(26,23,20,0.48);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-slide:hover .portfolio-hover { opacity: 1; }

.portfolio-hover span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.portfolio-title {
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.3;
}

/* =============================================================
   13. Tour 360°
   ============================================================= */
.tour360 {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-dark);
  color: var(--cream);
}

.tour360 .section-kicker {
  color: var(--accent);
}

.tour360 .section-title {
  color: var(--cream);
}

.tour360-title {
  margin-bottom: 0;
}

.tour360-sub {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(244,240,234,0.6);
  max-width: 42ch;
  line-height: 1.7;
  margin-top: 1rem;
}

.tour360-embed {
  margin-top: 3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  overflow: hidden;
  border-radius: 2px;
}

.tour360-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.tour360-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* =============================================================
   14. Process
   ============================================================= */
.process {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg);
}

.process-steps {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .process-steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
  }
}

.process-step {
  padding: clamp(2rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  background-color: #d4c9b8;
  background-image:
    linear-gradient(rgba(210,198,180,0.30), rgba(210,198,180,0.30)),
    var(--tex);
  background-size: auto, var(--tex-size);
  border-radius: 2px;
}

.process-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.process-title-step {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.process-desc {
  font-size: 0.9375rem;
  color: var(--ink-mute);
  line-height: 1.72;
}

.process-arrow {
  display: none;
  font-size: 1.5rem;
  color: var(--accent);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  padding-inline: 1.5rem;
}

@media (min-width: 960px) { .process-arrow { display: flex; align-items: center; } }

/* =============================================================
   14. Contact
   ============================================================= */
.contact {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--bg-dark);
  color: var(--cream);
}

.contact .section-kicker { color: rgba(250,247,243,0.5); }
.contact .section-title { color: var(--cream); }
.contact .section-title em { color: var(--accent); }

.contact-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-heading { margin-bottom: 1.5rem; }

.contact-body {
  font-size: clamp(0.9375rem, 1.3vw, 1.05rem);
  color: rgba(250,247,243,0.7);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-email:hover { color: #fff; border-color: #fff; }

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-phone,
.contact-instagram {
  font-family: var(--sans);
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  color: rgba(250,247,243,0.6);
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-phone:hover,
.contact-instagram:hover { color: var(--cream); }

/* Form */
.contact-form-wrap {
  background-color: #1a1410;
  background-image:
    linear-gradient(rgba(26,20,12,0.72), rgba(26,20,12,0.72)),
    var(--tex);
  background-size: auto, var(--tex-size);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,247,243,0.55);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.22s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,247,243,0.3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(250,247,243,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option { background: #1a1714; color: var(--cream); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* =============================================================
   15. Footer
   ============================================================= */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-logo span {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  vertical-align: super;
  color: var(--accent);
  margin-left: 0.1em;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  font-family: var(--serif);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--cream); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--cream); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================================
   16. Mobile tweaks
   ============================================================= */
@media (max-width: 600px) {
  /* Portfolio controls: filtros encima, flechas abajo a la derecha */
  .portfolio-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .carousel-nav {
    align-self: flex-end;
  }

  /* 360° — más alto en portrait */
  .tour360-embed {
    aspect-ratio: 4 / 3;
  }

  /* Hero: botones apilados */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* About: foto más compacta */
  .about-photo {
    aspect-ratio: 3 / 2;
  }
}

/* =============================================================
   17. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .ticker-track--rtl { animation: none; }
  .hero-scroll-line { animation: none; }
}

/* =============================================================
   18. Panoramic horizontal scroll layout
   ============================================================= */

/* Fixed panorama that pans behind everything */
.bg-panorama {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-dark);
  pointer-events: none;
}

#panorama-img {
  position: absolute;
  top: 50%;
  height: 140vh;
  width: 500vw;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.76) contrast(1.22) saturate(0.95);
  will-change: transform;
}

/* Lock page scroll — #main takes over */
html {
  overflow: hidden !important;
  scroll-behavior: auto !important;
}

body {
  overflow: hidden !important;
}

/* Horizontal scroll container */
#main {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  position: relative;
  z-index: 1;
  background: transparent;
}

#main::-webkit-scrollbar { display: none; }

/* Every section = one 100 vw × 100 vh panel */
.hero,
.tour360,
.services,
.about,
.portfolio,
.testimonials,
.process,
.instagram-reel,
.contact {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  background: transparent !important;
  padding-block: clamp(1.5rem, 3vh, 2.5rem) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dark overlay — hero / 360° / contact
   Low opacity → panorama reads clearly, moody atmosphere */
.hero::before,
.tour360::before,
.testimonials::before,
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, 0.38);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 0;
  pointer-events: none;
}

/* Estuque veneciano — paneles servicios / sobre mí / portfolio / proceso */
.services::before,
.about::before,
.portfolio::before,
.process::before,
.instagram-reel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #bfae98;
  background-image:
    linear-gradient(rgba(196,183,162,0.55), rgba(196,183,162,0.55)),
    var(--tex);
  background-size: auto, var(--tex-size);
  backdrop-filter: blur(6px) saturate(0.95) brightness(1.02);
  -webkit-backdrop-filter: blur(6px) saturate(0.95) brightness(1.02);
  opacity: 0.50;
  z-index: 0;
  pointer-events: none;
}

/* Fallback — sin backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .services::before, .about::before,
  .portfolio::before, .process::before,
  .instagram-reel::before {
    background-image:
      linear-gradient(rgba(196,183,162,0.88), rgba(196,183,162,0.88)),
      var(--tex);
    background-size: auto, var(--tex-size);
  }
  .hero::before, .tour360::before,
  .testimonials::before, .contact::before {
    background-color: rgba(15, 12, 10, 0.58);
  }
}

/* Micro-grain layer over light panels — polished concrete texture */
.services::after,
.about::after,
.portfolio::after,
.process::after,
.instagram-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* All panel children sit above the overlay */
.hero > *,
.tour360 > *,
.services > *,
.about > *,
.portfolio > *,
.testimonials > *,
.process > *,
.instagram-reel > *,
.contact > * {
  position: relative;
  z-index: 1;
}

/* Hero: content hugs the bottom */
.hero {
  justify-content: flex-end;
  align-items: stretch;
  padding-bottom: clamp(3rem, 5vh, 4.5rem) !important;
}

/* Hide the static hero photo — panorama replaces it */
.hero-bg,
.hero-scroll { display: none; }

/* Hero rating — 5 stars + score */
.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-rating-stars {
  color: #f0b429;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.hero-rating-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.hero-rating-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* Tour 360 — compact iframe height */
.tour360-embed {
  margin-top: 1rem;
  max-height: 46vh;
  aspect-ratio: 16 / 9;
}

.tour360-cta {
  margin-top: 1rem;
}

/* About — photo fills column, face visible */
.about-photo {
  height: 52vh;
  width: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center 38%;
}

/* ── Mobile about: portada de revista ─────────────────────────
   Foto más alta mostrando la cara, nombre superpuesto con degradado */
@media (max-width: 959px) {
  /* El grid queda en columna única pero sin gap — el texto sube sobre la foto */
  .about-grid {
    gap: 0;
  }

  /* Foto más alta para revelar la cara completa */
  .about-photo {
    height: 62vh;
    object-position: center 18%;
  }

  /* Degradado en la parte baja de la foto para que el texto sea legible */
  .about-visual {
    position: relative;
  }
  .about-visual::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(190, 176, 155, 0.88) 55%,
      rgba(190, 176, 155, 0.98) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  /* El texto sube 90px metiéndose dentro de la foto */
  .about-text {
    position: relative;
    z-index: 2;
    margin-top: -90px;
    padding-top: 0;
    background: transparent;
  }
}

/* Portfolio — tighter section header */
.portfolio .section-header {
  margin-bottom: 1rem;
}

/* Process — tighter step cards */
.process-step {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.process-num {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 0.6rem;
}

/* Contact — compact spacing */
.contact-heading { margin-bottom: 0.75rem; }
.contact-body    { margin-bottom: 0.75rem; }
.contact-channels { gap: 0.4rem; }

/* Hide tickers and footer */
.ticker-wrap,
.footer {
  display: none !important;
}

/* ── Scroll hint — right-side indicator ── */
.scroll-hint {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: opacity 1s ease;
}

.scroll-hint.is-gone {
  opacity: 0;
}

.scroll-hint-line {
  display: block;
  position: relative;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: left center;
  animation: scrollHintPulse 2.4s ease-in-out infinite;
}

/* Arrowhead at the right end of the line */
.scroll-hint-line::after {
  content: '›';
  position: absolute;
  right: -7px;
  top: -8px;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.8;
}

@keyframes scrollHintPulse {
  0%, 100% { transform: scaleX(1);    opacity: 0.4; }
  50%       { transform: scaleX(0.4); opacity: 1;   }
}

.scroll-hint-text {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line { animation: none; }
}

/* =============================================================
   19. Testimonials panel
   ============================================================= */
.testimonials-grid {
  display: grid;
  gap: clamp(0.875rem, 1.75vw, 1.25rem);
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.testimonial-stars {
  color: #f0b429;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 1.62;
  color: rgba(250, 247, 243, 0.82);
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
  margin-top: auto;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.testimonial-project {
  font-size: 0.73rem;
  color: rgba(250, 247, 243, 0.42);
  letter-spacing: 0.05em;
}

/* =============================================================
   20. Instagram reel panel
   ============================================================= */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.2vw, 0.875rem);
  margin-top: 1.25rem;
}

@media (max-width: 639px) {
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
}

.reel-card {
  display: block;
  text-decoration: none;
}

.reel-thumb {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 2px;
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-soft);
}

.reel-card:hover .reel-thumb img { transform: scale(1.05); }

.reel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reel-card:hover .reel-overlay { opacity: 1; }

.reel-play {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  padding-left: 3px;
}

.instagram-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

/* =============================================================
   21. Mobile — vertical scroll inside tall content panels
   ============================================================= */
@media (max-width: 959px) {
  .services,
  .about,
  .testimonials,
  .instagram-reel {
    overflow-y: auto;
    overflow-x: hidden;
  }
}
