@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* PALETA LIGHT THEME PERFECTA */
  --bg-main: #e2e8f0;       
  --bg-card: #ffffff;       
  --bg-cart: #eef2f6;       
  
  /* COLORES PRINCIPALES DE LA MARCA */
  --accent-red: #ff1c1c;    
  --accent-hover: #d11212;
  --brand-blue: #0f172a;    
  
  /* Color del botón Info */
  --btn-info: #bae6fd;      
  --btn-info-text: #0369a1; 
  
  --green-neon: #10b981;    
  
  /* TEXTOS Y BORDES */
  --text-main: #1e293b;     
  --text-muted: #64748b;    
  --border: #cbd5e1;        
  
  --font-family: 'Inter', sans-serif;
  --header-bg: #ffffff;
}

body.light-mode {
  --bg-main: #e2e8f0; 
  --bg-card: #ffffff;
  --bg-cart: #eef2f6;
  --text-main: #1e293b; 
  --text-muted: #64748b; 
  --border: #cbd5e1;
  --green-neon: #10b981; 
  --green-hover: #059669;
}

body.dark-mode {
  --bg-main: #0a0a0c;
  --bg-card: #121418;
  --bg-cart: #161b22;
  --text-main: #ffffff;
  --text-muted: #8b949e;
  --border: #30363d;
  --header-bg: #121418;
  --btn-info: #1f2937;
  --btn-info-text: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--bg-main); color: var(--text-main); line-height: 1.5; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }

