/* ===========================================================
   CENTRAL DE PARTES — Sitio en construcción
   Paleta conceptual: rojo y negro (tomado del logo)
=========================================================== */

:root{
  --red:         #8E1618;
  --red-bright:  #B8181C;
  --red-deep:    #5C0D0F;
  --black:       #0A0A0A;
  --charcoal:    #161616;
  --charcoal-2:  #1F1F1F;
  --steel:       #8B8B8B;
  --off-white:   #F5F5F3;
  --panel:       #F7F7F5;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin: 0;
  min-height: 100svh;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* -----------------------------------------------------------
   Textura de fondo + franja diagonal roja (guiño al logo)
----------------------------------------------------------- */
.road{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 700px at 15% 8%, #1c1c1c 0%, var(--black) 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 26px);
}

.stripe{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.stripe::before{
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 62%;
  height: 34%;
  background: linear-gradient(100deg, transparent 0%, var(--red) 18%, var(--red-bright) 46%, transparent 78%);
  transform: skewY(-6deg);
  opacity: 0.22;
}
.stripe::after{
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 66%;
  height: 4px;
  background: linear-gradient(100deg, transparent 0%, var(--red-bright) 20%, var(--red-bright) 44%, transparent 76%);
  transform: skewY(-6deg);
  opacity: 0.6;
}

/* -----------------------------------------------------------
   Layout general
----------------------------------------------------------- */
.wrap{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 12vh;
  gap: clamp(1.6rem, 3.2vw, 2.4rem);
}
.wrap[hidden]{ display: none; }

/* Placa del logo */
.badge{
  background: #FFFFFF;
  padding: clamp(14px, 2.2vw, 22px) clamp(22px, 4vw, 40px);
  border-radius: 6px;
  border: 1px solid #E1E1DD;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.8);
}
.badge img{
  display: block;
  width: clamp(240px, 36vw, 440px);
  height: auto;
}

/* Titular */
.headline{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  margin: 0;
}
.headline .l1{ color: var(--off-white); display:block; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.headline .l2{
  display:block;
  color: var(--red-bright);
  text-shadow: 3px 3px 0 var(--black), 0 0 34px rgba(184,24,28,0.35);
}

.sub{
  max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(245,245,243,0.94);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
}
.sub strong{ color: var(--off-white); font-weight: 600; }

/* Ubicación */
.location{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.6rem 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--red-bright);
  text-decoration: none;
  transition: opacity .2s ease;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}
.location:hover,
.location:focus-visible{
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location svg{ width: 18px; height: 18px; flex-shrink: 0; }

/* Barra decorativa (herramienta girando) */
.tools{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.tools svg{
  width: 26px; height: 26px;
  animation: spin 6s linear infinite;
  color: var(--red-bright);
}
@keyframes spin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .tools svg{ animation: none; }
}

/* Fondo fijo con la foto de la tienda (visible "a traves de la ventana"
   mientras la secciones opacas lo van cubriendo al hacer scroll) */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--black) url("../assets/galeria/hero-tienda.webp") center / cover no-repeat;
}
.site-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.70) 0%, rgba(10,10,10,0.38) 26%, rgba(10,10,10,0.50) 58%, rgba(10,10,10,0.94) 100%);
}

