:root {
  --negro: #000000;
  --gris-bloque: #121212;
  --naranja-ruca: #e6c41f;
  --blanco: #ffffff;
  --fuente: 'Oswald', sans-serif;
}

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente);
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.topbar {
  position: absolute;
  top: 0;
  width: 100%;
  height: 65px;
  background: rgba(0,0,0,0.95);
  border-bottom: 3px solid var(--naranja-ruca);
  display: flex;
  align-items: center;
  z-index: 1000;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  position: relative;
  background: white;
  border-radius: 50%;
  border: 4px solid var(--naranja-ruca);
  width: 130px;
  height: 130px;
  margin-top: 55px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoPulse 2s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover {
  transform: scale(1.05) rotate(3deg);
}

@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 15px rgba(230,196,31,0.4); }
  50% { box-shadow: 0 0 30px rgba(230,196,31,0.7); }
}

.nav {
  display: flex;
  gap: 15px;
}

.nav__link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--naranja-ruca);
}

.cta {
  background: var(--naranja-ruca);
  color: black;
  padding: 6px 15px;
  text-decoration: none;
  font-weight: bold;
}

/* ================= HERO ================= */

.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('/img/portada.jpeg') center/cover;
}

.hero__title {
  font-size: clamp(50px, 10vw, 90px);
  font-weight: 900;
  text-shadow:
    0 0 10px rgba(230,196,31,0.8),
    0 0 20px rgba(230,196,31,0.4);
}

/* ================= BARRA DESTINO FINAL ================= */

.food-intro-bar {
  background: var(--naranja-ruca);
  padding: 30px 0;
  transform: skewY(-4deg);
  margin-top: -30px;
  position: relative;
  z-index: 5;
}

.food-intro-text {
  color: #000;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 3px;
  transform: skewY(4deg);
  text-align: center;
}

/* ================= SECCIONES ================= */

.section {
  padding: 80px 0;
}

.bg-negro { background-color: var(--negro); }
.bg-gris { background-color: var(--gris-bloque); }

.bg-naranja {
  background: linear-gradient(-45deg, #e6c41f, #f37021, #e6c41f);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  color: var(--negro);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= CARDS ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.card {
  background: #000;
  border: 2px solid rgba(230,196,31,0.15);
  transition: 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  position: relative;
}

.card:hover {
  border-color: var(--naranja-ruca);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(230,196,31,0.25);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: brightness(0.7);
  transition: 0.4s;
}

.card:hover img {
  filter: brightness(1);
}

.card__body {
  padding: 15px;
  text-align: center;
  border-top: 2px solid var(--naranja-ruca);
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  transition: 0.3s;
  text-shadow:
    0 0 5px rgba(255,255,255,0.5),
    0 0 10px rgba(230,196,31,0.3);
}

.card:hover .card__title {
  color: var(--naranja-ruca);
  text-shadow:
    0 0 8px rgba(230,196,31,0.8),
    0 0 15px rgba(230,196,31,0.5);
}

/* ================= BANNER CERVEZA ================= */

.bg-beer-motion {
  background: linear-gradient(180deg, #e6c41f, #d4a017);
  min-height: 220px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bg-beer-motion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: white;
  opacity: 0.9;
  filter: blur(3px);
  z-index: 2;
}

.beer-bubbles span {
  position: absolute;
  bottom: -50px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: bubbleUp 6s infinite ease-in;
  pointer-events: none;
}

/* 13 burbujas */
.beer-bubbles span:nth-child(1){ left:5%; width:10px; height:10px; animation-delay:0.2s;}
.beer-bubbles span:nth-child(2){ left:15%; width:20px; height:20px; animation-delay:1.5s;}
.beer-bubbles span:nth-child(3){ left:25%; width:8px; height:8px; animation-delay:0.5s;}
.beer-bubbles span:nth-child(4){ left:35%; width:15px; height:15px; animation-delay:2s;}
.beer-bubbles span:nth-child(5){ left:45%; width:25px; height:25px; animation-delay:1s;}
.beer-bubbles span:nth-child(6){ left:55%; width:12px; height:12px; animation-delay:0.8s;}
.beer-bubbles span:nth-child(7){ left:65%; width:18px; height:18px; animation-delay:2.5s;}
.beer-bubbles span:nth-child(8){ left:75%; width:10px; height:10px; animation-delay:1.2s;}
.beer-bubbles span:nth-child(9){ left:85%; width:22px; height:22px; animation-delay:0.1s;}
.beer-bubbles span:nth-child(10){ left:95%; width:14px; height:14px; animation-delay:1.8s;}
.beer-bubbles span:nth-child(11){ left:20%; width:16px; height:16px; animation-delay:3s;}
.beer-bubbles span:nth-child(12){ left:50%; width:10px; height:10px; animation-delay:3.5s;}
.beer-bubbles span:nth-child(13){ left:80%; width:12px; height:12px; animation-delay:0.7s;}

@keyframes bubbleUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-400px) scale(1.8); opacity: 0; }
}

