:root {
  --bg: #0F1115;
  --surface: #171A21;
  --border: #262B36;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --accent: #E11D48;
  --accent-hover: #F43F5E;
  --accent-dark: #BE123C;
  --light-bg: #F8FAFC;
  --light-text: #0F1115;
  --wa: #25D366;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.disp { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.bold { font-weight: 700; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Barra superior */
.topbar {
  position: relative;
  z-index: 20;
  background: var(--accent);
  color: #FFFFFF;
}

.topbar-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.status-wrap, .topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: #4ADE80;
}

.dot.off { background: rgba(255, 255, 255, 0.35); }
.dot.pulse:not(.off) { animation: pulseDot 2s infinite; }

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Hero con Vídeo */
.hero-video-wrapper {
  position: relative;
  overflow: hidden;
  background: #090A0D;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,21,0.72) 0%, rgba(15,17,21,0.55) 55%, rgba(15,17,21,1) 100%);
  pointer-events: none;
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 70px;
  width: auto;
  display: block;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px;
}

.brand-fallback {
  display: none;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  background: rgba(23, 26, 33, 0.9);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-fallback span { color: var(--accent); }

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nl {
  font-weight: 500;
  font-size: 16px;
  color: #E2E8F0;
  transition: color 0.2s;
}

.nl:hover { color: var(--accent); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline-light {
  background: rgba(23, 26, 33, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.btn-outline-light:hover { border-color: var(--accent); }
.btn-dark { background: var(--bg); color: #FFFFFF; }
.btn-outline-white { border: 2px solid #FFFFFF; color: #FFFFFF; }

.btn-whatsapp-full {
  width: 100%;
  background: var(--wa);
  color: #09150E;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 14px;
}

.btn-whatsapp-full:hover { background: #2EE573; }

/* Hero Layout + Widget Cotizador */
.hero {
  position: relative;
  z-index: 10;
  padding-top: 28px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero-widget { flex: 1 1 420px; min-width: 0; }

.pill {
  margin: 0 0 22px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(225, 29, 72, 0.16);
  border: 1.5px solid rgba(225, 29, 72, 0.55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FDA4AF;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 6.8vw, 94px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

.lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: #CBD5E1;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Formulario Cotizador Rápido */
.quote-box {
  background: rgba(23, 26, 33, 0.92);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.quote-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.quote-head h2 {
  margin: 6px 0 4px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.quote-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
}

.field-group input, .field-group select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.field-group input:focus, .field-group select:focus {
  border-color: var(--accent);
}

.quote-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Cinta de Marcas */
.brands-ribbon {
  background: var(--light-bg);
  color: var(--bg);
  padding: 18px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  overflow: hidden;
}

.marq {
  display: flex;
  width: max-content;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: marqueeScroll 32s linear infinite;
}

.marq span { padding-right: 36px; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contadores */
.counters-pad { padding-top: 72px; padding-bottom: 24px; }

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.counter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}

.counter-num {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.counter-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

/* Secciones y Catálogo Bento */
.section-pad { padding-top: 96px; padding-bottom: 96px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
}

.eyebrow.dark { color: var(--accent-dark); }
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }

.section-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-end;
}

.head-note {
  margin: 0;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.bento-catalog {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 320px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.cat-span-7 { grid-column: span 7; min-height: 360px; }
.cat-span-5 { grid-column: span 5; min-height: 360px; }
.cat-span-4 { grid-column: span 4; }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card:hover img { transform: scale(1.06); }

.cat-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background: linear-gradient(180deg, rgba(15,17,21,0.05) 25%, rgba(15,17,21,0.95) 100%);
}

.cat-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-overlay h3 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.cat-overlay p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #CBD5E1;
}

/* Banda Clara: Proveedores con Filtro */
.light-band { background: var(--light-bg); color: var(--light-text); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fbtn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--light-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.fbtn:hover { border-color: var(--accent); }
.fbtn.sel { background: var(--bg); color: #FFFFFF; border-color: var(--bg); }

.brands-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.brand-tile {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.brand-tile.hidden { display: none; }

.brand-tile strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--light-text);
}

.brand-tile span {
  font-size: 14px;
  color: #475569;
}

/* Selector Taller vs Particular */
.seg-group {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.seg {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.seg.sel { background: var(--accent); color: #FFFFFF; }

.section-intro {
  margin: 30px 0 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.cards-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 26px;
  padding: 34px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-num { font-size: 52px; font-weight: 800; line-height: 1; color: var(--accent); }
.card h3 { margin: 36px 0 12px; font-size: 25px; line-height: 1.15; font-weight: 700; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Contacto */
.contact-band { background: var(--accent); color: #FFFFFF; }

.contact-grid {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.contact-info { flex: 1 1 440px; }
.hours-wrap { flex: 1 1 400px; }

.contact-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  font-weight: 800;
}

.big-phone {
  display: block;
  margin-top: 26px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.whatsapp-line { margin: 16px 0 0; font-size: 20px; font-weight: 700; }
.whatsapp-line a { text-decoration: underline; }
.address-line { margin: 20px 0 0; font-size: 19px; line-height: 1.5; }
.contact-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.hours-card {
  background: #FFFFFF;
  color: var(--bg);
  border-radius: 26px;
  padding: 20px;
}

.hours-status {
  padding: 8px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.hours-status .dot { background: #16A34A; }
.hours-status .dot.off { background: #94A3B8; }

.hrow {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.hrow.today { background: rgba(225, 29, 72, 0.12); font-weight: 700; color: var(--accent-dark); }

/* Mapa */
.mapcard {
  flex: 1 1 100%;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
}

.map-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  border-radius: 18px;
  padding: 18px 24px;
}

.map-name { font-size: 20px; font-weight: 800; }
.map-addr { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Footer Corporativo */
.site-footer {
  background: #090B0E;
  border-top: 1px solid var(--border);
  padding-top: 72px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 340px;
}

.footer-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.footer-col h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}

.footer-col a {
  transition: color 0.2s;
}

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

.footer-contact-list strong {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 14px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.back-top {
  color: var(--accent);
  font-weight: 700;
}

/* Animaciones */
.rise { opacity: 0; transform: translateY(18px); animation: riseIn 0.7s ease forwards; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.rv.in { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .cat-span-7, .cat-span-5, .cat-span-4 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navlinks { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .map-overlay { position: static; border-radius: 0; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}