/**
 * GiftCal Web - Estilos de Landing Page
 */

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  padding-top: 96px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 149, 0, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(10, 116, 255, 0.16) 0%, transparent 40%),
    linear-gradient(130deg, var(--paper) 0%, #FFF1E3 48%, var(--mist) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(27, 27, 31, 0.04) 0, rgba(27, 27, 31, 0.04) 1px, transparent 1px, transparent 140px),
    repeating-linear-gradient(25deg, rgba(10, 116, 255, 0.05) 0, rgba(10, 116, 255, 0.05) 1px, transparent 1px, transparent 120px);
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -20%;
  width: 55%;
  height: 75%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(255, 149, 0, 0.14);
  color: #8A4B00;
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title span {
  background: linear-gradient(135deg, #D46A00 0%, #FF9500 45%, #0A74FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: #4A4A57;
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stores {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.store-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  background: rgba(20, 20, 24, 0.92);
  color: var(--text-inverse);
  border-radius: 14px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 14px 30px rgba(19, 19, 22, 0.2);
}

.store-badge:hover {
  transform: scale(1.05);
  color: var(--text-inverse);
}

.store-badge ion-icon {
  font-size: 28px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.store-badge-text strong {
  font-size: var(--font-size-md);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 116, 255, 0.14) 0%, transparent 70%);
  top: -40px;
  right: -20px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 38% 62% 58% 42% / 35% 45% 55% 65%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.22) 0%, transparent 72%);
  bottom: -60px;
  left: -30px;
  pointer-events: none;
}

.hero-phone {
  position: relative;
  max-width: 360px;
  filter: drop-shadow(0 55px 110px rgba(16, 24, 40, 0.28));
  animation: float 7s ease-in-out infinite;
}

.phone-frame {
  width: 340px;
  min-height: 670px;
  border-radius: 52px;
  background: linear-gradient(160deg, #10131b 0%, #0a0d14 70%);
  padding: 14px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 10px 30px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  width: 100%;
  height: auto;
  border-radius: 42px;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  margin: 10px 4px 18px;
}

.phone-icons {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 16px;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.phone-chip {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.2);
  color: #FFD8A8;
  border: 1px solid rgba(255, 149, 0, 0.4);
}

.phone-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.18);
}

.phone-card p {
  margin: 0 0 4px;
  color: #8E8E93;
  font-size: 12px;
}

.phone-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1C1C1E;
}

.phone-card span {
  font-size: 12px;
  color: #6C6C70;
}

.phone-card.primary {
  border: 1px solid rgba(10, 116, 255, 0.2);
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F6FF 100%);
}

.phone-card.gift {
  border: 1px solid rgba(255, 149, 0, 0.35);
  background: linear-gradient(135deg, #FFF1E4 0%, #FFFFFF 100%);
}

.phone-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFB347, #FF7B54);
}

.phone-badge {
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  background: #1C1C1E;
  color: #fff;
  border-radius: 999px;
}

.phone-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.phone-list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 14px;
}

.phone-list-item ion-icon {
  font-size: 18px;
  color: #FFD8A8;
}

.phone-list-item strong {
  display: block;
  font-size: 13px;
}

.phone-list-item small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.phone-footer {
  display: grid;
  gap: 8px;
}

.phone-footer button {
  border: none;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  background: linear-gradient(135deg, #0A74FF, #26C6DA);
  color: #fff;
}

.phone-footer button.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.highlight-strip {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, #FFFDFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--bg-tertiary);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.highlight-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(27, 27, 31, 0.06);
  box-shadow: 0 10px 24px rgba(27, 27, 31, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.highlight-card ion-icon {
  font-size: 22px;
  color: var(--secondary);
}

.highlight-card strong {
  display: block;
  font-size: 14px;
}

.highlight-card span {
  font-size: 12px;
  color: var(--text-secondary);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.12);
}

/* ===== Features Section ===== */
.features {
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: left;
  padding: var(--space-xl);
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F1 100%);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 46px rgba(27, 27, 31, 0.14);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 32px;
}

.feature-icon.calendar {
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
}

.feature-icon.wishlist {
  background: rgba(255, 149, 0, 0.1);
  color: var(--secondary);
}

.feature-icon.genie {
  background: rgba(38, 198, 218, 0.12);
  color: var(--accent-teal);
}

.feature-icon.share {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.feature-icon.remind {
  background: rgba(255, 59, 48, 0.1);
  color: var(--error);
}

.feature-icon.ideas {
  background: rgba(255, 149, 0, 0.12);
  color: var(--secondary);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== Landing Ideas Section ===== */
.landing-ideas {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFFFFF 100%);
}

.landing-ideas .section-header {
  margin-bottom: var(--space-2xl);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.idea-card {
  background: var(--bg-primary);
  border-radius: 22px;
  padding: var(--space-xl);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 14px 28px rgba(27, 27, 31, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.idea-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.6), rgba(10, 116, 255, 0.6));
}

.idea-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.idea-title {
  font-size: var(--font-size-lg);
  margin: 0;
}

.idea-category {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.idea-price {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: #0A5AE0;
}

.idea-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.idea-link:hover {
  text-decoration: underline;
}

.ideas-empty {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(10, 116, 255, 0.2);
}

.ideas-empty ion-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.ideas-cta {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ===== How It Works Section ===== */
.how-it-works {
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.7), rgba(10, 116, 255, 0.7));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF9500, #FF7B54);
  color: var(--text-inverse);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 14px 30px rgba(255, 123, 84, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #0A74FF 0%, #26C6DA 60%, #FF9500 140%);
  color: var(--text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
}

.cta-section p {
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}

@keyframes reveal-up {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-card,
.feature-card,
.idea-card,
.step {
  animation: reveal-up 0.6s ease both;
}

[data-delay="0"] { animation-delay: 0ms; }
[data-delay="80"] { animation-delay: 80ms; }
[data-delay="120"] { animation-delay: 120ms; }
[data-delay="160"] { animation-delay: 160ms; }
[data-delay="240"] { animation-delay: 240ms; }

.cta-section .btn-outline {
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}

.cta-section .btn-outline:hover {
  background: var(--text-inverse);
  color: var(--primary);
}

/* ===== Stats Section ===== */
.stats {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item h3 {
  font-size: var(--font-size-4xl);
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-item p {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cta,
  .hero-stores {
    justify-content: center;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .ideas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 0 var(--space-3xl);
  }

  .hero-phone {
    max-width: 300px;
  }

  .phone-frame {
    width: 290px;
    min-height: 560px;
    border-radius: 44px;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stores {
    flex-direction: column;
    align-items: center;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}
