/* ==========================================================================
   CerveShop — Inicio (complementa shop.css). Conserva el hero "cerveza".
   ========================================================================== */

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1a0f00;
  background: linear-gradient(180deg, #fff8dc 0%, #ffe066 18%, #ffcc33 40%, #f59e0b 70%, #d97706 100%);
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 102, 0, 0.1), transparent 55%);
  pointer-events: none;
}
.beer-light {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  animation: lightMove 9s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes lightMove { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.foam-overlay {
  position: absolute; top: -40px; left: -10%; width: 120%; height: 150px; pointer-events: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.6), transparent 50%);
  filter: blur(18px);
  animation: foamFlow 12s ease-in-out infinite;
}
@keyframes foamFlow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-40px); } }
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.bubbles span {
  position: absolute; bottom: -80px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 35%, rgba(245, 158, 11, 0.18) 70%, transparent 100%);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
  animation: rise linear infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translate3d(var(--dx, 0), -110vh, 0) scale(0.7); opacity: 0; }
}
.bubbles span:nth-child(1)  { left: 6%;  width: 22px; height: 22px; animation-duration: 9s;  animation-delay: 0s;   --dx: -20px; }
.bubbles span:nth-child(2)  { left: 14%; width: 12px; height: 12px; animation-duration: 7s;  animation-delay: 2s;   --dx: 15px; }
.bubbles span:nth-child(3)  { left: 22%; width: 30px; height: 30px; animation-duration: 11s; animation-delay: 1s;   --dx: -30px; }
.bubbles span:nth-child(4)  { left: 31%; width: 16px; height: 16px; animation-duration: 8s;  animation-delay: 4s;   --dx: 20px; }
.bubbles span:nth-child(5)  { left: 39%; width: 10px; height: 10px; animation-duration: 6s;  animation-delay: 0.5s; --dx: -10px; }
.bubbles span:nth-child(6)  { left: 47%; width: 26px; height: 26px; animation-duration: 10s; animation-delay: 3s;   --dx: 25px; }
.bubbles span:nth-child(7)  { left: 55%; width: 14px; height: 14px; animation-duration: 7.5s; animation-delay: 5s;  --dx: -15px; }
.bubbles span:nth-child(8)  { left: 62%; width: 34px; height: 34px; animation-duration: 12s; animation-delay: 1.5s; --dx: 30px; }
.bubbles span:nth-child(9)  { left: 70%; width: 12px; height: 12px; animation-duration: 6.5s; animation-delay: 2.5s; --dx: -12px; }
.bubbles span:nth-child(10) { left: 77%; width: 20px; height: 20px; animation-duration: 9.5s; animation-delay: 0s;  --dx: 18px; }
.bubbles span:nth-child(11) { left: 84%; width: 28px; height: 28px; animation-duration: 11s; animation-delay: 4.5s; --dx: -25px; }
.bubbles span:nth-child(12) { left: 91%; width: 14px; height: 14px; animation-duration: 8s;  animation-delay: 3.5s; --dx: 10px; }
.bubbles span:nth-child(13) { left: 10%; width: 18px; height: 18px; animation-duration: 10s; animation-delay: 6s;   --dx: 22px; }
.bubbles span:nth-child(14) { left: 43%; width: 22px; height: 22px; animation-duration: 9s;  animation-delay: 7s;   --dx: -18px; }
.bubbles span:nth-child(15) { left: 67%; width: 10px; height: 10px; animation-duration: 7s;  animation-delay: 6.5s; --dx: 12px; }
.bubbles span:nth-child(16) { left: 88%; width: 24px; height: 24px; animation-duration: 10.5s; animation-delay: 8s; --dx: -20px; }

