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

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --dark:    #111111;
  --panel:   #161616;
  --mid:     #222222;
  --border:  #2a2a2a;
  --red:     #c8251d;
  --red-hi:  #e02b22;
  --white:   #f0ece6;
  --gray:    #888888;
  --light:   #cccccc;
  --font-d:  'Oswald', sans-serif;
  --font-b:  'Barlow', sans-serif;
  --font-c:  'Barlow Condensed', sans-serif;
}

/* ── BASE ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-c);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-family: var(--font-c);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: .5rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--red-hi); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../media/hero1.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,.75) 0%,
    rgba(10,10,10,.60) 50%,
    rgba(10,10,10,.85) 100%
  );
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    90deg,
    rgba(200,37,29,.04) 0px,
    rgba(200,37,29,.04) 1px,
    transparent 1px,
    transparent 72px
  );
}

.hero-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-c);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(200,37,29,.35);
  padding: .35rem 1rem;
  margin-bottom: 2rem;
}
.hero-tag svg { flex-shrink: 0; }

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(3.6rem, 11vw, 9rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.hero h1 .red { color: var(--red); }

.hero-locations {
  font-size: clamp(1.1rem, 3.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--white);
}

.hero-sub {
  font-family: var(--font-c);
  font-size: clamp(.85rem, 2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3rem;
}

/* ── SECTION COMMON ────────────────────────────────────── */
section { padding: 5rem 2.5rem; }

.section-label {
  font-family: var(--font-c);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--red);
  opacity: .5;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: .95;
  margin-bottom: 1rem;
}
.section-title .red { color: var(--red); }

/* ── RULE ──────────────────────────────────────────────── */
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── PILLARS ───────────────────────────────────────────── */
.pillars {
  background: var(--dark);
  padding: 3rem 2.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.pillar:last-child { border-right: none; }

.pillar-icon {
  margin: 0 auto 1rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.pillar-word {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .3rem;
}
.pillar-desc {
  font-size: .8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ── BRANCHES ──────────────────────────────────────────── */
.branches { background: var(--black); }

.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.branch-card {
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color .3s;
}
.branch-card:hover { border-color: rgba(200,37,29,.5); }

.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.branch-map {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
  filter: grayscale(60%) contrast(1.1);
  transition: filter .4s;
}
.branch-card:hover .branch-map { filter: grayscale(20%) contrast(1.1); }

.branch-body { padding: 1.8rem; }

.branch-num {
  font-family: var(--font-d);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}

.branch-name {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1.1;
}

.branch-info { display: flex; flex-direction: column; gap: .9rem; }

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 18px;
  margin-top: 1px;
  color: var(--red);
}

.info-content { flex: 1; }

.info-label {
  font-family: var(--font-c);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .2rem;
}

.info-text {
  font-size: .88rem;
  color: var(--light);
  line-height: 1.55;
}

.schedule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .8rem;
  font-size: .85rem;
}
.sch-day {
  font-family: var(--font-c);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gray);
  white-space: nowrap;
}
.sch-time { color: var(--light); }
.sch-closed { color: var(--red); font-style: italic; }

/* ── HOW TO GET HERE ───────────────────────────────────── */
.how {
  background: var(--dark);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
.how-text .section-title { font-size: 2rem; }
.how-text p {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 380px;
}
.how-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.how-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-c);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 1px solid rgba(200,37,29,.3);
  padding: .65rem 1.1rem;
  transition: all .2s;
  width: fit-content;
}
.how-link:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.how-link svg { flex-shrink: 0; }
.how-map-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.how-map-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(55%) contrast(1.15) invert(4%);
}

/* ── GALLERY ───────────────────────────────────────────── */
.gallery { background: var(--black); }

.gallery-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-branch-row {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.gallery-branch-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-c);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}

