/* ============================================================
   MYET — Diseño y Fabricación — Premium Landing Page
   ============================================================ */

:root {
  --yellow: #FDBF07;
  --yellow-soft: rgba(253, 191, 7, 0.18);
  --black: #000000;
  --dark: #080202;
  --white: #FFFFFF;
  --cream: #F7F6EF;
  --gray-line: rgba(255, 255, 255, 0.12);
  --gray-text: rgba(247, 246, 239, 0.62);

  --font-head: "Poppins", sans-serif;
  --font-body: "Roboto", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;

  --container: 1360px;
  --gutter: clamp(24px, 6vw, 96px);
}

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

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
section { position: relative; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--yellow);
}
.eyebrow-lg {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.eyebrow-lg::before {
  width: 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.text-muted { color: var(--gray-text); }

/* ---------- Reveal defensive base (never let JS failure hide content) ---------- */
.reveal, .reveal[data-split] {
  opacity: 1;
  transform: none;
}
.reveal.js-armed {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.js-armed.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-split].js-armed .split-char,
.reveal[data-split].js-armed .split-word {
  opacity: 0;
  transform: translateY(0.6em);
  display: inline-block;
}
.reveal[data-split].js-armed.in-view .split-char,
.reveal[data-split].js-armed.in-view .split-word {
  animation: none;
}

/* Photo curtain reveal — defensive: fully visible until JS arms it */
.photo-mask {
  clip-path: inset(0 0 0 0);
}
.js-armed .photo-mask {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}
.js-armed.in-view .photo-mask {
  clip-path: inset(0 0 0 0);
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(253, 191, 7, 0.16);
  border: 1px solid rgba(253, 191, 7, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 700;
  text-align: center;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cursor-ring.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  background: transparent;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease);
}
.navbar.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-line);
}
.navbar.is-hidden { transform: translateY(-110%); }

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
}
.logo span.m { color: var(--white); }
.logo span.yet { color: var(--yellow); }

#navbar .logo {
  opacity: 0;
  animation: logoIntro 0.9s var(--ease) 0.15s forwards;
}
@keyframes logoIntro {
  from { opacity: 0; transform: translateY(-10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding-bottom: 6px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--yellow);
  transition: width 0.4s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 28px; height: 20px;
  position: relative;
  z-index: 600;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 0 rgba(253, 191, 7, 0);
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(253, 191, 7, 0.55);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}
.btn-sm { padding: 11px 22px; font-size: 0.72rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: -6% -6%;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0% { transform: scale(1.08) translate3d(0,0,0); }
  100% { transform: scale(1.18) translate3d(-1%, -1%, 0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 96px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 6.2rem);
  color: var(--white);
  max-width: 16ch;
}
.hero-title .split-char { will-change: transform, opacity; }
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(247, 246, 239, 0.78);
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--yellow), transparent);
  overflow: hidden;
}

/* ---------- Section shells ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section-dark { background: var(--dark); }
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ---------- Why MYET ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.why-quote {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
}
.why-copy h2 { margin-bottom: 22px; }
.why-copy p { max-width: 46ch; }

.stat-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat {
  border-top: 1px solid var(--gray-line);
  padding-top: 18px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--yellow);
  display: inline-flex;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gray-text);
}

/* ---------- Projects gallery ---------- */
.filter-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-chip {
  padding: 10px 22px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-text);
  transition: all 0.35s var(--ease);
}
.filter-chip:hover, .filter-chip.is-active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.project-list { display: flex; flex-direction: column; gap: 26px; }
.project-card {
  position: relative;
  height: clamp(360px, 62vw, 640px);
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
}
.project-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.project-card:hover img { transform: scale(1.07); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.88) 100%);
  transition: opacity 0.5s var(--ease);
  z-index: 1;
}
.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.project-info .tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  display: block;
}
.project-info h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.project-info .meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.project-view {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.project-card:hover .project-view {
  opacity: 1;
  transform: translateY(0);
}

.stack-num {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  left: clamp(16px, 3vw, 32px);
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--yellow);
  opacity: 0.85;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

/* Sticky card-stack effect — desktop only; mobile keeps the simple stacked list above */
@media (min-width: 901px) {
  .stack-wrap {
    position: relative;
    height: 88vh;
    margin-bottom: 32px;
  }
  .stack-wrap:last-child { margin-bottom: 0; }
  .project-card.stack-card {
    position: sticky;
    top: calc(110px + (var(--stack-index, 0) * 22px));
    z-index: calc(10 + var(--stack-index, 0));
    height: 74vh;
    border: 1px solid rgba(255,255,255,0.14);
    transform-origin: top center;
    will-change: transform;
  }
}
@media (pointer: coarse) {
  .project-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 34px; left: 0; right: 0;
  height: 1px;
  background: var(--gray-line);
}
.timeline-step { position: relative; padding-top: 0; }
.timeline-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gray-line);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--yellow);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline-step.in-view .timeline-num,
.timeline-step:hover .timeline-num {
  border-color: var(--yellow);
  transform: scale(1.08);
}
.timeline-step h4 {
  margin-top: 22px;
  font-size: 1.05rem;
}
.timeline-step p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gray-text);
  max-width: 24ch;
}

