/* ================================================
   DONDE EL YORYI — Estilos Globales
   ================================================ */

/* --- 1. Reset & Base --- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #e7e7e7;
  color: #333;
  overflow-x: hidden; /* evitar scroll horizontal por el logo */
  min-height: 100vh;
  touch-action: manipulation; /* desactiva zoom de doble tap */
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Evita zoom automático en iOS al tocar inputs (requiere mínimo 16px) */
input, select, textarea {
  font-size: 16px;
}

/* --- 2. Header --- */

header {
  background: linear-gradient(90deg, #e60000, #ff3333);
  height: 50px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  z-index: 50;
}
.live-results{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    overflow: hidden;
    z-index: 999;
    margin-top: 6px;
}

.sr-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: background .2s ease;
}

.sr-item:last-child{
    border-bottom: none;
}

.sr-item:hover{
    background: #f7f7f7;
}

.sr-item img{
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.sr-info{
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sr-name{
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-price{
    font-size: 14px;
    color: #16a34a;
    font-weight: 700;
    margin-top: 3px;
}
/* --- 3. Logo --- */

.logo {
  background: white;
  height: 112px;
  width: 145px;
  border-radius: 0 0 40% 0;
  padding: 2px 7px;
  text-align: center;
  border: solid 4px #ee0f0f;
  position: absolute;
  top: 0;
  left: 0;
  margin-top: -15px;
  margin-left: -4px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- 4. Hamburguesa e Iconos Header --- */

.menu {
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  position: absolute;
  right: 12px;
  line-height: 1;
  padding: 4px;
}

.icon-cart {
  cursor: pointer;
  position: absolute;
  right: 56px;
  display: flex;
  align-items: center;
}

.icon-cart img {
  height: 35px;
  padding: 3px 4px;
  background: #ffffff;
  border-radius: 11px;
}

#quantityCart {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #feff00;
  color: #5a0000;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* --- 5. Menú de navegación --- */

.menu-links {
  display: none;
  background: #444;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  flex-direction: column;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.menu-links a {
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #555;
  text-align: center;
  font-size: 15px;
  transition: background 0.2s;
}

.menu-links a:hover {
  background: #e60000;
}

.menu-links .menu-ofertas {
  color: #fbbf24;
  font-weight: 700;
}
.menu-links .menu-ofertas:hover {
  background: #e60000;
  color: #fff;
}

.menu-links.active {
  display: flex;
}

/* --- 6. Sub-header (sesión) --- */

.sub-header {
  background: #b0b0b0;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  min-height: 36px;
}

.sub-header a {
  text-decoration: none;
}

.sub-header button {
  background: white;
  color: #2d2d2d;
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.sub-header button:hover {
  background: #c40000;
  color: white;
}

/* --- 7. Panel carrito --- */

.container-cart {
  position: fixed;
  top: 90px;
  right: 10px;
  width: min(300px, calc(100vw - 20px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 15px;
  display: none;
  z-index: 200;
}

.container-cart h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

#listCart {
  list-style: none;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

#listCart li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

#listCart li:last-child {
  border-bottom: none;
}

.footer-cart {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.btn-paycart {
  background: #e60000;
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-paycart:hover {
  background: #c40000;
}

/* --- 8. Menú de usuario --- */

.user-box {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #2d2d2d;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.user-box:hover {
  background: #e60000;
  color: white;
}

.user-icon {
  font-size: 16px;
}

.user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
  min-width: 160px;
  border: 1px solid #eee;
}

.user-dropdown a {
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: #fef2f2;
  color: #e60000;
}

/* --- 9. Slider y tarjetas de producto --- */

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  padding: 4px 2px 8px;
}

.slider::-webkit-scrollbar {
  display: none;
}

.producto {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  text-align: center;
  padding: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-shrink: 0;
  border-radius: 8px;
}

.producto:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ================================================
   Hero Slider (portada principal)
   ================================================ */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  height: 180px;
  touch-action: pan-y;
  user-select: none;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  display: block;
  text-decoration: none;
  height: 100%;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 600px) {
  .hero-slider { height: 260px; }
}

@media (min-width: 768px) {
  .hero-slider { height: 340px; }
}

@media (min-width: 1024px) {
  .hero-slider { height: 400px; }
}

/* Flechas */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 36px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-prev { left: 10px; }
.hero-next { right: 10px; }

.hero-prev:hover,
.hero-next:hover {
  background: rgba(198,0,0,0.8);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}


/* Banner promocional clickeable */
.banner-especial {
  flex: 0 0 105%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.banner-especial:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.banner-especial img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Tarjeta producto normal */
.producto-one {
  flex: 0 0 48%;
  min-width: 160px;
  flex-direction: column;
  align-items: center;
  min-height: 360px;
}

.producto-one > div:first-child {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.producto-one img {
  max-width: 100%;
  max-height: 185px;
  object-fit: contain;
  border-radius: 8px;
}

/* Contenido de tarjeta (precio, botones) */
.producto-one > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  padding: 6px 4px;
  gap: 4px;
}

.producto h3 {
  margin: 6px 0 4px;
  color: #333;
  font-size: 13px;
  line-height: 1.3;
}

.producto .offer {
  background: #feff00;
  border-radius: 5px;
  font-size: 12px;
  padding: 2px 6px;
  font-weight: bold;
}

.producto button {
  background: #e60000;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  width: 85%;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.producto button:hover {
  background: #c40000;
}

/* Títulos de sección (legado) */
.tittles {
  text-align: center;
  margin: 14px auto 8px;
  padding: 6px 16px;
  color: #fff;
  background: #c40000;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  font-size: 17px;
}

/* ===== INDEX — Banda de confianza ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: #1a1a2e;
  padding: 10px 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  opacity: 0.9;
}
.trust-item span { opacity: 0.85; }

/* ===== INDEX — Secciones de categoría ===== */
.idx-seccion {
  padding: 18px 0 4px;
}

.idx-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.idx-sec-titulo {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.idx-sec-link {
  font-size: 13px;
  font-weight: 600;
  color: #e60000;
  text-decoration: none;
  white-space: nowrap;
}
.idx-sec-link:hover { text-decoration: underline; }

/* Slider horizontal de tarjetas */
.idx-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 14px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.idx-slider::-webkit-scrollbar { display: none; }

/* Tarjeta dentro del slider del index */
.idx-card {
  flex: 0 0 155px;
  scroll-snap-align: start;
  min-width: 155px;
}
.idx-card .cat-card-img-wrap {
  height: 140px;
}

@media (min-width: 480px) {
  .idx-card { flex: 0 0 170px; min-width: 170px; }
  .idx-card .cat-card-img-wrap { height: 155px; }
}
@media (min-width: 768px) {
  .idx-card { flex: 0 0 195px; min-width: 195px; }
  .idx-card .cat-card-img-wrap { height: 175px; }
  .idx-sec-titulo { font-size: 20px; }
  .trust-item { font-size: 13px; }
}
@media (min-width: 1024px) {
  .idx-card { flex: 0 0 210px; min-width: 210px; }
  .idx-slider { padding: 4px 20px 20px; gap: 16px; }
  .idx-sec-header { padding: 0 20px 12px; }
}

/* --- 10. Badges de precio --- */

.precio-antiguo {
  text-decoration: line-through;
  color: #888;
  font-size: 12px;
}

.precio {
  font-size: 19px;
  font-weight: bold;
  color: #373737;
  background: #d8d8d8;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.precio-cantidad {
  font-size: 14px;
  font-weight: bold;
  color: #2d2d2d;
  background: #feff00;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.precio-super {
  font-size: 19px;
  font-weight: bold;
  color: #353535;
  background: #feff00;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* --- 11. Control de cantidad (carrito) --- */

.control-cantidad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
}

.control-cantidad button {
  width: 30px;
  height: 30px;
  border: none;
  background: #e60000;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: background 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-cantidad button:hover {
  background: #c40000;
}

.control-cantidad input {
  width: 42px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px;
  font-size: 15px;
  background: white;
}

/* --- 12. Catálogo --- */

/* Header: buscador + chips */
.cat-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 14px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Buscador */
.cat-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 12px;
}
.cat-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.cat-search-input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border: 2px solid #eee;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
  box-sizing: border-box;
}
.cat-search-input:focus {
  border-color: #e60000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230,0,0,0.08);
}
.cat-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 15px;
  text-decoration: none;
  line-height: 1;
}
.cat-search-clear:hover { color: #e60000; }

/* ── Navegación de categorías ── */
.cat-nav {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 0 14px;
  background: #fff;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-tabs {
  display: flex;
  position: relative;
  min-width: max-content;
  border-bottom: 2px solid #f0f0f0;
}
.cat-nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #aaa;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 1;
}
.cat-nav-tab:hover { color: #1a1a2e; }
.cat-nav-tab.peek  { color: #1a1a2e; }
.cat-nav-tab.active { color: #e60000; }

/* Barra deslizante */
.cat-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: #e60000;
  border-radius: 2px 2px 0 0;
  transition: left 0.25s cubic-bezier(.4,0,.2,1),
              width 0.25s cubic-bezier(.4,0,.2,1),
              opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.cat-indicator.visible { opacity: 1; }

/* ── Subcategorías ── */
.cat-subs-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  margin: 0 -14px;
  padding: 0 14px;
}
.cat-subs-wrap.open { max-height: 64px; opacity: 1; }
.cat-subs {
  display: flex;
  gap: 7px;
  padding: 10px 0 9px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-subs::-webkit-scrollbar { display: none; }
.cat-sub {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #666;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cat-sub:hover  { border-color: #e60000; color: #e60000; background: #fff; }
.cat-sub.active { background: #e60000; color: #fff; border-color: #e60000; }

/* Info resultados */
.cat-info {
  max-width: 1100px;
  margin: 12px auto 4px;
  padding: 0 14px;
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-info-text { flex: 1; min-width: 0; }
.cat-orden-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-size: 13px;
  color: #444;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .2s;
}
.cat-orden-select:focus { border-color: #e60000; }

/* Grid de tarjetas */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjeta producto */
.cat-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Badge % descuento */
.cat-badge-off {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e60000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
}

/* Estrellas en tarjetas de catálogo */
.cat-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 3px 0 5px;
}
.cat-star {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1;
}
.cat-star.filled { color: #f59e0b; }
.cat-stars-count {
  font-size: 11px;
  color: #aaa;
  margin-left: 3px;
  font-weight: 500;
}

/* Badge sin stock */
.cat-badge-agotado {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6b7280;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
}

/* Card agotada */
.cat-card-agotado .cat-card-img-wrap img {
  opacity: 0.5;
  filter: grayscale(40%);
}

/* Botón sin stock */
.cat-btn-agotado {
  width: 100%;
  background: #e5e7eb;
  color: #9ca3af;
  border: none;
  border-radius: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
}

/* Imagen */
.cat-card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 12px;
  background: #fafafa;
}
.cat-card-img-wrap img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.25s;
}
.cat-card:hover .cat-card-img-wrap img { transform: scale(1.04); }

/* Cuerpo */
.cat-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 14px;
  flex: 1;
}

.cat-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-name:hover { color: #e60000; }

/* Precios */
.cat-card-precios {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-precio-tachado {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
}
.cat-precio-main {
  font-size: 18px;
  font-weight: 800;
  color: #222;
  line-height: 1.1;
}
.cat-precio-red { color: #e60000; }
.cat-precio-promo {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
}

/* Botón agregar */
.cat-card-ctrl { margin-top: auto; }
.cat-btn-agregar {
  width: 100%;
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cat-btn-agregar:hover { background: #c40000; }

/* Control cantidad dentro de tarjeta */
.cat-card .control-cantidad {
  display: flex;
  justify-content: center;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e60000;
}
.cat-card .control-cantidad button {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.cat-card .control-cantidad button:hover { background: #c40000; }
.cat-card .control-cantidad input {
  flex: 1;
  text-align: center;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  background: #fff;
  padding: 0;
  min-width: 0;
}

/* Estado vacío */
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #aaa;
}
.cat-empty h3 { color: #555; margin: 0 0 8px; }
.cat-empty p { margin: 0; font-size: 14px; }

/* Paginación */
.cat-paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 14px 32px;
  flex-wrap: wrap;
}
.cat-page-btn {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  padding: 0 6px;
}
.cat-page-btn:hover { border-color: #e60000; color: #e60000; }
.cat-page-btn.active {
  background: #e60000;
  border-color: #e60000;
  color: #fff;
}
.cat-page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.cat-page-nav { font-size: 18px; font-weight: 400; }
.cat-page-dots {
  color: #aaa;
  font-size: 14px;
  padding: 0 2px;
}

/* Legado para compatibilidad */
.paginacion { display:flex; justify-content:center; gap:8px; margin:20px 0 10px; flex-wrap:wrap; padding:0 10px; }
.page-btn { min-width:40px; height:40px; display:flex; align-items:center; justify-content:center; text-decoration:none; border-radius:10px; border:1px solid #ddd; background:#fff; color:#333; font-weight:500; font-size:15px; transition:all 0.2s; }
.page-btn:hover, .page-btn.active { background:#e60000; color:#fff; border-color:#e60000; }

/* Responsive catálogo */
@media (min-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-card-img-wrap { height: 180px; }
}
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 20px 32px; }
  .cat-card-img-wrap { height: 200px; }
}

/* --- 13. Página de producto --- */

.pd-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 14px 48px;
}

/* Migas de pan */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pd-breadcrumb a { color: #888; text-decoration: none; }
.pd-breadcrumb a:hover { color: #e60000; }
.pd-breadcrumb span:last-child { color: #333; font-weight: 600; }

/* Tarjeta principal */
.pd-card {
  display: flex;
  gap: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Imagen */
.pd-img-wrap {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 12px;
  min-height: 280px;
  padding: 16px;
}
.pd-img-wrap img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.pd-badge-off {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #e60000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Info */
.pd-info {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-nombre {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

/* Precios */
.pd-precios {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-precio-tachado {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}
.pd-precio-main {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
}
.pd-precio-main small {
  font-size: 16px;
  font-weight: 500;
  color: #888;
}
.pd-precio-red { color: #e60000; }
.pd-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 4px;
  width: fit-content;
}

/* Control cantidad (producto principal) */
.pd-cantidad {
  display: flex;
  align-items: center;
  border: 2px solid #e60000;
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
}
.pd-cantidad button {
  width: 46px;
  height: 46px;
  background: #e60000;
  color: #fff;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.pd-cantidad button:hover { background: #c40000; }
.pd-cantidad input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  background: #fff;
  padding: 0;
}

/* Botón agregar grande */
.pd-btn-agregar {
  width: 100%;
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pd-btn-agregar:hover {
  background: #c40000;
  transform: translateY(-1px);
}

/* WhatsApp */
.pd-btn-wsp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #16a34a;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pd-btn-wsp:hover { background: #dcfce7; }

/* Trust badges */
.pd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.pd-trust-item {
  font-size: 12px;
  color: #666;
  background: #f8f8f8;
  border-radius: 20px;
  padding: 5px 12px;
}

/* Relacionados */
.pd-relacionados { margin-top: 8px; }

@media (max-width: 600px) {
  .pd-card { padding: 16px; gap: 16px; }
  .pd-nombre { font-size: 18px; }
  .pd-precio-main { font-size: 26px; }
  .pd-img-wrap { min-height: 220px; }
}

/* --- 13b. Checkout / Carrito de compras --- */

/* Barra de progreso */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 8px;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #aaa;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ddd;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.step.active .step-circle {
  background: #e60000;
  color: white;
}

.step.active span {
  color: #e60000;
  font-weight: bold;
}

.step.done .step-circle {
  background: #16a34a;
  color: white;
}

.step.done span {
  color: #16a34a;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #ddd;
  margin-bottom: 16px;
  min-width: 30px;
}

/* Carrito vacío */
.carrito-vacio {
  text-align: center;
  padding: 50px 20px;
  color: #555;
}

.carrito-vacio-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.carrito-vacio h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
}

.carrito-vacio p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.btn-ir-catalogo {
  display: inline-block;
  background: #e60000;
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-ir-catalogo:hover { background: #c40000; }

/* Item con imagen */
.item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-precio-antiguo {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}

.item-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 70px;
}

/* Badge de ahorro */
.ahorro-badge {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-top: 6px;
}

/* Resumen sticky */
.resumen-sticky {
  background: #fff8e1;
  border: 2px solid #ddad21;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.total-final-box {
  background: #ddad21;
  color: #2e2e2e;
  padding: 8px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 18px;
}

/* Sellos de confianza */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

.trust-badges span {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 10px;
}

/* WhatsApp flotante */
.wsp-flotante {
  position: fixed;
  bottom: 20px;
  right: 16px;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  z-index: 500;
  transition: background 0.2s, transform 0.2s;
}

.wsp-flotante:hover {
  background: #1ebe5d;
  transform: scale(1.04);
}

.wsp-flotante img {
  width: 22px;
  height: 22px;
  display: block;
}

@media (min-width: 768px) {
  .resumen-sticky {
    position: sticky;
    top: 100px;
  }
}

.checkout-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 14px;
}

.checkout-container h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.checkout-grid {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.resumen,
.datos {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.item:last-of-type {
  border-bottom: none;
}

.total {
  margin-top: 14px;
  font-size: 17px;
  font-weight: bold;
  text-align: right;
  padding-top: 10px;
  border-top: 2px solid #e0e0e0;
}

.datos label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.datos input,
.datos select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 14px;
  width: 100%;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.datos input:focus,
.datos select:focus {
  border-color: #e60000;
}

.btn-confirmar {
  background: #28a745;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  width: 100%;
  transition: background 0.2s;
}

.btn-confirmar:hover {
  background: #1e7e34;
}

.empty {
  text-align: center;
  font-size: 17px;
  padding: 30px;
  color: #666;
}

/* --- Formulario de entrega (cards) --- */

.form-entrega {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.form-card-icon {
  font-size: 20px;
  line-height: 1;
}

.form-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 15px;
  background: #fafafa;
  transition: border-color 0.2s;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #e60000;
  background: #fff;
}

/* Opciones de tipo de entrega */
.entrega-opciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entrega-opcion {
  cursor: pointer;
}

.entrega-opcion input[type="radio"] {
  display: none;
}

.entrega-opcion-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}

.entrega-opcion input[type="radio"]:checked + .entrega-opcion-box {
  border-color: #e60000;
  background: #fff5f5;
}

.entrega-opcion-icon {
  font-size: 22px;
}

.entrega-opcion-box div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entrega-opcion-box strong {
  font-size: 14px;
  color: #222;
}

.entrega-opcion-box small {
  font-size: 12px;
  color: #888;
}

/* Bloque de dirección */
.bloque-direccion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-nueva-dir {
  background: none;
  border: 1.5px dashed #52b8d5;
  color: #0e7fa3;
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-nueva-dir:hover {
  background: #e8f7fb;
}

.nueva-dir-bloque {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cupón */
.cupon-row {
  display: flex;
  gap: 8px;
}

.cupon-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 15px;
  outline: none;
}

.cupon-row input:focus { border-color: #e60000; }

.btn-cupon {
  background: #363cbe;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-cupon:hover { background: #2a2f9e; }

.cupon-mensaje {
  font-size: 13px;
  min-height: 16px;
  margin-bottom: 6px;
}

/* Tarjeta cupón aplicado */
.cupon-aplicado-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 10px;
  padding: 12px 14px;
  gap: 10px;
}

.cupon-aplicado-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cupon-check {
  font-size: 22px;
  line-height: 1;
}

.cupon-aplicado-left strong {
  display: block;
  font-size: 15px;
  color: #166534;
  letter-spacing: 0.5px;
}

.cupon-aplicado-left p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #4ade80;
  color: #15803d;
}

.cupon-quitar {
  background: none;
  border: 1.5px solid #86efac;
  color: #16a34a;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.cupon-quitar:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

/* Resumen de totales dentro del form-card */
.resumen-sticky {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resumen-linea {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: bold;
  color: #e60000;
  border-top: 2px solid #eee;
  padding-top: 8px;
  margin-top: 4px;
}

/* --- 14. Perfil --- */

/* Wrapper general */
.perfil-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px 48px;
}

/* Hero */
.perfil-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 16px;
  color: white;
}
.perfil-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e60000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.perfil-hero-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.perfil-hero-info p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

/* Tabs */
.perfil-tabs {
  display: flex;
  gap: 6px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 16px;
}
.perfil-tab {
  flex: 1;
  padding: 10px 6px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.perfil-tab.active {
  background: white;
  color: #e60000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contenido */
.perfil-contenido { min-height: 200px; }
.perfil-loading {
  text-align: center;
  color: #aaa;
  padding: 40px;
  font-size: 14px;
}

/* Tarjetas del perfil */
.pf-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 20px;
  margin-bottom: 14px;
}
.pf-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Campos del form */
.pf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.pf-field label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pf-field input,
.pf-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e5e5;
  border-radius: 9px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  min-width: 0;
}
.pf-field input:focus,
.pf-field select:focus {
  border-color: #e60000;
  outline: none;
  background: white;
}
.pf-field input:disabled {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}
.pf-field small {
  font-size: 11px;
  color: #bbb;
}
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .pf-row { grid-template-columns: 1fr; }
  .pf-btn { width: 100%; text-align: center; }
}

/* Botones del perfil */
.pf-btn {
  display: inline-block;
  background: #e60000;
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.pf-btn:hover { background: #c40000; }
.pf-btn-dark { background: #333; }
.pf-btn-dark:hover { background: #111; }

/* Mensajes */
.pf-mensaje {
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0 4px;
}
.pf-empty {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  padding: 20px 0;
}

/* Direcciones */
.dir-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  gap: 10px;
}
.dir-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}
.dir-icon { font-size: 18px; }
.dir-delete {
  background: none;
  border: 1.5px solid #fca5a5;
  color: #ef4444;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.dir-delete:hover { background: #fee2e2; }

/* Pedidos */
.pedidos-lista { display: flex; flex-direction: column; gap: 10px; }

.pedido-card {
  border: 1.5px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.pedido-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  gap: 10px;
  transition: background 0.15s;
}
.pedido-header:hover { background: #fafafa; }

.pedido-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pedido-num {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}
.pedido-fecha {
  font-size: 12px;
  color: #aaa;
}

.pedido-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pedido-estado-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.pedido-total {
  font-weight: 700;
  font-size: 15px;
  color: #e60000;
}
.pedido-chevron {
  font-size: 12px;
  color: #aaa;
  transition: transform 0.2s;
}

/* Detalle expandible */
.pedido-detalle {
  border-top: 1px solid #f0f0f0;
  padding: 14px 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pedido-resumen {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
}
.pedido-resumen-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  padding: 3px 0;
}
.pedido-resumen-total {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 8px;
}

.pedido-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #555;
}

.pedido-items {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #f0f0f0;
}
.pedido-items-titulo {
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}
.pedido-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
}
.pedido-item:last-child { border-bottom: none; }
.pedido-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  background: #eee;
}
.pedido-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #333;
}
.pedido-item-info small { color: #aaa; font-size: 12px; }
.pedido-item-sub {
  font-weight: 600;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

.pedido-wsp-btn {
  display: block;
  text-align: center;
  background: #25d366;
  color: white;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pedido-wsp-btn:hover { background: #1ebe5d; }

/* Legado (mantener compatibilidad con otras páginas que usen .card) */
.card {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.estado { font-weight: bold; color: #007bff; }
#perfilContenido { padding: 0; }

/* --- 15. Botones y componentes comunes --- */

.btnsave {
  background: #3268c4;
  margin-top: 10px;
  color: white;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}

.btnsave:hover {
  background: #2554a0;
}

.btndelete {
  color: #ffffff;
  background: #ff5d5d;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.btndelete:hover {
  background: #e03030;
}

/* --- 16. Footer --- */

footer {
  background: #e60000;
  color: white;
  text-align: center;
  padding: 16px;
  margin-top: 36px;
  font-size: 14px;
}

/* --- 17. Buscador en vivo (catalog.php) --- */

.live-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 520px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  z-index: 9999;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
}

.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}

.sr-item:last-child {
  border-bottom: none;
}

.sr-item:hover {
  background: #fef2f2;
}

.sr-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f7f7f7;
}

.sr-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.sr-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #222;
}

.sr-price {
  font-size: 13px;
  font-weight: bold;
  color: #e60000;
}

.sr-empty,
.sr-loading {
  padding: 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ================================================
   RESPONSIVE — Tablet (≥ 600px)
   ================================================ */

@media (min-width: 600px) {

  .banner-especial {
    flex: 0 0 55%;
  }

  .producto-one {
    flex: 0 0 35%;
    min-width: 180px;
  }

  .checkout-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .resumen {
    flex: 1 1 55%;
  }

  .checkout-container > form,
  .checkout-grid > form {
    flex: 1 1 45%;
  }

}

/* ================================================
   RESPONSIVE — Desktop (≥ 768px)
   ================================================ */

@media (min-width: 768px) {



  /* Banners en slider más compactos */
  .banner-especial {
    flex: 0 0 40%;
  }

  .banner-especial img {
    height: 220px;
  }

  .producto-one {
    flex: 0 0 18%;
    min-width: 160px;
    margin-top: 10px;
  }

  /* Checkout en dos columnas */
  .checkout-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .resumen {
    flex: 1 1 50%;
  }

  .tittles {
    width: 60%;
    font-size: 18px;
  }

}

/* ================================================
   RESPONSIVE — Desktop grande (≥ 1024px)
   ================================================ */

@media (min-width: 1024px) {

  .banner-especial {
    flex: none;
  }
  .banner-especial img {
    height: 285px;
  }

  .producto-one {
    flex: 0 0 14%;
    min-width: 150px;
  }

  .container-cart {
    width: 320px;
  }

  .checkout-container {
    padding: 0 24px;
  }

  .menu-links a {
    padding: 12px 28px;
    font-size: 15px;
  }

}

/* =========================================
   FAVORITOS + RESEÑAS
   ========================================= */

/* -- Botón corazón en tarjetas de catálogo -- */
.fav-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-size: 17px;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s, background 0.2s;
  z-index: 3;
  line-height: 1;
}
.fav-heart:hover  { color: #e60000; transform: scale(1.12); }
.fav-heart.active { color: #e60000; }

/* Tamaño mayor en la página de producto */
.fav-heart-pd {
  width: 40px;
  height: 40px;
  font-size: 21px;
  top: 12px;
  right: 12px;
}

/* -- Grid de favoritos en perfil -- */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.fav-card {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.fav-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.fav-img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}
.fav-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.fav-info {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fav-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-name:hover { color: #e60000; }
.fav-precio {
  font-size: 15px;
  font-weight: 700;
  color: #e60000;
}
.fav-sin-stock {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 2px 8px;
  width: fit-content;
}

.fav-quitar {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: color 0.15s, background 0.15s;
}
.fav-quitar:hover { color: #e60000; background: #fff; }

/* -- Favoritos: lista compacta en móvil -- */
@media (max-width: 540px) {
  .fav-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fav-card {
    flex-direction: row;
    align-items: center;
    border-radius: 12px;
    padding-right: 40px; /* espacio para el botón ✕ */
  }
  .fav-img-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    aspect-ratio: unset;
    border-radius: 10px;
    margin: 8px 0 8px 8px;
    flex-shrink: 0;
  }
  .fav-info {
    padding: 10px 8px;
    gap: 3px;
  }
  .fav-name {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .fav-precio { font-size: 14px; }
  .fav-quitar {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }
}

/* -- Sección de reseñas en product.php -- */
.reviews-wrap {
  margin-top: 28px;
}

/* Título de sección igual que relacionados */
.reviews-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.reviews-sec-titulo {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.reviews-sec-titulo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: #e60000;
  border-radius: 2px;
}

/* Resumen de puntuación */
.reviews-avg-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.reviews-avg-num {
  font-size: 48px;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
}
.reviews-avg-detail { display: flex; flex-direction: column; gap: 4px; }
.reviews-avg-detail small { font-size: 12px; color: #aaa; }

/* Estrellas */
.stars-display { display: flex; gap: 3px; }
.star { font-size: 18px; color: #e5e7eb; }
.star.filled { color: #f59e0b; }

/* Formulario de reseña */
.review-form-wrap {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.review-form-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
}

/* Selector de estrellas */
.stars-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.stars-picker span {
  font-size: 32px;
  color: #e5e7eb;
  cursor: pointer;
  transition: color 0.12s, transform 0.1s;
  line-height: 1;
  user-select: none;
}
.stars-picker span:hover,
.stars-picker span.active { color: #f59e0b; transform: scale(1.18); }

.rating-label {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 14px;
  min-height: 18px;
  font-weight: 500;
}

.review-textarea {
  width: 100%;
  min-height: 88px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  color: #333;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.review-textarea:focus { border-color: #e60000; background: #fff; }

.review-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 12px;
}
.review-msg { font-size: 13px; margin-right: auto; }

.review-btn {
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.review-btn:hover { background: #c40000; transform: translateY(-1px); }

.review-ya {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
}
.review-ya a { color: #e60000; font-weight: 600; }

/* Lista de reseñas */
.reviews-list {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.reviews-empty {
  text-align: center;
  color: #bbb;
  font-size: 14px;
  padding: 32px 0;
}

/* Tarjeta individual */
.review-card {
  padding: 18px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.review-card:last-child { border-bottom: none; }
.review-card:hover { background: #fafafa; }

.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e60000, #c40000);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.review-card-meta { flex: 1; }
.review-card-nombre {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}
.review-card-fecha {
  font-size: 12px;
  color: #bbb;
}
.review-card-stars {
  display: flex;
  gap: 2px;
}
.review-card-stars .star { font-size: 15px; }

.review-card-comment {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.65;
  padding-left: 50px;
}

/* ================================================
   LOGIN — auth-wrap, auth-card, formularios
   ================================================ */
body.login-page { background: #f5f5f5; }

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 48px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.auth-card-title {
  padding: 24px 24px 0;
  text-align: center;
}
.auth-card-title h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
}
.auth-card-title p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #888;
}
.auth-body { padding: 16px 24px 24px; }
.auth-tabs {
  display: flex;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.18s;
}
.auth-tab.active {
  background: #fff;
  color: #e60000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
}
.auth-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 15px;
  color: #333;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.auth-field input:focus {
  border-color: #e60000;
  background: #fff;
}
.auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-recordar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.auth-recordar input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #e60000;
  cursor: pointer;
}
.auth-forgot {
  font-size: 13px;
  color: #e60000;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  transform: scale(0.92);
  transform-origin: center;
}
.auth-btn {
  width: 100%;
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.auth-btn:hover  { background: #c40000; transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }
.auth-msg {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  margin-top: 14px;
  display: none;
  animation: fadeUp 0.25s ease;
}
.auth-msg.error   { background: #ffe5e5; color: #b30000; border: 1px solid #fca5a5; }
.auth-msg.success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.auth-volver {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}
.auth-volver a {
  color: #e60000;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth-volver a:hover { text-decoration: underline; }

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

/* ================================================
   404 — Página no encontrada
   ================================================ */
.notfound-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 64px;
}
.notfound-box {
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.notfound-num {
  font-size: clamp(90px, 22vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: #e60000;
  letter-spacing: -4px;
  position: relative;
  display: inline-block;
  user-select: none;
  cursor: default;
}
.notfound-num::before,
.notfound-num::after {
  content: "404";
  position: absolute;
  inset: 0;
  opacity: 0.7;
}
.notfound-num::before {
  color: #1a1a2e;
  animation: glitch-a 2.4s infinite;
}
.notfound-num::after {
  color: #f59e0b;
  animation: glitch-b 2.4s infinite;
}
@keyframes glitch-a {
  0%,90%,100% { clip-path: none; transform: none; }
  92%  { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 2px); }
  94%  { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
  96%  { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 3px); }
}
@keyframes glitch-b {
  0%,90%,100% { clip-path: none; transform: none; }
  91%  { clip-path: inset(50% 0 20% 0); transform: translate(4px, -3px); }
  93%  { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 2px); }
  95%  { clip-path: inset(70% 0 5% 0);  transform: translate(2px, -1px); }
}
.notfound-emoji {
  font-size: 48px;
  margin: 8px 0 16px;
  animation: bounce-slow 2s ease-in-out infinite;
  display: block;
}
@keyframes bounce-slow {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.notfound-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 10px;
}
.notfound-msg {
  font-size: 15px;
  color: #888;
  margin: 0 0 28px;
  line-height: 1.6;
}
.notfound-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notfound-btn-main {
  display: block;
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.notfound-btn-main:hover {
  background: #c40000;
  transform: translateY(-2px);
}
.notfound-btn-sec {
  display: flex;
  gap: 10px;
}
.notfound-btn-sec a {
  flex: 1;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #e5e5e5;
  color: #555;
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}
.notfound-btn-sec a:hover { border-color: #e60000; color: #e60000; }
.notfound-btn-sec a.wsp {
  border-color: #86efac;
  color: #16a34a;
  background: #f0fdf4;
}
.notfound-btn-sec a.wsp:hover { background: #dcfce7; border-color: #22c55e; }

/* ================================================
   SEND ORDER — Confirmación de pedido
   ================================================ */
.order-box {
  max-width: 620px;
  margin: 24px auto;
  padding: 0 14px 40px;
}
.order-hero {
  background: linear-gradient(135deg, #1a7a2a, #2da83e);
  color: white;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.order-hero .check-icon { font-size: 52px; margin-bottom: 8px; }
.order-hero h2 { font-size: 22px; margin: 0 0 6px; }
.order-hero p  { font-size: 14px; opacity: 0.9; margin: 0; }
.order-num {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  margin-top: 10px;
  font-weight: bold;
}
.order-armando {
  background: #fffbeb;
  border: 2px dashed #f5a623;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.order-armando .icono {
  font-size: 36px;
  animation: bounce 1.2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.order-armando div p      { margin: 2px 0; font-size: 14px; color: #555; }
.order-armando div strong { color: #b45309; font-size: 15px; }
.order-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 18px;
  margin-bottom: 16px;
}
.order-card h3 {
  font-size: 15px;
  color: #555;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.order-card p  { margin: 6px 0; font-size: 14px; color: #333; }
.order-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-card th {
  background: #f8f8f8;
  color: #666;
  padding: 8px;
  text-align: left;
  font-weight: 600;
}
.order-card td {
  padding: 9px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.order-card tr:last-child td { border-bottom: none; }
.order-totales {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #555;
}
.order-totales .total-final {
  font-size: 18px;
  font-weight: bold;
  color: #e60000;
  border-top: 2px solid #eee;
  padding-top: 8px;
  margin-top: 4px;
}
.transferencia-info {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.transferencia-info strong { color: #92400e; }
.order-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-home {
  flex: 1;
  text-align: center;
  padding: 13px;
  background: #e60000;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-home:hover { background: #c40000; }
.btn-wsp {
  flex: 1;
  text-align: center;
  padding: 13px;
  background: #25d366;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-wsp:hover { background: #1ebe5d; }

/* ================================================
   CONTACT — Página de contacto
   ================================================ */
.contact-box {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
}
.contact-box h2 {
  text-align: center;
  color: #e60000;
  margin-bottom: 25px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  background: #f7f7f7;
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
}
.contact-item:hover { background: #f0f0f0; }
.contact-icon { font-size: 28px; width: 40px; text-align: center; }
.contact-label { font-size: 12px; color: #888; }
.contact-value { font-weight: bold; color: #222; }
.map-box {
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
}
.map-box iframe { width: 100%; height: 280px; border: none; }
.horario-box {
  margin-top: 20px;
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  border-radius: 6px;
  padding: 15px;
  font-size: 14px;
  color: #555;
}
.horario-box h4 { margin: 0 0 8px 0; color: #333; }