.beer-text-effect {
  color: black;
  font-weight: 900;
  font-size: clamp(30px,5vw,50px);
  z-index: 3;
}

/* ================= GALERÍA ================= */

.gallery-infinite-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.gallery-infinite-track {
  display: flex;
  width: calc(300px * 12);
  animation: scrollInfinite 30s linear infinite;
}

.gallery-infinite-track img {
  width: 300px;
  height: 250px;
  object-fit: cover;
  margin: 0 10px;
  border: 2px solid var(--naranja-ruca);
}

.gallery-infinite-track:hover {
  animation-play-state: paused;
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-300px * 6)); }
}

/* ================= UBICACIÓN ================= */

.location-grid-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.map-box, .img-box {
  height: 350px;
}

.map-box iframe,
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* ================= BOTONES ================= */

.btn-block {
  display: inline-block;
  padding: 12px 25px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.3s;
}

.btn-block--orange {
  background: var(--naranja-ruca);
  color: black;
}

.btn-block--outline {
  border: 2px solid white;
  color: white;
  margin-left: 10px;
}

.btn-block--black {
  background: black;
  color: white;
  animation: shakeButton 5s infinite;
}

@keyframes shakeButton {
  0%,100%{ transform: rotate(0deg); }
  10%,30%,50%{ transform: rotate(-3deg); }
  20%,40%,60%{ transform: rotate(3deg); }
}

/* ================= FOOTER ================= */

.footer {
  padding: 30px 0;
  border-top: 1px solid #333;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  opacity: 0.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width:768px){
  .nav { display:none; }
  .location-grid-custom { grid-template-columns:1fr; }
  .brand { width:110px; height:110px; margin-top:45px; }
  .gallery-infinite-track img { width:200px; height:180px; }
  .food-intro-text { font-size:20px; }
}

/* ================= TITULOS DE SECCION ================= */

.section__head {
  text-align: center;
  margin-bottom: 50px;
}

.section__title {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--naranja-ruca);
  position: relative;
  display: inline-block;
  text-shadow:
    0 0 8px rgba(230,196,31,0.6),
    0 0 15px rgba(230,196,31,0.3);
}

/* Línea decorativa debajo */
.section__title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: var(--naranja-ruca);
  margin: 12px auto 0;
  box-shadow: 0 0 10px rgba(230,196,31,0.6);
}

.section__sub {
  font-size: 16px;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 15px;
}

.food-intro-bar {
  transform: skewY(-2deg);
}

.food-intro-text {
  transform: skewY(2deg);
}

.food-intro-text {
  transform: perspective(500px) rotateX(1deg);
}


.btn-persona {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-persona.btn-warning {
    background-color: var(--naranja-ruca) !important;
    color: black !important;
}

#modalReserva .form-label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Corregir visibilidad al escribir en el nombre */
#nombreReserva:focus, 
#fecha:focus {
    background-color: var(--gris-bloque) !important; /* Mantiene el fondo oscuro */
    color: var(--blanco) !important;              /* Mantiene la letra blanca */
    border-color: var(--naranja-ruca) !important; /* Borde naranja al seleccionar */
    outline: none;                                 /* Quita el borde azul feo de Chrome */
    box-shadow: 0 0 8px rgba(230, 196, 31, 0.5);   /* Brillo naranja premium */
}

/* Evitar que el navegador cambie el color al autocompletar */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--gris-bloque) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}