/* GENENRAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Bebas Neue", sans-serif;
  background-color: #680303;
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
 /* CABECERA */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* antes: space-between */
  background-color: #333;
  color: #FF0000;
  height: 100px;
  padding: 0 20px;
  box-sizing: border-box;
  gap: 10px;
  top: 0;
  z-index: 999;
  position: relative; /* necesario para centrar absoluto */
}

/* Centro verdadero del título sin moverlo */
.cerveza-header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* evita solapar clics con el menú/botón */
}
.logo {
  height: 80px;
  width: auto;
  cursor: pointer;
 }
.cerveza-header h1 {
  pointer-events: auto;
  font-size: 45px; 
}
.cerveza-header h3 {
  pointer-events: auto;
  font-size: 40px;
  color: white; 
}

/* Empuja el botón a la derecha y colócalo junto al menú */
.btn-cervezas {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  letter-spacing: .3px;
  white-space: nowrap;
  margin-left: auto;          /* mueve el botón al extremo derecho */
  margin-right: 8px;          /* separa del hamburguesa */
}
.btn-cervezas:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.45);
  filter: brightness(1.03);
}
.btn-cervezas:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  filter: brightness(.98);
}

/* Menú a la derecha junto al botón */
.menu {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0; /* queda justo a la derecha del botón */
}
.side {
  font-size: 60px;
  cursor: pointer;
  color: #ffffff;
  padding: 5px 20px;
}
.menu-items {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #000;
  width: 220px;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgb(124, 231, 195);
  overflow: hidden;
  z-index: 1000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.menu-items.show {
  transform: scaleY(1); 
  display: block;
  opacity: 1;
  visibility: visible;
}
.menu-items a {
  font-family: "Merienda", sans-serif;
  display: flex;
  font-size: 20px;
  align-items: center;
  padding: 12px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #444;
  gap: 10px;
}
.menu-items a:hover {
  background-color: #410000;
}
.menu-items a:last-child {
  border-bottom: none;
}
.menu-icon {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  margin-right: 15px;
}
/* CUERPO */
.main-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.envases-container {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 20px;
  margin-top: 40px;
}
.card {
  position: relative;
  width: 240px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:hover {
  transform: scale(1.05);
}
.card .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  width: 100%;
  height: 100%;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  text-align: center; 
  font-size: 1.5rem; 
}
.card:hover .overlay {
  transform: translateY(0);
}
.overlay p { 
  margin-bottom: 8px;
}
.info-container {
  display: flex; 
  flex-direction: row; 
  align-items: flex-start;
  justify-content: center; 
  gap: 30px; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 40px;
}
.descripcion {
  flex: 1; 
  max-width: 45%;
  background: #3a3a3a;
  border: 1px solid #5c5c63;
  border-radius: 12px;
  padding: 16px; 
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.descripcion h2 {
  margin: 0 0 12px 0;
  font-size: 1.50rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  white-space: pre-wrap;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 8px;
}
.descripcion p {
  font-family: "Oswald";
  text-align: justify;
  margin: 0;
  color: #ffffff;
  font-size: 1.10rem;
}
.tabla-clasificacion {
  flex: 1; 
  max-width: 45%; 
  background: #302f2f;
  border: 1px solid #5c5c63;
  border-radius: 12px;
  padding: 16px; 
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.tabla-clasificacion h2 {
  margin: 0 0 12px 0;
  font-size: 1.50rem;
  font-weight: 700;
  color: #ffffff;
}
.tabla-clasificacion {
  overflow-x: auto;
}
.tabla-clasificacion table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #3471cc;
  border-radius: 10px;
  overflow: hidden;
}
.tabla-clasificacion thead th {
  background: #ffffff;
  color: #680000;
  text-align: center;
  font-family: "Oswald";  
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f3;
}
.tabla-clasificacion tbody td {
  padding: 8px 10px; 
  font-family: "Oswald";  
  font-size: 1rem;   
  color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}
.tabla-clasificacion tbody tr:last-child td { 
  border-bottom: none; 
}
.tabla-clasificacion tbody tr:hover { 
  background: #ff0000;
}
.tabla-clasificacion tbody td:first-child {
  width: 58%;
  color: #ffffff;
}
.tabla-clasificacion tbody td:last-child {
  width: 42%;
  color: yellow;
  text-align: center;
  font-family: "Oswald";             
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* MODAL ADMINISTRADOR */
.admin-modal {
  display: none;
  position: fixed;
  z-index: 2000; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.admin-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.modal-buttons button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
#btnAceptar {
  background-color: #007bff;
  color: #fff;
}
#btnCancelar {
  background-color: #ccc;
}
/* PIE DE PAGINA */
footer {
  background-color: #1a1a1a;
  color: #ffffff;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

footer .row.primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}

footer h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #FF0000;
  text-transform: uppercase;
}

footer .column {
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
}

footer .column.about {
  flex: 1.5;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 50%;
}

footer .column.contact,
footer .column.subscribe,
footer .column.links {
  flex: 1;
  min-width: 200px;
}

footer .logo-text {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

footer .logo-text img.logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

footer .contact p {
  margin: 5px 0;
  font-size: 1rem;
}

footer .contact a {
  color: #f7c606;
  text-decoration: none;
}

footer .contact i {
  font-size: 1.5rem;
  margin-right: 5px;
  vertical-align: middle;
}

footer .social img {
  width: 40px;
  margin-right: 10px;
  cursor: pointer;
}

footer .social img:hover {
  opacity: 0.8;
}

footer .subscribe input {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

footer .subscribe button {
  font-size: 1.1rem;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background-color: #f7c606;
  color: #000000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

footer .subscribe button:hover {
  background-color: #d4a505;
}

footer .column.links {
  text-align: center;
}

footer .column.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .column.links ul li {
  margin-bottom: 10px;
}

footer .column.links ul li a {
  color: #f7c606;
  text-decoration: none;
  font-size: 1rem;
}

footer .column.links ul li a:hover {
  text-decoration: underline;
}

footer .row.copyright {
  width: 100%;
  background-color: #25262e;
  padding: 15px 0;
  text-align: center;
}

footer .copyright p {
  font-size: 1rem;
  color: #e5d335;
}
/* RESPONSIVIDAD */
@media screen and (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 16px;
    gap: 12px;
  }

  .logo {
    height: 60px;
  }

  /* Títulos dejan de estar centrados por absoluto y pasan a flujo normal */
  .cerveza-header {
    position: static;
    left: auto;
    transform: none;
    text-align: center;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cerveza-header h1 { font-size: 36px; }
  .cerveza-header h3 { font-size: 20px; }

  /* Botón centrado, en flujo, debajo de los títulos */
  .btn-cervezas {
    position: static;
    transform: none;
    margin: 4px 0 0 0;
    white-space: nowrap;
  }
  .menu-items {
    position: static;
    width: 100%;
    border-radius: 0;
    max-height: none; 
    overflow-y: auto;
  }
  .main-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
  .envases-container {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: hidden;
    gap: 20px;
  }
  .card {
    width: 90%;
    max-width: 300px;
    height: auto;
  }
  .card img {
    height: auto;
  }
  .info-container {
    flex-direction: column; 
    gap: 20px;
    padding: 15px;
  }
  .tabla-clasificacion,
  .descripcion {
    max-width: 100%; 
    flex: none; 
  }
  .tabla-clasificacion h2,
  .descripcion h2 {
    font-size: 1.30rem; 
  }
  
  .descripcion p {
    font-size: 1rem; 
  }
  footer .row.primary {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  footer .column.about,
  footer .column.contact,
  footer .column.social,
  footer .column.subscribe,
  footer .column.links {
    max-width: 100%;
    margin-bottom: 20px;
  }
  footer .logo-text {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  footer .logo-text img.logo {
    margin-bottom: 10px;
  }
}
