/* ==========================================================================
   Notas de Familia / CreateNew - Estilos de la Landing Page
   Estilo: Pastel Whimsical (Google Stitch Theme)
   ========================================================================== */

:root {
  --primary: #7C6CF8;
  --primary-light: #EBE8FD;
  --primary-dark: #322A7D;
  --secondary: #FFD3E2;
  --accent-mint: #A8E6CF;
  --accent-yellow: #FEF7CD;
  --text-primary: #2B2D42;
  --text-secondary: #6B7280;
  --bg-main: #FBFBFE;
  --bg-card: #FFFFFF;
  --border-subtle: #ECECF2;
  --shadow-soft: 0 10px 30px rgba(124, 108, 248, 0.08);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navegación Superior
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  background: rgba(251, 251, 254, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 108, 248, 0.15);
}

.brand-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--secondary);
  color: #8C2B56;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(124, 108, 248, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 108, 248, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 70px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-yellow);
  color: #6C5500;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111827;
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.store-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.store-btn.apple {
  background: #232326;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-subtitle {
  font-size: 11px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-btn-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-frame {
  width: 310px;
  border-radius: 42px;
  background: #1E1B2E;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(124, 108, 248, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.mockup-frame:hover {
  transform: translateY(-6px);
}

.mockup-screen {
  border-radius: 32px;
  overflow: hidden;
  background: white;
  aspect-ratio: 9/19.5;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Sección de Características (Features)
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-title {
  font-size: 34px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.icon-purple { background: #EBE8FD; }
.icon-pink { background: #FFE4EE; }
.icon-mint { background: #E0F7F0; }
.icon-yellow { background: #FEF7CD; }
.icon-blue { background: #E1F0FF; }
.icon-orange { background: #FFECD6; }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Showcase Visual (Galería de pantallas)
   ========================================================================== */
.showcase-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.showcase-item {
  text-align: center;
}

.showcase-mockup {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border: 6px solid #1E1B2E;
  margin-bottom: 18px;
  background: white;
}

.showcase-mockup img {
  width: 100%;
  display: block;
}

.showcase-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.showcase-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Páginas de Política de Privacidad y Eliminar Cuenta (Contenido Legal)
   ========================================================================== */
.legal-page {
  padding: 60px 0 90px;
  background: var(--bg-main);
}

.legal-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  max-width: 860px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.legal-card p, .legal-card li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

.legal-alert {
  background: #EBE8FD;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.legal-alert p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

.steps-list {
  list-style: none;
  counter-reset: steps-counter;
  padding-left: 0 !important;
}

.steps-list li {
  counter-increment: steps-counter;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps-list li::before {
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-main {
  background: white;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
  max-width: 340px;
}

.footer-col h5 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .store-buttons {
    justify-content: center;
  }
  .trust-badges {
    justify-content: center;
  }
  .features-grid, .showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
