:root {
  --bg: #f4f4f6;
  --panel: #fff;
  --line: #d8d8de;
  --text: #1a1a1c;
  --muted: #6b6b73;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
.wrap { width: min(1140px, 92%); margin-inline: auto; }
.eyebrow {
  font-size: .66rem; letter-spacing: .14em; font-weight: 650;
  color: var(--muted); text-transform: uppercase; margin: 0 0 .55rem;
}

/* Header estático + adaptado móvil */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .75rem 4%;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 750; font-size: 1rem; letter-spacing: -.04em; color: #111;
}
.brand small {
  display: block; font: 600 .42rem/1.3 var(--font);
  letter-spacing: .1em; color: var(--muted); margin-top: .22rem;
}
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1.5px solid #111; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}

/* Menú 3 barras → X */
.menu-trigger {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; z-index: 60;
}
.menu-bars { width: 20px; height: 14px; position: relative; display: block; }
.menu-bars span {
  position: absolute; left: 0; height: 1.5px; background: #111; border-radius: 1px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .3s, top .3s;
}
.menu-bars span:nth-child(1) { top: 0; width: 20px; }
.menu-bars span:nth-child(2) { top: 6px; width: 15px; }
.menu-bars span:nth-child(3) { top: 12px; width: 10px; }
.menu-trigger.is-open .menu-bars span:nth-child(1) { top: 6px; width: 20px; transform: rotate(45deg); }
.menu-trigger.is-open .menu-bars span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-trigger.is-open .menu-bars span:nth-child(3) { top: 6px; width: 20px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8,8,12,.35); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); z-index: 55;
  background: linear-gradient(160deg, rgba(22,22,28,.9), rgba(12,12,16,.94));
  border-left: 1px solid rgba(255,255,255,.1);
  box-shadow: -16px 0 50px rgba(0,0,0,.25);
  backdrop-filter: blur(26px) saturate(1.2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 1.8rem;
  transform: translateX(105%);
  transition: transform .42s cubic-bezier(.4,0,.2,1);
}
.nav-panel.is-open { transform: translateX(0); }
.nav-panel .nav-label {
  font-size: .6rem; letter-spacing: .16em; color: rgba(255,255,255,.45);
  margin-bottom: 1.6rem; text-transform: uppercase;
}
.nav-panel a {
  display: block; font-size: 1.4rem; font-weight: 650; letter-spacing: -.03em;
  color: #fff; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s, padding-left .2s;
}
.nav-panel a:hover { color: rgba(255,255,255,.7); padding-left: .35rem; }
.nav-panel .nav-foot { margin-top: 2.2rem; font-size: .7rem; color: rgba(255,255,255,.4); }

/* Hero con foto header + difuminado */
.hero {
  position: relative; min-height: min(520px, 70vh);
  display: flex; align-items: flex-end; overflow: hidden; background: #111;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("images/header/header.jpg") center center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,14,.88) 0%,
    rgba(10,10,14,.55) 40%,
    rgba(10,10,14,.25) 70%,
    rgba(10,10,14,.15) 100%
  );
}
.hero-copy {
  position: relative; z-index: 1; width: min(640px, 92%);
  margin: 0 auto 0 max(4%, calc((100vw - 1140px)/2));
  padding: 3rem 0 2.8rem; color: #fff;
}
.hero-copy .eyebrow { color: rgba(255,255,255,.65); }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700;
  letter-spacing: -.05em; line-height: 1.05; margin: .5rem 0 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: rgba(255,255,255,.7); }
