/* ============================================================
   Mac3D — index.css
   Ubicación: /home/macdcom/mac3d.xyz/backend/assets/css/index.css
   Solo estilos específicos del index. Los overrides globales
   de tema claro viven en theme-light.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   TIPOGRAFÍA Y HELPERS
   ══════════════════════════════════════════════════════════════ */

.ix-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.ix-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.ix-h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  color: #1d1d1f;
}

.ix-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6e6e73;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 1 · HERO
   ══════════════════════════════════════════════════════════════ */

.ix-hero {
  position: relative;
  min-height: 70vh;
  padding: 8rem 60px 5rem;
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  overflow: hidden;
}
.ix-hero-l { display: flex; flex-direction: column; gap: 1.6rem; max-width: 560px; }
.ix-hero-cat {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.ix-hero-cat::before { content: ''; width: 24px; height: 2px; background: var(--orange); }

.ix-hero-h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
  color: #1d1d1f;
}
.ix-hero-h1 em { font-style: normal; color: var(--orange); }

.ix-hero-p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #424245;
  max-width: 480px;
  font-weight: 400;
}

.ix-hero-ctas { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.ix-btn-pri, .ix-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.16,1,.3,1), background .2s, box-shadow .2s, border-color .2s, color .2s;
  border: none;
}
.ix-btn-pri { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(217,79,30,.28); }
.ix-btn-pri:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(217,79,30,.38); }
.ix-btn-ghost { color: #1d1d1f; background: transparent; border: 1.5px solid rgba(0,0,0,.22); }
.ix-btn-ghost:hover { border-color: #1d1d1f; transform: translateY(-2px); }

.ix-hero-trust {
  display: flex;
  gap: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0,0,0,.08);
  color: #6e6e73;
  font-size: .88rem;
  flex-wrap: wrap;
}
.ix-hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.ix-hero-trust strong { color: #1d1d1f; font-weight: 600; }

.ix-hero-r { position: relative; display: flex; justify-content: center; align-items: center; }
.ix-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #e8e4db;
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
  transform: rotate(-1.2deg);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.ix-hero-img-wrap:hover { transform: rotate(0) scale(1.01); }
.ix-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder con logo en el hero cuando la imagen falla */
.ix-hero-img-wrap.img-fail {
  background-color: #f0ede6;
  background-image:
    radial-gradient(circle at center, rgba(217, 79, 30, .1) 0%, transparent 60%),
    url('/backend/img/logo_mac3d_circular.png');
  background-size: auto, 38%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.ix-hero-img-wrap.img-fail::before {
  content: 'Mac3D';
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(217, 79, 30, .6);
  text-transform: uppercase;
  z-index: 1;
}
.ix-hero-img-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  text-decoration: none;
}
.ix-hero-img-badge-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.ix-hero-img-badge-cat { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.ix-hero-img-badge-ti { font-size: .98rem; font-weight: 600; color: #1d1d1f; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-hero-img-badge-pr { font-size: 1.15rem; font-weight: 700; color: var(--orange); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 2 · CATÁLOGO MASONRY
   ══════════════════════════════════════════════════════════════ */

.ix-cat { background: #fff; padding: 6rem 60px 7rem; }
.ix-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.ix-cat-head-l { flex: 1; min-width: 260px; }
.ix-cat-link {
  font-size: .95rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
}
.ix-cat-link:hover { gap: .7rem; }

.ix-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.ix-m-col { display: flex; flex-direction: column; gap: 20px; }
.ix-m-col:nth-child(2) { margin-top: 40px; }
.ix-m-col:nth-child(3) { margin-top: 0; }
.ix-m-col:nth-child(4) { margin-top: 60px; }

.ix-card {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #f5f5f7;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
  cursor: pointer;
}
.ix-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.ix-card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #eceae3 0%, #d8d5cd 100%);
}
/* Placeholder con logo cuando la imagen falla en cargar */
.ix-card-img.img-fail {
  background:
    radial-gradient(circle at center, rgba(217, 79, 30, .08) 0%, transparent 60%),
    #f0ede6;
  background-image:
    radial-gradient(circle at center, rgba(217, 79, 30, .08) 0%, transparent 60%),
    url('/backend/img/logo_mac3d_circular.png');
  background-size: auto, 38%;
  background-position: center, center;
  background-repeat: no-repeat;
  background-color: #f0ede6;
}
.ix-card-img.img-fail::after {
  content: 'Mac3D';
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(217, 79, 30, .6);
  text-transform: uppercase;
}
.ix-card-img.ratio-4-3 { aspect-ratio: 4 / 3; }
.ix-card-img.ratio-3-4 { aspect-ratio: 3 / 4; }
.ix-card-img.ratio-1-1 { aspect-ratio: 1 / 1; }
.ix-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.ix-card:hover .ix-card-img img { transform: scale(1.04); }
.ix-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem 1.1rem;
  gap: .7rem;
}
.ix-card-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.ix-card-cat { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.ix-card-ti { font-size: .95rem; font-weight: 600; color: #1d1d1f; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-card-pr { font-size: 1.05rem; font-weight: 700; color: #1d1d1f; flex-shrink: 0; }

.ix-cat-more { text-align: center; margin-top: 4.5rem; }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 3 · STRIP PRUEBA SOCIAL
   ══════════════════════════════════════════════════════════════ */

.ix-stats {
  background: #f5f5f7;
  padding: 4rem 60px;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ix-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ix-stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(0,0,0,.08);
}
.ix-stat:last-child { border-right: none; }
.ix-stat-num {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .4rem;
}
.ix-stat-num em { font-style: normal; color: var(--orange); }
.ix-stat-lb { font-size: .82rem; font-weight: 500; color: #6e6e73; letter-spacing: .02em; }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 4 · CÓMO FUNCIONA
   ══════════════════════════════════════════════════════════════ */

.ix-how { background: #fff; padding: 7rem 60px; }
.ix-how-head { text-align: center; margin-bottom: 4rem; }
.ix-how-head .ix-eyebrow { justify-content: center; display: inline-flex; }
.ix-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ix-step {
  background: #f5f5f7;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.ix-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.ix-step-num {
  font-size: 3.8rem;
  font-weight: 700;
  color: rgba(0,0,0,.08);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 1rem;
}
.ix-step:hover .ix-step-num { color: rgba(217,79,30,.2); }
.ix-step-t { font-size: 1.4rem; font-weight: 700; color: #1d1d1f; margin-bottom: .7rem; letter-spacing: -.02em; }
.ix-step-d { font-size: .98rem; line-height: 1.65; color: #6e6e73; margin-bottom: 1.2rem; }
.ix-step-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.ix-step-tag::before { content: '→'; }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 5 · PRODUCTO DESTACADO (stop-the-scroll)
   ══════════════════════════════════════════════════════════════ */

.ix-feat {
  background: #0a0a0a;
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ix-feat-img {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 640px;
}
.ix-feat-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #0a0a0a 100%);
  pointer-events: none;
}
.ix-feat-body {
  padding: 5rem 5rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}
.ix-feat-eyebrow { color: var(--orange3); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ix-feat-h {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.ix-feat-p { font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.68); max-width: 480px; }
.ix-feat-price { font-size: 1.6rem; font-weight: 700; color: #fff; }
.ix-feat-price em { font-style: normal; color: var(--orange3); }
.ix-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  background: #fff;
  color: #0a0a0a;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  align-self: flex-start;
}
.ix-feat-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.18); }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 6 · EL TALLER + LEAD MAGNET
   ══════════════════════════════════════════════════════════════ */

.ix-taller { background: #fff; padding: 7rem 60px; }
.ix-taller-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}
.ix-taller-head-l { max-width: 520px; }
.ix-taller-head-r { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.ix-lead {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  width: 100%;
  max-width: 440px;
  background: #f5f5f7;
  border-radius: 100px;
  padding: .4rem .4rem .4rem 1.4rem;
  border: 1px solid rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}
.ix-lead:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,79,30,.1); }
.ix-lead input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  color: #1d1d1f;
  outline: none;
  padding: .5rem 0;
  min-width: 0;
}
.ix-lead input::placeholder { color: #86868b; }
.ix-lead button {
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.ix-lead button:hover { background: var(--orange2); transform: translateY(-1px); }
.ix-lead-note { font-size: .78rem; color: #86868b; margin-left: 1.4rem; }
.ix-lead-note.ok { color: #1e7a42; }

.ix-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 1rem;
}
.ix-tool {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f5f5f7;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .2s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.ix-tool:hover { transform: translateY(-3px); background: #fff0eb; box-shadow: 0 14px 30px rgba(217,79,30,.1); }
.ix-tool-ico {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ix-tool-ico svg { width: 22px; height: 22px; }
.ix-tool-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.ix-tool-na { font-size: .95rem; font-weight: 600; color: #1d1d1f; letter-spacing: -.01em; }
.ix-tool-de { font-size: .78rem; color: #6e6e73; line-height: 1.3; }
.ix-tool-ar { color: #86868b; flex-shrink: 0; transition: transform .2s, color .2s; }
.ix-tool:hover .ix-tool-ar { color: var(--orange); transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════
   SECCIÓN 7 · CTA FINAL
   ══════════════════════════════════════════════════════════════ */

.ix-cta {
  background: #f5f5f7;
  padding: 8rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ix-cta-bg {
  position: absolute;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 22vw;
  font-weight: 800;
  color: rgba(0,0,0,.03);
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -.05em;
  user-select: none;
}
.ix-cta-h {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: #1d1d1f;
  margin-bottom: 1.2rem;
  position: relative;
}
.ix-cta-h em { font-style: normal; color: var(--orange); }
.ix-cta-p { font-size: 1.12rem; color: #6e6e73; max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.55; position: relative; }
.ix-cta-btns { display: inline-flex; gap: 1rem; justify-content: center; position: relative; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

.ix-rev { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.ix-rev.in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ix-hero { grid-template-columns: 1fr; padding: 7rem 28px 4rem; gap: 3rem; min-height: auto; }
  .ix-hero-img-wrap { max-width: 420px; margin: 0 auto; transform: rotate(0); }
  .ix-cat { padding: 5rem 28px; }
  .ix-masonry { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ix-m-col { gap: 14px; }
  .ix-m-col:nth-child(2) { margin-top: 28px; }
  .ix-m-col:nth-child(3) { margin-top: 0; }
  .ix-m-col:nth-child(4) { margin-top: 0; display: none; }
  .ix-stats { padding: 3rem 24px; }
  .ix-stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .ix-stat:nth-child(2) { border-right: none; }
  .ix-how { padding: 5rem 28px; }
  .ix-how-grid { grid-template-columns: 1fr; gap: 14px; }
  .ix-feat { grid-template-columns: 1fr; min-height: auto; }
  .ix-feat-img { min-height: 320px; }
  .ix-feat-img::after { background: linear-gradient(to bottom, transparent 50%, #0a0a0a 100%); }
  .ix-feat-body { padding: 3rem 28px; }
  .ix-taller { padding: 5rem 28px; }
  .ix-taller-head { grid-template-columns: 1fr; gap: 2rem; }
  .ix-tools-grid { grid-template-columns: 1fr 1fr; }
  .ix-cta { padding: 6rem 28px; }
}

@media (max-width: 640px) {
  .ix-hero { padding: 6rem 20px 3rem; }
  .ix-hero-ctas { width: 100%; }
  .ix-btn-pri, .ix-btn-ghost { width: 100%; justify-content: center; }
  .ix-masonry { gap: 10px; }
  .ix-m-col { gap: 10px; }
  .ix-cat-head { flex-direction: column; align-items: flex-start; }
  .ix-stats-grid { grid-template-columns: 1fr; }
  .ix-stat { border-right: none; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 1.5rem; }
  .ix-stat:last-child { border-bottom: none; }
  .ix-tools-grid { grid-template-columns: 1fr; }
  .ix-feat-body { padding: 3rem 20px; }
  .ix-cat, .ix-how, .ix-taller, .ix-cta { padding-left: 20px; padding-right: 20px; }
}