/* ============================================
   CreateHub - Sistema de Diseño
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colores primarios */
  --ch-purple: #8B2FC9;
  --ch-purple-dark: #6B1FA9;
  --ch-pink: #E91E88;
  --ch-orange: #FF6B35;
  --ch-red: #FF3B5C;

  /* Gradientes */
  --ch-gradient-main: linear-gradient(135deg, #9B12F7 0%, #EB2FA5 40%, #FF850A 100%);
  --ch-gradient-header: linear-gradient(180deg, #8B2FC9 0%, #C72283 50%, #E91E88 100%);
  --ch-gradient-blue: linear-gradient(135deg, #0072FF 0%, #00C6FF 100%);
  --ch-gradient-purple: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --ch-gradient-red: linear-gradient(135deg, #D93E60 0%, #EB4167 100%);
  --ch-gradient-pink-orange: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);

  /* Glassmorphism */
  --ch-glass-bg: rgba(255, 255, 255, 0.15);
  --ch-glass-border: rgba(255, 255, 255, 0.25);
  --ch-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  /* Tipografía */
  --ch-font: 'Outfit', sans-serif;

  /* Bordes */
  --ch-radius-sm: 12px;
  --ch-radius-md: 16px;
  --ch-radius-lg: 20px;
  --ch-radius-xl: 24px;
}

/* Reset & Base */
* { box-sizing: border-box; }

body {
  font-family: var(--ch-font);
  margin: 0;
  padding: 0;
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Contenedor principal */
.ch-app {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--ch-gradient-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 20px;
}

/* ---- Header ---- */
.ch-header {
  text-align: center;
  padding: 30px 20px 20px;
  position: relative;
}

.ch-header .ch-logo {
  max-width: 220px;
  margin: 0 auto;
}

.ch-header h1 {
  font-size: 4.4em;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ch-header .ch-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.2em;
  font-weight: 300;
  margin-top: 18px;
}

/* Nubes decorativas */
.ch-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ch-cloud-1 {
  width: 60px; height: 60px;
  right: 30px; top: 80px;
}
.ch-cloud-2 {
  width: 35px; height: 35px;
  right: 60px; top: 60px;
}

/* ---- Cards de servicio ---- */
.ch-cards {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ch-card {
  display: flex;
  align-items: center;
  padding: 24px 24px;
  border-radius: var(--ch-radius-lg);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-height: 120px;
}

.ch-card:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.ch-card:active {
  color: #fff;
  text-decoration: none;
  transform: scale(0.98);
}

.ch-card-blue { background: var(--ch-gradient-blue); }
.ch-card-purple { background: var(--ch-gradient-purple); }
.ch-card-red { background: var(--ch-gradient-red); }
.ch-card-light {
  background: rgba(255,255,255,0.9);
  color: #333;
}

.ch-card-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--ch-radius-sm);
  object-fit: contain;
  margin-right: 14px;
  flex-shrink: 0;
}

.ch-card-content {
  flex: 1;
}

.ch-card-arrow {
  font-size: 1.5em;
  opacity: 0.6;
  margin-left: 8px;
}

.ch-card-content h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 700;
}

.ch-card-content p {
  margin: 3px 0 0;
  font-size: 0.9em;
  opacity: 0.85;
  font-weight: 400;
}

.ch-card-arrow {
  font-size: 1.4em;
  opacity: 0.7;
  margin-left: 8px;
}

/* ---- Badges ---- */
.ch-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  top: 10px;
  right: 12px;
}
.ch-badge-hot {
  background: #FF3B5C;
  color: #fff;
}
.ch-badge-popular {
  background: #8B2FC9;
  color: #fff;
}
.ch-badge-miralo {
  background: #FFD700;
  color: #333;
  font-size: 0.75em;
  padding: 4px 12px;
}

/* ---- Sección "Te puede interesar" ---- */
.ch-interest {
  margin: 24px 24px;
  padding: 20px;
  border-radius: var(--ch-radius-xl);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ch-glass-border);
  position: relative;
}

.ch-interest h2 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

.ch-interest-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.ch-interest-item {
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.ch-interest-item:hover {
  text-decoration: none;
  color: #fff;
}

.ch-interest-item:active {
  text-decoration: none;
  color: #fff;
}

.ch-interest-item .ch-icon-wrap {
  width: 75px;
  height: auto;
  padding: 12px 8px 8px;
  border-radius: var(--ch-radius-md);
  background: rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ch-interest-item .ch-icon-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ch-interest-item .ch-icon-wrap span {
  font-size: 0.75em;
  font-weight: 600;
  color: #555;
}

/* ---- Separador con rayo ---- */
.ch-divider {
  text-align: center;
  padding: 12px 0;
  font-size: 1.2em;
}

/* ---- Navbar inferior ---- */
.ch-navbar {
  margin: 36px 24px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--ch-radius-xl);
  display: flex;
  justify-content: space-around;
  padding: 14px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ch-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #555;
  font-size: 0.6em;
  font-weight: 600;
  gap: 5px;
  transition: color 0.2s;
}

.ch-nav-item:hover {
  color: #333;
}

.ch-nav-icon-wrap {
  width: 60px;
  height: auto;
  padding: 8px 4px 5px;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ch-nav-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.ch-nav-icon-wrap span {
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.ch-nav-icon {
  width: 22px;
  height: 22px;
}

/* ---- Footer ---- */
.ch-footer {
  text-align: center;
  padding: 16px 20px 24px;
  color: #FEDDDF;
  font-size: 0.85em;
}

/* ---- Sección interior (Stockify, etc) ---- */
.ch-section {
  padding: 0 16px;
}

.ch-section-header {
  text-align: center;
  padding: 20px 16px;
}

.ch-section-header h1 {
  color: #fff;
  font-size: 1.8em;
  font-weight: 800;
  margin: 0;
}

.ch-section-header .ch-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85em;
  margin-bottom: 10px;
}

/* Grid de items/diseños */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 24px 20px;
}

.ch-grid-item {
  border-radius: var(--ch-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}

.ch-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ch-grid-item:hover img {
  transform: scale(1.05);
}

.ch-grid-item .ch-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.72em;
  font-weight: 500;
  text-align: center;
}

/* Grid 3 columnas para sub-secciones */
.ch-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Términos / Privacidad ---- */
.ch-legal {
  padding: 20px 16px;
  color: #fff;
}

.ch-legal h1 {
  font-size: 1.5em;
  font-weight: 800;
  margin: 0 0 6px;
  text-align: center;
}

.ch-legal .ch-legal-intro {
  font-size: 0.82em;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 20px;
}

.ch-legal-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--ch-radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.ch-legal-card h3 {
  margin: 0 0 8px;
  font-size: 0.95em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-legal-card p,
.ch-legal-card ul {
  margin: 0;
  font-size: 0.78em;
  opacity: 0.85;
  line-height: 1.5;
}

.ch-legal-card ul {
  padding-left: 18px;
}

/* ---- Access Premium (Stockify) ---- */
.ch-premium-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--ch-radius-lg);
  padding: 16px;
  margin: 16px;
  color: #fff;
}

