/*
 * HORNOS DEL NORTE
 * Estética: Panadería artesanal asturiana
 * Sensación: Calidez, horno, mantequilla, tradición
 */

/* ═══════════════════════════════════════════════════════════
   FONTS - Tipografía con carácter
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap');

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Paleta tostada & cálida */
  --cream: #F9F3E8;
  --cream-warm: #F5EBD9;
  --cream-deep: #EDE2CF;
  --toast: #D4B896;
  --toast-dark: #C4A67A;
  --honey: #D4A855;
  --honey-glow: #E8C068;
  --caramel: #8B6914;
  --forest: #2D4A3E;
  --forest-deep: #1E3329;
  --forest-light: #3D5F4F;
  --bark: #4A3728;
  --bark-light: #6B5344;
  
  /* Texto */
  --text: #2C2416;
  --text-soft: #5A4D3A;
  --text-muted: #8A7B65;
  
  /* Superficies */
  --surface: #FFFFFF;
  --surface-warm: rgba(255, 253, 248, 0.92);
  --surface-card: rgba(255, 255, 255, 0.88);
  
  /* Bordes & sombras */
  --border: rgba(139, 105, 20, 0.12);
  --border-strong: rgba(139, 105, 20, 0.22);
  --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 36, 22, 0.08), 0 2px 6px rgba(44, 36, 22, 0.04);
  --shadow-lg: 0 16px 48px rgba(44, 36, 22, 0.12), 0 4px 12px rgba(44, 36, 22, 0.06);
  --shadow-glow: 0 0 0 4px rgba(212, 168, 85, 0.15);
  
  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Layout */
  --container: 1140px;
  --container-tight: 720px;
  
  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Transiciones */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  
  /* Textura papel sutil */
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(212, 168, 85, 0.08), transparent 50%),
    radial-gradient(ellipse 100% 60% at 85% 10%, rgba(45, 74, 62, 0.05), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration-color: var(--honey);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--forest);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.strong { font-weight: 600; }
.right { text-align: right; }

.link {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--duration-fast) var(--ease-out);
}

.link:hover {
  color: var(--forest-deep);
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--tight {
  max-width: var(--container-tight);
}

.main {
  padding-bottom: 60px;
  min-height: 60vh;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 243, 232, 0.85);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--forest);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  transition: color var(--duration-fast) var(--ease-out);
}

.brand__name:hover {
  color: var(--forest);
}

.brand__icon {
  margin-right: 6px;
  font-size: 1.2em;
  vertical-align: middle;
}

.brand__slogan {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(212, 168, 85, 0.1);
}

.nav__link:active {
  transform: scale(0.97);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--forest);
  border-radius: 999px;
  transition: transform var(--duration-fast) var(--ease-bounce);
}

.nav__link:hover .badge {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════ */
.flash {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  animation: slideDown var(--duration-normal) var(--ease-out);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash--success {
  background: rgba(45, 74, 62, 0.08);
  border: 1px solid rgba(45, 74, 62, 0.2);
  color: var(--forest-deep);
}

.flash--error {
  background: rgba(139, 69, 69, 0.08);
  border: 1px solid rgba(139, 69, 69, 0.2);
  color: #6B3030;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 56px 0;
}

.section--alt {
  background:
    linear-gradient(135deg, rgba(45, 74, 62, 0.06) 0%, rgba(45, 74, 62, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%),
    var(--cream-warm);
  border-top: 1px solid rgba(45, 74, 62, 0.15);
  border-bottom: 1px solid rgba(45, 74, 62, 0.15);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest-deep);
}

/* ═══════════════════════════════════════════════════════════
   HERO - Impactante y cálido
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 168, 85, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero__content {
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.12), rgba(45, 74, 62, 0.06));
  border: 1px solid rgba(45, 74, 62, 0.2);
  border-radius: 999px;
}

.kicker::before {
  content: '🌿';
  font-size: 0.9em;
}

.hero__title {
  margin: 20px 0 8px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

.hero__subtitle {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
}

.hero__text {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Card - Lado derecho */
.hero__card {
  position: relative;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.08), rgba(45, 74, 62, 0.04));
  border: 1px solid rgba(45, 74, 62, 0.15);
  border-radius: 999px;
}

