* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f5;
  color: #333333;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  font-size: 20px;
  font-weight: bold;
  color: #1b4332;
}

.navbar-carrito {
  background-color: #1b4332;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1200') center/cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-contenido h1 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 15px;
}

.acento {
  color: #ffd93d;
}

.hero-contenido p {
  color: #eeeeee;
  font-size: 16px;
  margin-bottom: 25px;
}

.buscador {
  width: 100%;
  max-width: 400px;
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  outline: none;
}

/* SECCIONES */
.seccion {
  padding: 30px 20px;
}

.seccion h2 {
  font-size: 24px;
  color: #1b4332;
  margin-bottom: 20px;
}

/* CATEGORÍAS */
.grid-categorias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.categoria {
  background-color: #1b4332;
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.categoria:hover {
  background-color: #2d6a4f;
}

/* PRODUCTOS */
.productos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tarjeta {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 200px;
  overflow: hidden;
}

.tarjeta-imagen {
  background-color: #f0f0e8;
  font-size: 50px;
  text-align: center;
  padding: 25px;
}

.tarjeta-info {
  padding: 15px;
}

.tarjeta-info h3 {
  color: #1b4332;
  margin-bottom: 5px;
}

.tarjeta-info p {
  color: #666666;
  font-size: 14px;
}

.precio {
  color: #1b4332 !important;
  font-size: 18px !important;
  font-weight: bold;
  margin: 8px 0 !important;
}

.btn-carrito {
  background-color: #1b4332;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 5px;
  font-size: 14px;
}

.btn-carrito:hover {
  background-color: #2d6a4f;
}

/* PANEL CARRITO */
#panel-carrito {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 200;
  box-sizing: border-box;
}

#panel-carrito.abierto {
  right: 0;
}

#panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#panel-header h2 {
  color: #1b4332;
}

#btn-cerrar {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

#panel-productos {
  flex: 1;
  overflow-y: auto;
}

.panel-producto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
}

.btn-eliminar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.btn-eliminar:hover {
  background-color: #ffeeee;
}

#panel-footer {
  border-top: 1px solid #eeeeee;
  padding-top: 15px;
  box-sizing: border-box;
}

#panel-footer p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#btn-ver-completo {
  background-color: #1b4332;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

#btn-ver-completo:hover {
  background-color: #2d6a4f;
}

/* FOOTER */
footer {
  background-color: #1b4332;
  color: #ffffff;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-contenido {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-contenido h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-contenido h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffd93d;
}

.footer-contenido p {
  color: #aaaaaa;
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-copy {
  color: #888888;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid #2d6a4f;
  padding-top: 15px;
}

/* CARRITO PAGE */
#lista-carrito {
  margin-bottom: 20px;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.carrito-item span {
  font-size: 15px;
  color: #333333;
}

.resumen-box {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 400px;
}

.resumen-box p {
  font-size: 20px;
  font-weight: bold;
  color: #1b4332;
  margin-bottom: 15px;
}

#btn-pagar {
  background-color: #ffd93d;
  color: #1b4332;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
}

#btn-pagar:hover {
  background-color: #f5c800;
}

/* PAGO */
.pago-contenedor {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.pago-formulario {
  flex: 1;
  min-width: 280px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pago-formulario h3 {
  color: #1b4332;
  margin-bottom: 20px;
}

.campo {
  margin-bottom: 15px;
}

.campo label {
  display: block;
  font-size: 14px;
  color: #555555;
  margin-bottom: 5px;
  font-weight: bold;
}

.campo input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.campo input:focus {
  border-color: #1b4332;
}

#btn-confirmar {
  background-color: #ffd93d;
  color: #1b4332;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

#btn-confirmar:hover {
  background-color: #f5c800;
}

.pago-resumen {
  width: 280px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.pago-resumen h3 {
  color: #1b4332;
  margin-bottom: 15px;
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
}

.resumen-total {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #1b4332;
}

/* PANEL LATERAL MEJORADO */
.panel-producto {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.panel-producto-emoji {
  font-size: 36px;
  background-color: #f0f0e8;
  border-radius: 8px;
  padding: 8px;
  min-width: 50px;
  text-align: center;
}

.panel-producto-detalle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-producto-nombre {
  font-size: 14px;
  font-weight: bold;
  color: #1b4332;
}

.panel-producto-precio {
  font-size: 14px;
  color: #333333;
}

.panel-producto-cantidad {
  font-size: 12px;
  color: #888888;
}

/* CARRITO PAGE MEJORADO */
.carrito-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.carrito-emoji {
  font-size: 48px;
  background-color: #f0f0e8;
  border-radius: 10px;
  padding: 10px;
  min-width: 70px;
  text-align: center;
}

.carrito-detalle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carrito-nombre {
  font-size: 16px;
  font-weight: bold;
  color: #1b4332;
}

.carrito-cantidad {
  font-size: 13px;
  color: #888888;
}

.carrito-acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.carrito-precio {
  font-size: 16px;
  font-weight: bold;
  color: #1b4332;
}

.btn-eliminar-carrito {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.btn-eliminar-carrito:hover {
  background-color: #ffeeee;
}

/* CONFIRMACIÓN */
.confirmacion-contenedor {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.confirmacion-icono {
  font-size: 70px;
  margin-bottom: 15px;
}

.confirmacion-contenedor h2 {
  font-size: 28px;
  color: #1b4332;
  margin-bottom: 10px;
}

.confirmacion-sub {
  color: #666666;
  margin-bottom: 30px;
}

.confirmacion-box {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.confirmacion-box h3 {
  color: #1b4332;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.confirmacion-total {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #1b4332;
  text-align: right;
}

.dato-fila {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

.dato-fila span {
  font-weight: bold;
  color: #1b4332;
  min-width: 80px;
}

.btn-seguir {
  background-color: #ffd93d;
  color: #1b4332;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

.btn-seguir:hover {
  background-color: #f5c800;
}