:root {
  --color-principal: #650101;     
  --color-secundario: #E9BD8C;     
  --color-fondo: #f8f8f8;          
  --color-boton: #bd0808;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto, black);
  overflow-x: hidden; /* Evitar scroll horizontal */
}



.publicidad img {
  width: 100%;
  height: 950px;
  object-fit: cover;
}

.Sesion {
  margin: 0 auto; 
  text-align: left;
  font-size: 30px; 
  font-weight: bold;
  margin-bottom: 20px;
}

h1 {
  font-size: 80px;
  text-align: center;
  color: var(--color-principal);
}

h2 {
  font-size: 60px;
  color: var(--color-boton);
}

h3 {
  font-size: 50px;
  margin-left: 300px;
  color: var(--color-boton);
}

/* Estilos para h5 */
h5 {
  font-family: 'Poppins', sans-serif;
  color: black;
  font-weight: 700;
  font-size: 25px;
  margin: 0;
}

/* Estilos para b */
b {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: inherit;
  font-size: 30px;
}

.btnregistrarse {
  background-color: var(--color-boton);
  font-family: 'Poppins', sans-serif;
  color: white;
  font-size: 25px; 
  text-align: center;
  padding: 15px 10px;
  width: 200px;
  border: 5px solid var(--color-boton);
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btnregistrarse:hover {
  background-color: var(--color-fondo);
  color: var(--color-boton);
}

.btniniciar {
  background-color: var(--color-fondo);
  font-family: 'Poppins', sans-serif;
  color: var(--color-boton);
  font-size: 25px; 
  text-align: center;
  padding: 15px 10px;
  width: 200px;
  border: 5px solid var(--color-boton);
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btniniciar:hover {
  background-color: var(--color-boton);
  color: var(--color-fondo);
}

.banner {
  width: 100%;
  overflow: hidden;
  height: 300px;
}

.banner img {
  width: 100%; 
  height: 100%;
  display: block;
  object-fit: cover;
}

.espacio-banner {
  height: 20px;
}

.espacio-productos {
  height: 40px;
}

.product {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  margin: 0 auto;             
  table-layout: fixed;
  text-align: center;         
}

.product td {
  padding: 20px;   
}

.product a {
  text-decoration: none;
  color: black;
  font-size: 30px;
  font-family: 'Poppins', sans-serif;            
}

.product img {
  width: 400px;               
  display: block;            
  margin: 0 auto 2px;        
  border-radius: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

.product img:hover {
  transform: scale(1.05);
}

p {
  margin-top: 70px;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}



.publicidad {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease;
}

.carrusel img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.botones {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.boton {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  padding: 12px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.boton:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.Sesion td {
  padding: 20px 30px;
  text-align: center;
  vertical-align: middle;
}


.btn-login {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #6a6ffb, #a3a8ff);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: scale(0.98);
}



.producto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.producto img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

#btnConfirmarPedido {
  background-color: var(--color-boton);
  font-family: 'Poppins', sans-serif;
  color: white;
  font-size: 25px; 
  text-align: center;
  padding: 15px 10px;
  width: 200px;
  border: 5px solid var(--color-boton);
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#btnConfirmarPedido:hover {
  background-color: var(--color-fondo);
  color: var(--color-boton);
}

/* ------------------------------ */
/* MEDIA QUERIES RESPONSIVE */
/* ------------------------------ */

@media (max-width: 1024px) {
  h1 { font-size: 60px; }
  h2 { font-size: 45px; }
  h3 { font-size: 35px; margin-left: 20px; }
  h5 { font-size: 22px; }
  b { font-size: 26px; }
  .product img { width: 300px; }
  .btnregistrarse, .btniniciar, #btnConfirmarPedido {
    width: 160px;
    font-size: 20px;
    padding: 12px 8px;
  }
  
}

/* --- 768px --- */
@media (max-width: 768px) {
  h1 { font-size: 50px; }
  h2 { font-size: 38px; }
  h3 { font-size: 30px; margin-left: 10px; }
  h5 { font-size: 20px; }
  b { font-size: 24px; }
  .product img { width: 220px; }
  .Sesion h5 { font-size: 20px; }
  .btnregistrarse, .btniniciar, #btnConfirmarPedido {
    width: 140px;
    font-size: 18px;
    padding: 10px 8px;
  }

  
}

/* --- 480px --- */
@media (max-width: 480px) {
   

  /* Productos: mostrar en 1 columna y centrados */
  .product {
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
    border-collapse: collapse;
  }
  .product tr {
    display: block;
    margin-bottom: 15px;
  }
  .product td {
    display: block;
    width: 100% !important;
    text-align: center;
    padding: 10px 0;
  }
  .product a {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
  }
  .product img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }
  .product img:hover {
    transform: scale(1.05);
  }

  /* Sesión: centrar y juntar botones */
  .Sesion tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .Sesion td {
    flex: none;
    text-align: center;
    margin: 5px 0;
  }
  .btnregistrarse,
  .btniniciar {
    width: 140px;
    font-size: 16px;
    padding: 10px 5px;
  }

  /* Footer */
  
}

/* --- 425px --- */
@media (max-width: 425px) {
  /* Menú vertical */
   

   
  /* Productos: 1 columna centrada */
  .product {
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
    border-collapse: collapse;
  }
  .product tr {
    display: block;
    margin-bottom: 15px;
  }
  .product td {
    display: block;
    width: 100% !important;
    text-align: center;
    padding: 10px 0;
  }
  .product a {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
  }
  .product img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
  }
  .product img:hover {
    transform: scale(1.05);
  }

  /* Sesión: centrar y juntar botones */
  .Sesion tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .Sesion td {
    flex: none;
    text-align: center;
    margin: 5px 0;
  }
  .btnregistrarse,
  .btniniciar {
    width: 140px;
    font-size: 16px;
    padding: 10px 5px;
  }

  /* Footer */
 
}

/* --- 375px --- */
@media (max-width: 375px) {
   
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 22px;
  }
  h3 {
    font-size: 20px;
    margin-left: 0;
    text-align: center;
  }
  h5 {
    font-size: 12px;
    text-align: center;
  }
  b {
    font-size: 16px;
  }
  .btnregistrarse,
  .btniniciar,
  #btnConfirmarPedido {
    width: 120px;
    font-size: 14px;
    padding: 6px 5px;
  }
  .product img {
    max-width: 120px;
  }
}

/* --- 320px --- */
@media (max-width: 320px) {
   
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 18px;
    margin-left: 0;
    text-align: center;
  }
  h5 {
    font-size: 12px;
    text-align: center;
  }
  b {
    font-size: 18px;
  }
  .btnregistrarse,
  .btniniciar,
  #btnConfirmarPedido {
    width: 100px;
    font-size: 12px;
    padding: 5px 4px;
  }
  .product img {
    max-width: 100px;
  }

}