/* ---------- Accessories ---------- */
/* ---------- Shop: Tienda de Accesorios (dark, matches site) ---------- */
.shop-section {
  background: var(--dark);
  position: relative;
  z-index: 2;
}
.shop-section.is-page-top {
  padding-top: calc(clamp(90px, 12vw, 160px) + 40px);
}
.shop-back-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-text);
  margin-bottom: 28px;
  transition: color 0.3s ease;
}
.shop-back-link:hover { color: var(--yellow); }

.shop-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.shop-teaser-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.shop-teaser-card:hover { transform: translateY(-4px); border-color: rgba(253, 191, 7, 0.35); }
.shop-teaser-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}
.shop-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-teaser-cta { margin-top: 44px; text-align: center; }

@media (max-width: 720px) {
  .shop-teaser-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Standalone shop page: navbar can't rely on a dark hero behind it, keep it solid always */
.page-tienda .navbar {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.shop-subcopy { color: var(--gray-text); max-width: 56ch; }
.shop-logistics {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(253, 191, 7, 0.1);
  border: 1px solid rgba(253, 191, 7, 0.3);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--gray-text);
  max-width: 760px;
}
.shop-logistics strong { color: var(--white); }

.shop-filter-row { margin-top: 32px; margin-bottom: 0; }
.shop-filter-row .filter-chip {
  border-color: var(--gray-line);
  color: var(--gray-text);
}
.shop-filter-row .filter-chip:hover,
.shop-filter-row .filter-chip.is-active {
  border-color: var(--yellow);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.shop-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 191, 7, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.shop-card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-card-name {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--white);
}
.shop-variant-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.shop-variant-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-line);
}
.shop-variant-row:last-child { border-bottom: none; padding-bottom: 0; }
.shop-variant-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shop-variant-text { display: flex; flex-direction: column; gap: 2px; }
.shop-variant-label { font-size: 0.85rem; font-weight: 500; color: var(--white); }
.shop-variant-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-text);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}
.shop-variant-row.in-cart .shop-variant-price { opacity: 1; height: auto; }

.shop-info-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-top: 10px;
  transition: color 0.3s ease;
}
.shop-info-toggle:hover { color: var(--yellow); }
.shop-info-toggle::after {
  content: "+";
  font-size: 1rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}
.shop-info-toggle.is-open::after { transform: rotate(45deg); }
.shop-info-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
}
.shop-info-panel.is-open { max-height: 260px; opacity: 1; margin-top: 10px; }
.shop-info-panel p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray-text);
}