/* ===================== HEADER ===================== */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; padding: 10px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.header-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; flex-wrap: wrap; gap: 15px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 50px; } 
.brand-text-block { display: flex; flex-direction: column; line-height: 1; }
.brand-name-main { font-size: 1.3rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.brand-name-sub { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }

.header-search { display: flex; align-items: center; flex: 1; max-width: 400px; margin: 0 20px; background: #f1f5f9; border-radius: 30px; padding: 0 16px; border: 1px solid #cbd5e1; transition: border 0.2s, background 0.2s; }
.header-search:focus-within { border-color: #94a3b8; background: #ffffff; box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);}
.search-icon { font-size: 0.9rem; margin-right: 8px; color: #64748b;}
.search-bar { width: 100%; padding: 10px 0; border: none; background: transparent; color: #0f172a; font-family: var(--font-family); outline: none; font-size: 0.9rem; }
.search-bar::placeholder { color: #94a3b8; }

.header-right { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }

.main-nav { display: flex; gap: 10px; align-items: center; }
.main-nav a { 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--text-main); 
  background: var(--bg-main); 
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s; 
}
.main-nav a:hover { 
  background: var(--accent-red); 
  color: white; 
  border-color: var(--accent-red);
}

.header-toggles { display: flex; align-items: center; gap: 8px; margin-left: 5px; }
.lang-dropdown { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; color: #0f172a; font-weight: 600; font-size: 0.85rem; cursor: pointer; outline: none; font-family: var(--font-family); transition: 0.2s; }
.lang-dropdown:hover { border-color: #94a3b8; background: #ffffff; }

/* ===================== HERO DE ESQUINA A ESQUINA ===================== */
.hero-edge { 
  width: 100%; 
  background-color: #0f172a; 
  background-image: url('img/banner/promo1.jpg'); 
  background-size: cover; 
  background-position: right bottom; 
  background-repeat: no-repeat;
  min-height: 480px; 
  display: flex;
  align-items: center;
  position: relative;
}

.hero-edge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.2) 60%, rgba(15,23,42,0) 100%);
  z-index: 1;
}

.hero-inner { 
  width: 100%; 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 20px; 
  position: relative;
  z-index: 2; 
}

.hero-content { max-width: 600px; }
.hero-eyebrow { color: #94a3b8; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.hero-edge h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 12px; color: #ffffff; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-sub { color: #f1f5f9; margin-bottom: 25px; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.btn-primary { display: inline-block; background: var(--accent-red); color: white; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, background 0.2s; box-shadow: 0 4px 15px rgba(255, 28, 28, 0.5); border: none;}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); color: white !important; }

.hero-visual { display: none; }

/* ===================== CÓMO FUNCIONA (REDISEÑO CON CONTRASTE) ===================== */
.hw-section { max-width: 1300px; margin: 60px auto; padding: 0 15px; }
.hw-header { text-align: center; margin-bottom: 40px; }
.hw-header h2 { font-size: 2rem; font-weight: 800; color: var(--brand-blue); letter-spacing: -0.5px; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.hw-card { 
  background: #ffffff; 
  border: 1px solid #e2e8f0; 
  border-radius: 20px; 
  padding: 35px 25px; 
  text-align: center; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
  transition: all 0.3s ease;
}
.hw-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.hw-icon { 
  font-size: 2.2rem; 
  margin-bottom: 20px; 
  display: inline-flex; 
  justify-content: center;
  align-items: center;
  background: var(--bg-main); 
  border: 1px solid var(--border); 
  width: 75px; 
  height: 75px; 
  border-radius: 50%; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}
.hw-title { font-weight: 800; color: var(--brand-blue); font-size: 1.15rem; margin-bottom: 10px; }
.hw-text { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; line-height: 1.6; }

/* ===================== BARRA DE FILTRO / ORDEN ===================== */
.catalog-toolbar { max-width: 1300px; margin: 0 auto 25px auto; padding: 0 15px; }
.toolbar-inner { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); padding-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.catalog-label { font-size: 1.1rem; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 0.5px; }
.filters-group { display: flex; gap: 15px; align-items: center; flex-wrap: wrap;} 
.sort-wrapper { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.sort-select { padding: 6px 14px; border-radius: 20px; border: 1px solid #cbd5e1; background: #ffffff !important; color: #0f172a !important; font-family: var(--font-family); outline: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.sort-select option { color: #0f172a; background: #ffffff; }

/* ===================== CATÁLOGO Y TARJETAS ===================== */
main#catalogo { max-width: 1300px; margin: 0 auto 40px auto; padding: 0 15px; }
.category-title { font-size: 1rem; color: var(--brand-blue); margin-bottom: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.product-card { background: var(--bg-card); border: 1px solid #ffffff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative; box-shadow: 0 6px 15px rgba(0,0,0,0.04); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--border); }

/* BOTÓN DE FAVORITOS */
.btn-fav { 
  position: absolute; 
  top: 12px; right: 12px; 
  background: #e2e8f0; 
  color: #64748b; 
  border: 1px solid #94a3b8; 
  border-radius: 50%; 
  width: 34px; height: 34px; 
  display: flex; justify-content: center; align-items: center; 
  cursor: pointer; z-index: 10; transition: 0.2s; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.btn-fav.active { color: var(--accent-red); background: #fff0f0; border-color: var(--accent-red); }
.btn-fav:hover { transform: scale(1.15); color: var(--accent-red); border-color: var(--accent-red); background: #ffffff; }

.btn-filter-favs { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; font-weight: 600; transition: 0.2s; font-family: var(--font-family); display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.btn-filter-favs.active { border-color: var(--accent-red); color: var(--accent-red); background: #fff0f0; }

.product-thumb { width: 100%; height: 140px; object-fit: cover; object-position: center; background-color: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 15px; }
.product-name { font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: var(--brand-blue); line-height: 1.2; }
.product-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--text-main); margin-bottom: 18px; margin-top: auto; }

.card-actions { display: flex; flex-direction: row-reverse; gap: 8px; align-items: center; }

.btn-agregar { 
  flex: 1.4; 
  width: 100%; 
  background: var(--accent-red); 
  color: white; 
  border: none; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: 0.2s; 
  padding: 10px 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 6px; 
}
.btn-agregar:hover:not([disabled]) { background: var(--accent-hover); }

.txt-btn {
  width: 100%; 
  font-size: 0.82rem; 
  line-height: 1.1; 
  text-align: center; 
  display: inline-block;
}

.btn-detalles { 
  flex: 1; 
  background: var(--btn-info); 
  color: var(--btn-info-text); 
  border: 1px solid #7dd3fc; 
  border-radius: 8px; 
  font-weight: 800; 
  cursor: pointer; 
  transition: 0.2s; 
  font-size: 0.88rem; 
  padding: 10px 0; 
  text-align: center;
}
.btn-detalles:hover { background: #7dd3fc; border-color: #38bdf8; color: #0c4a6e; }

/* ===================== NUEVAS CLASES PARA OPTIMIZACIÓN ===================== */
.aviso-entrega { background: #fffbeb; border: 1px solid #fde68a; padding: 12px; border-radius: 8px; margin-top: 15px; }
.aviso-entrega strong { color: #d97706; display: block; margin-bottom: 4px; font-size: 0.85rem; }
.aviso-entrega p { color: #78350f; font-size: 0.8rem; margin: 0; line-height: 1.4; }

.modal-relacionados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modal-relacionados-text { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* ===================== RECOMENDACIONES ===================== */
#recomendaciones { 
  background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('img/banner/fondo.jpg') center/cover no-repeat !important;
  border: none; 
  border-radius: 24px; 
  padding: 30px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
}
#recomendaciones .category-title { color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#recomendaciones p { color: #e2e8f0; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.recom-wrapper { position: relative; display: flex; align-items: center; width: 100%; z-index: 2; }
.recom-carousel { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 10px; scroll-snap-type: x mandatory; scroll-behavior: smooth; width: 100%; scrollbar-width: none; -ms-overflow-style: none; }
.recom-carousel::-webkit-scrollbar { display: none; }
.recom-card { flex: 0 0 240px; scroll-snap-align: start; background: #ffffff !important; border-radius: 16px; border: none; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 25px rgba(0,0,0,0.3); transition: transform 0.2s, box-shadow 0.2s; }
.recom-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.recom-img { width: 100%; height: 280px; object-fit: cover; border-bottom: 1px solid #e2e8f0; }
.recom-info { padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.recom-badge { font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 15px; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.5px;}
.recom-title { font-size: 1rem; font-weight: 800; color: var(--brand-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.recom-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; font-weight: 500;}
.recom-rating { color: #ffaa00; font-weight: 800; display:flex; align-items:center; gap:4px; }
.recom-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #ffffff; color: var(--brand-blue); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.recom-arrow:hover { background: var(--accent-red); color: white; }
.recom-arrow.left { left: -20px; }
.recom-arrow.right { right: -20px; }

/* ===================== FONDO INFERIOR INTEGRADO ===================== */
.bottom-background-wrapper {
  position: relative;
  width: 100%;
  background-color: #0f172a;
  background-image: url('img/banner/fondo.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0; 
  margin-top: 60px;
}

.bottom-background-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4); 
  z-index: 1;
}

.bottom-background-content {
  position: relative;
  z-index: 2; 
}

/* ===================== QUIÉNES SOMOS REDISEÑADO ===================== */
.about-section { margin-bottom: 50px; }
.about-section .section-header { text-align: center; margin-bottom: 40px; padding: 0 15px; }
.about-section h2 { font-size: 2.2rem; color: #ffffff; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.about-section .subtitle { color: #cbd5e1; font-size: 1rem; max-width: 650px; margin: 10px auto 0; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.about-card { background: #ffffff; border: none; padding: 35px 25px; border-radius: 12px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.about-icon { 
  font-size: 2.2rem; 
  margin-bottom: 20px; 
  color: var(--brand-blue); 
  display: inline-flex; 
  justify-content: center;
  align-items: center;
  background: var(--bg-main); 
  border: 1px solid var(--border); 
  width: 75px; 
  height: 75px; 
  border-radius: 50%; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
} 
.about-card h3 { color: var(--brand-blue); font-size: 1.15rem; margin-bottom: 10px; font-weight: 800; }
.about-card p { color: #334155; font-size: 0.95rem; font-weight: 500; line-height: 1.6; margin:0; } 

/* ===================== SECCIÓN DE MÉTODOS DE PAGO ===================== */
.info-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.info-card { background: #ffffff; border: none; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; flex-direction: column; justify-content: center;}
.info-card h3 { margin-bottom: 12px; font-size: 1.1rem; color: var(--brand-blue); font-weight: 800; }
.info-card p { color: #334155; font-size: 0.95rem; font-weight: 500; margin:0; line-height: 1.5; } 
.payment-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;}
.payment-tags span { background: #e2e8f0; border: 1px solid #94a3b8; padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; color: #0f172a; font-weight: 700; } 

/* ===================== FOOTER MINIMALISTA CON LINKS ===================== */
.site-footer { background: #ffffff; border-top: none; padding: 40px 15px 20px 15px; text-align: center;}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-brand { text-align: left; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 4px; color: var(--brand-blue); font-weight: 800;}
.footer-brand span { color: var(--text-main); font-weight: 700;}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin:0; }

.footer-socials { text-align: right; }
.footer-socials h4 { color: var(--brand-blue); margin-bottom: 12px; font-size: 0.95rem; font-weight: 800;}
.social-links { display: flex; gap: 10px; justify-content: flex-end; }
.social-btn { padding: 8px 20px; border-radius: 25px; font-size: 0.85rem; font-weight: 700; border: 1px solid #94a3b8; background: #e2e8f0; color: #0f172a; transition: 0.2s;} 
.social-btn:hover { border-color: var(--brand-blue); background: var(--brand-blue); color: #ffffff; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--text-muted); font-size: 0.8rem; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}
.footer-link { color: var(--text-muted); text-decoration: none; transition: 0.2s; font-weight: 600; }
.footer-link:hover { color: var(--brand-blue); text-decoration: underline; }

/* ===================== BOTONES FLOTANTES ===================== */
.cart-toggle-floating { position: fixed; bottom: 25px; right: 25px; background: #1e293b; border: none; color: #ffffff; padding: 12px 24px; border-radius: 30px; display: flex; align-items: center; gap: 10px; z-index: 1000; cursor: pointer; font-weight: 700; font-size: 0.95rem; box-shadow: 0 6px 20px rgba(0,0,0,0.3); } 
.cart-count-badge { background: var(--green-neon); color: #0f172a; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.75rem; font-weight: 800; }
.cart-floating-total { margin-left: 5px; color: var(--green-neon); font-weight: 800; }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.cart-bump { animation: cartBump 0.3s ease-in-out; }

.whatsapp-float { position: fixed; bottom: 25px; left: 25px; background: #25d366; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3); z-index: 1000; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ===================== SERVICIO DESTACADO EN CARRITO ===================== */
.order-bump-box {
  background: #f0f9ff; 
  border: 2px dashed #7dd3fc; 
  border-radius: 10px; 
  padding: 14px; 
  margin: 15px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

/* =========================================================================
   VENTANAS FLOTANTES (MODAL INFO Y CARRITO) 
   ========================================================================= */
.overlay, .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay { z-index: 2999; }
.overlay.active, .modal-overlay.active { opacity: 1; visibility: visible; }

/* --- CARRITO OFF-CANVAS --- */
.cart-panel { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%; background: var(--bg-cart); border-left: 1px solid var(--border); z-index: 2000; display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.2); }
.cart-panel.active { right: 0; }

.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #ffffff; }
.cart-header h2 { font-size: 1.2rem; color: var(--brand-blue); font-weight: 800; }
.cart-close { background: #ffffff; border: 1px solid var(--border); color: var(--text-main); width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.cart-close:hover { background: #e2e8f0; }
.cart-clear { background: none; border: none; color: var(--danger); font-size: 0.85rem; font-weight: 700; cursor: pointer; text-transform: uppercase; }

/* Contenido del Carrito */
.cart-items { flex: 1; overflow-y: auto; padding: 15px 15px 0 15px; background: var(--bg-cart); }
.cart-item { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; margin-bottom: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.cart-item-name { font-weight: 800; font-size: 0.85rem; color: var(--brand-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right:10px; line-height:1.2;}
.cart-item-meta { font-size: 0.7rem; color: var(--text-muted); line-height: 1.2; }
.cart-item-meta strong { color: var(--text-main); font-weight: 700; }
.cart-item-remove { background: none; border: none; color: var(--danger); font-size: 0.75rem; cursor: pointer; transition: 0.2s; padding:0; }
.cart-item-remove:hover { transform: scale(1.1); }

.qty-box { display: flex; align-items: center; justify-content: space-between; border: 1px solid #64748b; padding: 0px 6px; border-radius: 6px; background-color: #e2e8f0; height: 26px; min-width: 60px; }
.qty-box span { color: #0f172a; font-size: 0.85rem; font-weight: bold; }
.btn-qty { background: none; border: none; color: #0f172a; font-size: 1.1rem; font-weight: 700; cursor: pointer; line-height:1; }
.item-subtotal { font-weight: 800; font-size: 0.9rem; text-align: right; color: var(--brand-blue); min-width: 45px; }

.cart-item-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 1px dashed #cbd5e1; margin-top: 6px; padding-top: 8px; }
.cart-opt-select, .cart-opt-input { background-color: #e2e8f0; border: 1px solid #64748b; color: #0f172a; padding: 2px 6px; border-radius: 6px; font-family: var(--font-family); font-size: 0.7rem; font-weight: 600; outline: none; transition: all 0.2s; height: 26px; width: 100%; cursor: pointer;}
.cart-opt-select option { color: #0f172a; background: #ffffff; }
.cart-opt-input { font-weight: 500; cursor: text; }
.cart-opt-select:focus, .cart-opt-input:focus { border-color: var(--accent-red); background-color: #ffffff; box-shadow: 0 0 0 2px rgba(255, 28, 28, 0.1); }

/* CLASE DE ERROR PARA VALIDACIÓN DE PERFIL VACÍO */
.input-error { border: 2px solid var(--accent-red) !important; background-color: #fee2e2 !important; box-shadow: 0 0 0 2px rgba(255, 28, 28, 0.2); animation: shakeError 0.3s ease-in-out; }
@keyframes shakeError { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-4px);} 75% {transform: translateX(4px);} }

/* Resumen Inferior */
.cart-summary { padding: 12px 15px; border-top: 1px solid var(--border); background: #ffffff; box-shadow: 0 -4px 15px rgba(0,0,0,0.03);}
.tasa-display { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500;}
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 800; font-size: 1rem; color: var(--brand-blue); }

.payment-selector { margin-bottom: 8px; }
.payment-selector label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 500; }
.payment-selector select { width: 100%; background-color: #e2e8f0; color: #0f172a; border: 1px solid #64748b; padding: 6px 10px; border-radius: 6px; outline: none; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s;}
.payment-selector select:focus { border-color: var(--accent-red); background-color: #ffffff; box-shadow: 0 0 0 2px rgba(255, 28, 28, 0.1); }
.payment-selector select option { background-color: #ffffff; color: #0f172a; }

.btn-checkout { width: 100%; background: var(--green-neon); color: white; border: none; padding: 10px; border-radius: 6px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); margin-top: 0 !important;}
.btn-checkout:hover { background: var(--green-hover); transform: translateY(-2px);}

/* --- MODAL INFO CLARO --- */
.info-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%); width: 92%; max-width: 420px; background: #ffffff; border: 1px solid var(--border); border-radius: 20px; z-index: 3000; opacity: 0; visibility: hidden; transition: 0.3s; display: flex; flex-direction: column; max-height: 85vh; color: var(--text-main); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.info-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.modal-header { padding: 20px; border-bottom: 1px solid var(--border); text-align: center; position: relative; background: #f8fafc; border-radius: 20px 20px 0 0;}
.modal-close { position: absolute; top: 15px; right: 15px; background: #ffffff; border: 1px solid var(--border); color: var(--text-main); width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.modal-close:hover { background: #e2e8f0; }
.modal-title { font-size: 1.2rem; font-weight: 800; margin-top: 8px; color: var(--brand-blue); }

.modal-body { padding: 20px; overflow-y: auto; background: #ffffff;}

.modal-body select { background-color: #1e293b !important; border: 1px solid #334155 !important; color: #ffffff !important; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.modal-body select option { background-color: #1e293b; color: #ffffff; }

.modal-body .qty-box { background-color: #e2e8f0 !important; border: 1px solid #94a3b8 !important; height: 34px;}

.modal-relacionados-card { background-color: #f1f5f9 !important; border: 2px solid #cbd5e1 !important; padding: 10px 5px; border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.modal-relacionados-card:hover { background-color: #ffffff !important; border-color: var(--brand-blue) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.1);}

.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; background: #f8fafc; border-radius: 0 0 20px 20px;}

.btn-terms { flex: 1; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-align: center; border: 1px solid #64748b; color: #0f172a; background-color: #e2e8f0; transition: 0.2s;}
.btn-terms:hover { background-color: #cbd5e1; }

.btn-modal-add { 
  flex: 1.5; 
  width: 100%;
  background: var(--accent-red); 
  color: white; 
  border: none; 
  border-radius: 8px; 
  font-weight: 700; 
  cursor: pointer; 
  font-size: 0.95rem; 
  padding: 12px 0; 
  box-shadow: 0 4px 10px rgba(255, 28, 28, 0.3);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
}

/* TOAST NOTIFICACIÓN */
.toast-notification { position: fixed; bottom: 90px; right: 25px; background: var(--green-neon); color: white; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); z-index: 4000; opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.toast-notification.show { opacity: 1; transform: translateY(0); }

/* ===================== REDISEÑO MÓVIL ===================== */
@media (max-width: 768px) {
  .site-header { padding: 12px 0; }
  .header-inner { flex-direction: column; gap: 12px; }
  .brand { width: 100%; justify-content: center; }
  .header-search { width: 100%; margin: 0; }
  
  .main-nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; gap: 10px; -webkit-overflow-scrolling: touch; }
  .main-nav::-webkit-scrollbar { display: none; }
  
  .header-toggles { width: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
  
  .hero-edge { min-height: 350px; }
  .hero-content { padding: 0 15px; text-align: center; margin: 0 auto; }
  .hero-edge h1 { font-size: 1.8rem; }
  
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .filters-group { width: 100%; justify-content: space-between; }
  .sort-wrapper { width: 100%; justify-content: space-between; margin-left: 0 !important; margin-top: 10px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 12px; border-radius: 16px; }
  .product-thumb { height: 100px; margin-bottom: 8px; }
  .product-name { font-size: 0.85rem; margin-bottom: 4px; }
  .product-meta { font-size: 0.75rem; margin-bottom: 8px; }
  .product-price { font-size: 0.95rem; margin-bottom: 10px; }
  
  .card-actions { flex-direction: row; gap: 6px; align-items: center; }
  .btn-detalles { padding: 8px 0; font-size: 0.75rem; border-radius: 6px; width: auto; flex: 1; text-align: center;}
  .btn-agregar { padding: 8px 0; border-radius: 6px; width: 100%; flex: 1.6; gap: 4px;}
  .txt-btn { font-size: 0.75rem; width: 100%; text-align: center; line-height: 1.1; }
  
  .modal-body { padding: 15px; }
  .modal-relacionados-grid { grid-template-columns: 1fr; gap: 8px; }
  .modal-relacionados-card { display: flex; align-items: center; text-align: left; padding: 8px; gap: 12px; }
  .modal-relacionados-card img { width: 50px !important; height: 50px !important; margin-bottom: 0 !important; }

  .cart-item-options { grid-template-columns: 1fr; gap: 8px; }
  .order-bump-box { flex-direction: column; text-align: center; padding: 12px; gap: 8px; }
  .order-bump-box .btn-agregar { width: 100%; justify-content: center;}

  .recom-card { flex: 0 0 160px; }
  .recom-img { height: 220px; }
  .recom-arrow.left { left: 5px; width: 32px; height: 32px; }
  .recom-arrow.right { right: 5px; width: 32px; height: 32px; }
  #recomendaciones { padding: 20px 10px; }

  .bottom-background-wrapper { padding: 50px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-section h2 { font-size: 1.8rem; }
  .info-block { grid-template-columns: 1fr; }
  
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-brand, .footer-socials { text-align: center; width:100%;}
  .social-links { justify-content: center; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}