.gallery-branch-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.gallery-row-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.gallery-row-imgs.centered {
  display: flex;
  justify-content: center;
}
.gallery-row-imgs.centered .gallery-item {
  width: calc(50% - .35rem);
  flex-shrink: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #161616 0%, #1c1c1c 100%);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--border);
  z-index: 0;
  pointer-events: none;
}
.gallery-ph span {
  font-family: var(--font-c);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease, filter .55s ease;
  filter: grayscale(20%) brightness(.9);
  z-index: 1;
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200,37,29,0);
  transition: background .45s;
  z-index: 2;
  pointer-events: none;
}
.gallery-item:hover::after { background: rgba(200,37,29,.09); }

/* ── PRODUCTS ──────────────────────────────────────────── */
.products { background: var(--dark); }

.products-cats { display: flex; flex-direction: column; gap: 3.5rem; margin-top: 3rem; }

.products-cat-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.products-cat-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}

.products-cat-title {
  font-family: var(--font-d);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .3s;
}
.product-card:hover { border-color: rgba(200,37,29,.5); }

.product-img {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%);
  flex-shrink: 0;
}

.product-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  z-index: 0;
}

.product-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .75rem;
  display: block;
  transition: filter .4s ease;
  filter: grayscale(5%);
  z-index: 1;
}
.product-card:hover .product-img img { filter: grayscale(0%); }

.product-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  font-family: var(--font-c);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: .25rem .65rem;
  z-index: 2;
  pointer-events: none;
}

.product-body {
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.product-name {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
}

.product-desc {
  font-size: .83rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-price {
  font-family: var(--font-d);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}

.btn-comprar {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-c);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: #25D366;
  color: #fff;
  border: none;
  padding: .5rem .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.btn-comprar:hover { background: #1ebf5c; }
.btn-comprar svg { flex-shrink: 0; }

/* ── CONTACT ───────────────────────────────────────────── */
.contact { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-label {
  font-family: var(--font-c);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-input {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--white);
  padding: .75rem 1rem;
  font-family: var(--font-b);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: #444; }
textarea.form-input { resize: none; height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  font-family: var(--font-c);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: none;
  padding: .85rem 2rem;
  cursor: pointer;
  width: 100%;
  margin-top: .5rem;
  transition: background .2s;
}
.btn-submit:hover { background: var(--red-hi); }

.contact-aside { display: flex; flex-direction: column; gap: 1.4rem; }

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-icon-wrap {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.contact-item-label {
  font-family: var(--font-c);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: .3rem;
}
.contact-item-value {
  font-size: .9rem;
  color: var(--light);
  line-height: 1.5;
}
.contact-item-value a { color: var(--light); text-decoration: none; }
.contact-item-value a:hover { color: var(--red); }

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  font-family: var(--font-c);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: #25D366;
  color: #fff;
  border: none;
  padding: .85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  margin-top: .5rem;
}
.wa-btn:hover { background: #1ebf5c; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  opacity: .85;
}

.footer-copy {
  font-size: .75rem;
  color: var(--gray);
  letter-spacing: .06em;
}

.footer-social { display: flex; gap: .7rem; }

.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  transition: all .2s;
}
.social-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-tag  { animation: fadeUp .5s ease both; }
.hero h1   { animation: fadeUp .5s .1s ease both; }
.hero-sub  { animation: fadeUp .5s .2s ease both; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 1.2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  section { padding: 4rem 1.2rem; }
  .pillars { padding: 2.5rem 1.2rem; }

  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
  }
  .pillar:last-child { border-bottom: none; }

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

  .how {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.2rem;
  }
  .how-map-wrap { height: 220px; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

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

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.2rem;
  }
}

@media (max-width: 600px) {
  .gallery-row-imgs { grid-template-columns: 1fr; }
  .gallery-row-imgs.centered { justify-content: flex-start; }
  .gallery-row-imgs.centered .gallery-item { width: 100%; }

  .products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .products-grid::-webkit-scrollbar { display: none; }
  .product-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar:last-child { border-bottom: none; }
  .gallery-branch-label { font-size: .6rem; letter-spacing: .2em; }
}

/* ── NAV MOBILE OPEN ───────────────────────────────────── */
nav.open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.2rem 2rem;
  gap: 1.2rem;
  z-index: 99;
}
nav.open .nav-cta {
  display: block;
  margin: 0 1.2rem;
  text-align: center;
  padding: .75rem;
}
