:root {
  --bg: #FAF8F4;
  --bg2: #F3F0EA;
  --fg: #1A1A1A;
  --fg2: #5A5750;
  --red: #C8352A;
  --red-light: rgba(200,53,42,0.08);
  --gold: #B8930A;
  --border: #E2DDD6;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--red); }

.edicion-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.edicion-nav a.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}
.edicion-nav a.back {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  text-decoration: none;
}
.edicion-nav a.back:hover { color: var(--red); }

.edicion-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px clamp(20px, 6vw, 40px) 100px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--red); }
.divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 20px 0 32px;
}
.numbers-intro {
  color: var(--fg2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* TABS */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 44px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: none;
  border: none;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg2);
  padding: 14px 22px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { color: var(--red); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.4s ease; }

/* CONTENT GRID (formatos) */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.content-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
}
.content-card:hover {
  border-color: rgba(200,53,42,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,53,42,0.06);
}
.content-card-icon { font-size: 28px; margin-bottom: 16px; }
.content-card-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.content-card-desc { font-size: 14px; color: var(--fg2); line-height: 1.65; }
.content-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.2s;
}
.content-card-link:hover { gap: 10px; }
.content-card-link svg { width: 13px; height: 13px; transition: transform 0.2s; }
.content-card-link:hover svg { transform: translateX(2px); }

/* PROCESO */
.process-block { margin-top: 48px; }
.process-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.process-layout .process-photo { width: 180px; height: 230px; flex-shrink: 0; }
.process-layout .process-steps { flex: 1 1 380px; max-width: 460px; margin-top: 0; }
@media (max-width: 900px) {
  .process-layout .process-photo { width: 140px; height: 180px; }
}
.edicion-photo {
  width: 100%;
  max-width: 280px;
  border: 4px solid var(--fg);
  border-radius: 12px;
  transform: rotate(2deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  display: block;
}
.process-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.process-num {
  position: relative;
  width: 80px;
  height: 56px;
  flex-shrink: 0;
}
.process-num-base,
.process-num-fill {
  position: absolute;
  inset: 0;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}
.process-num-base { color: rgba(200, 53, 42, 0.18); }
.process-num-fill {
  color: transparent;
  background-image: linear-gradient(to top, var(--red) 0%, var(--red) 80%, rgba(200, 53, 42, 0) 100%);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.process-step:hover .process-num-fill { background-size: 100% 100%; }
.process-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.process-desc { font-size: 14px; color: var(--fg2); line-height: 1.5; max-width: 480px; }
@media (max-width: 600px) { .process-num { width: 56px; height: 40px; } .process-num-base, .process-num-fill { font-size: 40px; } }

/* ABOUT CARD (portfolio / por que conmigo) */
.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}
.about-card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.about-card-text { font-size: 14px; color: var(--fg2); line-height: 1.6; }

/* PRECIO */
.pricing-block {
  background: var(--fg);
  border-radius: 16px;
  padding: 32px clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  margin-top: 32px;
  max-width: 640px;
}
.pricing-tier { min-width: 120px; }
.pricing-value { font-family: var(--display); font-size: 38px; font-weight: 900; color: #fff; line-height: 1; }
.pricing-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}
.pricing-note { font-size: 13px; color: rgba(255,255,255,0.7); width: 100%; margin-top: 4px; line-height: 1.5; }

/* CTA */
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}
.btn-primary:hover { background: #a82a21; transform: translateY(-1px); }

/* PROYECTOS: filtros + videos */
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.filter-chip .chip-count { opacity: 0.7; font-weight: 500; }

.videos-grid { display: flex; flex-direction: column; }
.video-group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.video-group-divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}
.video-card { display: block; text-decoration: none; color: var(--fg); }
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.video-thumb--h { aspect-ratio: 4 / 3; }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
}
.video-play svg { width: 16px; height: 16px; margin-left: 2px; }
.video-card:hover .video-play { transform: scale(1.1); opacity: 1; }
.video-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  margin-top: 10px;
  line-height: 1.3;
}
.video-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.proyectos-empty {
  display: none;
  text-align: center;
  color: var(--fg2);
  font-size: 14px;
  padding: 32px 0;
}

/* CONTACTO: social cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.social-grid > :nth-child(5) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 260px; }
.social-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.2s;
  text-align: left;
}
.social-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(200,53,42,0.08); }
.social-card-icon { width: 24px; height: 24px; fill: var(--red); margin-bottom: 14px; }
.social-card-name { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.social-card-desc { font-size: 13px; color: var(--fg2); line-height: 1.5; margin-bottom: 10px; }
.social-card-handle { font-family: var(--mono); font-size: 12px; color: var(--red); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

footer.blog-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--fg2);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .tabs-nav { gap: 0; }
  .tab-btn { padding: 12px 14px; font-size: 14px; }
  .process-step { flex-direction: row; }
  .video-group-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
