@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #a93226;
  color: #fff;
}

body.centrado {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
  padding: 20px;
}

body:not(.centrado) {
  padding: 40px 20px;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

header {
  background-color: #7b241c;
  padding: 20px 0;
  width: 100%;
  color: #fff;
  font-size: 1.8em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
}

h1 {
  margin: 0 0 20px;
}

.card {
  background-color: #fff;
  color: #000;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

button {
  padding: 12px 20px;
  font-size: 16px;
  margin: 6px;
  border: none;
  border-radius: 10px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

button:hover:not(:disabled) {
  background-color: #333;
  transform: scale(1.05);
}

button:disabled {
  background-color: #555;
  color: #ccc;
  cursor: not-allowed;
}

button.page-active {
  background-color: #4caf50 !important;
  color: #fff;
}

#cantidad-container span {
  font-size: 24px;
  margin: 0 12px;
  font-weight: bold;
}

input[type="number"] {
  padding: 10px;
  font-size: 16px;
  width: 220px;
  margin: 10px auto;
  display: block;
  border: 2px solid #000;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
}

table {
  margin: auto;
  border-collapse: collapse;
  width: 95%;
  max-width: 900px;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

th, td {
  padding: 14px;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #000;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 14px;
  background-color: #7b241c;
  color: #fff;
  width: 100%;
  text-align: center;
}


.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  margin-top: 40px;
}

.footer-logo img {
  width: 40px;
  height: auto;
  filter: invert(1);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}

.selected {
  background-color: #229954 !important;
  color: white !important;
}

.fade-out {
  animation: fadeOutUp 0.3s ease forwards;
}

.fade-in {
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeOutUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.btn-icono {
  font-size: 40px;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background-color: #fff;
  color: #000;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-icono:hover {
  background-color: #e0e0e0;
}
.btn-icono.selected {
  background-color: #000;
  color: #fff;
}

/**** BOTONES ****/

.btn-primario {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  width: 80%;
  max-width: 300px;
  margin: 10px auto;
  display: block;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-primario:hover {
  background-color: #333;
}

.btn-secundario {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  font-size: 18px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  width: 80%;
  max-width: 300px;
  margin: 10px auto;
  display: block;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-secundario:hover {
  background-color: #e0e0e0;
}

.btn-chico {
  font-size: 14px;
  padding: 10px 20px;
  max-width: 100px;
}