/* ==========================================================================
   PrimerBocado - Landing Page Stylesheet
   Estilo: Apple / Framer / Notion / N8N / OpenAI (Bento Grid & Clean Light Mode)
   ========================================================================== */

:root {
  --primary: #057bee;
  --primary-hover: #0466c8;
  --primary-light: #e8f3fe;
  --primary-border: #bfdbfe;
  --coral-accent: #ff6b4a;
  --coral-light: #fff0ed;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-green: #10b981;
  --accent-green-light: #d1fae5;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #ede9fe;
  
  --bg-main: #fbfbfc;
  --bg-card: #ffffff;
  --bg-subtle: #f6f8fa;
  
  --text-main: #0f172a;
  --text-muted: #526071;
  --text-soft: #718096;
  --text-inverse: #ffffff;
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.06);
  --border-focus: rgba(5, 123, 238, 0.4);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 30px 60px -12px rgba(5, 123, 238, 0.1), 0 8px 20px -4px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(80% 50% at 50% -10%, rgba(5, 123, 238, 0.08) 0%, transparent 100%),
    radial-gradient(50% 40% at 90% 25%, rgba(255, 107, 74, 0.06) 0%, transparent 100%),
    radial-gradient(60% 40% at 10% 60%, rgba(5, 123, 238, 0.05) 0%, transparent 100%),
    radial-gradient(50% 30% at 85% 85%, rgba(255, 107, 74, 0.05) 0%, transparent 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía */
h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

/* ==========================================================================
   Header Flotante (Apple Glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.07),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 6px 10px;
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-primary-sm {
  background: var(--text-main);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary-sm:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section (Split Grid 2-Col)
   ========================================================================== */
.hero-section {
  padding: 60px 24px 70px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-content-col {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(5, 123, 238, 0.08);
  border: 1px solid rgba(5, 123, 238, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  width: 100%;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  width: 100%;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  cursor: pointer;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #1e293b;
}

.store-badge svg {
  width: 24px;
  height: 24px;
}

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

.store-badge-text small {
  font-size: 0.65rem;
  opacity: 0.75;
  text-transform: uppercase;
}

.store-badge-text span {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
  max-width: 100%;
  text-align: left;
}

.hero-auth-notice svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-notice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

/* Hero Media Column & Central Phone */
.hero-media-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-width: 0;
  padding: 10px 0 10px 15px;
  overflow: visible;
}

.hero-phone-center {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 325px;
  border-radius: 46px;
  background: #000;
  padding: 11px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen-img {
  width: 100%;
  border-radius: 36px;
  display: block;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
  white-space: nowrap;
  z-index: 20;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.badge-slot-1 {
  top: 38%;
  right: calc(100% - 24px);
  left: auto;
  animation-delay: 0s;
}

.badge-slot-2 {
  top: 55%;
  right: calc(100% - 44px);
  left: auto;
  animation-delay: -1.5s;
}

.badge-slot-3 {
  top: 72%;
  right: calc(100% - 28px);
  left: auto;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Social Proof Strip
   ========================================================================== */
.social-proof-strip {
  padding: 40px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.proof-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.proof-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* ==========================================================================
   Secciones y Bento Grids
   ========================================================================== */
.section-container {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bg-subtle {
  background: var(--bg-subtle);
  border-radius: var(--radius-xl);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

#rutina .bento-grid-2col {
  grid-template-columns: 0.8fr 1.2fr;
}

.bento-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.bento-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.bento-pill.alert {
  background: var(--coral-light);
  color: var(--coral-accent);
}

.bento-pill.success {
  background: var(--accent-green-light);
  color: var(--accent-green);
}

.bento-box-title {
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.25;
}

.visual-mockup-box {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
}

.compact-frame {
  width: 240px;
  border-radius: 36px;
  padding: 8px;
  margin: 10px auto 20px;
}

.compact-frame .phone-screen-img {
  border-radius: 28px;
}

.visual-box-caption h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.visual-box-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Sección 1: Emulación iOS Nativa (AppCard + Glass FAB + CupertinoActionSheet)
   ========================================================================== */
.bento-box.routine-interactive-box {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Contenedor centrado para AppStickyHeader Pill */
.ios-sticky-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
}

/* AppStickyHeader Pill iOS */
.ios-sticky-header-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(5, 123, 238, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  gap: 12px;
  box-shadow: 0 2px 8px rgba(5, 123, 238, 0.06);
}

.ios-pill-date {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.82rem;
}

.ios-pill-divider {
  width: 1px;
  height: 16px;
  background: rgba(5, 123, 238, 0.3);
  margin: 0 -2px;
}

.ios-pill-metric {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ios-pill-metric svg {
  color: var(--primary);
}

/* Lista de Tarjetas (AppCard) */
.ios-events-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  height: 375px;
  max-height: 375px;
  overflow: hidden;
}

.ios-event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  cursor: pointer;
}

.ios-event-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 123, 238, 0.08);
}

.ios-event-card.is-new-event {
  animation: iosSlideDown 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(240, 247, 255, 0.9);
  border-color: rgba(5, 123, 238, 0.35);
}

.ios-event-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-event-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ios-event-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  line-height: 1.25;
}

.ios-event-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

@keyframes iosSlideDown {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* GlassFloatingActionButton (+) Nativo en bottom-right */
.ios-glass-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(5, 123, 238, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-glass-fab:hover {
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 10px 28px rgba(5, 123, 238, 0.36);
  background: rgba(255, 255, 255, 0.92);
}

.ios-glass-fab:active {
  transform: scale(0.95);
}

/* CupertinoActionSheet Overlay */
.cupertino-action-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cupertino-action-sheet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cupertino-action-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.cupertino-action-sheet-overlay.is-visible .cupertino-action-sheet {
  transform: translateY(0);
}

.cupertino-action-group {
  background: rgba(245, 245, 247, 0.94);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
}

.cupertino-action-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0 10px;
}

.cupertino-action-item:last-child {
  border-bottom: none;
}

.cupertino-action-item:hover,
.cupertino-action-item:active {
  background: rgba(0, 0, 0, 0.05);
}

.cupertino-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 22px;
  flex-shrink: 0;
}

.cupertino-item-label {
  font-size: 0.91rem;
  font-weight: 400;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.cupertino-cancel-group {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.cupertino-cancel-btn {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  transition: background 0.15s ease;
}

.cupertino-cancel-btn:hover,
.cupertino-cancel-btn:active {
  background: rgba(0, 0, 0, 0.04);
}

.text-muted-sm {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Sección 2: Infinite Marquee & BLW Visualizer
   ========================================================================== */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marqueeScroll 65s linear infinite;
  will-change: transform;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 70s;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.food-marquee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.food-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.food-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-card-emoji {
  line-height: 1;
}

.food-meta {
  display: flex;
  flex-direction: column;
}

.food-meta strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.food-meta small {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.food-tag-allergen {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--coral-light);
  color: var(--coral-accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Sección 3: Recetario Feed Style (RecipeFeedCard de Flutter)
   ========================================================================== */
.recipes-snap-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.recipe-feed-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.recipe-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 0, 0, 0.1);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.feed-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral-accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-author-meta {
  display: flex;
  align-items: center;
  flex: 1;
}

.feed-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.feed-more-dots {
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 1px;
}

.feed-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.recipe-feed-card:hover .feed-img {
  transform: scale(1.03);
}

.feed-badge-access {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.feed-badge-stage {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--coral-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.feed-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feed-recipe-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.feed-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feed-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-recipe-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ==========================================================================
   Sección 4: Hitos CDC Formato Nativo (ListaHitosView de Flutter)
   ========================================================================== */
.hitos-app-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.cdc-tabs-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cdc-tab {
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cdc-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.cdc-tab.active {
  background: var(--coral-accent);
  color: #ffffff;
  border-color: var(--coral-accent);
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.25);
}

.hitos-stage-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stage-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stage-info-content strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.stage-info-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.hitos-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.hito-app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.hito-app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hito-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.hito-avatar-circle.socioemocional {
  background: #fff0eb;
  color: var(--coral-accent);
}

.hito-avatar-circle.lenguaje_comunicacion {
  background: #eff6ff;
  color: #3b82f6;
}

.hito-avatar-circle.cognitivo_sensorial {
  background: #f5f3ff;
  color: #8b5cf6;
}

.hito-avatar-circle.motriz {
  background: #ecfdf5;
  color: #10b981;
}

.hito-content {
  flex: 1;
}

.hito-title-text {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.hito-area-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

.hito-check-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
  flex-shrink: 0;
}

.hitos-footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-main);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-app-download:hover {
  background: var(--coral-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.25);
}

/* ==========================================================================
   Sección 5: Curvas OMS Réplica FlChart (EstadCrecimiento)
   ========================================================================== */
.oms-chart-box {
  display: flex;
  flex-direction: column;
}

.glass-segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.glass-seg-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-seg-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.oms-legend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
}

.legend-line.line-red { background: #ef4444; opacity: 0.6; }
.legend-line.line-orange { background: #f97316; opacity: 0.6; }
.legend-line.line-green { background: #10b981; height: 3px; }

.legend-dot.dot-baby {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral-accent);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--coral-accent);
}

.oms-chart-viewport {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px 6px 4px;
  margin-bottom: 12px;
}

.oms-svg-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.oms-citation-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: auto;
}

.oms-list-box {
  display: flex;
  flex-direction: column;
}

.oms-measurements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.oms-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 11px 16px;
  transition: var(--transition-fast);
}

.oms-record-row:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.oms-record-date {
  display: flex;
  flex-direction: column;
}

.oms-record-date strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.oms-record-date small {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.oms-record-vals {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oms-val-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.oms-percentile-pill {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
}

.oms-diff-badge {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 600;
}

.btn-app-download-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-app-download-secondary:hover {
  border-color: var(--coral-accent);
  color: var(--coral-accent);
}

/* ==========================================================================
   Sección 6: Polaroid Memories Wall
   ========================================================================== */
.memories-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 20px;
  border-radius: 6px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.polaroid-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: var(--shadow-xl);
  z-index: 5;
}

.polaroid-tilt-1 { transform: rotate(-2deg); }
.polaroid-tilt-2 { transform: rotate(1.5deg); }
.polaroid-tilt-3 { transform: rotate(-1deg); }

.polaroid-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 12px;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.polaroid-note {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
  font-style: italic;
}

/* ==========================================================================
   Sección 7: Arquitectura y Tabla Comparativa
   ========================================================================== */
.architecture-diagram-card {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.arch-col {
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.local-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.cloud-col {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.arch-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.arch-col h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.arch-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.arch-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  background: #ffffff;
  border-radius: var(--radius-full);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.arch-badge.family {
  background: var(--primary);
  color: #fff;
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bridge-line {
  width: 2px;
  height: 30px;
  background: #cbd5e1;
}

.bridge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

/* Tabla Comparativa */
.comparison-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.comparison-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  text-align: center;
}

.comparison-table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--bg-subtle);
}

.comparison-table .col-highlight {
  background: rgba(5, 123, 238, 0.05);
  color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(5, 123, 238, 0.16) 0%, transparent 70%),
    radial-gradient(circle at 15% 100%, rgba(255, 107, 74, 0.06) 0%, transparent 50%),
    #0b1120;
  color: #f8fafc;
  padding: 75px 24px 34px;
  margin-top: 60px;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
}

.footer-brand-col .brand-logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.6;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-nav-col h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-col a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Modal QR Inteligente
   ========================================================================== */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.qr-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.qr-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
}

.qr-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 12px;
}

.qr-modal-header h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.qr-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.qr-canvas-wrapper {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.qr-image {
  width: 180px;
  height: 180px;
  display: block;
}

.qr-platform-switches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
}

.btn-text-link {
  color: var(--primary);
  font-weight: 600;
}

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

.dot-separator {
  color: var(--text-soft);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Si la appbar se redimensiona horizontalmente y no cabe todo en una linea, ocultar enlaces */
@media (max-width: 1140px) {
  .site-header nav,
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-grid-container {
    gap: 32px;
  }

  .phone-frame {
    width: 290px;
  }

  .badge-slot-1 {
    top: 38%;
    right: calc(100% - 32px);
  }

  .badge-slot-2 {
    top: 55%;
    right: calc(100% - 48px);
  }

  .badge-slot-3 {
    top: 72%;
    right: calc(100% - 36px);
  }

  .bento-grid-2col,
  #rutina .bento-grid-2col {
    grid-template-columns: 1fr;
  }

  #rutina .visual-mockup-box {
    display: none;
  }

  .architecture-diagram-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .arch-bridge {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-nav-col {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 40px;
  }

  .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content-col {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    align-items: center;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-auth-notice {
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .hero-auth-notice svg {
    margin-top: 0;
  }

  .auth-notice-text {
    align-items: center;
  }

  .hero-media-col {
    padding: 20px 0;
    justify-content: center;
    overflow: hidden;
  }

  .phone-frame {
    width: 270px;
  }

  .badge-slot-1 {
    top: 36%;
    right: -8px;
    left: auto;
    font-size: 0.74rem;
  }

  .badge-slot-2 {
    top: 55%;
    left: -8px;
    right: auto;
    font-size: 0.74rem;
  }

  .badge-slot-3 {
    top: 74%;
    right: -8px;
    left: auto;
    font-size: 0.74rem;
  }

  .recipes-snap-carousel {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .memories-polaroid-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .phone-frame {
    width: 250px;
  }

  .badge-slot-1 {
    top: 36%;
    right: 0;
    left: auto;
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .badge-slot-2 {
    top: 55%;
    left: 0;
    right: auto;
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .badge-slot-3 {
    top: 74%;
    right: 0;
    left: auto;
    font-size: 0.7rem;
    padding: 7px 10px;
  }
}
