/* ===============================
   PALETA
================================ */
:root {
  --navy: #001f3f;      /* azul marino */
  --brown: #8B4513;     /* marrón */
  --neon: #CCFF00;      /* amarillo fosforito */
  --white: #ffffff;     /* blanco */
  --ink: #111111;       /* texto */
  --paper: #fbffd7;     /* fondo suave */
}

/* Reset mínimo */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, Arial, "Playwrite CU", sans-serif;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Contenedor ancho cómodo */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===============================
   TOPBAR (cabecera fija)
================================ */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; }
.brand img { height: 40px; width: auto; }
.brand span { display: none; }
@media (min-width: 520px) { .brand span { display: inline; } }

/* Navegación */
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mainnav a {
  color: #cbd5e1; text-decoration: none; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.35); }

/* Botones */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: var(--brown); color: #fff; text-decoration: none; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-reservar { background: var(--neon); color: var(--navy); }

/* Instagram a la derecha */
.ig img { width: 34px; height: 34px; }
.ig { margin-left: 12px; }

/* Burger móvil */
.burger {
  display: none; margin-left: 8px; background: transparent; border: 0; color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
@media (max-width: 880px) {
  .mainnav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .mainnav.open { display: flex; }
  .burger { display: block; }
}

/* ===============================
   HERO (foto grande con lema)
================================ */
.hero { position: relative; height: 56vw; max-height: 520px; min-height: 320px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #222 center/cover no-repeat; }
.hero-content {
  position: relative; z-index: 1; color: #fff; text-align: center; padding: 0 16px;
  display: grid; place-content: center; height: 100%;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(28px,6vw,48px); font-weight: 900; letter-spacing: .5px; }
.hero p { margin: 0 0 10px; font-size: clamp(14px,2.6vw,18px); }
.hero .frase { font-family: "Playwrite CU", cursive; color: #e9ecff; font-weight: 400; }
.hero .cta { margin-top: 6px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.45);   /* oscuridad ajustable */
}

/* ===============================
   SECCIONES
================================ */
section { padding: 36px 0; background: var(--paper); }
h2 {
  margin: 0 0 16px; text-align: center; color: var(--navy);
  letter-spacing: .4px; font-size: clamp(20px,4.6vw,28px); font-weight: 900;
}

/* Portadas (tiles) */
.cats .grid-cats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cats .grid-cats { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; display: block; height: 56vw; max-height: 360px; border-radius: 14px;
  background: #ddd center/cover no-repeat; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.25); text-decoration: none;
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.30),rgba(0,0,0,.55)); }
.tile .title {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff;
  font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  font-size: clamp(22px,7.5vw,42px); text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ===============================
   CONTACTO / RESERVAS / MAPA
================================ */
.contacto h2 { color: var(--navy); }

#reservas {
  background: #38405244; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 18px; margin: 0 auto 22px; max-width: 720px;
}
#reservas h2 { margin-bottom: 6px; }
#reservas p { margin: 0 0 12px; color: #3a3a3a; text-align: left; }
#reservas form { display: grid; grid-template-columns: 1fr; gap: 12px; }
#reservas button.btn,
#reservas button {
  background: var(--neon); color: var(--navy); border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 900; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

#form-reserva input,
#form-reserva select,
#form-reserva textarea {
  font: inherit; display: block; width: 100%; box-sizing: border-box;
  background: #eef3be; color: #0b1b33;
  border: 2px solid #9299a8; border-radius: 10px;
  padding: 12px 14px; line-height: 1.2; outline: none;
  transition: box-shadow .15s, border-color .15s;
}
#form-reserva input:focus,
#form-reserva select:focus,
#form-reserva textarea:focus {
  border-color: var(--neon); box-shadow: 0 0 0 3px rgba(204,255,0,.35);
}
#form-reserva select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(transparent,transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%238B4513'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 20px 20px; height: 48px;
}
#form-reserva select:required:invalid { color: #7a7a7a; }
#form-reserva option[value=""] { color: #7a7a7a; }

#modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); z-index: 1000;
}
#modal.is-open { display: flex; }
#modal .box {
  background: #fff; color: var(--navy);
  border: 2px solid var(--brown); border-radius: 14px; padding: 18px 20px;
  max-width: 520px; width: calc(100% - 32px);
  text-align: center; box-shadow: 0 10px 35px rgba(0,0,0,.35);
}
#modal button {
  margin-top: 12px; border: 0; border-radius: 10px; padding: 10px 14px;
  background: var(--neon); color: var(--navy); font-weight: 800; cursor: pointer;
}
#form-reserva button[type="submit"] { margin-top: 16px; }

/* Mapa responsivo */
.map-container {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; background: #eaeaea; border: 1px solid rgba(0,0,0,.06);
}
.map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===============================
   FOOTER
