* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  z-index: 1000;
  gap: 0.5rem;
}
.fixed-header .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.fixed-header .nav {
  display: flex;
  gap: 1.5rem;
}
.fixed-header .nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 400;
  transition: color 0.3s ease;
}
.fixed-header .nav a:hover {
  color: #bbb;
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}
.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.encabezado {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.video-fondo-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.video-fondo-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
}
.titulo-grande h1 {
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
}
.titulo-grande p {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 0.5rem;
}
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222;
}
p { color: #444; }
.buscador { margin: 0 0 1rem; }
.buscador-label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.35rem;
}
.buscador-row {
  display: grid;
  grid-template-columns: 1fr max-content max-content;
  gap: 0.6rem;
  align-items: end;
}
.buscador-row input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}
.btn {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
  background: #fff;
  color: #111;
  border: 1px dashed #bbb;
}
.btn-ghost:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
@media (max-width: 640px) {
  .buscador-row { grid-template-columns: 1fr 1fr; }
  .buscador-row input { grid-column: 1 / -1; }
}
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.filtro-grupo {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.filtros .filtro-grupo:last-child { margin-left: auto; }
.filtro-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.filtro-btn:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.filtro-btn.active,
.filtro-btn[aria-pressed="true"] {
  background: #111;
  color: #fff;
  border-color: #111;
}
.filtro-reset { border-style: dashed; }
.grilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.productos {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.productos:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef1f4;
}
.productos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.productos h3 {
  padding: 1rem 1rem 0;
  font-size: 1.15rem;
  color: #222;
}
.productos .dir {
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.95rem;
}
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border-radius: 50%;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  z-index: 999;
}
#whatsapp-float:hover { transform: scale(1.1); }
.site-footer {
  background: #222;
  color: #ccc;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 5rem;
  max-width: 1100px;
  margin: auto;
}
.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-links li,
.footer-contact li {
  list-style: none;
  margin-bottom: 0.6rem;
}
.footer-links a {
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-brand {
  font-size: 50px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}
.galeria-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.galeria-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}
.galeria-slide {
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0;
}
.galeria-slide img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fixed-header .nav.show a { animation: fadeUp 0.35s ease both; }
body.no-scroll { overflow: hidden; }
.logo-header {
  height: 90px;
  vertical-align: middle;
  margin-right: 10px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}
.titulo-inicial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 768px) {
  .fixed-header { padding: 0.6rem 1rem; }
  .fixed-header .brand { font-size: 1.1rem; }
  .encabezado { min-height: 100svh; padding: 5rem 1rem 2rem; }
  .titulo-grande { padding: 0 0.5rem; }
  .titulo-inicial { flex-wrap: wrap; gap: 8px; font-size: 2.1rem; line-height: 1.15; }
  .logo-header { height: 85px; }
  .titulo-grande p { font-size: 0.95rem; }
  .btn { padding: 0.55rem 0.85rem; }
  .buscador-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .filtros { gap: 0.6rem 0.8rem; }
  .filtro-btn { font-size: 0.9rem; padding: 0.45rem 0.8rem; }
  .grilla-productos { grid-template-columns: 1fr; }
  .footer-container { gap: 2rem; }
}
@media (max-width: 360px) {
  .titulo-inicial { font-size: 1.7rem; }
  .logo-header { height: 70px; }
}
@media (max-width: 1024px) {
  .fixed-header .nav {
    transform: translateY(-100%) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .fixed-header .nav.show {
    transform: translateY(0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-backdrop {
    transform: none !important;
    transition: opacity 0.28s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}
.fixed-header .nav,
.nav-backdrop {
  transform: translateZ(0);
}
.titulo-grande .titulo-inicial > img.logo-header{
  height:85px !important;
  width:auto !important;
  max-width:70vw !important;
  object-fit:contain !important;
  display:inline-block !important;
  vertical-align:middle !important;
  flex:0 0 auto !important;
}
@media (min-width:769px){
  .titulo-grande .titulo-inicial > img.logo-header{ height:110px !important; }
}
.titulo-inicial{
  display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;
}
@media (max-width:768px){
  .titulo-inicial{ flex-wrap:wrap; line-height:1.15; }
}
