/* ============================================================
   social.css — Estilos para el home social, feed, perfil y FAQ
   ============================================================ */

/* ── HERO UPGRADES ── */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ── HERO PATTERNS ── */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Patrón: Ninguno */
[data-hero-pattern="none"] .home-hero::before {
  display: none;
}

/* Patrón: Lunares */
[data-hero-pattern="dots"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Rayas diagonales */
[data-hero-pattern="stripes"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Cuadrados */
[data-hero-pattern="squares"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Corazones */
[data-hero-pattern="hearts"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M30 35l-5-5c-3-3-3-8 0-11s8-3 11 0 3-3 8-3 11 0 0 3 0 8-5 11z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Hojas */
[data-hero-pattern="leaves"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M30 20c-5 0-10 5-10 15s5 15 10 15 10-5 10-15-5-15-10-15zm0 5c3 0 5 5 5 10s-2 10-5 10-5-5-5-10 2-10 5-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Raíces/ondas */
[data-hero-pattern="waves"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M0 10c5 0 5-10 10-10s5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10 5 10 10 10 5-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Triángulos */
[data-hero-pattern="triangles"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M20 0L40 40H0L20 0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Patrón: Hexágonos */
[data-hero-pattern="hexagons"] .home-hero::before {
  background: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.home-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.home-hero p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-btn {
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-btn.white { background: white; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.hero-btn.white:hover { background: #f0f4ff; transform: translateY(-1px); }
.hero-btn.outline { background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.hero-btn.outline:hover { background: rgba(255,255,255,0.2); }
.hero-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.hero-stat i { font-size: 16px; color: rgba(255,255,255,0.5); }

/* ── SPINNER ── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HOME SECTIONS WRAPPER ── */
.home-sections { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; }

/* ── SEARCH BAR ── */
.search-wrap { margin-bottom: 3rem; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.search-bar input::placeholder { color: var(--text3); }

/* ── FEED SECTION ── */
.feed-section { margin-bottom: 4rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-header h2 { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feed-loading { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text3); }

/* ============================================================
   OPPROS TACTILE GLASSMORPHIC CARDS (FEED, SEARCH & EXPLORER)
   ============================================================ */
.feed-card {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.12), 0 4px 14px -2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

[data-theme="dark"] .feed-card {
  background: rgba(22, 27, 38, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.5);
}

.feed-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: var(--card-color, #111);
  box-shadow: 0 20px 48px -10px var(--card-glow, rgba(0, 0, 0, 0.22)), 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .feed-card:hover {
  border-color: var(--card-color, #fff);
}

.feed-card:active {
  transform: scale(0.96) rotateZ(1.7deg);
  transition: transform 0.12s ease;
}

.feed-card-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  position: relative;
  background: linear-gradient(135deg, var(--card-glow, rgba(99, 102, 241, 0.15)) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .feed-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--card-color, var(--primary));
  box-shadow: 0 6px 16px -4px var(--card-glow, rgba(0, 0, 0, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--card-color, var(--primary));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .feed-card-icon-badge {
  background: rgba(28, 34, 48, 0.9);
}

.feed-card:hover .feed-card-icon-badge {
  transform: scale(1.14) rotate(-6deg);
  box-shadow: 0 8px 22px -2px var(--card-glow, rgba(0, 0, 0, 0.28));
}

.feed-category-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .feed-category-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.feed-quiz-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.15));
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="dark"] .feed-quiz-badge {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.4);
}

.feed-card-body {
  padding: 1.15rem 1.15rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feed-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--text);
}

.feed-card-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.feed-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text3);
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}

.feed-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.feed-card-footer {
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 8px;
  align-items: center;
}

[data-theme="dark"] .feed-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-card-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: var(--card-color, var(--primary));
  box-shadow: 0 4px 14px -3px var(--card-glow, rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.feed-card-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px -2px var(--card-glow, rgba(0, 0, 0, 0.3));
}

.feed-card-btn:active {
  transform: scale(0.97);
}

.feed-card-share {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 15px;
}

[data-theme="dark"] .feed-card-share {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.feed-card-share:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--card-color, var(--primary));
  color: var(--card-color, var(--primary));
}

/* ── HOW IT WORKS ── */
.how-section { margin-bottom: 4rem; }
.how-section h2 { font-size: 1.5rem; font-weight: 700; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.how-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.how-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-card p { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ── PRIVACY SECTION ── */
.privacy-section { margin-bottom: 4rem; }
.privacy-section h2 { font-size: 1.5rem; font-weight: 700; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.privacy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}
.privacy-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.privacy-card p { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { margin-bottom: 2rem; }
.faq-section h2 { font-size: 1.5rem; font-weight: 700; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--surface2); }
.faq-icon { font-size: 16px; color: var(--text3); transition: transform 0.2s; flex-shrink: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem;
}

/* ── PROFILE SCREEN ── */
.profile-layout { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.profile-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.profile-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 2px; }
.profile-handle { font-size: 14px; color: var(--text3); margin-bottom: 8px; }
.profile-bio { font-size: 14px; color: var(--text2); line-height: 1.6; }

.profile-name-edit, .profile-handle-edit {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.profile-name-edit { font-size: 1.1rem; font-weight: 700; }
.profile-name-edit:focus, .profile-handle-edit:focus, .profile-bio-edit:focus {
  outline: none;
  border-color: var(--primary);
}
.profile-bio-edit {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 10px;
  min-height: 64px;
  resize: vertical;
  transition: border-color 0.2s;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}
.pstat { text-align: center; }
.pstat-val { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.pstat-label { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* Tabs */
.profile-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-tabs::-webkit-scrollbar {
  display: none;
}
.profile-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.profile-tab:hover {
  background: var(--surface2);
  color: var(--text);
}
.profile-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.profile-tab.active i {
  color: #fff !important;
}
.profile-tab-accent {
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
.profile-tab-sa {
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
}

.ptab-content { display: none; }
.ptab-content.active { display: block; }

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.profile-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-chip:hover { background: var(--surface2); }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Button helpers */
.btn-primary-sm {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-primary-sm:hover { background: var(--primary-dark); }

/* Response history cards */
.response-history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.rhc-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.rhc-meta { font-size: 12px; color: var(--text3); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rhc-quiz-result {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rhc-answers { display: flex; flex-direction: column; gap: 6px; }
.rhc-answer-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 6px 10px;
  flex-wrap: wrap;
}
.rhc-q { color: var(--text3); flex-shrink: 0; max-width: 200px; }
.rhc-a { color: var(--text); font-weight: 500; }

/* Settings card */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.settings-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }

/* ============================================================
   RESPONSIVE ADICIONAL & MOBILE OPTIMIZADO — social.css
   ============================================================ */

/* ── HERO RESPONSIVE ── */
@media (max-width: 640px) {
  .home-hero {
    padding: 2.75rem 1.15rem 2.25rem;
  }
  .home-hero h1 {
    font-size: clamp(1.55rem, 5.5vw, 2.2rem);
    line-height: 1.22;
    margin-bottom: 0.85rem;
  }
  .home-hero h1 br,
  .home-hero p br {
    display: none;
  }
  .home-hero p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    opacity: 0.9;
  }
  .hero-badge {
    margin-bottom: 1.25rem;
    padding: 5px 12px;
    font-size: 12px;
  }
  .hero-btns {
    margin-bottom: 2rem;
    gap: 0.75rem;
  }
  #hero-guest-btns,
  #hero-user-btns {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    gap: 0.75rem !important;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 12px;
    min-height: 44px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding-top: 1.5rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .hero-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11.5px;
    font-weight: 600;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
  }
  .hero-stat i {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
  }

  /* ── FEED & SECCIONES ── */
  .home-sections {
    padding: 1.25rem 0.85rem 3.5rem;
  }
  .search-wrap {
    margin-bottom: 1.75rem;
  }
  .search-bar {
    padding: 10px 14px;
    border-radius: 12px;
  }
  .search-bar input {
    font-size: 16px !important; /* Previene auto-zoom molesto en iOS */
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-header > div:last-child {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }

  /* ── CARACTERÍSTICAS (FEATURES) ── */
  .features-highlight-section {
    margin-bottom: 2.5rem !important;
  }
  .features-highlight-section h2 {
    font-size: 1.35rem !important;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .feature-card {
    padding: 1.25rem 1.15rem !important;
    border-radius: 14px !important;
  }

  /* ── FAQ ── */
  .faq-section h2 {
    font-size: 1.35rem !important;
    margin-bottom: 1.25rem !important;
  }
  .faq-question {
    font-size: 13.5px;
    padding: 1rem 1.15rem;
    min-height: 48px;
  }
  .faq-answer.open {
    padding: 0 1.15rem 1.15rem;
    font-size: 13px;
    line-height: 1.6;
  }

  /* ── PERFIL ── */
  .profile-layout {
    padding: 1rem 0.875rem 3rem;
  }
  .profile-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }
  .profile-stats { justify-content: center; gap: 1.25rem; }
  .profile-info { width: 100%; }
  .profile-name { font-size: 1.2rem; }
  .profile-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px;
    gap: 6px;
    border-radius: 12px;
  }
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }
  .profile-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12.5px;
    padding: 7px 12px;
    border-radius: 8px;
  }
  .profile-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .profile-section-header > div {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .profile-filter-bar {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .profile-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px;
    padding: 6px 12px;
  }
  .response-history-card { padding: 1rem; }
  .rhc-q { max-width: 140px; }
  .rhc-answer-row { flex-direction: column; gap: 4px; }
  .settings-card { padding: 1.25rem; }
  .pstat-val { font-size: 1.3rem; }
  .how-grid,
  .privacy-grid,
  .feed-grid {
    grid-template-columns: 1fr;
  }
  .how-card,
  .privacy-card {
    padding: 1.25rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ============================================================
   OPPROS UIVERSE PLATFORM FEATURE CARDS (ROTATING BORDER & TRAIL)
   ============================================================ */
.uiverse-feature-card {
  min-height: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  padding: 2.2rem 1.6rem 2.2rem;
  transition: all 0.5s ease-in-out;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

[data-theme="dark"] .uiverse-feature-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.5);
}

.uiverse-feature-card .uiverse-border {
  position: absolute;
  inset: 0px;
  border: 2px solid var(--primary);
  opacity: 0;
  transform: rotate(10deg);
  transition: all 0.5s ease-in-out;
  pointer-events: none;
}

.uiverse-feature-card:hover .uiverse-border {
  inset: 12px;
  opacity: 1;
  transform: rotate(0);
}

.uiverse-feature-card:hover {
  border-radius: var(--radius, 6px);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 24px -4px var(--primary);
}

.uiverse-bottom-text {
  position: absolute;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 8px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0;
  letter-spacing: 7px;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
  pointer-events: none;
}

[data-theme="dark"] .uiverse-bottom-text {
  background: var(--surface);
}

.uiverse-feature-card:hover .uiverse-bottom-text {
  letter-spacing: 3.5px;
  opacity: 1;
  transform: translateX(-50%);
}

.uiverse-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

.uiverse-logo {
  height: 38px;
  position: relative;
  width: 38px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.uiverse-feature-card:hover .uiverse-logo {
  width: 154px;
  animation: uiverse-opacity 1s ease-in-out;
}

.uiverse-logo-icon {
  width: 38px;
  height: 38px;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.uiverse-logo-title {
  height: 38px;
  position: absolute;
  left: 38px;
  top: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  padding-left: 8px;
  text-transform: uppercase;
}

.uiverse-trail {
  position: absolute;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.uiverse-feature-card:hover .uiverse-trail {
  animation: uiverse-trail 1s ease-in-out;
}

.uiverse-feature-heading {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
  line-height: 1.35;
}

.uiverse-feature-desc {
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.55;
  margin: 0 0 10px 0;
}

.uiverse-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.uiverse-feature-link:hover {
  text-shadow: 0 0 8px var(--primary);
  transform: translateX(2px);
  filter: brightness(1.2);
}

@keyframes uiverse-opacity {
  0% {
    border-right: 1px solid transparent;
  }
  10% {
    border-right: 1px solid var(--primary);
  }
  80% {
    border-right: 1px solid var(--primary);
  }
  100% {
    border-right: 1px solid transparent;
  }
}

@keyframes uiverse-trail {
  0% {
    background: linear-gradient(90deg, transparent 90%, var(--primary) 100%);
    opacity: 0;
  }
  30% {
    background: linear-gradient(90deg, transparent 70%, var(--primary) 100%);
    opacity: 1;
  }
  70% {
    background: linear-gradient(90deg, transparent 70%, var(--primary) 100%);
    opacity: 1;
  }
  95% {
    background: linear-gradient(90deg, transparent 90%, var(--primary) 100%);
    opacity: 0;
  }
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

@media (max-width: 380px) {
  .home-hero h1 {
    font-size: 1.45rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero-stat {
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ── DESKTOP ENHANCEMENTS (≥1024px) ── */
@media (min-width: 1024px) {
  .feed-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .how-grid { grid-template-columns: repeat(4, 1fr); }
  .privacy-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-header-card { flex-wrap: nowrap; }
}

/* ============================================================
   RESPALDO DE RESPONSIVIDAD PARA EL CARRUSEL EN SOCIAL.CSS
   ============================================================ */
.feed-carousel-desktop {
  display: block;
}
.feed-carousel-mobile {
  display: none !important;
}
@media (max-width: 768px) {
  .feed-carousel-desktop {
    display: none !important;
  }
  .feed-carousel-mobile {
    display: block !important;
  }
  .feed-carousel-header-controls {
    display: none !important;
  }
}