.shop-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.shop-qty button {
  width: 30px; height: 30px;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.shop-qty button:hover { border-color: var(--yellow); background: rgba(255, 255, 255, 0.06); }
.shop-qty button:disabled { opacity: 0.3; cursor: default; }
.shop-qty button:disabled:hover { border-color: var(--gray-line); background: none; }
.shop-qty-value {
  font-family: var(--font-head);
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--white);
  display: inline-block;
}
.shop-qty-value.is-bump { animation: shopQtyBump 0.35s var(--ease); }
@keyframes shopQtyBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--yellow); }
  100% { transform: scale(1); }
}
.shop-variant-row.in-cart .shop-variant-label { color: var(--yellow); }
.shop-variant-row.in-cart { border-color: rgba(253, 191, 7, 0.5); }

/* Floating cart pill + drawer */
.cart-pill {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.4s var(--ease);
}
.cart-pill[hidden] { display: none; }
.cart-pill:hover { transform: translateY(-3px); }
.cart-pill-count {
  background: var(--yellow);
  color: var(--black);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.cart-pill-label { font-size: 0.82rem; font-weight: 500; }
.cart-pill-total { font-family: var(--font-head); font-weight: 700; color: var(--yellow); }

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 750;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; height: 100%;
  width: min(460px, 92vw);
  background: var(--dark);
  border-left: 1px solid var(--gray-line);
  z-index: 760;
  padding: clamp(28px, 4vw, 48px);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-close {
  align-self: flex-end;
  font-size: 1.6rem;
  color: var(--gray-text);
  margin-bottom: 20px;
}
.cart-drawer-close:hover { color: var(--yellow); }
.cart-drawer h3 { margin-bottom: 24px; font-size: 1.4rem; }
.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.cart-empty { color: var(--gray-text); font-size: 0.9rem; }
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: 14px;
}
.cart-item-name { font-weight: 600; }
.cart-item-meta { color: var(--gray-text); font-size: 0.78rem; margin-top: 3px; }
.cart-item-price { font-family: var(--font-head); font-weight: 700; color: var(--yellow); white-space: nowrap; }
.cart-item-remove {
  color: var(--gray-text);
  font-size: 0.75rem;
  text-decoration: underline;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
}
.cart-item-remove:hover { color: var(--yellow); }
.cart-totals {
  border-top: 1px solid var(--gray-line);
  padding-top: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.cart-totals .row { display: flex; justify-content: space-between; }
.cart-totals .row.discount { color: var(--yellow); }
.cart-totals .row.total {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--yellow);
  padding-top: 10px;
  border-top: 1px solid var(--gray-line);
}
.cart-checkout { width: 100%; text-align: center; margin-top: auto; }

@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-pill { left: 16px; bottom: 16px; padding: 12px 18px; }
  .cart-pill-label { display: none; }
}
@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ---------- About split ---------- */
.about-media-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: clamp(420px, 60vw, 620px);
}
.about-media-grid .media-a { grid-row: 1 / 3; }
.about-media-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 2px;
}
.about-media-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about-media-grid figure:hover img { transform: scale(1.06); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.about-copy h2 { margin-bottom: 24px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about-copy p { max-width: 42ch; font-size: 1.05rem; }

/* ---------- Testimonials ---------- */
.testi-track-wrap { position: relative; overflow: hidden; }
.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.8s var(--ease);
}
.testi-card {
  flex: 0 0 calc(33.333% - 16px);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: 36px;
  backdrop-filter: blur(6px);
}
.testi-stars { color: var(--yellow); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 18px; }
.testi-quote { font-size: 1rem; color: rgba(247,246,239,0.86); min-height: 96px; }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.testi-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-person .name { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.testi-person .project { font-size: 0.78rem; color: var(--gray-text); }
.testi-dots { display: flex; gap: 10px; margin-top: 44px; justify-content: center; }
.testi-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.testi-dots button.is-active { background: var(--yellow); transform: scale(1.3); }

/* ---------- Quote calculator ---------- */
.quote-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 56px);
}
.quote-box--stacked {
  grid-template-columns: 1fr;
  gap: 28px;
  background: none;
  border: none;
  padding: 0;
}
.quote-box--stacked .quote-result {
  border-left: none;
  border-top: 1px solid var(--gray-line);
  padding-left: 0;
  padding-top: 24px;
}
.quote-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.quote-input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-line);
  border-radius: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.quote-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(253,191,7,0.06);
}
.quote-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray-text);
}
.quote-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: rgba(247,246,239,0.85);
  cursor: pointer;
}
.quote-checkbox input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--yellow);
  cursor: pointer;
}
.quote-form .btn {
  margin-top: 30px;
  width: 100%;
}
.quote-error {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--yellow);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.quote-error.is-visible { opacity: 1; height: auto; }

