/* ==============================================================================
   AmDi Pantallas — Estilos Específicos de Landing Page
   Ecosistema goAmdi.com | By AmazonasDigital
   ============================================================================== */

/* Hero Section */
.ap-hero {
  padding-top: 3rem;
  padding-bottom: 5rem;
  position: relative;
}

.ap-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.ap-hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.ap-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.ap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ap-hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass-subtle);
}

.ap-metric-item h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ap-metric-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* TV Mockup Frame (Réplica fiel del reproductor AmDi Pantallas en 16:9 y 9:16) */
.ap-tv-mockup {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.ap-tv-bezel {
  background: #06080d;
  border: 8px solid #1c2230;
  border-radius: 18px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 45px -10px var(--amdi-magenta-glow);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0 auto;
  transition: max-width 0.35s ease, aspect-ratio 0.35s ease;
}

.ap-tv-bezel.vertical-mode {
  aspect-ratio: 9 / 16;
  max-width: 270px;
  border-radius: 22px;
}

.ap-tv-stand {
  width: 110px;
  height: 18px;
  background: linear-gradient(180deg, #1c2230 0%, #0d1017 100%);
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  transition: width 0.3s ease;
}

.ap-tv-base {
  width: 200px;
  height: 7px;
  background: #252d3d;
  margin: 0 auto;
  border-radius: 4px;
}

/* TV Screen Display Inside Mockup */
.ap-tv-screen {
  width: 100%;
  height: 100%;
  background: #05070c;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.ap-hero-tv-topbar {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  z-index: 5;
  pointer-events: none;
}

.ap-hero-tv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #cbd5e1;
}

.ap-hero-tv-ori-tag {
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.ap-tv-slide {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem 0.85rem 0.85rem;
  background: radial-gradient(circle at 60% 38%, #211538 0%, #070910 75%);
  transition: opacity 0.35s ease;
}

.ap-tv-image-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0;
  overflow: hidden;
  background: #05070c;
}

.ap-tv-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.38) 0%, rgba(5, 7, 12, 0.05) 45%, rgba(5, 7, 12, 0.72) 100%);
  pointer-events: none;
  z-index: 2;
}

.ap-tv-image-wrapper img,
.ap-tv-image-wrapper svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

@keyframes ap-float-subtle {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.03); }
}

.ap-hero-tv-badge-row {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
}

.ap-tv-badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amdi-magenta), #ff4b2b);
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(255, 0, 122, 0.45);
}

.ap-hero-tv-bottom-overlay {
  position: relative;
  z-index: 3;
  background: rgba(8, 11, 18, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
}

.ap-tv-bezel.vertical-mode .ap-hero-tv-bottom-overlay {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0.45rem;
}

.ap-hero-tv-text-col {
  flex: 1;
  min-width: 0;
}

.ap-tv-name {
  font-size: clamp(0.86rem, 1.8vw, 1.15rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.15rem 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-tv-desc {
  font-size: clamp(0.62rem, 1.1vw, 0.74rem);
  color: #cbd5e1;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-tv-price-tag {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  background: rgba(0, 229, 255, 0.14);
  border: 1.5px solid var(--amdi-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  color: var(--amdi-cyan);
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.ap-tv-currency {
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 2px;
}

.ap-tv-price {
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ap-hero-tv-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 6;
}

.ap-hero-tv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amdi-magenta), var(--amdi-cyan));
  transition: width 0.2s linear;
}

/* Tarjeta Interactiva de Simulador Móvil (Debajo del TV, sin superposiciones) */
.ap-hero-simulator-card {
  margin-top: 1rem;
  background: rgba(12, 16, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ap-hero-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ap-hero-sim-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ap-hero-sim-ori-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.ap-sim-ori-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ap-sim-ori-btn.active {
  background: rgba(0, 229, 255, 0.18);
  color: #00e5ff;
}

.ap-hero-sim-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ap-sim-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.42rem 0.35rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ap-sim-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--amdi-cyan);
}

.ap-sim-action-btn.quote {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.ap-sim-action-btn.next {
  background: rgba(255, 0, 122, 0.12);
  border-color: rgba(255, 0, 122, 0.4);
  color: #ff6bb5;
}

@media (max-width: 480px) {
  .ap-hero-sim-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .ap-hero-sim-header {
    justify-content: center;
  }
}

.ap-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amdi-green);
  box-shadow: 0 0 10px var(--amdi-green);
  animation: ap-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes ap-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Pasos de Uso (How It Works) */
.ap-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.ap-step-card {
  padding: 2.25rem 2rem;
  position: relative;
}

.ap-step-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.25;
  font-family: monospace;
}

.ap-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ap-step-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Ventajas / Features */
.ap-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.ap-feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.ap-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(255, 0, 122, 0.1);
  color: var(--amdi-magenta);
}

.ap-feature-icon.cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--amdi-cyan);
}

.ap-feature-icon.orange {
  background: rgba(255, 106, 0, 0.1);
  color: var(--amdi-orange);
}

.ap-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.ap-feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Demo Section Box */
.ap-demo-box {
  background: linear-gradient(135deg, rgba(255, 0, 122, 0.08) 0%, rgba(0, 229, 255, 0.08) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ap-demo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amdi-magenta), var(--amdi-cyan), var(--amdi-orange));
}

/* Planes / Pricing */
.ap-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.ap-plan-card {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ap-plan-card.featured {
  border-color: var(--amdi-magenta);
  box-shadow: 0 0 35px -5px var(--amdi-magenta-glow);
  transform: scale(1.03);
}

.ap-plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amdi-magenta), var(--amdi-orange));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ap-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ap-plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.ap-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass-subtle);
}

.ap-plan-price .amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.ap-plan-price .period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ap-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.ap-plan-feature-item {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.ap-plan-feature-item svg {
  flex-shrink: 0;
  color: var(--amdi-green);
}

.ap-plan-feature-item.muted {
  color: var(--text-dim);
}

.ap-plan-feature-item.muted svg {
  color: var(--text-dim);
}

/* FAQ Accordion */
.ap-faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ap-faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
}

.ap-faq-question svg {
  transition: transform 0.3s ease;
  color: var(--amdi-magenta);
  flex-shrink: 0;
}

.ap-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ap-faq-item.active {
  border-color: rgba(255, 0, 122, 0.4);
}

.ap-faq-item.active .ap-faq-question svg {
  transform: rotate(180deg);
}

.ap-faq-item.active .ap-faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .ap-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ap-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .ap-hero-actions {
    justify-content: center;
  }
  .ap-hero-metrics {
    justify-content: center;
  }
  .ap-steps-grid,
  .ap-features-grid,
  .ap-pricing-grid {
    grid-template-columns: 1fr;
  }
  .ap-plan-card.featured {
    transform: none;
  }
}
