﻿/* ============================================
   NITID STUDIO — Galería Industrial
   ============================================ */

/* ---------- ACCESIBILIDAD ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  /* ── Superficies ── */
  --bg-primary: #F0F0EC;
  --bg-elevated: #FFFFFF;
  --bg-overlay: #F7F7F5;
  --bg-input: #FFFFFF;

  /* ── Texto ── */
  --text-primary: #111111;
  --text-secondary: #5C5C5C;
  --text-tertiary: #999999;

  /* ── Bordes ── */
  --border-subtle: #E0E0DC;
  --border-default: #D0D0CC;
  --border-strong: #B0B0AC;

  /* ── Acento — Teal apagado, quirúrgico ── */
  --accent: #2D7A7A;
  --accent-dim: rgba(45, 122, 122, 0.06);
  --accent-glow: rgba(45, 122, 122, 0.12);
  --accent-strong: rgba(45, 122, 122, 0.20);

  /* ── Feedback ── */
  --success: #25D366;
  --error: #E53935;

  /* ── Tipografía ── */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* ── Radios — Industrial ── */
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 2px;

  /* ── Movimiento ── */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout ── */
  --container: 1200px;
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
  background: rgba(240, 240, 236, 0.8);
}

/* Section divider — technical grid line */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
}

.hero + .section::before {
  display: none;
}

.section__header {
  margin-bottom: 64px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-left: 24px;
  position: relative;
}

.section__tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(33px, 5vw, 53px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}

.btn--primary:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(240, 240, 236, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

/* El desenfoque va en una capa propia: un backdrop-filter en la propia barra
   haría que el menú móvil (position: fixed) se encogiera al tamaño de la barra. */
.navbar--scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
}

/* Con el menú móvil abierto, la barra y su menú quedan por encima de todo. */
.navbar--menu-open {
  z-index: 20000;
}

.navbar__container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1001;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 6px;
}

.navbar__logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 0;
  margin-top: -10px;
}

.navbar__menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: transparent;
}

/* Hero accent line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  z-index: 2;
}

.hero__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Left: Massive title ── */
.hero__left {
  flex: 1 1 55%;
  min-width: 0;
  align-self: flex-end;
  margin-bottom: -16px;
}

/* ── Divider ── */
.hero__divider {
  width: 1px;
  align-self: stretch;
  margin: 80px 48px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--border-default) 20%,
    var(--border-default) 80%,
    transparent 100%
  );
}

/* ── Scroll indicator — bottom left ── */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero__scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  animation: scrollFade 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6) translateY(0); }
  50% { opacity: 1; transform: scaleY(1) translateY(6px); }
}

/* ---------- CATALOG ---------- */
.catalog__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.catalog__filter {
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition-fast);
}

.catalog__filter:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.catalog__filter--active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.catalog__filter--active:hover {
  color: var(--bg-primary);
}

.catalog__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 0;
}

.catalog__grid .card {
  flex: 0 1 calc((100% - 48px) / 3);
}

/* Catalog Card */
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E8E8E4;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.92);
}

.card[data-id="pm-01"] .card__img {
  object-position: center 60%;
}

.card:hover .card__img {
  transform: scale(1.03);
  filter: brightness(1);
}

.card__body {
  padding: 24px;
  position: relative;
}

.card__category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.card__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(45, 122, 122, 0.08);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Card hidden state for filtering */
.card--hidden {
  display: none;
}

/* ---------- FULLSCREEN OVERLAY ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay--open {
  opacity: 1;
  visibility: visible;
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
}

.overlay__panel {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1700px;
  height: calc(100% - 48px);
  max-height: 900px;
  margin: auto;
  background: var(--bg-overlay);
  overflow-y: auto;
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
  border: 1px solid var(--border-subtle);
}

.overlay--open .overlay__panel {
  transform: scale(1);
  opacity: 1;
}

.overlay__panel::-webkit-scrollbar {
  width: 6px;
}

.overlay__panel::-webkit-scrollbar-track {
  background: transparent;
}

.overlay__panel::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

/* Overlay Close Button */
.overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: rgba(247, 247, 245, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.overlay__close:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Two-panel content grid */
.overlay__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  padding: 32px;
  gap: 28px;
}

.overlay__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(45, 122, 122, 0.08);
}

.overlay__title {
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.5vw, 37px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.overlay__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Info panel (right side) */
.overlay__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
}

.overlay__info--centered .overlay__info-top {
  margin-top: auto;
}

.overlay__info--centered .overlay__options {
  margin-bottom: auto;
}

.overlay__info-top {
  display: flex;
  flex-direction: column;
}

.overlay__info-actions {
  margin-top: auto;
  padding-top: 12px;
  position: sticky;
  bottom: 0;
  background: var(--bg-overlay);
}

