:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --surface: #ffffff;
  --ink: #14151a;
  --muted: #6b7078;
  --line: #e7e8ec;
  --blue: #2952ff;
  --blue-dark: #1d3bcc;
  --blue-soft: #edf1ff;
  --radius: 14px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
  padding: 16px 32px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search::placeholder {
  color: var(--muted);
}

.search:hover {
  border-color: #d5d8e0;
}

.search:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}

.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  z-index: 15;
}

.search-suggestions.open {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

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

.suggestion-item:hover {
  background: var(--bg-soft);
}

.suggestion-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.suggestion-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-tag {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.suggestion-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.profile-btn,
.submit-btn,
.login-btn,
.logout-btn {
  background: linear-gradient(325deg, #0044ff 0%, #2ccfff 55%, #0044ff 90%);
  background-size: 280% auto;
  background-position: bottom left;
  color: #ffffff;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow:
    0 0 14px rgba(71, 184, 255, 0.45),
    0 3px 8px -2px rgba(58, 125, 233, 0.3),
    inset 3px 3px 6px rgba(175, 230, 255, 0.45),
    inset -3px -3px 6px rgba(19, 95, 216, 0.3);
  transition: background-position 0.7s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-btn:hover,
.submit-btn:hover,
.login-btn:hover,
.logout-btn:hover {
  background-position: top right;
  transform: translateY(-1px);
  box-shadow:
    0 0 20px rgba(71, 184, 255, 0.6),
    0 5px 12px -2px rgba(58, 125, 233, 0.35),
    inset 3px 3px 6px rgba(175, 230, 255, 0.45),
    inset -3px -3px 6px rgba(19, 95, 216, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-btn {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: none;
}

.profile-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: none;
  box-shadow: none;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  max-width: 900px;
  margin: 14px auto 0;
}

.tab {
  background: none;
  border: none;
  padding: 10px 18px 13px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  font-weight: 700;
}

@media (max-width: 640px) {
  .header {
    padding: 14px 16px 0;
  }

  .tabs {
    margin-top: 12px;
  }

  .tab {
    flex: 1;
    text-align: center;
    padding: 10px 6px 13px;
    font-size: 13.5px;
  }
}

/* Content */
.content {
  padding: 24px 32px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.list-section {
  display: none;
}

.list-section.active {
  display: block;
}

/* Simple default list: image + title + divider line, no card effect */
.list-rows {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.list-row:hover .row-title {
  color: var(--blue);
}

.thumb-video {
  width: 120px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-radius: 10px;
}

.thumb-square {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
  border-radius: 10px;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
  background: var(--bg-soft);
  flex-shrink: 0;
  border-radius: 10px;
}

.list-row .row-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.row-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  min-width: 0;
}

.row-tag:empty {
  display: none;
}

.row-tag-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

span.row-tag-icon.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.row-tag-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-date {
  font-size: 12.5px;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.empty-msg {
  color: var(--muted);
  padding: 50px 0;
  text-align: center;
}

/* Estado "proximamente" (comunidad) */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  max-width: 420px;
  margin: 0 auto;
}

.coming-soon-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 16px 28px -14px rgba(20, 21, 26, 0.35);
  margin-bottom: 22px;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.coming-soon-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.coming-soon-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Skeleton loading */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.skeleton-thumb {
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-thumb-video {
  width: 120px;
  height: 68px;
}

.skeleton-thumb-square {
  width: 56px;
  height: 56px;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-line-title {
  width: 55%;
  height: 14px;
}

.skeleton-line-meta {
  width: 30%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Contenido bloqueado (plan FREE) */
.thumb-wrap {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.thumb-wrap img,
.thumb-wrap .thumb-placeholder {
  filter: blur(7px);
}

.lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.row-title.blurred-text {
  filter: blur(5px);
  user-select: none;
}

.community-locked {
  position: relative;
  padding: 40px 0;
  text-align: center;
  cursor: pointer;
}

.community-locked p {
  filter: blur(5px);
  user-select: none;
}

.community-locked .lock-badge {
  position: static;
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

/* Admin list rows with edit/delete actions */
.admin-row {
  justify-content: space-between;
  cursor: default;
}

.row-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.row-link .row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-link:hover .row-title {
  color: var(--blue);
}

.row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.icon-btn.delete-btn:hover {
  color: #d1293d;
}

/* Orden manual (arrastrar y soltar) de la lista de negocios */
.sortable-row {
  transition: opacity 0.15s ease;
}

.sortable-row.dragging {
  opacity: 0.4;
}

.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Detail page (view.html) */
.view-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.back-btn:hover {
  background: var(--bg-soft);
  color: var(--blue);
}

.view-header h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.view-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.view-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.view-tags:empty {
  display: none;
  margin-bottom: 0;
}

.view-description {
  font-size: 15.5px;
  line-height: 1.7;
  color: #2b2d33;
}

.related-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Pagina legal (terminos y privacidad) */
.legal-content {
  font-size: 15px;
  line-height: 1.7;
  color: #2b2d33;
}

.legal-updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.legal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.legal-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.legal-nav a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-content p {
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--blue);
}

/* Profile modal */
.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 20, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}

.profile-modal.open {
  display: flex;
}

.profile-box {
  background: var(--surface);
  padding: 28px;
  border-radius: 18px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  border: 1px solid var(--line);
}

.profile-box h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

/* Vista previa del panel admin: mas ancha y con el contenido alineado a la
   izquierda, ya que muestra HTML renderizado en vez de un mensaje corto. */
.admin-preview-box {
  max-width: 620px;
  max-height: 82vh;
  overflow-y: auto;
  text-align: left;
}

.admin-preview-box .billing-modal-title {
  text-align: left;
}

.admin-preview-box .preview-desc {
  max-height: none;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal-close-btn:hover {
  background: var(--line);
}

.hero-cta {
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  font-size: 16px;
  line-height: 1.2;
}

.landing-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 28px;
  flex-wrap: wrap;
}

.social-avatars {
  display: flex;
  flex-shrink: 0;
}

.social-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  background: var(--bg-soft);
  margin-left: -10px;
}

.social-avatar:first-child {
  margin-left: 0;
}

.social-proof-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.profile-box p {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.profile-box .error-msg,
.profile-box .success-msg {
  font-size: 13.5px;
  color: #d1293d;
}

.profile-box .success-msg {
  color: var(--blue);
}

/* Perfil premium */
.premium-profile-box {
  max-width: 360px;
  text-align: left;
  position: relative;
  padding: 32px 26px 26px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 2px solid var(--surface);
  outline: 2px solid var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.profile-email {
  font-size: 13px;
  color: var(--muted);
}

.profile-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 14px 2px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.profile-option:hover {
  color: #d1293d;
}

.profile-option-arrow {
  color: var(--muted);
  font-size: 18px;
}

.logout-confirm-box {
  max-width: 320px;
}

.logout-confirm-logo {
  justify-content: center;
  margin-bottom: 16px;
}

.logout-confirm-box h3 {
  margin-bottom: 10px;
}

.logout-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.logout-confirm-actions button {
  flex: 1;
}

.btn-danger {
  background: #d1293d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-danger:hover {
  background: #b22132;
}

/* Perfil como seccion (no popup) */
.profile-btn.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.profile-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0 60px;
}

.profile-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.profile-page-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.profile-page-email {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.settings-group {
  margin-bottom: 28px;
}

.settings-group-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.settings-group .settings-row + .settings-row {
  border-top: none;
}

.settings-group .settings-row:first-child {
  border-radius: 12px 12px 0 0;
}

.settings-group .settings-row:last-child {
  border-radius: 0 0 12px 12px;
}

.settings-group .settings-row:only-child {
  border-radius: 12px;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.settings-row-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.settings-row-danger .settings-row-icon {
  color: #d1293d;
}

.settings-row-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.settings-static-value {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.settings-row-btn {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.settings-row-btn:hover {
  background: var(--bg-soft);
}

.settings-row-arrow {
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
}

.settings-row-danger .settings-row-label {
  color: #d1293d;
}

.profile-page-logout {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #d1293d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-page-logout:hover {
  background: #fdf1f2;
}

.billing-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  text-align: center;
}

/* Switch on/off */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .switch-slider {
  background: var(--blue);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(18px);
}

/* Inputs dentro de modales de perfil (cambiar contrasena, etc.) */
.profile-modal .field-group {
  margin-top: 14px;
  text-align: left;
}

.profile-modal .field-group:first-child {
  margin-top: 0;
}

.profile-modal .field-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.profile-modal .field-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.profile-modal .field-group input:focus {
  outline: none;
  border-color: var(--blue);
}

/* Auth forms: admin login, user login, user register */
.auth-wrap {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-wrap h2 {
  color: var(--ink);
  margin-bottom: 6px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-wrap label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.auth-wrap input[type="text"],
.auth-wrap input[type="email"],
.auth-wrap input[type="password"],
.auth-wrap textarea,
.auth-wrap select,
.auth-wrap input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.auth-wrap input::placeholder {
  color: var(--muted);
}

.auth-wrap input:focus,
.auth-wrap textarea:focus,
.auth-wrap select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}

.auth-wrap input[readonly] {
  color: var(--muted);
  cursor: default;
}

.auth-field {
  position: relative;
  margin-top: 14px;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--muted);
  pointer-events: none;
}

.auth-wrap .auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px 14px 42px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-wrap .auth-field input:focus {
  background: var(--surface);
  border-color: var(--blue);
}

.auth-wrap .auth-field input[readonly] {
  color: var(--ink);
  cursor: default;
}

.auth-wrap .auth-field input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-top: 10px;
}

.forgot-password-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.turnstile-box {
  display: none;
  justify-content: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  transition: margin 0.15s ease;
}

.turnstile-box.is-ready {
  display: flex;
  margin: 16px 0 4px;
  min-height: 65px;
}

.turnstile-box-error {
  display: none;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 4px;
}

.turnstile-box-error.is-visible {
  display: block;
}

.auth-footnote {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 26px;
}

.auth-footnote a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

.auth-legal {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}

.auth-legal a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

.auth-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 4px auto 16px;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 auto 10px;
  width: fit-content;
}

.auth-wrap .login-btn,
.auth-wrap .submit-btn {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-google:hover {
  background: var(--bg-soft);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.error-msg {
  color: #d1293d;
  margin-top: 12px;
  font-size: 13.5px;
  text-align: center;
}

.success-msg {
  color: var(--blue);
  margin-top: 12px;
  font-size: 13.5px;
  text-align: center;
}

/* Admin panel: shell (sidebar + area principal), estilo editor tipo Shopify */
.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.admin-sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 22px;
}

.admin-sidebar-brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.admin-sidebar-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.admin-sidebar-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item svg {
  flex-shrink: 0;
}

.admin-nav-item:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.admin-nav-item.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.admin-nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 1px 7px;
  border-radius: 999px;
}

.admin-nav-item.active .admin-nav-count {
  background: rgba(255, 255, 255, 0.65);
  color: var(--blue-dark);
}

.admin-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-sidebar-logout:hover {
  background: #fdf1f2;
  color: #d1293d;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 34px 42px 70px;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: block;
}

.admin-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-view-header h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.admin-view-subtitle {
  font-size: 13.5px;
  color: var(--muted);
}

/* Botones del admin */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.admin-btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.admin-btn-primary:hover {
  background: #000000;
}

.admin-btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.admin-btn-secondary:hover {
  background: var(--bg-soft);
}

.admin-btn-danger {
  background: #fdf1f2;
  color: #d1293d;
  border-color: #f6d3d8;
}

.admin-btn-danger:hover {
  background: #fbe3e6;
}

.admin-btn-icon {
  padding: 9px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.admin-btn-icon:hover {
  background: var(--bg-soft);
}

/* Newsletter */
.newsletter-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 14px;
  margin-bottom: 20px;
}

.newsletter-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.newsletter-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.newsletter-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.newsletter-campaign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.newsletter-campaign-row:last-child {
  border-bottom: none;
}

.newsletter-campaign-subject {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.newsletter-campaign-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.newsletter-campaign-status {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  flex: none;
}

.newsletter-campaign-status.sent {
  background: rgba(34, 197, 94, 0.14);
  color: #17803d;
}

/* Tablas / listas del admin (reutiliza .list-rows y .list-row ya existentes) */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.admin-table-wrap .list-rows {
  padding: 6px;
}

.admin-table-head {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.user-row-grid {
  display: grid;
  grid-template-columns: 40px 1fr 90px 130px 130px;
  align-items: center;
  gap: 14px;
}

.user-row {
  display: grid;
  grid-template-columns: 40px 1fr 90px 130px 130px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.user-row:last-child {
  border-bottom: none;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.user-row-email {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.user-plan-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  width: fit-content;
}

.user-plan-badge.pro {
  background: var(--blue);
  color: #ffffff;
}

.user-row-date {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .user-row-grid,
  .user-row {
    grid-template-columns: 34px 1fr;
  }

  .user-row-grid span:nth-child(3),
  .user-row-grid span:nth-child(4),
  .user-row-grid span:nth-child(5),
  .user-row .user-plan-badge,
  .user-row .user-row-date {
    display: none;
  }
}

/* Editor de publicaciones (ideas / negocios) */
.admin-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.admin-editor-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-editor-topbar h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-editor-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Formulario con su propio menu lateral (Portada / Contenido / Diseño),
   pensado para escritorio: ocupa todo el espacio disponible del panel. */
.admin-editor-body {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.admin-editor-nav {
  width: 208px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  position: sticky;
  top: 34px;
}

.admin-editor-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-editor-nav-item svg {
  flex-shrink: 0;
}

.admin-editor-nav-item:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.admin-editor-nav-item.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.admin-editor-form {
  flex: 1;
  min-width: 0;
}

.admin-editor-section {
  display: none;
}

.admin-editor-section.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.admin-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.admin-card-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.field-group {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.admin-card > .field-group:first-of-type,
.admin-card > .type-toggle {
  margin-top: 16px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.admin-card input[type="text"],
.admin-card textarea,
.admin-card select,
.admin-card input[type="file"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.admin-card textarea {
  min-height: 140px;
  resize: vertical;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Las secciones "Contenido" y "Diseño" tienen toda la pagina para ellas
   solas, asi que el editor de codigo puede ser bastante mas grande. */
.admin-card textarea.admin-code-editor {
  min-height: 420px;
}

.admin-card-value {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}

.type-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 10px;
}

.type-toggle input {
  display: none;
}

.type-toggle label {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
}

.type-toggle input:checked + label {
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--line);
}

.preview-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  margin-bottom: 4px;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  min-height: 20px;
  margin-top: 10px;
}

.preview-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-height: 160px;
  overflow-y: auto;
  margin-top: 8px;
}

.cancel-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  background: var(--bg-soft);
  color: var(--ink);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cancel-btn:hover {
  background: var(--line);
}

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    overflow-x: auto;
  }

  .admin-sidebar-brand {
    padding: 0 14px 0 0;
  }

  .admin-nav {
    flex-direction: row;
    flex: none;
  }

  .admin-nav-item {
    white-space: nowrap;
  }

  .admin-sidebar-logout {
    margin-left: auto;
    white-space: nowrap;
  }

  .admin-main {
    padding: 24px 18px 60px;
  }
}

/* Landing page */
.landing-floating-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.landing-floating-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 760px;
  padding: 9px 9px 9px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s ease;
}

.header-login-btn:hover {
  background: #000000;
}

/* Pagina de seleccion de plan (plans.html) */
.plans-hero {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 60px;
  text-align: center;
}

.plans-hero .hero-subtitle {
  margin-bottom: 40px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
}

.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 30px;
  text-align: left;
  background: var(--surface);
}

.plan-card-featured {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgba(41, 82, 255, 0.35);
}

.plan-tag {
  position: absolute;
  top: 30px;
  right: 26px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 12px 22px -12px rgba(41, 82, 255, 0.5);
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-price-old {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #d1293d;
  margin-right: 2px;
}

.plan-price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.plan-price-period {
  font-size: 14px;
  color: var(--muted);
}

.plan-savings {
  font-size: 13px;
  font-weight: 700;
  color: #17924f;
  margin-bottom: 22px;
}

.plan-select-btn {
  width: 100%;
  border-radius: 999px;
  margin-bottom: 30px;
}

.plan-card:not(.plan-card-featured) .plan-select-btn {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.plan-card:not(.plan-card-featured) .plan-select-btn:hover {
  background: var(--bg-soft);
  box-shadow: none;
  transform: none;
}

.plan-includes-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-weight: 700;
}

.plan-card-featured .plan-features li::before {
  color: var(--blue);
}

@media (max-width: 620px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.landing-stage {
  position: relative;
  overflow: hidden;
}

.floating-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 22%;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  box-shadow: 0 14px 30px -10px rgba(20, 21, 26, 0.28);
  animation: float-icon 6.5s ease-in-out infinite;
}

.fi-1 { top: 16%; left: 6%; width: 92px; --rot: -6deg; animation-delay: 0s; }
.fi-2 { top: 39%; left: 12%; width: 88px; --rot: 4deg; animation-delay: 0.6s; }
.fi-3 { top: 61%; left: 6%; width: 96px; --rot: -4deg; animation-delay: 1.2s; }
.fi-4 { top: 80%; left: 20%; width: 84px; --rot: 6deg; animation-delay: 1.8s; }
.fi-5 { top: 87%; left: 38%; width: 78px; --rot: -5deg; animation-delay: 2.4s; }
.fi-6 { top: 87%; left: 56%; width: 78px; --rot: 5deg; animation-delay: 0.3s; }
.fi-7 { top: 78%; left: 74%; width: 88px; --rot: -6deg; animation-delay: 0.9s; }
.fi-8 { top: 59%; left: 89%; width: 92px; --rot: 5deg; animation-delay: 1.5s; }
.fi-9 { top: 37%; left: 92%; width: 96px; --rot: -4deg; animation-delay: 2.1s; }
.fi-10 { top: 15%; left: 82%; width: 88px; --rot: 6deg; animation-delay: 0.45s; }
.fi-11 { top: 27%; left: 25%; width: 64px; --rot: -3deg; animation-delay: 1.05s; }

@keyframes float-icon {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) translateY(-16px);
  }
}

.floating-icons-mobile {
  display: none;
}

@media (max-width: 900px) {
  .floating-icons {
    display: none;
  }

  /* El header flotante es "position: fixed" y se pinta encima de todo. En
     pantallas cortas el bloque centrado del hero (iconos + titulo) puede
     empezar muy cerca del top y quedar tapado por el header; reservamos
     espacio fijo arriba para que nunca se encimen. */
  .hero {
    padding-top: 128px;
  }

  .floating-icons-mobile {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 16px;
    max-width: 300px;
    margin: 0 auto 30px;
  }

  /* El bamboleo (animado) vive en el wrap; el desfase base + rotacion
     (estaticos) viven en la imagen. Van en elementos distintos a proposito:
     una animacion de "transform" pisa cualquier transform estatico puesto
     en el MISMO elemento, así que separarlos evita que el efecto flotante
     borre el desfase tipo "pyramid". */
  .floating-icon-mobile-wrap {
    display: inline-flex;
    animation: float-icon-mobile 3.6s ease-in-out infinite;
  }

  .floating-icon-mobile {
    display: block;
    width: 58px;
    height: 58px;
    aspect-ratio: 1 / 1;
    border-radius: 22%;
    object-fit: cover;
    box-shadow:
      0 18px 26px -10px rgba(20, 21, 26, 0.45),
      0 0 34px -6px rgba(110, 145, 255, 0.4);
  }

  .floating-icon-mobile-wrap:nth-child(1) { animation-delay: 0s; }
  .floating-icon-mobile-wrap:nth-child(1) .floating-icon-mobile { transform: translateY(8px) rotate(-6deg); }

  .floating-icon-mobile-wrap:nth-child(2) { animation-delay: 0.35s; }
  .floating-icon-mobile-wrap:nth-child(2) .floating-icon-mobile { transform: translateY(-6px) rotate(3deg); }

  .floating-icon-mobile-wrap:nth-child(3) { animation-delay: 0.7s; }
  .floating-icon-mobile-wrap:nth-child(3) .floating-icon-mobile { transform: translateY(10px) rotate(-4deg); }

  .floating-icon-mobile-wrap:nth-child(4) { animation-delay: 1.05s; }
  .floating-icon-mobile-wrap:nth-child(4) .floating-icon-mobile { transform: translateY(6px) rotate(5deg); }

  .floating-icon-mobile-wrap:nth-child(5) { animation-delay: 0.2s; z-index: 1; }
  .floating-icon-mobile-wrap:nth-child(5) .floating-icon-mobile { width: 78px; height: 78px; transform: translateY(-12px) rotate(-3deg); }

  .floating-icon-mobile-wrap:nth-child(6) { animation-delay: 1.4s; }
  .floating-icon-mobile-wrap:nth-child(6) .floating-icon-mobile { transform: translateY(8px) rotate(4deg); }

  .floating-icon-mobile-wrap:nth-child(7) { animation-delay: 0.5s; }
  .floating-icon-mobile-wrap:nth-child(7) .floating-icon-mobile { transform: translateY(4px) rotate(-5deg); }

  .floating-icon-mobile-wrap:nth-child(8) { animation-delay: 1.75s; }
  .floating-icon-mobile-wrap:nth-child(8) .floating-icon-mobile { transform: translateY(-8px) rotate(6deg); }

  .floating-icon-mobile-wrap:nth-child(9) { animation-delay: 0.85s; }
  .floating-icon-mobile-wrap:nth-child(9) .floating-icon-mobile { transform: translateY(6px) rotate(-3deg); }

  .floating-icon-mobile-wrap:nth-child(10) { animation-delay: 2.1s; }
  .floating-icon-mobile-wrap:nth-child(10) .floating-icon-mobile { transform: translateY(-4px) rotate(5deg); }

  .floating-icon-mobile-wrap:nth-child(11) { animation-delay: 1.2s; }
  .floating-icon-mobile-wrap:nth-child(11) .floating-icon-mobile { transform: translateY(8px) rotate(-4deg); }
}

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

.hero {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 620px;
}

.hero-title-accent {
  color: var(--blue);
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(325deg, #0044ff 0%, #2ccfff 55%, #0044ff 90%);
  background-size: 280% auto;
  background-position: bottom left;
  color: #ffffff;
  box-shadow:
    0 0 20px rgba(71, 184, 255, 0.5),
    0 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
  transition: background-position 0.7s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-position: top right;
  transform: translateY(-1px);
  box-shadow:
    0 0 26px rgba(71, 184, 255, 0.65),
    0 6px 10px -1px rgba(58, 125, 233, 0.3),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--line);
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

/* Landing page - secciones informativas */
.landing-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

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

.benefits-section .section-head {
  max-width: 620px;
}

.benefits-section .section-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-title-accent {
  color: var(--blue);
}

.benefits-section .section-subtitle {
  font-size: 17px;
  line-height: 1.7;
}

.benefits-grid {
  gap: 40px;
}

.benefit-item {
  text-align: left;
}

.benefit-icon-img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 16px 28px -14px rgba(20, 21, 26, 0.35);
}

.benefit-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.benefit-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.plans-section .plans-grid {
  max-width: 860px;
  margin: 0 auto;
}

.plans-section .plan-select-btn {
  text-decoration: none;
}

/* ============ FAQ ============ */
.faq-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.faq-head {
  flex: 0 0 300px;
  max-width: 300px;
  margin: 0;
  text-align: left;
  position: sticky;
  top: 110px;
}

.faq-head .section-subtitle {
  color: var(--muted);
}

.faq-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: #ccd3e6;
  box-shadow: 0 10px 24px -18px rgba(20, 21, 26, 0.35);
}

.faq-item[open] {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--surface) 130px);
  box-shadow: 0 16px 32px -20px rgba(41, 82, 255, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  background: var(--blue);
  color: #ffffff;
  transform: rotate(135deg);
}

.faq-answer {
  padding: 0 0 22px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============ Cierre premium: CTA + footer fundidos en un solo bloque ============ */
.landing-closing {
  position: relative;
  margin-top: 40px;
  padding-top: 100px;
  background:
    radial-gradient(ellipse 760px 420px at 50% 0%, rgba(71, 184, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #0a0e1f 0%, #0b1020 45%, #070a14 100%);
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.closing-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 760px;
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(71, 184, 255, 0.5), rgba(41, 82, 255, 0.12) 55%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.landing-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 65%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.closing-cta {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 90px;
  text-align: center;
}

.cta-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
}

.closing-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 34px 24px 30px;
}

.closing-footer-inner {
  max-width: 1080px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-logo .logo-icon {
  filter: invert(1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.closing-footer .lang-switch {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.closing-footer .lang-switch a {
  color: rgba(255, 255, 255, 0.55);
}

.closing-footer .lang-switch a:hover {
  color: #ffffff;
}

.closing-footer .lang-switch a.active {
  background: #ffffff;
  color: #0b1020;
}

.footer-copy {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* Selector de idioma */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.active {
  background: var(--ink);
  color: #ffffff;
}

.auth-lang-switch {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* Selector de idioma minimalista (nativo) */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23767b83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 26px 6px 10px;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: var(--blue);
}

.settings-row .lang-select {
  width: auto;
}

.profile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}

.profile-lang-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 760px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .plans-section .plans-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 72px 24px;
  }

  .faq-layout {
    flex-direction: column;
    gap: 28px;
  }

  .faq-head {
    position: static;
    flex: 1 1 auto;
    max-width: none;
  }

  .landing-closing {
    border-radius: 28px 28px 0 0;
    padding-top: 64px;
  }

  .closing-cta {
    padding: 0 24px 56px;
  }

  .cta-title {
    font-size: 28px;
  }

  .closing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