.hero__badge::before {
  content: '🌿';
  font-size: 0.9em;
}

.hero__image {
  height: 200px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  
  /* Placeholder evocador - galletas doradas */
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(212, 168, 85, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 55%, rgba(196, 166, 122, 0.4), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 70%, rgba(139, 105, 20, 0.2), transparent 55%),
    linear-gradient(145deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
}

.hero__image::after {
  content: '🍪';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.6;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero__mini {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.hero__mini-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid rgba(45, 74, 62, 0.12);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 74, 62, 0.25);
  border-left-color: var(--forest-light);
}

.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.1), rgba(45, 74, 62, 0.05));
  border: 1px solid rgba(45, 74, 62, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS - Base con presencia
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card--soft {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
}

.card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.empty {
  padding: 32px;
  text-align: center;
}

.empty__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS - Galletas que dan hambre
   ═══════════════════════════════════════════════════════════ */
.product-card {
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.08), transparent);
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--toast);
}

.product-card__media {
  height: 180px;
  position: relative;
  border-bottom: 1px solid var(--border);
  
  /* Placeholder evocador */
  background:
    radial-gradient(ellipse 70% 60% at 40% 45%, rgba(212, 168, 85, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 45% at 65% 50%, rgba(196, 166, 122, 0.3), transparent 55%),
    linear-gradient(160deg, var(--cream-warm) 20%, var(--cream-deep) 80%);
}

.product-card__media::after {
  content: '🍪';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0.5;
  transition: all var(--duration-normal) var(--ease-out);
}

.product-card:hover .product-card__media::after {
  transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
  opacity: 0.7;
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-deep);
}

.product-card__title a {
  text-decoration: none;
  color: var(--text);
  transition: color var(--duration-fast) var(--ease-out);
}

.product-card__title a:hover {
  color: var(--forest);
}

.product-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}

.price--big {
  font-size: 2rem;
}

.product-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS - Con gusto artesanal
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--full {
  width: 100%;
}

.btn--primary {
  color: var(--cream);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  border-color: var(--forest-deep);
  box-shadow: 0 2px 8px rgba(45, 74, 62, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest) 100%);
  box-shadow: 0 4px 12px rgba(45, 74, 62, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface-warm);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--link {
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(45, 74, 62, 0.3);
  text-underline-offset: 3px;
}

.btn--link:hover {
  text-decoration-color: var(--forest);
}