.overlay__info-actions:empty {
  display: none;
}

/* Left column: gallery + specs */
.overlay__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: center;
  justify-self: center;
  max-width: 650px;
  width: 100%;
  max-height: 100%;
}

/* Specs collapsible */
.overlay__specs-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  margin-top: 16px;
  overflow: hidden;
}

.overlay__specs-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  transition: var(--transition-fast);
  list-style: none;
}

.overlay__specs-summary::-webkit-details-marker {
  display: none;
}

.overlay__specs-summary:hover {
  color: var(--text-primary);
}

.overlay__specs-chevron {
  transition: transform 0.25s ease;
}

.overlay__specs-details[open] .overlay__specs-chevron {
  transform: rotate(180deg);
}

.overlay__specs-body {
  padding: 8px 14px 12px;
  background: var(--bg-primary);
}

/* Gallery Carousel */
.overlay__gallery {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #E8E8E4;
  aspect-ratio: 4 / 5;
}

.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.gallery__slide video,
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__slide video {
  cursor: pointer;
}

.gallery__play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 4;
}

.gallery__play-indicator--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery__slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8E8E4, #F0F0EC);
}

.gallery__slide-placeholder svg {
  opacity: 0.3;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 247, 245, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  transition: var(--transition-fast);
  z-index: 5;
}

.gallery__arrow:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

.gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.gallery__dot {
  width: 8px;
  height: 2px;
  border-radius: 0;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.gallery__dot--active {
  background: var(--text-primary);
  width: 24px;
}

.gallery__sound-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  transition: var(--transition-fast);
  z-index: 6;
  cursor: pointer;
}

.gallery__sound-toggle:hover {
  opacity: 0.75;
}

/* Options Container */
.overlay__options {
  display: block;
}

.overlay__options:empty {
  display: none;
}

/* Story blocks (used in project overlays) */
.overlay__story-block {
  margin-bottom: 16px;
}

.overlay__story-block h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.overlay__story-block p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Specs table — datasheet aesthetic */
.overlay__specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.overlay__specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.overlay__specs-table tr:last-child {
  border-bottom: none;
}

.overlay__specs-table td {
  padding: 8px 0;
  font-size: 12px;
  vertical-align: top;
}

.overlay__specs-table td:first-child {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.02em;
  width: 40%;
  padding-right: 12px;
}

.overlay__specs-table td:last-child {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
}

/* Add-to-cart button in overlay */
.overlay__add-cart {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
}

.overlay__add-cart--added {
  background: rgba(37, 211, 102, 0.15) !important;
  border-color: var(--success);
  color: var(--success);
  pointer-events: none;
}

/* CTA button in project overlay (contact via WhatsApp) */
.overlay__cta-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
}

.overlay__cta-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 10px;
}

.overlay__price-notice {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-top: 10px;
  text-align: center;
}

/* ---------- PROJECTS ---------- */
.projects__slider {
  display: flex;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 16px;
}

.projects__slider::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-card__img {
  aspect-ratio: 16 / 10;
  background: #E8E8E4;
  overflow: hidden;
  position: relative;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card[data-id="proj-02"] .project-card__img img {
  object-position: center 40%;
}

.project-card:hover .project-card__img img {
  transform: scale(1.03);
}

.project-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-default);
  font-size: 47px;
  background: linear-gradient(135deg, #E8E8E4, #F0F0EC);
}

.project-card__body {
  padding: 28px;
}

.project-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(45, 122, 122, 0.08);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.project-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ---------- CONTACT FORM ---------- */
.contact__form {
  max-width: 640px;
}

.contact__optional-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.form__group {
  margin-bottom: 24px;
  animation: fadeSlideUp 0.4s ease forwards;
}

#optionalFields {
  animation: fadeSlideUp 0.4s ease forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form__select,
.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  appearance: none;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235C5C5C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: var(--bg-input);
  padding-right: 40px;
}

.form__select:focus,
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.06);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__row:last-child {
  margin-bottom: 0;
}

.contact__submit {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 16px;
  margin-top: 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
  background: rgba(240, 240, 236, 0.3);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__contact p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer__contact a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  transition: var(--transition-fast);
}

.footer__contact a:hover {
  color: var(--text-primary);
}

.footer__contact p.footer__contact-note {
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 12px;
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- CARD ADD-TO-CART BUTTON ---------- */
.card__add-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
}

.card__add-btn:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.card__add-btn--added {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--success);
  color: var(--success);
  pointer-events: none;
}

/* Staff add button in table */
/* ---------- CART ---------- */
.cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: none;
}

.cart__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #111111;
  border-top: 2px solid var(--accent);
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart--visible .cart__bar {
  transform: translateY(0);
}

