
/* ===== Reset & Base ===== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --brand:#0077ff;
  --brand-700:#005ec4;
  --text:#222;
  --muted:#666;
  --border:#eee;
  --bg:#fff; /* fondo blanco */
}
html,body{height:100%}
body{
  font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%;display:block; }
.container{width:min(1200px,92%);margin:auto}
.section{padding:4rem 0}
.section__title{font-size:2rem;text-align:center;margin-bottom:2rem;font-weight:800}

/* ===== Header ===== */
.header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:20}
.header__inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit}
.brand__logo{display:inline-grid;place-items:center;width:15rem;height:36px;border-radius:10px;background:#111;color:#fff;font-weight:800}
.brand__name{font-weight:800}
.nav a{color:#333;text-decoration:none;margin:0 .8rem;font-weight:700}
.nav a:hover{color:var(--brand)}
.cart{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;color:inherit;position:relative}
.cart__count{position:absolute;top:-8px;right:-10px;background:var(--brand);color:#fff;border-radius:999px;font-size:.75rem;padding:2px 6px}

/* ===== Hero ===== */
.hero{padding:3rem 0 2rem}
.hero__inner{display:grid;grid-template-columns:1.1fr .9fr;gap:2rem;align-items:center}
.hero__copy h1{font-size:2.6rem;line-height:1.2;margin-bottom:1rem;font-weight:900}
.hero__copy p{color:var(--muted);margin-bottom:1.25rem}
.hero__image img{border-radius:18px;box-shadow:0 10px 28px rgba(0,0,0,.08)}
@media (max-width:900px){.hero__inner{grid-template-columns:1fr}.hero__copy h1{font-size:2.1rem}}

/* ===== Buttons & Inputs ===== */
.btn{display:inline-block;padding:.9rem 1.1rem;border:none;border-radius:12px;background:var(--brand);color:#fff;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .05s ease, box-shadow .2s}
.btn:hover{background:var(--brand-700);box-shadow:0 10px 22px rgba(0,119,255,.25)}
.btn:active{transform:translateY(1px)}
.input{width:100%;padding:.75rem .9rem;border:1px solid var(--border);border-radius:10px;background:#fff}
.toolbar{display:flex;gap:.75rem;align-items:center;margin-bottom:1.25rem;flex-wrap:wrap}

/* ===== Grid ===== */
.grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}

#categorias .grid-categorias{
  display:grid;
  gap:1.25rem;
  /* columnas de ancho fijo → ahora sí se pueden centrar */
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content:center;    /* centra el conjunto */
  margin:0 auto;
  max-width:1200px;
}
#categorias .product-card-categorias{
  text-decoration:none;
  color:inherit;
}
/* Quita subrayado y color de enlaces dentro de las tarjetas de categorías */
.grid-categorias a {
  text-decoration: none;
  color: inherit;
}

/* Asegura títulos en negro */
.product-card__title {
  color: #000;
  font-weight: 600;
}


/* ===== Premium Product Card ===== */
.product-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s, box-shadow .2s, border-color .2s;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 36px rgba(0,0,0,.08);
  border-color:#e6e6e6;
}
.product-card__media{
  position:relative;
  background:#fafafa;
}
.product-card__media img{
  width:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.product-card__body{
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:.5rem;
  flex:1;
}
.product-card__title{font-size:1.05rem;font-weight:800; text-decoration: none;;}
.product-card__price{font-weight:900;color:var(--brand);margin-top:.2rem}
.product-card__actions{margin-top:auto}
.product-card__actions .btn{width:100%}

/* ===== Footer ===== */
.footer{background:#0e0f12;color:#cfd3dc;padding:2.5rem 0;margin-top:3rem}
.footer a{color:#cfd3dc;text-decoration:none}
.newsletter__row{display:flex;gap:.5rem;margin-top:.5rem}

/* ===== Checkout ===== */
.checkout{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
@media (max-width:920px){.checkout{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.04);padding:1rem}
.cart-list{display:flex;flex-direction:column;gap:.75rem}
.cart-item{display:grid;grid-template-columns:64px 1fr auto auto;gap:.75rem;align-items:center}
.cart-item img{height:64px;width:64px;object-fit:cover;border-radius:10px}
.cart-item__name{font-weight:700}
.cart-item__qty{display:flex;gap:.4rem;align-items:center}
.qty-btn{width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:#fff;cursor:pointer}
.totals{border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem}
.totals__row{display:flex;justify-content:space-between;margin:.35rem 0}
.totals__row--grand strong{font-size:1.2rem}
.muted{color:var(--muted);font-size:.95rem}

.banner-img {
  width: 100%;       /* que ocupe todo el ancho */
  max-height: 600px; /* o la altura que quieras */
  object-fit: cover; /* mantiene proporción, recorta lo que sobra */
  display: block;    /* quita espacios raros */
  margin: 0 auto;    /* centra si no ocupa todo */
}

.active{
  color: #0077ff;
}

.header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.brand__logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;

}

.brand__logo_footer{
    justify-content: right;
  margin-right: 1rem;
}
.brand__name {
  font-size: 1rem;
  color: #666;
}

/* Estilo base del nav en móvil */
.nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px; /* debajo del header */
  left: 0;
  width: 100%;
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav a {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* Cuando está abierto */
.nav.nav--open {
  max-height: 400px; /* suficiente para mostrar enlaces */
}

/* Desktop: el nav siempre visible en línea */
@media (min-width: 768px) {
  .nav {
    position: static;
    flex-direction: row;
    max-height: none;
    width: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .nav a {
    border: none;
    padding: 0 1rem;
  }
}

.nav a.active {
  font-weight: bold;
  color: #007bff;
}

/* Carrito */
.cart {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: #333;
}
.cart__count {
  background: #e63946;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50%;
  padding: 0.2rem 0.45rem;
  position: absolute;
  top: -8px;
  right: -10px;
}

/* Botón hamburguesa (solo móvil) */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- MOBILE --- */
@media (max-width: 767px) {
  .header__inner {
    justify-content: space-between;
  }
  .hamburger {
    display: block;
  }
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}

/* --- DESKTOP --- */
@media (min-width: 768px) {
  .brand {
    position: static;
    transform: none;
  }
  .hamburger {
    display: none;
  }
  .nav {
    display: flex !important;
    position: static;
    box-shadow: none;
  }
}

/* Estado abierto en móvil */
.nav.nav--open {
  display: flex !important;
}

.footer {
  background: #111; /* negro elegante */
  color: #eee;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Logo */
.brand--footer {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer p,
.footer .muted,
.footer small {
  color: #aaa;
}

/* Newsletter */
.newsletter {
  max-width: 400px;
  flex: 1;
}
.newsletter__row {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.newsletter__row .input {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 6px;
  outline: none;
}
.newsletter__row .btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter__row .btn:hover {
  background: #0056b3;
}

/* Redes sociales */
.social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social a {
  color: #fff;
  transition: color 0.3s ease;
}
.social a:hover {
  color: #007bff;
}

/* 📱 Mobile */
/* Ajuste para móvil: copyright debajo del logo */
@media (max-width: 768px) {
  .footer__inner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__inner p {
    margin-top: 2.7rem;
  }
}

  .newsletter {
    width: 100%;
  }
  .newsletter__row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .newsletter__row .btn {
    width: 100%;
  }
  .social {
    justify-content: center;
  }

  .img{
    width: 60rem;
  }

.banner {
  position: relative;
  height: 35rem;
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto encima */
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 1rem;
}

.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-top: 4rem;
}

.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.banner-text .btn {
  background: #007bff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.banner-text .btn:hover {
  background: #0056b3;
}
