/* ===== SHOPREADY · MAIN CSS ===== */
:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --accent: #e8430a;
  --accent2: #1a1a2e;
  --gray: #6b6b6b;
  --light: #f2f0eb;
  --border: #e0ddd6;
  --transbank: #003087;
  --mp: #009ee3;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.btn-nav {
  display: flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--white);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--accent); transform: scale(1.03); }
.cart-badge {
  background: var(--accent); color: white;
  border-radius: 100px; padding: 1px 7px;
  font-size: 0.75rem; font-weight: 700;
  min-width: 20px; text-align: center;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 80vh;
  display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 2rem;
  gap: 3rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, #fff0eb 0%, transparent 70%);
}
.hero-content { flex: 1; min-width: 0; }
.hero-tag {
  display: inline-block;
  background: var(--light); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 1.2rem; color: var(--gray);
}

/* h1 base — el nombre se adapta en 3 tiers según longitud */
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* "Bienvenido a" — siempre fijo */
.hero-prefix {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

/* Nombre de la tienda — 3 tamaños según longitud del texto */
.hero-storename {
  display: block;
  font-style: normal;
  color: var(--accent);
}
/* Nombre corto (≤10 chars) */
.hero-storename.name-short  { font-size: clamp(3.2rem, 7vw, 5.2rem); }
/* Nombre medio (11–18 chars) */
.hero-storename.name-medium { font-size: clamp(2.2rem, 5vw, 3.8rem); }
/* Nombre largo (>18 chars) */
.hero-storename.name-long   { font-size: clamp(1.4rem, 3.5vw, 2.6rem); line-height: 1.15; }

.hero-content p { font-size: 1rem; color: var(--gray); max-width: 420px; margin-bottom: 2rem; }
.btn-hero {
  display: inline-block;
  background: var(--black); color: var(--white);
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero:hover { background: var(--accent); transform: translateY(-2px); }

.hero-visual { flex-shrink: 0; }
.hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  position: relative;
}
.hero-card-tag {
  position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: white;
  padding: 4px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
}
.hero-card-img { font-size: 4rem; text-align: center; padding: 1rem 0; }
.hero-card-info { display: flex; justify-content: space-between; align-items: center; }
.hero-card-info span { font-size: 0.85rem; color: var(--gray); }
.hero-card-info strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }

/* ===== CATALOGO ===== */
.catalogo {
  background: var(--light);
  padding: 5rem 2rem;
}
.section-header { max-width: 1200px; margin: 0 auto 3rem; }
.section-header h2 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.4rem;
}
.section-header p { color: var(--gray); }

.products-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }

.product-img {
  background: var(--light);
  font-size: 3.5rem;
  text-align: center;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.product-info { padding: 1.25rem; }
.product-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.product-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-footer strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.btn-add {
  background: var(--black); color: white;
  border: none; padding: 8px 16px;
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-add:hover { background: var(--accent); }

.empty-msg { color: var(--gray); font-size: 1rem; }
.empty-msg a { color: var(--accent); font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--accent2); color: white; padding: 3rem 2rem 1rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-pay span { font-size: 0.8rem; color: rgba(255,255,255,0.5); display: block; margin-bottom: 0.5rem; }
.pay-logos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-chip {
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
}
.pay-chip.transbank { background: var(--transbank); color: white; }
.pay-chip.mercadopago { background: var(--mp); color: white; }
.footer-bottom { max-width: 1200px; margin: 1rem auto 0; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ===== FORMS & BUTTONS COMPARTIDOS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
  background: white; transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
}
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--accent); color: white; border: none;
  border-radius: 100px; font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #c93808; transform: translateY(-1px); }
.btn-secondary {
  width: 100%; padding: 13px;
  background: transparent; color: var(--black);
  border: 1.5px solid var(--border); border-radius: 100px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; margin-top: 0.75rem;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--black); }

/* ===== NOTIFICACIÓN TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--black); color: white;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s; z-index: 999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; min-height: auto; padding: 3rem 1.5rem; gap: 2rem; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-nav) { display: none; }
}

/* ===== SECCIÓN NOSOTROS ===== */
.nosotros-section { padding: 5rem 2rem; background: var(--white); }
.nosotros-inner { max-width: 1200px; margin: 0 auto; }
.nos-header { margin-bottom: 3rem; }
.nos-header h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.nos-header p { color: var(--gray); }
.nos-body { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.nos-img-wrap { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.nos-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nos-text { display: flex; flex-direction: column; gap: 1.5rem; }
.nos-desc { font-size: 1.05rem; color: #3a3a3a; line-height: 1.75; }
.nos-mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nos-mv-card { background: var(--light); border-radius: var(--radius-lg); padding: 1.5rem; }
.nos-mv-label { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; color: var(--black); }
.nos-mv-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.65; }

@media (max-width: 860px) {
  .nos-body { grid-template-columns: 1fr; }
  .nos-img-wrap { max-width: 100%; }
  .nos-mv-grid { grid-template-columns: 1fr; }
}