================================ */
.footer { background: #111; color: #e5e7eb; padding: 28px 0; margin-top: 18px; }
.footer p { margin: 0 0 12px; text-align: center; }
#award h3 { margin: 0 0 10px; text-align: center; }
#award { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.footer-grid { display: grid; gap: 18px; padding: 26px 0; grid-template-columns: 1fr; }
.footer-grid .col h4 { margin: 0 0 8px; color: #fff; }
.footer-grid .col p { margin: 2px 0; }
.footer-grid .col a { color: #cbd5e1; text-decoration: none; }
.footer-grid .col.center { text-align: center; }
@media(min-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.legal { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }

/* Instagram centrado en menú móvil */
.ig { display: flex; justify-content: center; align-items: center; margin: 10px 0 6px; }
.ig img { width: 34px; height: 34px; display: block; }

/* Menú móvil centrado */
@media (max-width: 880px) {
  .mainnav { text-align: center; align-items: center; }
  .mainnav a { display: block; }
}

/* Botón reservar en nav (desktop) */
.mainnav .btn-reservar {
  background: var(--neon); color: var(--navy); border: 2px solid transparent;
  padding: 10px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.18); margin-left: 8px;
}
.mainnav .btn-reservar:hover {
  background: transparent; color: var(--neon); border-color: var(--neon); box-shadow: none;
}

/* ===============================
   IMPORTACIÓN (Swiper)
================================ */
.importacion { background: var(--paper); }
.importacion h2 { color: var(--navy); margin: 0 0 10px; text-align: center; }
.import-swiper { --swiper-navigation-size: 26px; padding: 10px 0 30px; overflow: visible; }
.page-title { margin: 8px 0 14px; text-align: center; color: var(--navy); }

.beer-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,1fr); align-items: stretch; }
@media(min-width: 760px) { .beer-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width: 768px) { .beer-grid { grid-template-columns: 1fr; gap: 20px; } }

.beer-card {
  background: #fff; border: 1px solid #eaeaea; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.beer-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.beer-card .content { padding: 12px 14px; }
.beer-card h4 { margin: 0 0 6px; color: #0b1b33; font-size: 1.05rem; font-weight: 800; }
.beer-card .meta { margin: 0 0 4px; color: #667085; font-size: .92rem; }
.beer-card .price { margin: 0; color: #111; font-weight: 700; }

/* Flechas Swiper */
.import-swiper .swiper-button-prev,
.import-swiper .swiper-button-next {
  color: var(--navy);
  position: fixed !important; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: #0b2d4d; color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 2000;
}
.import-swiper .swiper-button-prev { left: 12px; right: auto; }
.import-swiper .swiper-button-next { right: 12px; left: auto; }
.import-swiper .swiper-button-prev::after,
.import-swiper .swiper-button-next::after { font-size: 22px; color: #fff; }
@media (max-width: 768px) {
  .import-swiper .swiper-button-prev,
  .import-swiper .swiper-button-next { width: 44px; height: 44px; }
  .import-swiper .swiper-button-prev { left: 6px; }
  .import-swiper .swiper-button-next { right: 6px; }
}

/* Botellas en sección importación */
#importacion .beer-grid .grid-item {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); padding: 14px; text-align: center;
  min-height: 460px;
}
#importacion .beer-grid .grid-item > img {
  width: auto !important; height: auto !important;
  max-width: 80%; max-height: 320px;
  object-fit: contain !important;
  margin-bottom: 12px;
}
@media(max-width: 768px) {
  #importacion .beer-grid .grid-item { padding: 18px; }
  #importacion .beer-grid .grid-item > img {
    max-width: 92%; max-height: 420px;
  }
  #importacion .beer-grid .grid-item .info p {
    font-size: 1.05rem; line-height: 1.5;
  }
}
#importacion .beer-grid .grid-item .info {
  display: flex; flex-direction: column; gap: 6px; flex: 1; width: 100%;
}
#importacion .beer-grid .grid-item .precio {
  margin-top: auto; font-weight: 700; font-size: 1rem;
}
#importacion .beer-grid .grid-item .info p:first-child {
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== TARJETAS DE PRODUCTO (solo dentro de .grid-container) ===== */
.grid-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 12px 14px;
}

/* Tarjeta base */
.grid-container .grid-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  padding: 12px 14px;
}

/* Imagen de la tarjeta */
.grid-container .grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Contenido de la tarjeta */
.grid-container .grid-item .content {
  padding: 14px 16px;
  text-align: left;
}

/* Nombre del producto */
.grid-container .grid-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center; /* corregido */
}

/* Descripción minimalista */
.grid-container .grid-item p.desc {
  margin: 0 0 8px;
  font-size: .95rem;
  color: #555;
  line-height: 1.4;
}

/* Precio destacado */
.grid-container .grid-item p.price {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