.quote-result {
  border-left: 1px solid var(--gray-line);
  padding-left: clamp(28px, 5vw, 56px);
  opacity: 0.35;
  transition: opacity 0.5s var(--ease);
}
.quote-result.is-visible { opacity: 1; }
.quote-result-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 10px;
}
.quote-result-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--yellow);
}
.quote-disclaimer {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-text);
  max-width: 40ch;
}
.quote-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .quote-box { grid-template-columns: 1fr; }
  .quote-result {
    border-left: none;
    border-top: 1px solid var(--gray-line);
    padding-left: 0;
    padding-top: 28px;
    margin-top: 8px;
  }
}

/* ---------- Interactive kitchen ---------- */
.kitchen-interactive {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: 20px;
}
.kitchen-interactive img { width: 100%; height: 100%; object-fit: cover; }
.hotspot {
  position: absolute;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
}
.hotspot-dot {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(253,191,7,0.28);
  border: 1px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 700;
  animation: pulseDot 2.4s ease-in-out infinite;
}
.hotspot-dot::before {
  content: "+";
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.hotspot:hover .hotspot-dot::before,
.hotspot.is-active .hotspot-dot::before { color: var(--black); }
.hotspot:hover .hotspot-dot,
.hotspot.is-active .hotspot-dot { background: var(--yellow); }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253,191,7,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(253,191,7,0); }
}
.hotspot-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--dark);
  border-left: 1px solid var(--gray-line);
  z-index: 700;
  padding: clamp(28px, 4vw, 48px);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  display: flex;
  flex-direction: column;
}
.hotspot-panel.is-open { transform: translateX(0); }
.hotspot-panel-close {
  align-self: flex-end;
  font-size: 1.6rem;
  color: var(--gray-text);
  margin-bottom: 24px;
}
.hotspot-panel-close:hover { color: var(--yellow); }
.hotspot-panel .kicker { color: var(--yellow); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.hotspot-panel h3 { font-size: 1.7rem; margin-bottom: 18px; }
.hotspot-panel p { color: var(--gray-text); }
.hotspot-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 690;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hotspot-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Video modal (project "Ver Proyecto") ---------- */
.video-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.video-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.video-modal {
  position: relative;
  max-width: 900px;
  width: 100%;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease);
}
.video-modal-overlay.is-open .video-modal { transform: scale(1); }
.video-modal-close {
  position: absolute;
  top: -48px; right: 0;
  z-index: 2;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  transition: color 0.3s ease, background 0.3s ease;
}
.video-modal-close:hover { color: var(--yellow); background: rgba(0,0,0,0.8); }
.video-modal-frame {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-frame.is-youtube {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-modal-frame.is-youtube iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.55), rgba(0,0,0,0.94));
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; text-align: center; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  max-width: 18ch;
  margin: 0 auto 40px;
}
.cta-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-links {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.cta-links a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gray-line);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-line);
}
.footer-brand p { margin-top: 18px; max-width: 30ch; color: var(--gray-text); font-size: 0.9rem; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: var(--gray-text); transition: color 0.3s ease; }
.footer-col a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 6px 30px rgba(253,191,7,0.35);
  animation: waPulse 3s ease-in-out infinite;
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 30px rgba(253,191,7,0.35); }
  50% { box-shadow: 0 6px 44px rgba(253,191,7,0.6); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid, .about-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(1, 1fr); gap: 36px; }
  .timeline::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .testi-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 720px) {
  .navbar { padding: 20px var(--gutter); }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 1.4rem; }
  .nav-toggle { display: block; }
  .about-media-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); height: auto; }
  .about-media-grid .media-a { grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 100%; }
  .hero-scroll { display: none; }
}