.cart__bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: rgba(45, 122, 122, 0.2);
  color: #5CE0D0;
  transition: var(--transition-fast);
}

.cart__toggle:hover {
  background: rgba(45, 122, 122, 0.35);
  color: #fff;
}

.cart__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: #5CE0D0;
  color: #111111;
  border-radius: var(--radius-xs);
}

.cart__bar-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.cart__bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart__bar-total {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #5CE0D0;
}

.cart__bar-expand {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.cart__bar-expand:hover {
  border-color: #5CE0D0;
  color: #5CE0D0;
}

.cart--expanded .cart__bar-expand svg {
  transform: rotate(180deg);
}

/* Cart Panel */
.cart__panel {
  background: var(--bg-overlay);
  border-top: 1px solid var(--border-subtle);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.cart--expanded .cart__panel {
  max-height: 70vh;
  overflow-y: auto;
}

.cart__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
}

.cart__panel-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.cart__panel-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cart__panel-close:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Cart Items */
.cart__items {
  padding: 0 24px;
}

.cart__empty {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 0;
}

.cart__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart__item-info {
  flex: 1;
  min-width: 0;
}

.cart__item-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart__item-category {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart__item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart__item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cart__item-qty button:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.cart__item-qty span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart__item-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.cart__item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.cart__item-remove:hover {
  background: rgba(229, 57, 53, 0.1);
  color: var(--error);
}

/* Cart Totals */
.cart__totals {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

.cart__totals-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart__totals-row--total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border-default);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart__totals-row--total span:last-child {
  font-family: var(--font-mono);
  color: var(--accent);
}

.cart__totals-note {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
}

/* Cart Actions */
.cart__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-subtle);
}

.cart__btn {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.cart__btn--request {
  font-size: 14px;
  padding: 14px 32px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cart__btn--request:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cart__btn--pdf {
  font-size: 12px;
  padding: 10px 24px;
  color: var(--text-secondary);
  border: none;
  background: none;
}

.cart__btn--pdf:hover {
  color: var(--text-primary);
}

/* ---------- RENTAL REQUEST MODAL ---------- */
.rental-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rental-modal--open {
  opacity: 1;
  visibility: visible;
}

.rental-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.rental-modal__panel {
  position: relative;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.rental-modal--open .rental-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.rental-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.rental-modal__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.rental-modal__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.rental-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.rental-modal__close:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.rental-modal__summary {
  padding: 16px 28px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.rental-modal__summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}

.rental-modal__summary-item-name {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
}

.rental-modal__summary-item-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.rental-modal__summary-item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.rental-modal__summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--border-default);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.rental-modal__summary-total span:last-child {
  font-family: var(--font-mono);
  color: var(--accent);
}

.rental-modal__surcharge-tag {
  color: var(--accent);
  font-weight: 600;
}

.rental-modal__surcharge-note {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 6px;
}

.rental-modal__summary-note {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.rental-modal__form {
  padding: 20px 28px 28px;
}

.rental-modal__hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.rental-modal__form .form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.rental-modal__form .form__group {
  margin-bottom: 12px;
}

.rental-modal__form .form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.rental-modal__notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 122, 122, 0.12);
  border-radius: var(--radius-xs);
  margin-top: 8px;
}

.rental-modal__notice svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.rental-modal__notice p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rental-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.rental-modal__submit {
  min-width: 180px;
  justify-content: center;
  gap: 8px;
}

.rental-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px;
  gap: 16px;
}

.rental-modal__success h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.rental-modal__success p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
}

.wa-fallback-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: -4px;
}

.wa-fallback-link:hover {
  color: var(--text-primary);
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 48px 28px;
  gap: 16px;
  max-width: 640px;
}

.contact__success h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.contact__success p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
}

@media (max-width: 600px) {
  .rental-modal__panel {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    border-radius: 0;
  }

  .rental-modal__form .form__row,
  .rental-modal__form .form__row--3 {
    grid-template-columns: 1fr;
  }

  .rental-modal__footer {
    flex-direction: column;
  }

  .rental-modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- CART ITEM DAYS ---------- */
.cart__item-days {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart__item-days button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
}

.cart__item-days button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart__item-days span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  color: var(--accent);
}

/* ---------- OVERLAY OPTIONS REDESIGN ---------- */
.overlay__options-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.overlay__options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overlay__opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.overlay__opt:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.overlay__opt--active {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: inset 3px 0 0 var(--accent);
}

.overlay__opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay__opt-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.overlay__opt-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.overlay__opt-unit {
  font-weight: 400;
  font-size: 10px;
  opacity: 0.6;
}

.overlay__opt-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  overflow: hidden;
}

