/* RESET COMPLETO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* VARIABLES */
:root {
  --primary-color: #8972FD;
  --secondary-color: #D6D0FC;
  --text-color: #11181c;
  --text-secondary: #8F8F8F;
  --background-color: #F7F7FB;
  --white: #ffffff;
  --border-color: rgba(137, 114, 253, 0.1);
  --shadow-light: 0 4px 15px rgba(137, 114, 253, 0.1);
  --shadow-medium: 0 8px 25px rgba(137, 114, 253, 0.15);
  --shadow-heavy: 0 20px 40px rgba(137, 114, 253, 0.2);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FONDO PRINCIPAL SIMPLE */
.screenshots-section-new {
  padding: 60px 0;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

/* CONTENIDO PRINCIPAL */
.screenshots-content {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: 20px;
  margin: 15px;
  padding: 40px 20px;
  box-shadow: var(--shadow-light);
}

.screenshots-section-new .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(137, 114, 253, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.section-badge .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.2;
}

/* .section-title .highlight {
  background-color: #5a3fc0;
} */

.section-description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* DEVICE COMPATIBILITY */
.device-compatibility {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 6px 8px;
  background: var(--white);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.device-item:hover {
  background: rgba(137, 114, 253, 0.05);
  transform: translateY(-1px);
}

.device-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* CAROUSEL CONTAINER */
.carousel-container {
  position: relative;
}

.carousel-wrapper {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

/* NAVIGATION ARROWS */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-medium);
  color: var(--secondary-color);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-arrow svg {
  width: 18px;
  height: 18px;
}

.nav-prev {
  left: 10px;
}

.nav-next {
  right: 10px;
}

/* SCREENSHOTS CAROUSEL */
.screenshots-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-item {
  position: absolute;
  cursor: pointer;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  will-change: transform, opacity;
}

.screenshot-item.center {
  z-index: 30;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.screenshot-item.left-1 {
  z-index: 20;
  transform: translateX(-120px) scale(0.75);
  opacity: 0.6;
}

.screenshot-item.right-1 {
  z-index: 20;
  transform: translateX(120px) scale(0.75);
  opacity: 0.6;
}

.screenshot-item.left-2 {
  z-index: 10;
  transform: translateX(-220px) scale(0.5);
  opacity: 0.3;
}

.screenshot-item.right-2 {
  z-index: 10;
  transform: translateX(220px) scale(0.5);
  opacity: 0.3;
}

.screenshot-item.hidden {
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

/* PHONE FRAME */
.phone-frame {
  position: relative;
  background: linear-gradient(145deg, var(--text-color), var(--secondary-color));
  border-radius: 30px;
  padding: 5px;
  box-shadow: var(--shadow-heavy);
  width: 220px;
  height: 440px;
}

.phone-screen {
  position: relative;
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.phone-notch {
  display: none;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-normal);
}

.screenshot-item:not(.center) .screenshot-img {
  filter: brightness(0.8);
}

.home-indicator {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

/* INFO CARD */
.info-card {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  z-index: 40;
}

.info-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.info-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.3;
}

/* DOTS NAVIGATION */
.dots-navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(225, 225, 225, 0.8);
  cursor: pointer;
  transition: var(--transition-normal);
}

.dot.active {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.dot:hover:not(.active) {
  background: var(--text-secondary);
  transform: scale(1.1);
}

/* AUTOPLAY INDICATOR */
.autoplay-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 30px;
}

.autoplay-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary-color);
  transition: var(--transition-normal);
}

.autoplay-dot.paused {
  background: var(--text-secondary);
  animation: none;
}

.autoplay-dot.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.autoplay-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* CTA SECTION */
.cta-section {
  text-align: center;
}

.cta-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.cta-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.cta-description {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  font-size: 0.9rem;
  min-width: 120px;
  justify-content: center;
}

.cta-btn-dark {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(7, 94, 84, 0.2);
}

.cta-btn-dark:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(7, 94, 84, 0.3);
}

.cta-btn-green {
  background: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.2);
}

.cta-btn-green:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* RESPONSIVE DESIGN */
@media (min-width: 769px) {
  .screenshots-section-new {
    padding: 80px 0;
  }

  .screenshots-content {
    margin: 20px;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
  }

  .section-header {
    margin-bottom: 60px;
  }

  .section-badge {
    padding: 8px 16px;
    font-size: 13px;
    margin-bottom: 20px;
  }

  .section-badge .icon {
    width: 14px;
    height: 14px;
  }

  .device-compatibility {
    gap: 30px;
    margin-bottom: 50px;
  }

  .device-item {
    gap: 6px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .device-icon {
    width: 16px;
    height: 16px;
  }

  .carousel-wrapper {
    height: 500px;
    margin-bottom: 40px;
  }

  .nav-arrow {
    width: 44px;
    height: 44px;
  }

  .nav-arrow svg {
    width: 20px;
    height: 20px;
  }

  .nav-prev {
    left: 15px;
  }

  .nav-next {
    right: 15px;
  }

  .screenshot-item.left-1 {
    transform: translateX(-180px) scale(0.75);
  }

  .screenshot-item.right-1 {
    transform: translateX(180px) scale(0.75);
  }

  .screenshot-item.left-2 {
    transform: translateX(-300px) scale(0.5);
  }

  .screenshot-item.right-2 {
    transform: translateX(300px) scale(0.5);
  }

  .phone-frame {
    width: 260px;
    height: 520px;
    border-radius: 35px;
    padding: 6px;
  }

  .phone-screen {
    border-radius: 29px;
  }

  .phone-notch {
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  }

  .home-indicator {
    width: 100px;
    bottom: 6px;
  }

  .info-card {
    bottom: -70px;
    padding: 20px;
    width: 300px;
    border-radius: 16px;
  }

  .info-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .info-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .dots-navigation {
    gap: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    transform: scale(1.3);
  }

  .autoplay-indicator {
    gap: 8px;
    margin-bottom: 50px;
  }

  .autoplay-dot {
    width: 6px;
    height: 6px;
  }

  .autoplay-text {
    font-size: 0.8rem;
  }

  .cta-card {
    padding: 40px 30px;
    max-width: 550px;
    border-radius: 20px;
  }

  .cta-buttons {
    gap: 12px;
  }

  .cta-btn {
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    min-width: 140px;
  }

  .btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 480px) {
  .screenshots-content {
    margin: 5px;
    padding: 30px 15px;
  }

  .device-compatibility {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .carousel-wrapper {
    height: 350px;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
  }

  .screenshot-item.left-1,
  .screenshot-item.right-1 {
    transform: translateX(-100px) scale(0.65);
    opacity: 0.4;
  }

  .screenshot-item.left-2,
  .screenshot-item.right-2 {
    display: none;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
  }

  .nav-arrow svg {
    width: 16px;
    height: 16px;
  }

  .info-card {
    width: 250px;
    padding: 14px;
    bottom: -50px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .cta-btn {
    width: 100%;
    max-width: 180px;
  }
}

/* PERFORMANCE OPTIMIZATIONS */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* PREVENT LAYOUT SHIFT */
.screenshot-img {
  aspect-ratio: 1 / 2;
  background-color: #f0f0f0;
}