.hero-inner { position: relative; z-index: 2; padding: 48px 16px 56px; width: 100%; max-width: 860px; }
.hero-inner .logo-image {
  width: clamp(180px, 30vw, 300px); height: auto; margin: 0 auto 18px;
  filter: drop-shadow(0 18px 36px rgba(160, 82, 0, 0.45));
}
.hero-tagline { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.hero-tagline .line { width: 3rem; height: 1px; background: linear-gradient(90deg, transparent, #1a0f00); flex: none; }
.hero-tagline .line:last-child { transform: scaleX(-1); }
.home-hero h1 {
  color: #1a0f00 !important; font-size: clamp(1.35rem, 3.6vw, 2.3rem) !important; margin: 0 !important;
}
.hero-sub { color: #2d1810; font-weight: 600; font-size: clamp(0.98rem, 2vw, 1.15rem); margin: 0 auto 22px !important; max-width: 60ch; }
.hero-search { position: relative; max-width: 560px; margin: 0 auto 18px; }
.hero-search input {
  width: 100%; height: 54px; border-radius: 999px; border: 2px solid rgba(26, 15, 0, 0.25);
  background: rgba(255, 255, 255, 0.92); color: #1a0f00; padding: 0 64px 0 22px; font-size: 1rem;
  box-shadow: 0 12px 30px rgba(160, 82, 0, 0.25);
}
.hero-search input::placeholder { color: #8a6a3f; }
.hero-search input:focus { outline: none; border-color: #1a0f00; }
.hero-search button {
  position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #1a0f00; color: #fbbf24; cursor: pointer; font-size: 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.home-hero .btn-dark { background: #1a0f00; color: #fbbf24; }
.home-hero .btn-dark:hover { color: #fde68a; box-shadow: 0 10px 26px rgba(26, 15, 0, 0.35); }
.home-hero .btn-light { background: rgba(255, 255, 255, 0.85); color: #1a0f00; border-color: rgba(26, 15, 0, 0.25); }
.home-hero .btn-light:hover { color: #1a0f00; background: #fff; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.hero-quick a {
  font-size: 0.85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(26, 15, 0, 0.1); color: #1a0f00 !important; border: 1px solid rgba(26, 15, 0, 0.18);
}
.hero-quick a:hover { background: rgba(26, 15, 0, 0.18); }

/* ---------- Secciones ---------- */
.home-section { padding: 48px 0; }
.home-section.alt { background: linear-gradient(180deg, #1a0f00, #160c03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }

/* Banners */
.banner-slider { position: relative; margin-top: 24px; }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 220px; aspect-ratio: 16 / 6;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #3d2415, #24150a);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .banner-body {
  position: relative; z-index: 1; width: 100%; padding: 22px;
  background: linear-gradient(transparent, rgba(22, 12, 3, 0.9));
}
.banner h3 { font-size: clamp(1.25rem, 3vw, 2rem); margin: 0 0 4px; }
.banner p { margin: 0 0 10px; color: #f3e6cf; }
.banner-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--surface-3); cursor: pointer; padding: 0; }
.banner-dots button.active { background: var(--amber); width: 22px; border-radius: 999px; }
@media (max-width: 640px) { .banner { aspect-ratio: 4 / 3; } }

/* Beneficios */
.perks { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.perk { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.perk i { font-size: 1.4rem; color: var(--amber); width: 28px; text-align: center; margin-top: 2px; }
.perk strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.perk span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 420px) { .perk { flex-direction: column; gap: 6px; } }

/* Sobre nosotros */
.about { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .about { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.about p { font-size: 1.08rem; color: var(--muted); line-height: 1.75; }
.about-photo { position: relative; max-width: 380px; margin: 0 auto; }
.about-photo img { border-radius: 20px; border: 3px solid var(--amber); box-shadow: 0 20px 50px rgba(245, 158, 11, 0.25); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-photo figcaption { text-align: center; margin-top: 10px; font-family: var(--font-head); font-weight: 800; color: var(--amber); }
.about-photo figcaption small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); }

/* Capacitación */
.workshop { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .workshop { grid-template-columns: 1fr 1.15fr; gap: 36px; } }
.workshop-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); cursor: zoom-in; background: var(--surface-2); }
.workshop-img img { width: 100%; height: auto; }
.workshop-meta { display: grid; gap: 8px; margin: 14px 0; }
.workshop-meta div { display: flex; gap: 10px; align-items: flex-start; }
.workshop-meta i { color: var(--amber); width: 20px; text-align: center; margin-top: 4px; }
.workshop .price-tag { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--amber); }
.workshop .description { max-height: 280px; overflow: auto; padding-right: 6px; }
.features { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }
.features div { padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.88rem; }
.features strong { display: block; color: var(--amber); }

/* Galería */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery button {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1 / 1; background: var(--surface-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; text-align: left;
  background: linear-gradient(transparent, rgba(22, 12, 3, 0.9)); color: #fff; font-size: 0.82rem; font-weight: 600;
}

/* Contacto */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-item i { color: var(--amber); font-size: 1.2rem; width: 24px; text-align: center; margin-top: 3px; }
.contact-item .lbl { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; }
.contact-item a, .contact-item span { color: var(--text); }
.contact-item .hours { white-space: pre-line; }

/* Modales (<dialog>) */
dialog.modal {
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0; background: var(--bg-2); color: var(--text);
  width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px);
}
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
dialog.modal .modal-head h2 { margin: 0; font-size: 1.2rem; }
dialog.modal .modal-body { padding: 16px; }
dialog.lightbox { background: transparent; border: 0; padding: 0; max-width: 96vw; max-height: 92vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
dialog.lightbox p { text-align: center; color: #f3e6cf; margin-top: 8px; }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(22, 12, 3, 0.8); color: var(--amber); font-size: 1.2rem; cursor: pointer;
}
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(22, 12, 3, 0.85); color: #fff; font-size: 1.2rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .bubbles, .beer-light, .foam-overlay { display: none; }
}

/* Banner sin imagen: franja ámbar compacta */
.banner.no-img { aspect-ratio: auto; min-height: 150px; background: linear-gradient(135deg, #f59e0b, #ff6600); color: #1a0f00; }
.banner.no-img .banner-body { background: none; }
.banner.no-img p { color: #2d1810; }
.banner.no-img .btn-primary { background: #1a0f00; color: #fbbf24; box-shadow: none; }

@media (max-width: 760px) {
  body.page-home .mobile-search { display: none; }
  .hero-inner { padding-top: 28px; }
  .hero-inner .logo-image { width: 150px; margin-bottom: 10px; }
  .hero-tagline .line { display: none; }
}
