/* Index-specific styles */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  /* Ensure background covers the section properly */
  background-image: linear-gradient(180deg, rgba(30, 30, 30, 0), rgba(30, 30, 30, 0.6)), url("imgs/fondo1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}
.hero-content {
  max-width: 920px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.8), rgba(42, 42, 42, 0.6));
  border-radius: var(--radius-m);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.hero-title {
  font-size: 3.6rem;
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.hero-subtitle {
  color: var(--color-muted);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
/* Hero */

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Unfiltered Banner */
.unfiltered-banner {
  background: #1a1a1a;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 24px 0;
}
.unfiltered-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.unfiltered-content .material-icons {
  font-size: 32px;
  color: var(--color-primary);
}
.unfiltered-content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}
.unfiltered-content p {
  margin: 0;
  color: var(--color-muted);
  max-width: 600px;
}

/* Demo */
.demo-section {
  padding: 80px 0;
}
.demo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.demo-grid.reverse {
  flex-direction: row-reverse;
}
.demo-card {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
  background: var(--color-card-bg);
  border-radius: var(--radius-m);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.demo-card-title {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.demo-text {
  background: rgba(0, 0, 0, 0.3);
  padding: 18px;
  border-radius: 8px;
  color: var(--color-muted);
  font-family: monospace;
  line-height: 1.6;
  max-height: 260px;
  overflow: auto;
}
.image-wrapper {
  height: 350px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}
.demo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.image-wrapper:hover .demo-image {
  transform: scale(1.04);
}
.connector-arrow {
  flex-shrink: 0;
}
.connector-arrow .material-icons {
  font-size: 56px;
  color: var(--color-primary);
}

/* Magic Transform Animation */
.magic-transform-container {
  position: relative;
  cursor: pointer;
}

.magic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: var(--radius-m);
  z-index: 10;
}

.magic-overlay.active {
  display: flex;
}

.magic-sparkles {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: sparkle 1.5s infinite ease-in-out;
  box-shadow: 0 0 10px var(--color-primary);
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 0.2s;
}
.sparkle:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 0.4s;
}
.sparkle:nth-child(4) {
  bottom: 20%;
  right: 20%;
  animation-delay: 0.6s;
}
.sparkle:nth-child(5) {
  top: 50%;
  left: 10%;
  animation-delay: 0.8s;
}
.sparkle:nth-child(6) {
  top: 50%;
  right: 10%;
  animation-delay: 1s;
}
.sparkle:nth-child(7) {
  top: 10%;
  left: 50%;
  animation-delay: 1.2s;
}
.sparkle:nth-child(8) {
  bottom: 10%;
  left: 50%;
  animation-delay: 1.4s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.magic-text {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Play Hint */
.play-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(5px);
  z-index: 5;
}

.play-hint:hover {
  opacity: 1;
  transform: scale(1.05);
}

.play-hint .material-icons {
  font-size: 20px;
}

.magic-transform-container.transformed .play-hint {
  display: none;
}

/* Usecases & features */
.how-it-works-section {
  padding: 80px 0;
  background: var(--color-bg-dark-alt);
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.usecase-item {
  background: var(--color-card-bg);
  padding: 26px;
  border-radius: var(--radius-m);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}
.usecase-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.1);
  color: var(--color-primary);
  margin-bottom: 12px;
  border: 1px solid rgba(0, 170, 255, 0.2);
}
.usecase-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.usecase-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.usecase-badge {
  background: rgba(0, 170, 255, 0.1);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: inline-block;
}
.badge-soon {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 8px;
  vertical-align: middle;
}
.usecase-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 18px;
  color: var(--color-muted);
}
.usecase-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}
.usecase-list li::before {
  content: "check_circle";
  font-family: "Material Icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: 18px;
}
.usecase-actions {
  margin-top: auto;
}

.features-section {
  padding: 80px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.feature-item {
  background: var(--color-card-bg);
  padding: 24px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-icon {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.feature-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-item p {
  color: var(--color-muted);
}

/* Gallery */
.styles-gallery-section {
  padding: 80px 0;
  background: var(--color-bg-dark-alt);
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 28px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--color-text);
  font-weight: 600;
}

/* Index-specific final sections */
.final-cta-section {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-dark-alt), var(--color-bg-dark));
}

/* Index-specific responsive styles */
/* Index-specific responsive styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-content {
    padding: 26px;
  }
  .demo-grid {
    flex-direction: column;
  }
  .demo-grid.reverse {
    flex-direction: column;
  }
  .connector-arrow .material-icons {
    transform: rotate(90deg);
    margin: 12px 0;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .image-wrapper {
    height: 260px;
  }
  .demo-text {
    max-height: 180px;
  }
  .unfiltered-content {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .image-wrapper {
    height: 220px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
