/* ============================================================
   COMPONENTS.CSS — Tarjetas, Calculadora, CTA y UI
   AirFryer Nutrición Premium © 2024
   ============================================================ */

/* ============================================================
   BOTONES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast),
    border-color var(--t-fast);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: var(--bg-deep);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-green-light), var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-outline:hover {
  background: var(--accent-green-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

/* ============================================================
   HERO TEXT
   ============================================================ */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-green);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-green-glow);
  margin-bottom: var(--space-8);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--accent-gold);
  display: inline;
}

.hero__title span {
  color: var(--accent-green);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto var(--space-10);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-subtle);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

/* ============================================================
   HERO EMAIL FORM — .hero__email-form
   ============================================================ */

/* ============================================================
   HERO CTA BUTTONS
   ============================================================ */

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-8) auto 0;
  max-width: 520px;
}

.btn-outline--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
}

/* ============================================================
   HERO EMAIL FORM — .hero__email-form
   ============================================================ */

.hero__email-form {
  display: flex;
  gap: var(--space-2);
  max-width: 520px;
  margin: var(--space-8) auto 0;
}

.hero__email-input {
  flex: 1;
  min-width: 0;
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  backdrop-filter: blur(12px);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.hero__email-input::placeholder { color: rgba(255, 255, 255, .35); }

.hero__email-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
  outline: none;
}

.hero__email-btn {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-7);
  background: var(--accent-green);
  color: var(--bg-deep);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 0 24px rgba(16, 185, 129, .55), 0 4px 14px rgba(16, 185, 129, .3);
}

.hero__email-btn:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(16, 185, 129, .7), 0 8px 24px rgba(16, 185, 129, .45);
}

/* ============================================================
   FORMULARIO DE EMAIL — HERO (legacy .email-form)
   ============================================================ */

.email-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.email-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  background: var(--surface-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-base);
  backdrop-filter: blur(8px);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

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

.email-form__input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}

.email-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-3);
}

/* ============================================================
   TARJETA DE RECETA — CATÁLOGO
   ============================================================ */

.recipe-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base);
  box-shadow: var(--shadow-card);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-green);
}

.recipe-card__image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recipe-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.12),
    rgba(245, 158, 11, 0.08),
    rgba(16, 185, 129, 0.06)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.5;
  transition: transform var(--t-slow), opacity var(--t-slow);
}

.recipe-card:hover .recipe-card__image-placeholder {
  transform: scale(1.08);
  opacity: 0.65;
}

.recipe-card__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid;
  backdrop-filter: blur(8px);
}

.recipe-card__tag--protein {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.recipe-card__tag--snack {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.recipe-card__tag--dessert {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.3);
}

.recipe-card__time {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: rgba(13, 15, 14, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  backdrop-filter: blur(8px);
}

.recipe-card__body {
  padding: var(--space-6) var(--space-6) var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.recipe-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  flex: 1;
}

.recipe-card__macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

.recipe-card__macro {
  text-align: center;
}

.recipe-card__macro-value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 2px;
}

.recipe-card__macro-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.recipe-card__cta {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: var(--bg-deep);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
  letter-spacing: 0.03em;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.recipe-card__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   CALCULADORA NUTRICIONAL
   ============================================================ */

.calculator-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.calculator-header {
  padding: var(--space-8) var(--space-10);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(245, 158, 11, 0.05));
  border-bottom: 1px solid var(--border-subtle);
}

.calculator-header__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.calculator-header__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.calculator-formula {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-green);
  opacity: 0.7;
  margin-top: var(--space-2);
}

.calculator-form {
  padding: var(--space-8) var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-6);
}

.calc-group,
.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.calc-group--full {
  grid-column: 1 / -1;
}

.calc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.calc-input,
.calc-select {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.calc-input:focus,
.calc-select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
  background: var(--bg-surface);
}

.calc-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2310b981' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.calc-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.calc-radio-group {
  display: flex;
  gap: var(--space-3);
}

.calc-radio {
  flex: 1;
  position: relative;
}

.calc-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
}

