/* ==========================================================================
   ESTILOS: CURSO DE QUESOS DE PASTA HILADA - MAFALDA IMPASTATO
   Diseño Artesanal Gourmet, Moderno, Cálido y Responsive
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Paleta Gastronómica Artesanal */
  --color-cream-100: #fbf9f5;
  --color-cream-200: #f4eee1;
  --color-cream-300: #e8dece;
  --color-primary: #b45309;        /* Terracota / Ámbar tostado */
  --color-primary-dark: #8c3b03;
  --color-primary-light: #fef3c7;
  --color-accent-olive: #4d7c0f;    /* Verde oliva italiano */
  --color-accent-olive-light: #ecfccb;
  --color-accent-blue: #0284c7;     /* Azul agua / frío */
  --color-accent-blue-light: #e0f2fe;
  --color-accent-red: #dc2626;
  --color-accent-red-light: #fee2e2;

  --color-text-main: #262320;
  --color-text-muted: #665f58;
  --color-surface: #ffffff;
  --color-border: #e6dfd5;
  --color-border-hover: #cfc4b4;

  --shadow-sm: 0 1px 3px rgba(38, 35, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(38, 35, 32, 0.08);
  --shadow-lg: 0 10px 25px rgba(38, 35, 32, 0.1);
  --shadow-xl: 0 20px 35px rgba(38, 35, 32, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream-100);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-serif);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

/* Contenedor General */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   BARRA SUPERIOR Y NAVEGACIÓN
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  background: var(--color-primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-dark);
  background: var(--color-cream-200);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-nav-action {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-nav-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-nav-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Indicador de lectura superior */
.progress-bar-container {
  width: 100%;
  height: 3px;
  background: var(--color-cream-300);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-olive));
  transition: width 0.1s linear;
}

/* ==========================================================================
   HERO / CABECERA DE PRESENTACIÓN
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top right, #fff4e0 0%, var(--color-cream-100) 70%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 1.2rem;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-teacher-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--color-surface);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.teacher-avatar-wrapper {
  position: relative;
}

.teacher-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
}

.teacher-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--color-accent-olive);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  font-weight: bold;
}

.teacher-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.teacher-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(180, 83, 9, 0.35);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-visual {
  position: relative;
}

.hero-main-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  position: relative;
}

.hero-main-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-main-photo:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.floating-icon {
  font-size: 1.5rem;
}

.floating-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.floating-text span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   HERRAMIENTAS FLOTANTES / BARRA RÁPIDA DE RECURSOS
   ========================================================================== */
.quick-tools-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tool-strip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.tool-strip-card:hover {
  background: var(--color-cream-200);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 1.8rem;
}

.tool-info strong {
  font-size: 0.95rem;
  color: var(--color-text-main);
  display: block;
}

.tool-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ESTRUCTURA DE MÓDULOS DEL CURSO
   ========================================================================== */
.course-content {
  padding: 3.5rem 0;
}

.course-module {
  margin-bottom: 4rem;
  scroll-margin-top: 5rem;
}

.module-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-cream-300);
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.module-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
}

.module-title {
  font-size: 2.1rem;
  color: var(--color-text-main);
}

.module-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

.checklist-toggle-btn {
  background: var(--color-cream-200);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.checklist-toggle-btn:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Tarjetas de Contenido */
.card-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow var(--transition-normal);
}

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

.card-box-accent {
  border-left: 5px solid var(--color-primary);
}

.card-box-alert {
  border-left: 5px solid var(--color-accent-red);
  background: #fffafa;
}

.card-box-success {
  border-left: 5px solid var(--color-accent-olive);
  background: #fcfdf8;
}

/* ==========================================================================
   REGLAS DE ORO Y ALERTAS
   ========================================================================== */
.golden-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.rule-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rule-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
}

.rule-badge {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.rule-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.rule-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.alert-banner {
  background: var(--color-accent-red-light);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
}

.alert-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.alert-banner-content h4 {
  color: #991b1b;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.alert-banner-content p {
  color: #7f1d1d;
  font-size: 0.95rem;
}

/* ==========================================================================
   CALCULADORA DE INGREDIENTES
   ========================================================================== */
.calculator-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-cream-100) 100%);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
}

.calc-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.calc-header h3 {
  font-size: 1.7rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.calc-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.calc-inputs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--color-surface);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.calc-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.calc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.milk-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.milk-input {
  width: 90px;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-primary-dark);
  background: #fff;
  outline: none;
}

.milk-input:focus {
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
}

.quick-liters-btn {
  background: var(--color-cream-200);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-liters-btn:hover,
.quick-liters-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.method-select {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text-main);
  outline: none;
  cursor: pointer;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.result-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.result-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.result-card.highlight {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.result-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  display: block;
  margin-bottom: 0.2rem;
}

.result-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: block;
}

.result-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* ==========================================================================
   TEMPORIZADOR DE COCINA
   ========================================================================== */
.timer-widget {
  background: #201e1b;
  color: #f5f5f4;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
}

.timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timer-header h3 {
  color: #fef3c7;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: #38342f;
  color: #e7e5e4;
  border: 1px solid #57534e;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover,
.preset-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.timer-display-box {
  background: #141210;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid #44403c;
}

.timer-current-task {
  font-size: 0.95rem;
  color: #a8a29e;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timer-digits {
  font-family: 'Courier New', Courier, monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 2px;
}

.timer-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-timer-action {
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-timer-start {
  background: #10b981;
  color: #fff;
}

.btn-timer-start:hover {
  background: #059669;
}

.btn-timer-pause {
  background: #f59e0b;
  color: #fff;
}

.btn-timer-reset {
  background: #57534e;
  color: #fff;
}

.btn-timer-reset:hover {
  background: #78716c;
}

/* ==========================================================================
   PASOS DIDÁCTICOS (STEP-BY-STEP WORKFLOW)
   ========================================================================== */
.steps-workflow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.step-card.completed {
  border-color: var(--color-accent-olive);
  background: #fbfdf9;
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.step-card.completed .step-badge {
  background: var(--color-accent-olive);
  color: #fff;
}

.step-header-text {
  flex: 1;
}

.step-header-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-main);
}

.step-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--color-cream-200);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-chip.temp {
  background: #ffedd5;
  color: #c2410c;
}

.meta-chip.time {
  background: #e0e7ff;
  color: #3730a3;
}

.meta-chip.ph {
  background: #fce7f3;
  color: #9d174d;
}

/* Checkbox para Modo Cocina */
.step-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  user-select: none;
}

.step-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent-olive);
  cursor: pointer;
}

.step-body {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* Multimedia dentro de los pasos */
.step-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #f9f8f6;
  position: relative;
  transition: all var(--transition-fast);
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.media-thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumbnail-wrapper img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: opacity var(--transition-fast), transform var(--transition-normal);
}

.media-thumbnail-wrapper:hover img {
  opacity: 0.9;
  transform: scale(1.03);
}

.media-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition-fast);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.4rem;
}

.media-thumbnail-wrapper:hover .media-zoom-overlay {
  opacity: 1;
}

.media-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.media-caption strong {
  display: block;
  color: var(--color-text-main);
  margin-bottom: 0.15rem;
}

/* Reproductor de Vídeo Integrado */
.video-player-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
  margin-top: 1rem;
}

.video-player-wrapper video {
  width: 100%;
  max-height: 420px;
  background: #000;
}

.video-label {
  padding: 0.6rem 1rem;
  background: #1c1917;
  color: #f5f5f4;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-label span {
  color: #fbbf24;
  font-weight: bold;
}

/* ==========================================================================
   TABLAS COMPARATIVAS
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-cream-200);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-main);
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #fdfbf7;
}

.tag-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-fast {
  background: var(--color-accent-blue-light);
  color: var(--color-accent-blue);
}

.tag-slow {
  background: var(--color-accent-olive-light);
  color: var(--color-accent-olive);
}

/* ==========================================================================
   GALERÍA DE FORMAS Y VARIEDADES
   ========================================================================== */
.shapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.shape-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.shape-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.shape-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.shape-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shape-card-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.shape-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}

.shape-tag {
  align-self: flex-start;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--color-cream-200);
  color: var(--color-text-main);
}

/* ==========================================================================
   APROVECHAMIENTO DEL SUERO (ZERO WASTE)
   ========================================================================== */
.whey-uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.whey-use-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.whey-use-card:hover {
  border-color: var(--color-accent-olive);
  background: #fbfdf9;
  transform: translateY(-2px);
}

.whey-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.whey-use-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-main);
}

.whey-use-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   TIENDA Y MATERIALES CON ENLACES
   ========================================================================== */
.materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.material-item-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.material-item-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.material-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-cream-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.material-text {
  flex: 1;
}

.material-text h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.material-text span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: block;
}

.btn-buy-link {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-buy-link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   EXAMEN Y CERTIFICACIÓN
   ========================================================================== */
.cert-box {
  background: linear-gradient(135deg, #fef9ed 0%, #fff 100%);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.cert-badge-big {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.cert-box h3 {
  font-size: 1.8rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.cert-box p {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.cert-requirements {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cert-req-item {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cert-req-item strong {
  display: block;
  font-size: 0.95rem;
}

.cert-req-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FOOTER Y REDES SOCIALES
   ========================================================================== */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #a8a29e;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-btn {
  background: #292524;
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #292524;
  font-size: 0.85rem;
  color: #78716c;
}

/* ==========================================================================
   MODAL LIGHTBOX (AMPLIAR FOTO Y VÍDEO)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 13, 11, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--color-accent-red);
}

.lightbox-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 300px;
  max-height: 70vh;
  overflow: hidden;
}

.lightbox-media-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-media-container video {
  max-width: 100%;
  max-height: 70vh;
  background: #000;
}

.lightbox-caption-bar {
  padding: 1.2rem 1.5rem;
  background: #1c1917;
  color: #f5f5f4;
  font-size: 0.95rem;
}

.lightbox-caption-bar strong {
  display: block;
  color: #fbbf24;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   RESPONSIVE Y DETALLES MÓVILES
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none; /* En móvil se simplifica o se activa por menú */
  }
  .step-card {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .timer-digits {
    font-size: 2.5rem;
  }
  .calc-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}
