:root {
  --negro: #111111;
  --cafe: #6b3e26;          /* base café */
  --cobre: #b8684b;         /* cobre del logo */
  --crema: #f3e2c7;         /* fondo claro */
  --rojo: #8c1d18;          /* rojo oscuro elegante */
  --gris: #f5f5f5;
  --rojizo: #dd967d;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

body {
	background-color: var(--gris);
	color: var(--negro);
}

header {
	background: linear-gradient(135deg,
		var(--cobre),
		var(--cafe),
		var(--negro)
  	);

	color: var(--crema);
	padding: .3rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	font-size: 1.5rem;
	letter-spacing: 2px;
}

header span {
	color: var(--rojo);
}

nav {
  display: flex;
  gap: 4px;
}

@media (max-width: 500px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-cart .badge {
	position: relative;
	top: -1px;
	right: -1px;
  }
}

nav a {
  color: var(--crema);
  text-decoration: none;
  font-weight: bold;
  margin-left: .6rem;
}

nav a:hover {
  color: var(--cobre);
}

.hero {
	background: #fff;
	padding: 4rem 2rem;
	text-align: center;
}

.hero h2 {
	font-size: 2.2rem;
	margin-bottom: 1rem;
}

.hero p {
	max-width: 600px;
	margin: 0 auto 2rem;
	color: #444;
}

.btn {
	display: inline-block;
	background-color: var(--rojo);
	color: #fff;
	padding: 0.8rem 1.5rem;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
}

.btn-add {
	display: inline-block;
	padding: 2px;
	background-color: var(--azul);
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.btn-remove {
	display: inline-block;
	padding: 2px;
	background-color: var(--azul);
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.btn-trash {
	display: inline-block;
	padding: 2px;
	background-color: var(--rojo);
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}




.products {
	padding: 3rem 2rem;
	max-width: 1100px;
	margin: auto;
}

.products h3 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 1.8rem;
}

h4 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 1.3rem;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 260px);
	gap: 1.5rem;
	justify-content: center;
}

.card {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
	padding: 1rem;
	text-align: center;

}

.card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.card h4 {
	margin-bottom: 0.5rem;
}

.price {
	color: var(--cafe);
	font-weight: bold;
	margin-bottom: 1rem;
}

footer {
	background-color: var(--negro);
	color: #fff;
	text-align: center;
	padding: 1.5rem;
	/* margin-top: 3rem; */
	font-size: 0.9rem;
}

.img-producto {
	width: 100%;
	max-width: 300px;
	height: auto;
}

.mt-2{
	margin: 8px;
}


.visitanos {
	background-color: white;
	text-align: center;
	padding: 1.5rem;
}

.carrito {
max-width: 1000px;
margin: auto;
background: #fff;
border-radius: 6px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
overflow: hidden;
}


.row {
display: grid;
grid-template-columns: 70px 100fr 60px 20px 60px 70px;
gap: .6rem;
padding: .5rem;
border-bottom: 1px solid #e0e0e0;
align-items: center;
}

.header-carrito{
	background: black;
	color: #fff;
	padding: 1.5rem 2rem;
	align-items: center;
	font-size: 0.9rem;
}

.row.header {
background: #111;
color: #fff;
font-weight: bold;
}


.row:last-child {
border-bottom: none;
}


.codigo {
font-size: 0.8rem;
font-weight: bold;
color: #666;
}


.cantidad {
font-size: 0.8rem;
font-weight: bold;
text-align: center;
margin-right: 6px;
}


.precio,
.subtotal {
font-size: 0.8rem;
text-align: center;
font-weight: bold;
}


.total {
text-align: right;
padding: 1.2rem;
font-size: 1.2rem;
background: #fafafa;
}


.empty {
padding: 2rem;
text-align: center;
color: #777;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-cart {
  position: relative;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.nav-cart1 {
  position: relative;
  font-size: 20px;
  text-decoration: none;
  color: #050505;
  cursor: pointer;
  margin-left: 35px;
}

.nav-cart .badge {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--rojo);
  color: var(--crema);
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.nav-cart1 .badge {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--rojo);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}


