/* ============================================
   RUFIOSA — Equipment Rental, Santo Domingo
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --orange: #E85D2F;
  --orange-dark: #B8401A;
  --yellow: #FCC233;
  --yellow-soft: #FFF1C5;
  --ink: #1A1611;
  --paper: #FAF6EC;
  --paper-warm: #F2EAD6;
  --gray: #6B635A;
  --gray-light: #D8D0C0;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(26, 22, 17, 0.06);
  --shadow-lift: 0 12px 40px rgba(26, 22, 17, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* el pie de página siempre queda pegado abajo,
     aunque la página tenga poco contenido */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* los hijos directos ocupan todo el ancho (el centrado
   lo siguen haciendo sus max-width + margin auto) */
body > * { width: 100%; }

/* Display type — matches the heavy condensed feel of the RUFIOSA logo */
.display { font-family: 'Anton', 'Impact', sans-serif; letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95; }
.mono { font-family: 'Space Mono', monospace; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

.nav-links a.active {
  color: var(--orange);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}

.cart-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.cart-btn:hover { background: var(--orange); }

.cart-count {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

/* ============================================
   HERO (Home)
   ============================================ */
/* El hero conserva la proporción exacta de la foto (3:2) y los
   textos se posicionan en porcentajes de la imagen — así cada
   bloque queda "pegado" a su lugar de la foto en cualquier tamaño */
.hero {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: url('images/hero-local.jpg') center / cover no-repeat;
}

/* Velo más pesado a la izquierda, donde vive el bloque de texto;
   la derecha de la foto queda casi limpia */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(26, 22, 17, 0.82) 0%,
    rgba(26, 22, 17, 0.55) 34%,
    rgba(26, 22, 17, 0.12) 58%,
    rgba(26, 22, 17, 0.02) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
}

/* Título en la franja oscura sobre las ventanas, con las dos
   palabras separadas como letreros */
.hero h1 {
  position: absolute;
  left: 57.5%;
  top: 23.5%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 2.4vw, 50px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  gap: clamp(20px, 4vw, 80px);
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero h1 .accent {
  color: var(--orange);
}

/* Bloque principal a la izquierda, sobre los estantes */
.hero-main {
  position: absolute;
  left: 5.5%;
  top: 54%;
  transform: translateY(-50%);
  max-width: 44%;
  text-align: left;
  color: var(--paper);
}

.hero-heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(26px, 4.4vw, 86px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

.hero-heading .accent { color: var(--orange); }

.hero-rule {
  width: clamp(40px, 5.5vw, 105px);
  height: 3px;
  background: var(--paper);
  margin: 1.6vw 0 1.6vw;
}

.hero-main p {
  font-size: clamp(10px, 1.4vw, 23px);
  color: rgba(250, 246, 236, 0.94);
  line-height: 1.5;
  margin-bottom: 2vw;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-ctas {
  display: flex;
  gap: 1.2em;
  font-size: clamp(9px, 1.1vw, 17px);
}

.hero .btn {
  font-size: 1em;
  padding: 1.1em 2em;
}

/* Botón claro (relleno papel) del hero */
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.hero .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}

/* Fila de sellos de confianza */
.hero-badges {
  display: flex;
  align-items: center;
  margin-top: 2.4vw;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: clamp(7px, 0.95vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--paper);
  white-space: nowrap;
}

.hero-badge:not(:first-child) {
  border-left: 1px solid rgba(250, 246, 236, 0.35);
  margin-left: 1.6em;
  padding-left: 1.6em;
}

.hero-badge-icon {
  flex-shrink: 0;
  width: 2.7em;
  height: 2.7em;
  border: 2px solid var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-icon svg {
  width: 55%;
  height: 55%;
}

/* En pantallas chicas la foto es muy pequeña para anclar textos:
   se vuelve al diseño apilado y centrado */
@media (max-width: 700px) {
  .hero {
    aspect-ratio: auto;
    min-height: 78vh;
    display: flex;
  }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(26, 22, 17, 0.62) 0%,
      rgba(26, 22, 17, 0.45) 40%,
      rgba(26, 22, 17, 0.55) 100%);
  }
  .hero-content {
    position: relative;
    inset: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 36px 20px;
    text-align: center;
  }
  .hero h1,
  .hero-main {
    position: static;
    transform: none;
  }
  .hero h1 { font-size: 26px; gap: 18px; }
  .hero-main {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-heading { font-size: 44px; }
  .hero-rule { margin: 16px auto; }
  .hero-main p { font-size: 15px; margin-bottom: 20px; }
  .hero-ctas { justify-content: center; flex-wrap: wrap; font-size: 12px; }
  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-badge { font-size: 11px; }
  .hero-badge:not(:first-child) {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Ghost button inverted inside the hero (dark photo background) */
.hero .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.hero .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================
   STRIP (numbered features)
   ============================================ */
.strip {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 64px;
  margin-bottom: 80px;
}

.strip-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strip-item {
  border-top: 2px solid var(--orange);
  padding-top: 24px;
}

.strip-num {
  font-family: 'Anton', sans-serif;
  font-size: 64px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}

.strip-item h3 {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.strip-item p {
  color: var(--gray-light);
  font-size: 15px;
}

/* ============================================
   PAGE LAYOUTS
   ============================================ */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.page-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.page-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.page-subtitle {
  font-family: 'Space Mono', monospace;
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 380px;
  text-align: right;
}

/* ============================================
   SEARCH BAR
   ============================================ */
/* Side menu de categorías del catálogo: colapsado muestra iconos,
   expandido (hover) muestra también los nombres */
.catalog-page {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.catalog-main {
  flex: 1;
  min-width: 0;
}

.cat-sidebar {
  position: sticky;
  top: 92px;
  flex-shrink: 0;
  width: 78px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: width 0.25s ease;
  z-index: 5;
}

.cat-sidebar:hover,
.cat-sidebar:focus-within {
  width: 240px;
}

/* Tras hacer clic en una categoría el menú se colapsa hasta que el
   mouse salga y vuelva a entrar */
.cat-sidebar.collapsed-lock,
.cat-sidebar.collapsed-lock:hover,
.cat-sidebar.collapsed-lock:focus-within {
  width: 78px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.cat-item svg {
  width: clamp(28px, 5.2vh, 40px);
  height: clamp(28px, 5.2vh, 40px);
  flex-shrink: 0;
}

.cat-item span {
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
}

.cat-sidebar:hover .cat-item span,
.cat-sidebar:focus-within .cat-item span {
  opacity: 1;
}

.cat-sidebar.collapsed-lock .cat-item span {
  opacity: 0;
}

.cat-item:hover {
  background: var(--paper-warm);
}

.cat-item.active {
  background: var(--ink);
  color: var(--orange);
}

.cat-item.active span {
  color: var(--paper);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 20px;
  margin-bottom: 28px;
  transition: all 0.2s;
}

.search-bar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232, 93, 47, 0.15);
}

.search-icon {
  font-size: 16px;
  opacity: 0.6;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
}

.search-bar input::placeholder {
  color: var(--gray);
  font-size: 14px;
}

.search-clear {
  background: var(--paper-warm);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-clear:hover {
  background: var(--orange);
  color: var(--white);
}

.search-results-info {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--ink);
}

.no-results-icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: grayscale(0.5);
}

.link-btn {
  background: none;
  border: none;
  color: var(--orange);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

/* ============================================
   CATALOG
   ============================================ */
.catalog-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.catalog-tabs::-webkit-scrollbar { height: 4px; }
.catalog-tabs::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }

.tab-btn {
  background: none;
  border: none;
  padding: 18px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.tab-btn .count {
  display: inline-block;
  background: var(--paper-warm);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 8px;
  font-family: 'Space Mono', monospace;
}

.tab-btn.active .count {
  background: var(--orange);
  color: var(--white);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.equipment-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  position: relative;
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange);
}

.equipment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.equipment-card:hover::before { transform: scaleX(1); }

.equipment-img {
  height: 220px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.equipment-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.equipment-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.equipment-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.equipment-info h3 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.equipment-units {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.equipment-price {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 4px;
}

.equipment-price-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.equipment-weekly {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.add-btn {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.add-btn:hover {
  background: var(--orange);
}

/* Selector de cantidad en la tarjeta (solo equipos con más de 1 unidad) */
.card-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.card-qty + .add-btn {
  margin-top: 12px;
}

.card-qty-btn {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: all 0.2s;
}

.card-qty-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.card-qty-val {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-width: 52px;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 0;
  background: var(--white);
}

.add-btn.added {
  background: var(--yellow);
  color: var(--ink);
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 17, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  /* En móvil 100vh queda detrás de la barra del navegador;
     dvh usa el alto visible real */
  height: 100dvh;
  background: var(--paper);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
}

.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  padding: 4px;
}

/* Date picker (pickup → return) */
.date-picker-block {
  padding: 18px 28px 16px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--gray-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-field label {
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.date-field input[type="date"] {
  padding: 9px 10px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  width: 100%;
}

.date-field input[type="date"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.days-readout {
  grid-column: 1 / -1;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-light);
  text-align: center;
}

.days-readout span {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: center;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--paper-warm);
  border-radius: 4px;
  padding: 6px;
}

.cart-item-info h4 {
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cart-item-price {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.qty-btn:hover { background: var(--paper-warm); border-color: var(--ink); }

.qty-val {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  align-self: flex-start;
}
.cart-remove:hover { color: var(--orange); }

.cart-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--gray);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cart-footer {
  padding: 20px 28px;
  /* deja espacio para la barra inferior de iOS */
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--ink);
  background: var(--white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-light);
}

.cart-total-label {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.cart-total-value {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  color: var(--ink);
}

.cart-send {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 18px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-send:hover { background: var(--ink); }
.cart-send:disabled { opacity: 0.4; cursor: not-allowed; }

.cart-clear {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--gray);
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.cart-clear:hover { color: var(--orange); text-decoration: underline; }

/* ── Cotización compacta en móvil (estilo carrito de tienda) ── */
@media (max-width: 600px) {
  .cart-header { padding: 14px 18px 12px; }
  .cart-header h2 { font-size: 20px; }
  .cart-close { font-size: 20px; }

  .date-picker-block { padding: 12px 18px 10px; gap: 8px; }
  .date-field label { font-size: 11px; }
  .date-field input[type="date"] { padding: 7px 8px; font-size: 12px; }
  .days-readout { font-size: 10px; padding-top: 6px; }
  .days-readout span { font-size: 12px; }

  .cart-items { padding: 8px 18px; }
  .cart-item { grid-template-columns: 52px 1fr auto; gap: 10px; padding: 10px 0; }
  .cart-item img { width: 52px; height: 52px; padding: 4px; }
  .cart-item-info h4 { font-size: 14px; margin-bottom: 3px; }
  .cart-item-price { font-size: 11px; }
  .cart-venta-tag { font-size: 9px; padding: 1px 6px; }
  .qty-control { margin-top: 4px; }
  .qty-btn { width: 22px; height: 22px; font-size: 12px; }
  .qty-val { font-size: 12px; min-width: 20px; }
  .cart-remove { font-size: 14px; }

  .cart-empty { padding: 40px 20px; font-size: 14px; }
  .cart-empty-icon { font-size: 36px; margin-bottom: 10px; }

  /* total a la izquierda y botón al lado, como un carrito de tienda */
  .cart-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .cart-total {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: none;
  }
  .cart-total-label { font-size: 11px; }
  .cart-total-value { font-size: 24px; }
  .cart-send {
    flex: 1 1 auto;
    width: auto;
    padding: 13px 18px;
    font-size: 14px;
  }
  .cart-clear { flex-basis: 100%; margin-top: 0; font-size: 11px; }
}

/* ============================================
   CUENTA — popup de registro y formularios
   ============================================ */
.account-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

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

.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 17, 0.6);
}

.account-card {
  position: relative;
  background: var(--paper);
  border-radius: 10px;
  padding: 28px;
  width: min(420px, 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.account-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.account-card > p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray);
  margin: 0 0 18px;
}

.account-field { margin-bottom: 12px; }

.account-field label {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.account-field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  background: var(--white);
}

.account-error {
  display: none;
  color: #c0392b;
  font-size: 13px;
  margin: 4px 0 8px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.account-primary {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.account-primary:hover { background: var(--ink); }

.account-skip {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.account-skip:hover { color: var(--ink); }

/* Etiqueta para artículos en venta dentro de la cotización */
.cart-venta-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* ============================================
   OLA RUFIOSA — hover sobre botones
   El botón reproduce la animación de la ola y
   el pez salta o nada dentro de ella.
   ============================================ */
/* El botón anfitrión crea un stacking context (z-index: 0)
   para que la ola (z-index: -1) quede sobre su fondo pero
   debajo del texto */
.wave-hover-host {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.wave-hover {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  overflow: hidden;
}

.wave-hover.show { opacity: 1; }

.wave-hover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* recorta hacia abajo, donde está el agua (arriba es cielo crema) */
  object-position: 50% 100%;
}

.wave-hover .wave-fish {
  position: absolute;
  left: 10%;
  bottom: 6%;
  height: 64%;
  filter: drop-shadow(0 3px 6px rgba(26, 22, 17, 0.3));
}

/* La ola "lava" el nombre del botón: el texto desaparece
   mientras se reproduce la animación */
.wave-hover-host,
.wave-hover-host:hover {
  color: transparent !important;
}

.wave-hover-host > *:not(.wave-hover) {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* El pez salta en arco desde la ola */
.wave-hover.leap .wave-fish {
  animation: wave-fish-leap 1.7s ease-in-out infinite;
}

@keyframes wave-fish-leap {
  0%   { transform: translate(0, 130%) rotate(-32deg); }
  18%  { transform: translate(70%, -35%) rotate(-14deg); }
  32%  { transform: translate(140%, -70%) rotate(4deg); }
  46%  { transform: translate(210%, -35%) rotate(24deg); }
  62%  { transform: translate(280%, 130%) rotate(48deg); }
  100% { transform: translate(280%, 130%) rotate(48deg); }
}

/* El pez nada meciéndose en la ola */
.wave-hover.swim .wave-fish {
  animation: wave-fish-swim 1.5s ease-in-out infinite;
}

@keyframes wave-fish-swim {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  25%      { transform: translate(45%, -16%) rotate(3deg); }
  50%      { transform: translate(90%, 0) rotate(6deg); }
  75%      { transform: translate(45%, -16%) rotate(3deg); }
}

/* Texto legible sobre la ola */
.wave-hover-host > *:not(.wave-hover) {
  position: relative;
}

/* ============================================
   GALLERY (Work, Backstage)
   ============================================ */
.work-section {
  margin-bottom: 80px;
}

.work-section:last-child {
  margin-bottom: 0;
}

.work-section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--gray-light);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Películas: póster vertical que al hover reproduce el teaser */
.film-item {
  aspect-ratio: 2 / 3;
  background: #000;
}

.film-item video,
.film-item .film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-item .film-poster {
  transition: opacity 0.35s ease;
}

.film-item.playing .film-poster {
  opacity: 0;
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 14px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0));
  pointer-events: none;
}

.gallery-caption-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}

.gallery-caption-client {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
}

.gallery-placeholder-num {
  font-family: 'Anton', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--gray-light);
}

.gallery-placeholder-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.note {
  background: var(--yellow-soft);
  border-left: 4px solid var(--yellow);
  padding: 24px 28px;
  border-radius: 4px;
  margin-top: 56px;
}

.note h4 {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.note p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.note code {
  background: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--gray-light);
}

/* ============================================
   CLIENTS PAGE
   ============================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--white);
}

.client-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: all 0.2s;
}

.client-cell:hover {
  background: var(--orange);
  color: var(--white);
}

.client-cell.empty {
  color: var(--gray-light);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 32px 32px;
  /* auto empuja el pie hasta el fondo en páginas cortas;
     el respiro fijo lo pone el margen del contenido */
  margin-top: 80px;
  margin-top: auto;
}

main.page, main { margin-bottom: 80px; }

/* No gap when the footer follows the dark strip (Inicio) */
.strip + .footer { margin-top: 0; }

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 80px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer-brand p {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--gray-light);
  max-width: 360px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer-col a:hover { color: var(--yellow); }

.footer-map-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-map-links a {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 7px 14px;
  border: 1px solid rgba(250, 247, 240, 0.4);
  border-radius: 999px;
  transition: all 0.2s;
}

.footer-map-links a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  z-index: 300;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lift);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { color: var(--yellow); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; font-size: 12px; order: 3; width: 100%; justify-content: center; }
  .nav-links a { font-size: 12px; }

  .eyebrow { justify-content: center; }

  .strip { padding: 48px 24px; }
  .strip-grid { grid-template-columns: 1fr; gap: 32px; }

  .page { padding: 40px 20px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-subtitle { text-align: left; }

  .cart-drawer { width: 100vw; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .equipment-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .catalog-page { flex-direction: column; gap: 20px; }
  .cat-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .cat-sidebar:hover,
  .cat-sidebar:focus-within { width: 100%; }
  .cat-item { padding: 8px; flex: 0 0 auto; }
  .cat-item svg { width: 30px; height: 30px; }
  .cat-item span,
  .cat-sidebar:hover .cat-item span,
  .cat-sidebar:focus-within .cat-item span { display: none; }
}

@media (max-width: 480px) {
  .equipment-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .equipment-img { height: 140px; padding: 12px; }
  .equipment-info { padding: 14px; }
  .equipment-info h3 { font-size: 16px; }
  .equipment-price { font-size: 22px; }
  .add-btn { padding: 10px; font-size: 11px; }
}

/* ============================================
   SEND CHOOSER (WhatsApp / Email)
   ============================================ */
.send-chooser {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.send-chooser.open { display: flex; }

.send-chooser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 17, 0.55);
}

.send-chooser-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: chooser-pop 0.18s ease-out;
}
@keyframes chooser-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.send-chooser-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 8px;
}

.send-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.send-option:hover { transform: translateY(-2px); opacity: 0.92; }

.send-option-wa {
  background: #25d366;
  color: #fff;
}
.send-option-mail {
  background: var(--ink);
  color: var(--white);
}

.send-chooser-cancel {
  background: none;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  cursor: pointer;
  padding: 8px;
  margin-top: 2px;
}
.send-chooser-cancel:hover { color: var(--ink); }