.calc-radio input[type="radio"]:checked + label {
  background: var(--accent-green-glow);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.calc-submit-row {
  padding: 0 var(--space-10) var(--space-8);
}

.calc-submit {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: var(--bg-deep);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.calc-submit:hover {
  background: linear-gradient(135deg, var(--accent-green-light), var(--accent-green));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.5);
}

.calc-submit:active { transform: translateY(0); }

/* RESULTADOS */
.calc-results {
  display: none;
  padding: var(--space-8) var(--space-10) var(--space-10);
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03), transparent);
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

.calc-results.visible { display: block; }

.calc-results__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  text-align: center;
}

.calc-results__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.calc-result-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.calc-result-box--highlight {
  background: var(--accent-green-glow);
  border-color: var(--border-accent);
}

.calc-result-box--gold {
  background: var(--accent-gold-glow);
  border-color: var(--border-gold);
}

.calc-result-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.calc-result-box--gold .calc-result-value {
  color: var(--accent-gold);
}

.calc-result-unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* MACROS */
.calc-macros-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  text-align: center;
}

.calc-macros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.macro-bar-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.macro-bar-item__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.macro-bar-item__grams {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.macro-bar-item__grams span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
}

.macro-bar-item__track {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.macro-bar-item__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}

.macro-bar-item--protein .macro-bar-item__fill { background: var(--accent-green); }
.macro-bar-item--carbs   .macro-bar-item__fill { background: var(--accent-gold); }
.macro-bar-item--fat     .macro-bar-item__fill { background: #60a5fa; }

/* ============================================================
   BANNERS DE AFILIADO (POST-CÁLCULO)
   ============================================================ */

.affiliate-banners {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.affiliate-banners__header {
  text-align: center;
  margin-bottom: var(--space-2);
}

.affiliate-banners__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.affiliate-banners__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.affiliate-disclaimer-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-3);
  font-style: italic;
  opacity: 0.75;
}

.affiliate-banners.visible { display: flex; }

.affiliate-banner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
}

.affiliate-banner:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.affiliate-banner__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}

.affiliate-banner__content { flex: 1; min-width: 0; }

.affiliate-banner__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: var(--space-1);
}

.affiliate-banner__name {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.affiliate-banner__why {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.affiliate-banner__action {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  background: #FF9900;
  color: #111111;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-xs);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 2px 10px rgba(255, 153, 0, .35);
}

.affiliate-banner:hover .affiliate-banner__action {
  background: #e68a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 153, 0, .5);
}

/* ============================================================
   RECIPE PAGE — COMPONENTES EDITORIALES
   ============================================================ */

.recipe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-green);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  margin-bottom: var(--space-5);
}

.recipe-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-6xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.recipe-hero__title em {
  font-style: italic;
  color: var(--accent-gold);
}

.recipe-hero__desc {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: var(--space-8);
}

/* MACRO STATS BARRA SUPERIOR */
.recipe-macro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.recipe-macro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  padding: var(--space-3) var(--space-5);
  background: rgba(13, 15, 14, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.recipe-macro-stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.recipe-macro-stat--gold .recipe-macro-stat__value {
  color: var(--accent-gold);
}

.recipe-macro-stat__key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

/* SECCIÓN DE INGREDIENTES */
.ingredient-section {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.ingredient-section__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ingredient-list { display: flex; flex-direction: column; gap: var(--space-3); }

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding-left var(--t-fast);
}

.ingredient-item:last-child { border-bottom: none; }
.ingredient-item:hover { padding-left: var(--space-2); }

.ingredient-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-green);
}

.ingredient-item__amount {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-green);
  min-width: 80px;
  flex-shrink: 0;
}

.ingredient-item__name {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.5;
}

.ingredient-item__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* PASOS DE PREPARACIÓN */
.steps-section {
  margin-bottom: var(--space-10);
}

.steps-section__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  letter-spacing: -0.02em;
}

.step-item {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -24px;
  width: 1px;
  background: linear-gradient(var(--border-accent), transparent);
}

.step-item__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-green-glow);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.02em;
  box-shadow: 0 0 20px var(--accent-green-glow);
  position: relative;
  z-index: 1;
}

