/* ===== Línea gráfica Valentina Esteban H — Tienda de infoproductos ===== */
@font-face {
  font-family: 'Blank Script';
  src: url('../Blank Script.otf') format('opentype');
  font-display: swap;
}

:root {
  --white: white;
  --bg-pale: #F2EDF9;
  --dark-green: #5B3694;
  --bg-light: #C8B0E8;
  --light-green: #9E72D4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--dark-green);
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.shop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5em 2.5em;
  background: var(--bg-light);
  flex-wrap: wrap;
  gap: 1em;
}
.shop-nav-logo {
  font-family: 'Blank Script', cursive;
  font-size: 2em;
  color: var(--dark-green);
}
.shop-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5em;
  flex-wrap: wrap;
}
.shop-nav-links a {
  font-size: 0.92em;
  font-weight: 600;
  color: var(--dark-green);
  padding: 0.4em 0.9em;
  border-radius: 2em;
  background: rgba(91,54,148,0.12);
  transition: background 0.2s;
}
.shop-nav-links a:hover { background: rgba(91,54,148,0.22); }
.shop-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--dark-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9em;
  padding: 0.6em 1.2em;
  border-radius: 2em;
}
.shop-nav-cart-count {
  background: var(--light-green);
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Header de sección ---- */
.shop-header {
  padding: 4em 1.5em 2.5em;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.shop-eyebrow {
  display: inline-block;
  font-family: 'Blank Script', cursive;
  font-size: 2.2em;
  color: var(--light-green);
  margin-bottom: 0.1em;
}
.shop-title {
  font-size: 3em;
  font-weight: 900;
  color: var(--dark-green);
  letter-spacing: -0.02em;
  margin: 0 0 0.3em;
  line-height: 1.05;
}
.shop-title em { font-style: italic; color: var(--light-green); }
.shop-subtitle {
  font-size: 1.05em;
  opacity: 0.7;
  max-width: 38em;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Grid de catálogo ---- */
.shop-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5em 5em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75em;
}
.shop-card {
  background: #fff;
  border: 1.5px solid #E3D6F5;
  border-radius: 1.5em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(91,54,148,0.06);
}
.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(91,54,148,0.16);
}
.shop-card-media {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card.is-grad-1 .shop-card-media { background: linear-gradient(150deg, #F2EDF9 0%, #E3D6F5 100%); }
.shop-card.is-grad-2 .shop-card-media { background: linear-gradient(150deg, #FBF8FF 0%, #E9DFF7 100%); }
.shop-card.is-grad-3 .shop-card-media { background: linear-gradient(150deg, #F2EDF9 0%, #D8C4EE 100%); }
.shop-card.is-grad-4 .shop-card-media { background: linear-gradient(150deg, #FBF8FF 0%, #DCC9F0 100%); }
.shop-card-body {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  flex: 1;
}
.shop-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(158,114,212,0.12);
  color: var(--light-green);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 2em;
}
.shop-card-title {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--dark-green);
  margin: 0;
  line-height: 1.3;
}
.shop-card-desc {
  font-size: 0.88em;
  opacity: 0.68;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4em;
}
.shop-price {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--dark-green);
}
.shop-btn {
  display: inline-block;
  background: var(--light-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  padding: 0.65em 1.3em;
  border-radius: 2em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.shop-btn:hover { background: #7d56b0; }
.shop-btn.is-outline {
  background: transparent;
  color: var(--light-green);
  border: 2px solid var(--light-green);
}
.shop-btn.is-outline:hover { background: var(--light-green); color: #fff; }
.shop-btn.is-block { display: block; width: 100%; text-align: center; }
.shop-btn.is-big { font-size: 1em; padding: 0.9em 1.6em; }

/* ---- Página de producto ---- */
.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 1.5em 5em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: start;
}
.product-media {
  height: 420px;
  border-radius: 1.75em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6em;
  position: sticky;
  top: 2em;
}
.product-info { display: flex; flex-direction: column; gap: 1em; }
.product-title {
  font-size: 2em;
  font-weight: 900;
  color: var(--dark-green);
  margin: 0;
  line-height: 1.15;
}
.product-format {
  font-size: 0.85em;
  opacity: 0.6;
  font-weight: 600;
}
.product-desc {
  font-size: 0.98em;
  line-height: 1.7;
  opacity: 0.78;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}
.product-price { font-size: 2em; font-weight: 900; color: var(--dark-green); }
.product-actions { display: flex; gap: 0.8em; flex-wrap: wrap; margin-top: 0.5em; }
.product-guarantee {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85em;
  opacity: 0.65;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 1.5em 0;
  font-size: 0.85em;
  opacity: 0.6;
}
.breadcrumb a { color: var(--light-green); }

/* ---- Carrito ---- */
.cart-page { max-width: 900px; margin: 0 auto; padding: 3em 1.5em 5em; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.2em 0;
  border-bottom: 1px solid #eee;
}
.cart-item-media {
  width: 72px;
  height: 72px;
  border-radius: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-green);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; color: var(--dark-green); font-size: 0.98em; margin: 0 0 0.2em; }
.cart-item-price { font-size: 0.85em; opacity: 0.6; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--bg-pale);
  border-radius: 2em;
  padding: 0.3em 0.6em;
}
.cart-item-qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--dark-green);
  font-weight: 700;
  cursor: pointer;
}
.cart-item-remove {
  color: #c0392b;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}
.cart-summary {
  background: var(--bg-pale);
  border-radius: 1.5em;
  padding: 1.8em;
  margin-top: 2em;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  margin-bottom: 0.6em;
}
.cart-summary-total {
  font-size: 1.3em;
  font-weight: 900;
  color: var(--dark-green);
  display: flex;
  justify-content: space-between;
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(91,54,148,0.15);
}
.cart-empty {
  text-align: center;
  padding: 4em 1em;
  opacity: 0.6;
}

/* ---- Checkout ---- */
.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 1.5em 5em;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3em;
  align-items: start;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.checkout-form label {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 0.3em;
  display: block;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid #E3D6F5;
  border-radius: 0.9em;
  font-size: 0.95em;
  font-family: inherit;
}
.checkout-form input:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--light-green); }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.checkout-summary {
  background: var(--bg-pale);
  border-radius: 1.5em;
  padding: 1.8em;
  position: sticky;
  top: 2em;
}
.checkout-summary h3 { margin-top: 0; color: var(--dark-green); }
.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  margin-bottom: 0.5em;
  opacity: 0.85;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25em;
  font-weight: 900;
  color: var(--dark-green);
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(91,54,148,0.15);
}
.checkout-pay-btn {
  width: 100%;
  margin-top: 1.2em;
  background: var(--dark-green);
  color: #fff;
  font-weight: 800;
  font-size: 1em;
  padding: 1em;
  border-radius: 2em;
  border: none;
  cursor: pointer;
}
.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  text-align: center;
  font-size: 0.78em;
  opacity: 0.6;
  margin-top: 0.8em;
}
.checkout-secure svg { flex-shrink: 0; }

/* ---- Footer ---- */
.shop-footer {
  background: var(--dark-green);
  color: #fff;
  padding: 3em 1.5em 2em;
  text-align: center;
}
.shop-footer-signature {
  font-family: 'Blank Script', cursive;
  font-size: 2.4em;
  padding-left: 0.15em;
}
.shop-footer-copy { font-size: 0.8em; opacity: 0.6; margin-top: 0.8em; }

@media (max-width: 800px) {
  .product-page, .checkout-page { grid-template-columns: 1fr; }
  .checkout-row { grid-template-columns: 1fr; }
  .shop-title { font-size: 2.1em; }
}