/* Barra superior fija */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid rgba(245,245,243,0.14);
  contain: layout style paint;
  transform: translateZ(0);
}
.topbar-logo{
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.topbar-logo img{
  display: block;
  height: 38px;
  width: auto;
  border-radius: 4px;
}
.topbar-brand{
  max-width: 62vw;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.8rem, 2.6vw, 1.05rem);
  line-height: 1.2;
  color: var(--off-white);
  text-decoration: none;
  white-space: normal;
}
.topbar-brand em{
  font-style: normal;
  color: var(--red-bright);
}
.topbar-tag{
  margin-left: 0.45em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.topbar-spacer{
  margin-left: auto;
}
@media (max-width: 480px){
  .topbar{ padding: 0.4rem 0.7rem; }
  .topbar-logo img{ height: 32px; }
  .topbar-brand{ font-size: clamp(0.62rem, 3vw, 0.8rem); max-width: 56vw; }
}
@media (max-width: 400px){
  .topbar-logo img{ height: 26px; }
  .topbar-brand{ font-size: 0.6rem; max-width: 58vw; }
}

/* Tarjeta de contacto */
.contact{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding-top: 0.4rem;
}
.contact a{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--off-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.6rem 1.1rem;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(245,245,243,0.18);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact a:hover,
.contact a:focus-visible{
  border-color: var(--red-bright);
  background: rgba(184,24,28,0.10);
}
.contact svg{ width: 20px; height: 20px; flex-shrink: 0; }
.contact .ig-icon{ color: var(--red-bright); }
.contact .wa-icon{ color: var(--red-bright); }
.contact .call-icon{ color: var(--red-bright); }
.contact .loc-icon{ color: var(--red-bright); }

/* -----------------------------------------------------------
   Pie
----------------------------------------------------------- */
footer{
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: 1.6rem 1rem 2rem;
  background: var(--black);
  color: var(--steel);
  font-size: 0.85rem;
  font-family: var(--font-body);
}
footer a{ color: var(--steel); }

/* -----------------------------------------------------------
   Botones flotantes (WhatsApp + Llamar)
----------------------------------------------------------- */
.float-stack{
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fab{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,0.7);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab:hover,
.fab:focus-visible{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px -8px rgba(0,0,0,0.8);
}
.fab svg{ width: 30px; height: 30px; color: #fff; }

.fab-wa{ background: var(--red); }
.fab-call{ background: var(--black); border: 2px solid var(--red-bright); }
.fab-prod{
  width: auto;
  height: 52px;
  border-radius: 999px;
  padding: 0 1.1rem;
  gap: 9px;
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: #fff;
}
.fab-prod svg{ width: 24px; height: 24px; flex-shrink: 0; }
.fab-prod::after{ animation: none; box-shadow: none; }

.fab::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(184,24,28,0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(184,24,28,0.55); }
  70%{ box-shadow: 0 0 0 16px rgba(184,24,28,0); }
  100%{ box-shadow: 0 0 0 0 rgba(184,24,28,0); }
}
@media (prefers-reduced-motion: reduce){
  .fab::after{ animation: none; }
}

@media (max-width: 480px){
  .wrap{
    padding: 6vh 5vw 14vh;
    gap: clamp(1.2rem, 3.2vw, 1.6rem);
  }
  .badge img{ width: clamp(200px, 62vw, 280px); }
  .headline{ font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .sub{ font-size: 1rem; }
  .contact{
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }
  .contact a{
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    font-size: 1.02rem;
  }
  .tools{ font-size: 0.85rem; }
  .brands-title{ font-size: 0.9rem; }
  .brands-row{ gap: clamp(0.5rem, 1.6vw, 0.8rem); }
  .brands-row img{
    height: clamp(70px, 22vw, 92px);
    padding: 0.5rem 0.9rem;
  }
}

@media (max-width: 340px){
  .brands-row img{
    height: clamp(58px, 19vw, 72px);
    padding: 0.45rem 0.8rem;
  }
}

@media (max-height: 640px) and (orientation: landscape){
  .wrap{ gap: clamp(0.9rem, 2vw, 1.2rem); }
  .badge{ display: none; }
  .headline{ font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .float-stack{ gap: 10px; }
  .fab{ width: 50px; height: 50px; }
  .fab svg{ width: 26px; height: 26px; }
  .fab-prod{ height: 46px; font-size: 0.78rem; }
  .fab-prod svg{ width: 22px; height: 22px; }
}

/* -----------------------------------------------------------
   Franja de marcas
----------------------------------------------------------- */
.brands{
  width: 100%;
  max-width: 980px;
  margin-top: clamp(0.6rem, 2vw, 1.2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(245,245,243,0.10);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}
.brands-title{
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}
.brands-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1.1rem);
}
.brands-row img{
  height: clamp(48px, 6vw, 72px);
  width: auto;
  padding: 0.9rem 1.4rem;
  background: #FFFFFF;
  border: 1px solid #E1E1DD;
  border-radius: 6px;
  box-shadow: 0 10px 22px -10px rgba(0,0,0,0.7);
  filter: contrast(1.08) saturate(1.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover){
  .brands-row img:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -10px rgba(0,0,0,0.7);
  }
}

.payments{
  margin-top: clamp(1.2rem, 2.5vw, 1.6rem);
  padding-top: clamp(1.2rem, 2.5vw, 1.6rem);
  border-top: 1px solid rgba(245,245,243,0.10);
}
.payments-title{
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--steel);
  text-align: center;
}
.payments-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.8rem);
}
.payments-row img{
  height: clamp(48px, 5.2vw, 64px);
  width: auto;
  padding: 0.6rem 0.9rem;
  background: #FFFFFF;
  border: 1px solid #E1E1DD;
  border-radius: 5px;
  filter: grayscale(0.4) opacity(0.75);
  transition: transform .18s ease, filter .18s ease;
}
@media (hover: hover){
  .payments-row img:hover{
    transform: translateY(-2px);
    filter: grayscale(0) opacity(1);
  }
}

/* -----------------------------------------------------------
   Galería del local
----------------------------------------------------------- */
.gallery{
  width: 100%;
  max-width: 980px;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(245,245,243,0.10);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
  content-visibility: auto;
  contain-intrinsic-size: auto 860px;
}
.gallery-title{
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--off-white);
}