.ml-2{
	margin-left: 10px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CONTENEDOR logo + texto */
.brand {
  display: flex !important;     /* fuerza horizontal */
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

/* LOGO */
.logo {
  height: 80px;
  width: auto;
  display: block;
}

/* TÍTULO */
.brand-title {
  margin: 0;                 /* quita margen default */
  line-height: 1;            /* evita salto vertical */
  white-space: nowrap;       /* no baja de línea */
  display: inline-flex;      /* asegura inline */
  align-items: center;
  font-size: 1.8rem;
}

.brand-title span {
  color: #c00;
}

.titulo-carrito{
	text-align: center;
	margin-top: 24px;
	margin-bottom: 24px;
}

.input-busqueda {
  width: 60%;          /* largo */
  max-width: 420px;     /* no exagerado */
  padding: 12px 16px;   /* alto */
  font-size: 16px;      /* texto grande */
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.input-busqueda:focus {
  border-color: #c00;   /* rojo de tu marca */
  box-shadow: 0 0 0 3px rgba(204,0,0,0.2);
}


.form-solicitud {
  margin-top: 24px;
  max-width: 400px;
  padding: 1.5rem;
  background: var(--gris);
  border-radius: 8px;
}

.form-group {
  margin-top: 16px;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
}

.btn-enviar {
  width: 100%;
  padding: 12px;
  background: #c00;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-mostrar {
  margin-top: 12px;
  padding: 12px;
  background: #c00;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.centrar {
  display: flex;
  justify-content: center; /* centra horizontal */
  padding: 2rem 1rem;
}

.footer {
  /* background: #111; */
  background: linear-gradient(135deg, var(--cafe), var(--negro));
  color: #eee;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

.footer-col h4 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col i {
  margin-right: 0.5rem;
  color: var(--rojizo);
}

.social-icons a {
  font-size: 1.6rem;
  margin-right: 0.8rem;
  color: var(--rojizo);
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--rojizo);
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

.folio {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  padding: 12px 16px;
  border-radius: 6px;
}

.btn,
.btn-enviar,
.btn-mostrar {
  background: linear-gradient(135deg, var(--cobre), var(--rojo));
  color: #fff;
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn-enviar:hover,
.btn-mostrar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}


.btn-add,
.btn-remove {
  background-color: var(--cafe);
}

.btn-trash {
  background-color: var(--rojo);
}


/* producto  */

.producto-detalle {
  padding: 3rem 2rem;
}

.producto-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.producto-galeria {
  text-align: center;
}

.carousel {
  position: relative;
}

.carousel-img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: none;
}

.carousel-img.active {
  display: block;
  border-radius: 10px;
  border: 4px solid transparent;
  box-shadow: 0 4px 19px #cecece;;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  justify-content: center;

}

.thumb {
  width: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  box-shadow: 0 4px 19px #cecece;
}

.thumb:hover {
  border-color: var(--cobre);
}

.producto-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.producto-info .precio {
  font-size: 1.8rem;
  color: var(--cobre);
  margin-bottom: 1rem;
}

.opciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-variant {
  padding: 8px 14px;
  border: 1px solid var(--cafe);
  background: #fff;
  cursor: pointer;
}

.btn-variant:hover {
  background: var(--cobre);
  color: #fff;
}

.cantidad-box {
  margin-top: 1.5rem;
}

.acciones {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .producto-container {
    grid-template-columns: 1fr;
  }
}


.variantes-container h3{
    font-size: 14px;
    margin-bottom: 6px;
    color: #423225;
}

.btn-variante{
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    margin: 3px;
    border-radius: 14px;
    text-decoration: none;

    color: #412618;
    background: #e4b787; /* cobre */

    border: 1px solid #a96521;

    transition: all 0.15s ease;
	cursor: pointer;
}

.btn-variante:hover{
    background: #a96521;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	font-weight: bold;
}

.btn-variante-active{
	background: #a96521;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	font-weight: bold;
}


.titulo-variantes{
	font-size: 1.1rem;
	margin-top: 28px;
	margin-bottom: 8px;
}

.descripcion{
	font-size: 1rem;
	margin-top: 20px;
	margin-bottom: 8px;
	text-align: justify;
}

.precio-producto {
  font-size: 1.6rem;
  color: var(--cobre);
  margin-top: 1rem;
  margin-bottom: 1rem;
}




.cantidad-box{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 23px 0;
    font-family: inherit;
}

.cantidad-box label{
    font-size: 1.1rem;
    color: #000000;
    font-weight: 500;
}

.cantidad-box input[type="number"]{
    width: 70px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #c8b8a6;
    border-radius: 8px;
    background: #fffdf9;
    color: #3e2f24;
    text-align: center;
    transition: all 0.2s ease;
}

/* Hover */
.cantidad-box input[type="number"]:hover{
    border-color: #c47a2c;
}

/* Focus */
.cantidad-box input[type="number"]:focus{
    outline: none;
    border-color: #c47a2c;
    box-shadow: 0 0 0 2px rgba(196,122,44,0.15);
}

/* Flechas más visibles */
.cantidad-box input[type="number"]::-webkit-inner-spin-button,
.cantidad-box input[type="number"]::-webkit-outer-spin-button{
    opacity: 1;
}
