
/* Redaccion - Editorial Magazine theme: newsprint, ink, highlighter, magazine red */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dc;
  --ink: #14110d;
  --ink-soft: #4a463e;
  --red: #d62828;
  --yellow: #f5d547;
  --line: #14110d;
  --gray-line: #c8c2b4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; font-family: 'Libre Franklin', sans-serif; font-weight: 800; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* Typographic utilities */
.smallcaps {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}
.dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.6rem;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--red);
}

/* Header */
header.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 28px; max-width: 1220px; margin: 0 auto;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.55rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 900;
}
nav.main-nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--red);
  text-decoration: none;
}
.header-tools { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex;
  border: 1.5px solid var(--ink);
}
.lang-switch button {
  background: transparent; border: 0; padding: 5px 11px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 0.72rem;
  color: var(--ink); letter-spacing: 0.14em;
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--paper);
}
.cart-btn {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 14px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.2s;
}
.cart-btn:hover { background: var(--ink); color: var(--yellow); text-decoration: none; }
.cart-count {
  background: var(--red); color: var(--paper);
  padding: 1px 7px;
  font-size: 0.7rem; font-weight: 900;
}

/* Buttons */
.btn {
  display: inline-block; padding: 15px 28px;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; border: 2px solid var(--ink);
  transition: all 0.2s; text-align: center;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover {
  background: var(--red); border-color: var(--red); color: var(--paper);
  text-decoration: none;
}
.btn-outline {
  background: transparent; color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-block { display: block; width: 100%; }

/* Magazine rule ornament */
.rule {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0; margin: 0;
}
.rule span { flex: 1; text-align: center; }
.rule::before, .rule::after { content: "◆"; color: var(--red); font-size: 0.55rem; }

/* Hero - magazine cover style */
.hero {
  padding: 60px 0 0;
  border-bottom: 3px double var(--ink);
}
.hero-masthead {
  text-align: center;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 40px;
}
.hero-masthead .smallcaps {
  color: var(--red); margin-bottom: 14px; display: block;
}
.hero-masthead h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-masthead .lede {
  max-width: 720px; margin: 0 auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 60px;
}
.hero-body .content p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.75;
}
.hero-body .content .lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 4px solid var(--red);
  padding-left: 20px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-image {
  position: relative;
  padding: 16px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
}
.hero-image::before {
  content: "FIG. 01";
  position: absolute;
  top: 6px; right: 10px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--ink);
  background: var(--yellow);
  padding: 3px 8px;
  z-index: 2;
}
.hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* Badges strip - magazine ticker */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.badge {
  padding: 22px 18px;
  text-align: center;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-right: 1px solid var(--gray-line);
  color: var(--ink);
}
.badge:last-child { border-right: 0; }
.badge::before {
  content: "●";
  color: var(--red);
  margin-right: 8px;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* Sections */
section { padding: 80px 0; }
.section-header {
  border-bottom: 3px double var(--ink);
  padding-bottom: 16px;
  margin-bottom: 46px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-header .smallcaps { color: var(--red); }
.section-sub {
  color: var(--ink-soft);
  max-width: 620px;
  font-size: 1rem;
  margin-bottom: 46px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* Cards - magazine columns */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}
.card {
  padding: 32px 26px 32px 0;
  border-right: 1px solid var(--gray-line);
  padding-left: 26px;
  position: relative;
}
.card:first-child { padding-left: 0; }
.card:last-child { border-right: 0; padding-right: 0; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.card h3::before {
  content: "◆";
  color: var(--red);
  font-size: 0.55rem;
  margin-right: 8px;
  vertical-align: middle;
}
.card p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.product-card {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-bottom: 1.5px solid var(--ink);
}
.product-card .pc-body {
  padding: 22px 22px 26px;
  flex: 1; display: flex; flex-direction: column;
}
.product-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.product-card .price {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1.3rem; font-weight: 900;
  color: var(--red);
  margin: 12px 0 20px;
  letter-spacing: 0.02em;
}

/* Product detail */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.product-detail img {
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: 20px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.pd-price {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--red);
  margin: 14px 0 26px;
}
.pd-block {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.pd-block h3 {
  margin-bottom: 14px;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 12px;
  display: inline-block;
}
.pd-block ul { padding-left: 22px; color: var(--ink-soft); }
.pd-block li { margin-bottom: 8px; }
.pd-block p { color: var(--ink-soft); line-height: 1.75; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; margin-bottom: 8px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
input, textarea, select {
  width: 100%; padding: 12px 0;
  border: 0; border-bottom: 2px solid var(--ink);
  background: transparent;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--red);
}
textarea { resize: vertical; min-height: 110px; }

/* Cart */
.cart-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 26px;
  align-items: center; padding: 26px 0;
  border-bottom: 1px solid var(--ink);
}
.cart-item img {
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: 8px;
}
.cart-item h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.qty {
  display: inline-flex; align-items: center; gap: 0;
  margin-top: 12px;
  border: 1.5px solid var(--ink);
}
.qty button {
  width: 32px; height: 32px; border: 0;
  background: transparent; cursor: pointer;
  font-size: 1rem; font-weight: 900;
  color: var(--ink);
  transition: all 0.2s;
}
.qty button:hover { background: var(--yellow); }
.qty span {
  padding: 0 14px;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
}
.cart-total {
  text-align: right; margin-top: 36px; padding-top: 26px;
  border-top: 3px double var(--ink);
}
.cart-total .sum {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--red);
  letter-spacing: -0.02em;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 26px 0;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 22px;
  transition: color 0.2s;
  letter-spacing: -0.005em;
}
.faq-q::before {
  content: "Q.";
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 900;
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding-top: 4px;
}
.faq-q span { flex: 1; }
.faq-q::after {
  content: "＋";
  font-family: 'Libre Franklin', sans-serif;
  color: var(--red);
  font-weight: 400;
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-q:hover { color: var(--red); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-soft);
  padding-left: 34px;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 26px; }
.faq-a p { line-height: 1.75; }

/* Legal */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 {
  margin: 42px 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.legal h2:first-of-type { margin-top: 22px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.75; }
.legal ol, .legal ul { padding-left: 22px; }

/* Reviews - pull quote style */
.review {
  padding: 32px 28px;
  background: var(--paper-2);
  border-left: 6px solid var(--red);
  position: relative;
}
.review .stars {
  color: var(--red);
  letter-spacing: 3px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.review p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 20px;
}
.review .who {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-soft);
}
.review .who::before { content: "— "; color: var(--red); }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0 30px;
  margin-top: 60px;
  border-top: 6px solid var(--red);
}
footer.site-footer h4 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
footer.site-footer a {
  color: var(--paper); font-size: 0.9rem;
  line-height: 2.1; opacity: 0.85;
}
footer.site-footer a:hover { color: var(--yellow); opacity: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 46px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 2px; }
.footer-brand .brand {
  color: var(--paper); margin-bottom: 16px;
}
.footer-brand .brand-mark {
  background: var(--yellow); color: var(--ink);
}
.footer-brand p {
  color: var(--paper); opacity: 0.7;
  font-size: 0.9rem; margin-bottom: 18px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
.certs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cert {
  padding: 5px 12px;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-bottom {
  border-top: 1px solid rgba(244, 241, 234, 0.2);
  margin-top: 46px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  color: var(--paper);
  opacity: 0.65; letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Thx */
.thx-wrap { text-align: center; padding: 120px 0; }
.thx-icon {
  width: 100px; height: 100px;
  background: var(--red);
  color: var(--paper);
  display: grid; place-items: center;
  margin: 0 auto 30px;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.6rem;
}

/* Banners */
.info-banner {
  padding: 18px 24px;
  margin: 26px 0;
  background: var(--yellow);
  border-left: 6px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-body, .product-detail, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  section { padding: 60px 0; }
  .hero-masthead h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .cards { grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
  .card {
    border-right: 0;
    border-bottom: 1px solid var(--gray-line);
    padding: 26px 0;
  }
  .card:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .ci-total { grid-column: 2; text-align: left; }
  .container { padding: 0 20px; }
}
