* { box-sizing: border-box; }
:root{
  --bg:#fafafa;
  --card:#fff;
  --text:#111;
  --muted:#555;
  --line:#eaeaea;
}

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }


.topbar{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:10;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
  flex-wrap:wrap;
}

.brand__logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand__logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
}

.brand__tag{
  font-size:16px;
  color:var(--muted);
  margin-top:2px;
}

.nav__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.link{ opacity:.85; }
.link:hover{ opacity:1; text-decoration:underline; }

.btn{
  display:inline-block;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  font-weight:700;
}

.btn.secondary{
  background:transparent;
  color:#111;
}

.section{ padding:34px 0; }
.section.alt{
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.hero{
  padding:46px 0;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}

h1{
  font-size:clamp(25px, 4vw, 44px);
  margin:0 0 10px;
}

.lead{
  font-size:18px;
  color:#333;
  margin:0 0 14px;
  max-width:60ch;
}

.hero__badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 18px;
}

.badge{
  border:1px solid var(--line);
  background:var(--bg);
  padding:8px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:13px;
}

.hero__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.hero__card h3{ margin:0 0 10px; }

.checklist{ margin:0; padding-left:18px; color:#333; }
.checklist li{ margin:8px 0; }

.callout{
  margin-top:12px;
  padding:10px;
  border-radius:12px;
  border:1px dashed #bbb;
  background:var(--bg);
  color:#333;
}

h2{ font-size:26px; margin:0 0 12px; }

.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}


.steps{ display:grid; gap:10px; }

.step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  gap:10px;
  align-items:center;
}

.step span{
  width:26px;
  height:26px;
  border-radius:10px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
}

.form{ display:grid; gap:12px; max-width:720px; }

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

label{ font-weight:700; font-size:14px; }

input, textarea{
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid #ddd;
  margin-top:6px;
  font:inherit;
}

.small{ font-size:13px; }
.muted{ color:var(--muted); }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.footer{
  padding:22px 0;
  border-top:1px solid var(--line);
  background:#fff;
}

/* Mapa + fila de botones */
.mapWrap iframe{
  width:100%;
  height:320px;
  border:1px solid var(--line);
  border-radius:16px;
}

.ctaRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 14px;
}

@media (max-width: 480px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .two{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .lightboxNav.prev{ left: 10px; }
  .lightboxNav.next{ right: 10px; }
  .grid{ grid-template-columns: 1fr; }
  .two{ grid-template-columns: 1fr; }
}

@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .contact{ grid-template-columns: 1fr; }
}


section{
  scroll-margin-top: 110px; /* ajusta según altura del menú */
}
html{
  scroll-behavior:smooth;
}

.whatsapp-float{
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25D366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 999;
  cursor: pointer;
  text-decoration:none;
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: translateY(-2px); }


/* ===== Galería horizontal con scroll + touch ===== */
.galleryHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.galleryControls{
  display:flex;
  gap:10px;
}

.galleryStrip{
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 14px;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch; /* inercia iOS */
  touch-action: pan-x;               /* swipe horizontal */
  overscroll-behavior-x: contain;    /* evita arrastrar toda la página */

  border-radius: 16px;
}

/* scrollbar discreto */
.galleryStrip::-webkit-scrollbar{ height: 10px; }
.galleryStrip::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
}
.galleryStrip::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
}

.galleryItem{
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;

  user-select: none;
  -webkit-user-select: none;
}

.galleryItem:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.galleryItem img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display:block;
}

/* ===== Lightbox (zoom elegante) ===== */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.lightbox.isOpen{ display: block; }

.lightboxBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}

.lightboxDialog{
  position: relative;
  width: min(980px, 92vw);
  margin: 7vh auto 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.40);
  animation: popIn .14s ease-out;
}

@keyframes popIn{
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.lightboxClose{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-weight: 900;
  cursor:pointer;
}

.lightboxImg{
  width: 100%;
  height: min(72vh, 650px);
  object-fit: contain;
  display:block;
  border-radius: 14px;
}
.lightboxNav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color:white;
  font-size:28px;
  font-weight:bold;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: all .2s ease;
  backdrop-filter: blur(6px);
}

.lightboxNav:hover{
  background: rgba(0,0,0,0.55);
  transform: translateY(-50%) scale(1.08);
}

.lightboxNav.prev{ left: -18px; }
.lightboxNav.next{ right: -18px; }

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.brand__home{
  display:block;
  line-height:0;
}