/* -----------------------------------------------------------
   Vista SPA: productos (próximamente)
----------------------------------------------------------- */
.view-products{
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 6vw;
}
.view-products[hidden]{ display: none; }
.products-panel{
  max-width: 620px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.3rem, 4vw, 2.4rem);
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(245,245,243,0.10);
  border-radius: 16px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
}
.products-msg{
  margin: 0 0 1.8rem;
  color: rgba(245,245,243,0.94);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
}
.products-back{
  appearance: none;
  border: 1px solid rgba(245,245,243,0.18);
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.products-back:hover,
.products-back:focus-visible{
  background: var(--red-bright);
}
.gallery-group{
  margin: 1.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--red-bright);
}
.gallery-group:first-of-type{ margin-top: 0; }
.gallery-carousel{
  position: relative;
  display: flex;
  align-items: center;
}
.gallery-scroll{
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.6rem;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar{ display: none; }
.gallery-scroll picture{
  flex: 0 0 78%;
  max-width: 640px;
  scroll-snap-align: start;
}
@media (max-width: 480px){
  .gallery-scroll picture{ flex-basis: 84%; }
}
.gallery-scroll img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(245,245,243,0.12);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,0.8);
  transition: transform .2s ease;
}
@media (hover: hover){
  .gallery-scroll img:hover{
    transform: translateY(-2px);
  }
}
.gallery-arrow{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(245,245,243,0.18);
  background: rgba(10,10,10,0.75);
  color: var(--off-white);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.gallery-arrow:hover,
.gallery-arrow:focus-visible{
  border-color: var(--red-bright);
  background: rgba(184,24,28,0.15);
}
.gallery-arrow svg{ width: 22px; height: 22px; }
.gallery-arrow-prev{ margin-right: 0.5rem; }
.gallery-arrow-next{ margin-left: 0.5rem; }
@media (max-width: 480px){
  .gallery-arrow{ width: 36px; height: 36px; }
  .gallery-arrow svg{ width: 18px; height: 18px; }
}

/* Foco visible accesible */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

/* -----------------------------------------------------------
   Ventana flotante de advertencia (aparece en cada carga)
----------------------------------------------------------- */
.warn-modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(0,0,0,0.78);
}
.warn-modal[hidden]{ display: none; }
.warn-card{
  position: relative;
  max-width: 460px;
  width: 100%;
  padding: clamp(1.7rem, 4vw, 2.4rem) clamp(1.2rem, 3.5vw, 2rem);
  background: var(--charcoal);
  border: 1px solid var(--red-bright);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9);
  text-align: center;
}
.warn-close{
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(245,245,243,0.08);
  color: var(--off-white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.warn-close:hover,
.warn-close:focus-visible{
  background: var(--red);
  color: #fff;
}
.warn-title{
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--red-bright);
}
.warn-text{
  margin: 0 0 1rem;
  color: rgba(245,245,243,0.94);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
}
.warn-lines{
  margin: 0;
  color: var(--off-white);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.6;
}
.warn-lines strong{ color: var(--red-bright); }