.btn--link:active {
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.field__error {
  color: #8B4545;
  font-weight: 600;
  font-size: 0.88rem;
}

.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.input::placeholder {
  color: var(--text-muted);
}

.input:hover {
  border-color: var(--border-strong);
}

.input:focus {
  border-color: var(--honey);
  box-shadow: var(--shadow-glow);
}

.input--qty {
  max-width: 85px;
  text-align: center;
  font-weight: 600;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A4D3A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.check input {
  margin-top: 4px;
  accent-color: var(--forest);
}

.hr {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 24px 0;
}

/* ═══════════════════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════════════════ */
.cart {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.cart__items {
  padding: 24px;
}

.cart__header,
.cart__row {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.6fr 0.6fr 0.3fr;
  gap: 16px;
  align-items: center;
}

.cart__header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.cart__row {
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
}

.cart__row:last-child {
  border-bottom: 0;
}

.cart__product {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
  
  /* Placeholder */
  background:
    radial-gradient(ellipse at center, rgba(212, 168, 85, 0.35), transparent 70%),
    var(--cream-warm);
}

.cart__thumb::after {
  content: '🍪';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.3rem;
  opacity: 0.5;
}

.cart__name a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}

.cart__name a:hover {
  color: var(--forest);
}

.cart__actions {
  margin-top: 16px;
}

.cart__clear {
  margin-top: 12px;
}

.cart__summary {
  padding: 24px;
  position: sticky;
  top: 100px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.summary__row--total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.hint {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.12), rgba(212, 168, 85, 0.06));
  border: 1px solid rgba(212, 168, 85, 0.2);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════ */
.checkout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.checkout__form {
  padding: 28px;
}

.checkout__summary {
  padding: 24px;
  position: sticky;
  top: 100px;
}

.summary__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.summary__item:last-of-type {
  border-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGE
   ═══════════════════════════════════════════════════════════ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product__media {
  height: 420px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
  
  /* Placeholder más grande */
  background: 
    radial-gradient(ellipse 80% 70% at 35% 40%, rgba(212, 168, 85, 0.4), transparent 65%),
    radial-gradient(ellipse 60% 50% at 70% 55%, rgba(196, 166, 122, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 35% at 45% 75%, rgba(139, 105, 20, 0.15), transparent 50%),
    linear-gradient(150deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
}

.product__media::after {
  content: '🍪';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0.5;
}

.product__content .kicker {
  margin-bottom: 8px;
}

.product__title {
  margin: 12px 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--forest-deep);
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.product__desc {
  margin: 20px 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.product__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product__fineprint {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(45, 74, 62, 0.04);
  border: 1px dashed rgba(45, 74, 62, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   AUTH / ADMIN
   ═══════════════════════════════════════════════════════════ */
.auth {
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.table {
  display: block;
}

.table__head,
.table__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.7fr 0.7fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}

.table__head {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.table__row {
  border-bottom: 1px dashed var(--border);
}

.table__row:last-child {
  border-bottom: 0;
}

.table__row:hover {
  background: rgba(212, 168, 85, 0.04);
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
}

/* ═══════════════════════════════════════════════════════════
   ORDER VIEW
   ═══════════════════════════════════════════════════════════ */
.order-view {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.order-view .card {
  padding: 24px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.kv span {
  display: block;
  font-size: 0.9rem;
}

.kv strong {
  display: block;
  font-weight: 700;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   THANKS PAGE
   ═══════════════════════════════════════════════════════════ */
.thanks {
  padding: 32px;
  text-align: center;
}

.thanks__title {
  margin: 0 0 16px;
  font-size: 2rem;
}

.order-number {
  display: inline-block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest);
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.08), rgba(45, 74, 62, 0.04));
  border: 2px solid rgba(45, 74, 62, 0.2);
  border-radius: var(--radius-lg);
}

.thanks__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}

.thanks__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════
   LEGAL
   ═══════════════════════════════════════════════════════════ */
.legal {
  max-width: var(--container-tight);
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p {
  margin-bottom: 16px;
  color: var(--text-soft);
}

.list {
  padding-left: 24px;
  color: var(--text-soft);
}

.list li {
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER - Con personalidad
   ═══════════════════════════════════════════════════════════ */
.footer {
  margin-top: auto;
  border-top: 3px solid var(--forest);
  background: 
    linear-gradient(180deg, rgba(45, 74, 62, 0.04) 0%, rgba(45, 74, 62, 0.08) 100%),
    var(--cream-warm);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 320px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--forest-deep);
}

.footer__tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__meta {
  font-size: 0.9rem;
}

.footer__meta a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__meta a:hover {
  color: var(--forest-deep);
  text-decoration: underline;
}

.dot {
  margin: 0 10px;
  color: var(--border-strong);
}

.footer__contact {
  text-align: right;
}

.footer__contact a {
  color: var(--forest);
  font-weight: 500;
}

/* Copyright bar */
.footer__copy {
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content,
.hero__card {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.hero__card {
  animation-delay: 100ms;
}

.product-card {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 80ms; }
.product-card:nth-child(3) { animation-delay: 160ms; }
.product-card:nth-child(4) { animation-delay: 240ms; }
.product-card:nth-child(5) { animation-delay: 320ms; }
.product-card:nth-child(6) { animation-delay: 400ms; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero__card {
    max-width: 400px;
  }
  
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product__media {
    height: 320px;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .cart,
  .checkout,
  .order-view {
    grid-template-columns: 1fr;
  }
  
  .cart__summary,
  .checkout__summary {
    position: static;
  }
  
  .thanks__grid {
    grid-template-columns: 1fr;
  }
  
  .kv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 16px;
    --radius-xl: 20px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 32px 0 16px;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .section__title {
    font-size: 1.6rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nav {
    gap: 4px;
  }
  
  .nav__link {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .brand__slogan {
    display: none;
  }
  
  /* Cart responsive */
  .cart__header {
    display: none;
  }
  
  .cart__row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  
  .cart__product {
    grid-column: 1 / -1;
  }
  
  .form__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer__contact {
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
  .header,
  .footer,
  .btn,
  .nav {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
