/*
Theme Name: Vitrina WordCamp
Theme URI: https://aynatcortez.com
Author: Aynat Cortez
Author URI: https://aynatcortez.com
Description: Theme demostrativo para la charla "No todo lo que vende necesita WooCommerce".
Version: 1.1.0
Text Domain: vitrina-wordcamp
*/

:root {
  --ink: #17231d;
  --muted: #5e6c64;
  --paper: #f6f4ee;
  --white: #fff;
  --lime: #d8ff62;
  --green: #1d5f42;
  --orange: #ff7a45;
  --line: rgba(23, 35, 29, 0.14);
  --shadow: 0 24px 60px rgba(23, 35, 29, 0.12);
  --radius: 24px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  font-size: 13px;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 35, 29, .18); }
.button--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }

.hero { padding: 86px 0 70px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1, .page-title {
  max-width: 840px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.hero__copy { max-width: 640px; margin: 28px 0 34px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual {
  position: relative;
  min-height: 510px;
  padding: 28px;
  display: grid;
  align-content: end;
  border-radius: 40px;
  background: var(--green);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero__visual::before,
.hero__visual::after { content: ""; position: absolute; z-index: -1; border-radius: 999px; }
.hero__visual::before { width: 300px; height: 300px; top: -56px; right: -54px; background: var(--lime); }
.hero__visual::after { width: 180px; height: 180px; left: -58px; bottom: 82px; background: var(--orange); }
.demo-card { padding: 26px; border: 1px solid rgba(255,255,255,.35); border-radius: 28px; background: rgba(255,255,255,.94); transform: rotate(-3deg); }
.demo-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.demo-card__tag { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.demo-card h2 { max-width: 280px; margin: 18px 0 8px; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.demo-card p { margin: 0; color: var(--muted); }
.demo-price { padding: 8px 12px; border-radius: 999px; background: var(--lime); font-weight: 900; }

.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 38px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); }
.section--dark .section-heading p { color: rgba(255,255,255,.66); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-grid--spaced { margin-top: 48px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-card__media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e9ebd4, #f7d5c6); }
.product-card:nth-child(3n+2) .product-card__media { background: linear-gradient(135deg, #d7e7dd, #dae5ff); }
.product-card:nth-child(3n+3) .product-card__media { background: linear-gradient(135deg, #fff0ba, #e6d7f6); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__placeholder { font-size: 58px; }
.product-card__body { padding: 22px; }
.product-card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.product-card h3 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.product-card__price { white-space: nowrap; color: var(--green); font-weight: 900; }
.product-card p { margin: 14px 0 20px; color: var(--muted); }
.text-link { color: var(--green); font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { min-height: 260px; padding: 28px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 42px; color: var(--lime); font-size: 13px; font-weight: 900; }
.step h3 { margin: 0 0 12px; font-size: 26px; }
.step p { margin: 0; color: rgba(255,255,255,.66); }

.cta { padding: 76px 0; }
.cta__box { padding: clamp(32px, 7vw, 76px); border-radius: 36px; background: var(--lime); text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto 18px; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.cta p { max-width: 610px; margin: 0 auto 28px; color: #3f4c44; font-size: 19px; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }

.page-shell { padding: 80px 0; min-height: 70vh; }
.entry { max-width: 760px; }
.entry-content { font-size: 18px; }
.single-product { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.single-product__media { overflow: hidden; min-height: 460px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(135deg, #e9ebd4, #f7d5c6); }
.single-product__media img { width: 100%; height: 100%; object-fit: cover; }
.single-product__details h1 { margin: 10px 0 16px; font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.single-product__price { margin: 0 0 18px; color: var(--green); font-size: 28px; font-weight: 900; }
.single-product__summary { color: var(--muted); font-size: 20px; }

.empty-state { padding: 48px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid, .single-product { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
  .product-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  .site-header__inner { min-height: 68px; }
  .site-nav a:not(.button) { display: none; }
  .site-nav .button { min-height: 40px; padding-inline: 14px; font-size: 13px; }
  .hero { padding-top: 56px; }
  .hero__grid { gap: 38px; }
  .hero__visual { min-height: 350px; padding: 20px; border-radius: 28px; }
  .hero__visual::before { width: 190px; height: 190px; }
  .hero__visual::after { width: 120px; height: 120px; }
  .demo-card h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .step { min-height: 220px; }
  .site-footer__inner { display: block; }
}