.overlay__opt-detail > * {
  overflow: hidden;
}

.overlay__opt--active .overlay__opt-detail {
  grid-template-rows: 1fr;
}

.overlay__opt-detail-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 0;
}

.overlay__opt-extra {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Overlay inline day selector + total */
.overlay__day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.overlay__day-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overlay__day-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.overlay__day-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay__day-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: var(--transition-fast);
}

.overlay__day-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.overlay__day-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
  color: var(--accent);
}

.overlay__day-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.overlay__day-total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.overlay__day-total-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- FLY-TO-CART ANIMATION ---------- */
.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  background: #5CE0D0;
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(92, 224, 208, 0.6), 0 0 40px rgba(92, 224, 208, 0.3);
  transform: scale(1);
  opacity: 1;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s ease;
}

/* ---------- CART TOTAL PULSE ---------- */
@keyframes totalPulse {
  0% { transform: scale(1); color: #5CE0D0; }
  30% { transform: scale(1.2); color: #fff; }
  100% { transform: scale(1); color: #5CE0D0; }
}

.cart__bar-total--pulse {
  animation: totalPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- CART BADGE PULSE ---------- */
@keyframes badgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.cart__badge--pulse {
  animation: badgePulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- CART BAR FLASH ---------- */
@keyframes barFlash {
  0% { background: #111111; }
  30% { background: #1a3a3a; }
  100% { background: #111111; }
}

.cart__bar--flash {
  animation: barFlash 0.8s ease;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100; /* por encima de .overlay (2000): debe verse también con un producto/proyecto abierto */
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TEXTURE OVERLAY ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
  mix-blend-mode: multiply;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .overlay__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: none;
    overflow-y: auto;
  }

  .overlay__content {
    grid-template-columns: 1fr;
    height: auto;
    padding: 60px 20px 24px;
    gap: 20px;
  }

  .overlay__gallery {
    aspect-ratio: 3 / 4;
  }

  .overlay__info {
    padding-right: 0;
    overflow-y: visible;
  }

  .overlay__info-actions {
    position: static;
  }


  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-card {
    flex: 0 0 320px;
  }

  .catalog__grid .card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

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

  .section__header {
    margin-bottom: 40px;
  }

  .navbar__menu {
    position: fixed;
    inset: 0;
    background: rgba(240, 240, 236, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .navbar__menu--open {
    opacity: 1;
    visibility: visible;
  }

  .navbar__link {
    font-size: 20px;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar__toggle--active span:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .catalog__grid .card {
    flex-basis: 100%;
  }

  /* Hero responsive — stack vertically, anclado abajo como en desktop */
  .hero {
    align-items: flex-end;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 96px;
  }

  .hero__left {
    flex: none;
    width: 100%;
  }

  .hero__divider {
    width: 100%;
    height: 1px;
    margin: 32px 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--border-default) 10%,
      var(--border-default) 90%,
      transparent 100%
    );
  }

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

  .project-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 480px) {
  .catalog__filters {
    gap: 8px;
  }

  .catalog__filter {
    padding: 8px 16px;
    font-size: 11px;
  }


  .day-selector__card {
    padding: 24px;
    margin: 0 16px;
  }

  .cart__item {
    flex-wrap: wrap;
  }

  .cart__item-days {
    order: 5;
    margin-left: auto;
  }
}

/* ---------- CURSOR GLITCH ---------- */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

.cursor-glitch {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-glitch::before,
.cursor-glitch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: background 0.15s ease;
}

.cursor-glitch--on-light::before,
.cursor-glitch--on-light::after {
  background: #111;
}

.cursor-glitch::before { transform: translate(-50%, -50%) rotate(45deg); }
.cursor-glitch::after { transform: translate(-50%, -50%) rotate(-45deg); }

.cursor-glitch.is-glitching::before {
  animation: cursorGlitchShiftA 0.4s steps(4, end);
}

.cursor-glitch.is-glitching::after {
  animation: cursorGlitchShiftB 0.4s steps(4, end);
}

@keyframes cursorGlitchShiftA {
  0%   { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
  20%  { transform: translate(-80%, -20%) rotate(80deg) scale(1.5); }
  45%  { transform: translate(-15%, -85%) rotate(5deg) scale(0.7); }
  70%  { transform: translate(-75%, -30%) rotate(70deg) scale(1.3); }
  100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
}

@keyframes cursorGlitchShiftB {
  0%   { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
  20%  { transform: translate(-20%, -80%) rotate(-80deg) scale(1.5); }
  45%  { transform: translate(-85%, -15%) rotate(-5deg) scale(0.7); }
  70%  { transform: translate(-30%, -75%) rotate(-70deg) scale(1.3); }
  100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glitch {
    display: none;
  }
}