.ch-premium-box h3 {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 10px;
}

.ch-premium-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82em;
}

.ch-premium-box ul li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ch-premium-box ul li::before {
  content: '✦';
  color: #FFD700;
}

/* ---- Estadísticas ---- */
.ch-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 16px;
  color: #fff;
  text-align: center;
}

.ch-stat-number {
  font-size: 1.5em;
  font-weight: 800;
}

.ch-stat-label {
  font-size: 0.7em;
  opacity: 0.7;
}

/* ---- Botón genérico ---- */
.ch-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--ch-font);
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ch-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ch-btn-primary {
  background: var(--ch-gradient-blue);
  color: #fff;
}

.ch-btn-white {
  background: #fff;
  color: var(--ch-purple);
}

/* ---- Tendencias ---- */
.ch-trending {
  padding: 16px;
  color: #fff;
}

.ch-trending h2 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 12px;
}

/* ---- Carousel 3D (conservado del diseño anterior) ---- */
.ch-carousel-wrap {
  height: 160px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ch-carousel-center {
  margin: 4% auto;
  width: 1px;
  position: relative;
  perspective: 3000px;
}

.ch-carousel {
  position: absolute;
  transform-style: preserve-3d;
  animation: ch-rotation 20s infinite linear;
}

.ch-carousel:hover {
  animation-play-state: paused;
}

.ch-carousel figure {
  display: block;
  position: absolute;
  width: 120px;
  height: 120px;
  top: 10px;
  background: white;
  overflow: hidden;
  border-radius: 12px;
}

.ch-carousel img {
  width: 120px;
  height: 120px;
  border: solid 1px #f4feff;
}

@keyframes ch-rotation {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ---- Placeholder images ---- */
.ch-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.75em;
  font-weight: 500;
}

/* ---- Page Header (TyC / Privacidad) ---- */
.ch-page-header {
  text-align: center;
  padding: 24px 20px 30px;
  position: relative;
}

.ch-page-header h1 {
  color: #fff;
  font-size: 1.8em;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.ch-back-btn {
  position: absolute;
  left: 16px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 30%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ch-page-icon {
  width: 80px;
  height: 80px;
  border-radius: 30%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ---- Page Body (white card) ---- */
.ch-page-body {
  background: #fff;
  border-radius: 24px;
  padding: 30px 24px 20px;
  margin: 0 24px;
  min-height: 50vh;
  color: #333;
}

.ch-page-title {
  font-size: 1.3em;
  font-weight: 800;
  margin: 0 0 10px;
  text-align: center;
  color: #1a1a2e;
}

.ch-page-intro {
  font-size: 1em;
  color: #666;
  text-align: left;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ---- Term Items (checkmark list) ---- */
.ch-term-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ch-term-item:last-of-type {
  border-bottom: none;
}

.ch-term-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.ch-term-content h3 {
  margin: 0 0 4px;
  font-size: 1em;
  font-weight: 700;
  color: #1a1a2e;
}

.ch-term-content p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

/* ---- Privacy Cards (bordered) ---- */
.ch-privacy-card {
  background: #f8fffe;
  border-radius: var(--ch-radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #e8f5f0;
}

.ch-privacy-card h3 {
  margin: 0 0 6px;
  font-size: 1em;
  font-weight: 700;
  color: #1a1a2e;
}

.ch-privacy-card p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

/* ---- Security Section ---- */
.ch-security-section {
  margin-top: 16px;
  padding: 0;
}

.ch-security-section h3 {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1a2e;
}

.ch-security-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-security-section ul li {
  padding: 5px 0;
  font-size: 0.9em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-security-section ul li::before {
  content: '●';
  color: #0D9488;
  font-size: 0.7em;
}

/* ---- Page Date Pill ---- */
.ch-page-date {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.85em;
  color: #999;
  background: #f5f5f5;
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  width: 100%;
}

/* ---- Page CTA Button ---- */
.ch-btn-page {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 15px;
  font-family: var(--ch-font);
  font-weight: 600;
  font-size: 0.9em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ch-btn-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  color: #fff;
}