.step-item__content { flex: 1; padding-top: var(--space-2); }

.step-item__title {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step-item__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

.step-item__tip {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--accent-gold-glow);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--accent-gold-light);
  line-height: 1.6;
}

.step-item__tip strong { color: var(--accent-gold); }

/* ============================================================
   CTA AFILIADO EN PÁGINAS DE RECETA
   ============================================================ */

.affiliate-cta-block {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8);
  margin-bottom: var(--space-6);
}

.affiliate-cta-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.affiliate-cta-block__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.affiliate-cta-block__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-1);
}

.affiliate-cta-block__name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.affiliate-cta-block__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.affiliate-cta-block__link {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: #FF9900;
  color: #111111;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--text-base);
  text-align: center;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 18px rgba(255, 153, 0, .35);
}

.affiliate-cta-block__link:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 153, 0, .55);
}

.affiliate-cta-block__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* DALIL-E PROMPT BLOCK */
.dalle-prompt-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-16);
}

.dalle-prompt-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.dalle-prompt-block__icon {
  font-size: 1.4rem;
}

.dalle-prompt-block__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.dalle-prompt-block__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.dalle-prompt-block__code {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-green-light);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}

.dalle-copy-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--border-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.dalle-copy-btn:hover {
  background: var(--accent-green-glow);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

#toast-container {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  min-width: 260px;
  max-width: 360px;
  pointer-events: all;
  animation: toastIn 0.3s var(--ease-spring) forwards;
  backdrop-filter: blur(16px);
}

.toast--success { border-color: var(--border-accent); }
.toast--success .toast__icon { color: var(--accent-green); }

.toast--info { border-color: rgba(96, 165, 250, 0.3); }
.toast--info .toast__icon { color: #60a5fa; }

.toast--warning { border-color: var(--border-gold); }
.toast--warning .toast__icon { color: var(--accent-gold); }

.toast__icon { font-size: 1.1rem; flex-shrink: 0; }
.toast__text { flex: 1; line-height: 1.4; }

.toast.removing {
  animation: toastOut 0.25s var(--ease-in-out) forwards;
}

/* ============================================================
   FORMULARIO DE NEWSLETTER — FOOTER
   ============================================================ */

.newsletter-inline {
  display: flex;
  gap: var(--space-2);
}

.newsletter-inline__input {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--t-fast);
}

.newsletter-inline__input::placeholder { color: var(--text-muted); }
.newsletter-inline__input:focus { border-color: var(--accent-green); }

.newsletter-inline__btn {
  padding: var(--space-2) var(--space-4);
  background: var(--accent-green);
  color: var(--bg-deep);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  white-space: nowrap;
}

.newsletter-inline__btn:hover { background: var(--accent-green-light); }

/* ============================================================
   RESPONSIVE CALCULADORA
   ============================================================ */

@media (max-width: 768px) {
  .calculator-form {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-6) var(--space-6);
  }
  .calculator-header { padding: var(--space-6) var(--space-6); }
  .calc-submit-row { padding: 0 var(--space-6) var(--space-6); }
  .calc-results { padding: var(--space-6) var(--space-6) var(--space-8); }
  .calc-results__main { grid-template-columns: 1fr 1fr; }
  .calc-macros-grid { grid-template-columns: 1fr; }
  .affiliate-banner__name { white-space: normal; }
}

@media (max-width: 480px) {
  .calculator-form { grid-template-columns: 1fr; }
  .calc-results__main { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--space-6); flex-wrap: wrap; justify-content: center; }
  .recipe-macro-stats { justify-content: center; }
  .email-form { flex-direction: column; }
  .email-form .btn { width: 100%; }
  #toast-container { right: var(--space-4); bottom: var(--space-4); left: var(--space-4); }
  .toast { min-width: auto; max-width: 100%; }
  .affiliate-cta-block__link { font-size: var(--text-sm); }
}

/* Real recipe images */
.recipe-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
}
.recipe-card:hover .recipe-card__img { transform: scale(1.08); }

.recipe-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-item__img { transform: scale(1.06); }

.blog-card__img, .blog-featured__img, .blog-preview-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
