/* avatares.css — estilos exclusivos de Personajes y Avatares Digitales */

.page-hero::before {
  content: '02';
}

/* Lore Architecture */
.lore {
  background: var(--gray-100);
}

.lore-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.lore-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
}

/* Entregables */
.deliverables {
  background: var(--white);
}

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

.del-item {
  padding: 1.5rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
}

.del-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.del-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 300;
}

/* Ideal para */
.ideal {
  background: var(--black);
  color: var(--white);
  padding: 6rem 3rem;
}

.ideal .section-title {
  color: var(--white);
}

.ideal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ideal-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
}

.ideal-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ideal-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-weight: 300;
}

/* Galería de avatares */
.gallery-preview {
  background: var(--white);
  padding: 4rem 3rem 8rem;
  overflow: hidden;
}

.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.avatar-card {
  width: 480px;
  height: 320px;
  background: var(--gray-100);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-card2 {
  width: 820px;
  height: 480px;
  background: var(--gray-100);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-card img,
.avatar-card2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.avatar-card:nth-child(1) {
  transform: rotate(-3deg) translateY(10px);
}

.avatar-card:nth-child(2) {
  transform: rotate(2deg) translateY(-20px);
}

.avatar-card:nth-child(3) {
  transform: rotate(-1.5deg) translateY(15px);
}

.avatar-card:nth-child(4) {
  transform: rotate(4deg) translateY(-5px);
}

.avatar-card:nth-child(5) {
  transform: rotate(-2.5deg) translateY(20px);
}

.avatar-card:nth-child(6) {
  transform: rotate(1.5deg) translateY(-10px);
}

.avatar-card:hover {
  transform: rotate(0deg) scale(1.05) translateY(-15px);
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.avatar-card:hover img {
  filter: grayscale(0%);
}

/* CTA — fondo gris claro */
.cta-section {
  background: var(--gray-100);
}

.cta-title {
  color: var(--black);
}

/* Other cards */
.other-card {
  background: var(--gray-100);
  border: 1px solid transparent;
}

.other-card:hover {
  border-color: var(--black);
  background: var(--white);
}

.ideal-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ideal-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 900px) {
  .ideal-grid {
    grid-template-columns: 1fr;
  }

  .wide-layer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cards-container {
    gap: 1rem;
  }

  .avatar-card {
    width: 45%;
    height: 220px;
  }

  .avatar-card2 {
    width: 100%;
    height: 280px;
  }

  .avatar-card:nth-child(1),
  .avatar-card:nth-child(2),
  .avatar-card:nth-child(3),
  .avatar-card:nth-child(4),
  .avatar-card:nth-child(5),
  .avatar-card:nth-child(6) {
    transform: none;
  }

  .cards-container {
    overflow-x: hidden;
  }

  .gallery-preview {
    overflow: hidden;
    padding-bottom: 4rem;
  }

  .ideal .linear-steps {
    border-top: none;
    grid-template-columns: 1fr;
  }

  .ideal .linear-step {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0;
  }

  .ideal .linear-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 500px) {
  .avatar-card {
    width: 100%;
    height: 220px;
  }

  .avatar-card2 {
    width: 100%;
    height: 220px;
  }
}