.hero-description {
  color: rgba(255,255,255,.8); font-size: .98rem; max-width: 460px;
  line-height: 1.65; margin-bottom: 1.5rem;
}
.hero-buttons { display: flex; gap: .7rem; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .8rem 1.2rem; font-size: .76rem; font-weight: 650;
  border-radius: 3px; border: 1px solid transparent;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: #fff; color: #111; border-color: #fff; }
.button-dark:hover { background: #e8e8ea; }
.button-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.12); }
.button-solid { background: #111; color: #fff; border-color: #111; }
.button-solid:hover { background: #2a2a2a; }

/* Carrusel único */
.carousel-section {
  position: relative; overflow: hidden; background: #e8e8ec;
  border-block: 1px solid var(--line);
}
.carousel-track {
  display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  min-width: 100%; aspect-ratio: 21/9; max-height: 380px;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.carousel-dots {
  position: absolute; bottom: .9rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 2;
}
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: 0; padding: 0; transition: background .2s, transform .2s;
}
.carousel-dots button.active { background: #fff; transform: scale(1.2); }

/* Secciones */
.section { padding-block: 3.8rem; }
.section-heading h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 700;
  letter-spacing: -.04em; margin: 0; line-height: 1.15;
}
.section-heading h2 span { color: #777; }
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start;
}
.about-text p { color: #515158; font-size: .93rem; line-height: 1.8; margin: 0 0 1rem; }
.values { display: grid; gap: .9rem; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1.1rem 1.2rem;
}
.value-card h3 { font-size: .92rem; font-weight: 650; margin: 0 0 .35rem; }
.value-card p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.55; }

.objectives { background: #111; color: #fff; padding-block: 3.5rem; }
.objectives .eyebrow { color: rgba(255,255,255,.5); }
.objectives h2 { color: #fff; }
.objectives h2 span { color: rgba(255,255,255,.45); }
.obj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.6rem; }
.obj-card {
  border: 1px solid rgba(255,255,255,.12); border-radius: 3px;
  padding: 1.25rem; background: rgba(255,255,255,.04);
}
.obj-card .num { font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.4); margin-bottom: .55rem; }
.obj-card h3 { font-size: .95rem; font-weight: 650; margin: 0 0 .4rem; }
.obj-card p { font-size: .8rem; color: rgba(255,255,255,.55); margin: 0; line-height: 1.55; }

.cta-band {
  text-align: center; padding: 3.5rem 1rem; background: #fff; border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700;
  letter-spacing: -.04em; margin: .4rem 0 1.2rem;
}
.cta-band h2 span { color: #777; }

/* Flota */
.flota-hero { padding: 2rem 0 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
.flota-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700;
  letter-spacing: -.04em; margin: .3rem 0 0;
}
.catalog { padding: 1.6rem 0 4rem; }
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; margin-bottom: 1.3rem; flex-wrap: wrap;
}
.ml-search {
  display: flex; align-items: stretch; width: 100%; max-width: 520px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.ml-search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: #111;
  padding: .75rem .9rem; font-size: .9rem;
}
.ml-search button {
  background: #111; color: #fff; padding: 0 1.15rem; font-size: .8rem; font-weight: 650;
}

.filter-trigger {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; flex-shrink: 0;
}
.filter-trigger.is-open { border-color: #111; background: #f8f8fa; }
.filter-bars { width: 18px; height: 13px; position: relative; display: block; }
.filter-bars span {
  position: absolute; left: 0; height: 1.5px; background: #111; border-radius: 1px;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .22s, width .28s, top .28s;
}
.filter-bars span:nth-child(1) { top: 0; width: 18px; }
.filter-bars span:nth-child(2) { top: 5.5px; width: 13px; }
.filter-bars span:nth-child(3) { top: 11px; width: 8px; }
.filter-trigger.is-open .filter-bars span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.filter-trigger.is-open .filter-bars span:nth-child(3) { width: 18px; }

.filter-backdrop {
  position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
.filter-backdrop.is-open { opacity: 1; visibility: visible; }
.filter-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(290px, 85vw); z-index: 45;
  background: #fff; border-left: 1px solid var(--line);
  box-shadow: -12px 0 36px rgba(0,0,0,.08);
  padding: 5rem 1.4rem 1.5rem;
  transform: translateX(105%);
  transition: transform .36s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.filter-panel.is-open { transform: translateX(0); }
.filter-panel h3 { font-size: .84rem; font-weight: 700; margin: 0 0 1rem; }
.filter-panel .filter-group { display: flex; flex-direction: column; gap: .5rem; }
.filter-panel label {
  display: flex; align-items: center; gap: .5rem; font-size: .86rem;
  padding: .4rem .5rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
}
.filter-panel label:has(input:checked) { background: #f0f0f2; border-color: #ddd; }
.filter-panel input[type="checkbox"] { width: 15px; height: 15px; accent-color: #111; }

.product-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.05rem;
}
.product-card {
  background: #fff; border: 1px solid #e2e2e6; border-radius: 3px;
  overflow: hidden; transition: transform .22s, border-color .22s;
}
.product-card:hover { transform: translateY(-3px); border-color: #bbb; }
.product-card a { display: block; color: inherit; }
.product-image {
  position: relative; aspect-ratio: 16/11; background: #ececf0; overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-tag {
  position: absolute; top: .7rem; left: .7rem; padding: .28rem .45rem;
  background: rgba(255,255,255,.94); border: 1px solid #e0e0e3;
  color: #555; font-size: .55rem; letter-spacing: .06em; font-weight: 700; border-radius: 2px;
}
.product-info { padding: .9rem 1rem 1.05rem; }
.product-category {
  font-size: .66rem; color: var(--muted); letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: .25rem;
}
.product-info h3 { font-size: .98rem; font-weight: 650; margin: 0 0 .3rem; letter-spacing: -.02em; }
.product-desc { font-size: .78rem; color: var(--muted); margin: 0 0 .55rem; }
.product-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #ececf0; padding-top: .6rem;
}
.product-bottom strong { font-size: .98rem; }
.product-bottom .price-note { font-size: .66rem; color: var(--muted); font-weight: 500; }
.text-link { font-size: .7rem; font-weight: 650; color: #111; }
.no-results { color: var(--muted); padding: 2rem 1rem; text-align: center; grid-column: 1/-1; }

/* Detalle */
.detail-page { padding: 1.8rem 0 4rem; }
.detail-layout {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start;
}
.detail-gallery { display: grid; gap: .6rem; }
.detail-main {
  aspect-ratio: 4/3; background: #ececf0; border: 1px solid #e2e2e6;
  border-radius: 3px; overflow: hidden;
}
.detail-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .4rem;
}
.detail-thumbs button {
  aspect-ratio: 1; border: 2px solid transparent; border-radius: 3px;
  overflow: hidden; padding: 0; background: #ececf0;
}
.detail-thumbs button.active { border-color: #111; }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-content h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700;
  letter-spacing: -.03em; margin: 0 0 .5rem; line-height: 1.12;
}
.detail-content .brand-label {
  font-size: .68rem; color: var(--muted); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .55rem;
}
.detail-content .description {
  color: #515158; font-size: .9rem; line-height: 1.7; margin-bottom: 1.2rem;
}
.detail-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem;
  margin-bottom: 1.2rem; padding: .9rem; background: #f6f6f8;
  border: 1px solid #e8e8ed; border-radius: 3px;
}
.detail-specs div { font-size: .8rem; }
.detail-specs span { display: block; color: var(--muted); font-size: .64rem; margin-bottom: .1rem; }
.detail-price { margin-bottom: 1rem; }
.detail-price strong { font-size: 1.45rem; }
.detail-price .per { font-size: .82rem; color: var(--muted); margin-left: .25rem; }

/* Campo modelo editable (para PDF futuro) */
.model-field {
  margin-bottom: 1rem; padding: .85rem; background: #fff;
  border: 1px solid var(--line); border-radius: 3px;
}
.model-field label {
  display: block; font-size: .65rem; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase; margin-bottom: .35rem;
}
.model-field input {
  width: 100%; border: 1px solid #ddd; border-radius: 3px;
  padding: .55rem .7rem; font-size: .9rem; font-weight: 600; color: #111;
  background: #fafafa;
}
.model-field small {
  display: block; margin-top: .35rem; font-size: .7rem; color: var(--muted);
}

.btn-liquid {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; min-width: 160px; padding: .85rem 1.5rem;
  font-size: .86rem; font-weight: 650; letter-spacing: .03em; color: #fff;
  background: linear-gradient(145deg, rgba(28,28,32,.93), rgba(10,10,14,.9));
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(10px); transition: transform .2s, box-shadow .2s;
}
.btn-liquid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.14);
}

/* Footer */
.site-footer {
  padding: 2.4rem 4% 1.2rem; background: #fff; border-top: 1px solid var(--line);
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e8e8ed; flex-wrap: wrap;
}
.footer-top > p { font-size: .82rem; color: var(--muted); max-width: 240px; margin: 0; line-height: 1.55; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; color: #515158; }
.footer-contact a { color: #111; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: .8rem; padding-top: .9rem;
  color: #9a9aa0; font-size: .64rem; letter-spacing: .04em; flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
body.page-leaving { opacity: .5; transition: opacity .15s; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .obj-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .carousel-slide { aspect-ratio: 16/9; max-height: 280px; }
}
@media (max-width: 640px) {
  .site-header { padding: .65rem 4%; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; font-size: .78rem; }
  .hero { min-height: 420px; }
  .hero-copy { margin-inline: 4%; width: 92%; padding: 2rem 0 2.2rem; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 220px; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .ml-search { max-width: 100%; }
  .filter-trigger { align-self: flex-end; }
  .footer-top { flex-direction: column; gap: 1.2rem; }
  .detail-specs { grid-template-columns: 1fr; }
  .carousel-slide { aspect-ratio: 4/3; max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* Carrusel flotante compacto: se cierra solo en la sesión/página actual */
.floating-carousel { position: fixed; z-index: 25; right: 18px; bottom: 18px; width: min(290px, calc(100vw - 36px)); border: 1px solid rgba(0,0,0,.12); border-radius: 10px; box-shadow: 0 10px 35px rgba(0,0,0,.2); overflow: hidden; }
.floating-carousel .carousel-slide { aspect-ratio: 16/9; max-height: 164px; }
.floating-carousel .carousel-dots { bottom: 7px; }
.floating-carousel .carousel-dots button { width: 6px; height: 6px; }
.carousel-close { position:absolute; z-index:4; top:7px; right:7px; width:27px; height:27px; border-radius:50%; background:rgba(20,20,22,.78); color:#fff; font-size:21px; line-height:1; display:grid; place-items:center; }
.btn-liquid { text-decoration:none; }
.booking-page { padding: 3rem 1rem 4rem; }
.booking-card { width:min(820px,100%); margin:0 auto; padding:clamp(1.2rem,4vw,2.5rem); background:#fff; border:1px solid var(--line); border-radius:8px; }
.booking-card h1 { margin:.2rem 0 .5rem; font-size:clamp(1.8rem,4vw,2.5rem); letter-spacing:-.04em; }
.booking-intro { color:var(--muted); max-width:650px; margin-bottom:2rem; }
.booking-card h2 { margin:1.8rem 0 .8rem; padding-bottom:.5rem; border-bottom:1px solid var(--line); font-size:1rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.booking-card label { display:block; margin-bottom:1rem; font-size:.78rem; font-weight:600; color:#45454b; }
.booking-card input,.booking-card select,.booking-card textarea { display:block; width:100%; margin-top:.35rem; padding:.75rem; border:1px solid #d8d8de; border-radius:4px; background:#fafafa; color:#171719; font:inherit; font-weight:400; }
.booking-card input:focus,.booking-card select:focus,.booking-card textarea:focus { outline:2px solid #999; outline-offset:1px; }
.form-notice { padding:.8rem; background:#f4f4f6; color:#666; font-size:.75rem; line-height:1.6; }
.booking-actions { display:flex; gap:.7rem; flex-wrap:wrap; margin-top:1.2rem; }
.booking-actions button:disabled { opacity:.45; cursor:not-allowed; }
.booking-status { min-height:1.5em; color:#555; font-size:.8rem; }
@media(max-width:600px){.floating-carousel{right:10px;bottom:10px;width:220px}.floating-carousel .carousel-slide{max-height:124px}.form-grid{grid-template-columns:1fr}.booking-actions{flex-direction:column}.booking-actions button{width:100%}}


/* Logo unificado */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.site-footer .brand-logo {
  height: 36px;
}
@media (max-width: 640px) {
  .brand-logo {
    height: 34px;
    max-width: 180px;
  }
}
