/* ============================================
   QuickHealth — Custom Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #0077B6;
  --primary-dark: #005A8D;
  --accent: #00B4D8;
  --accent-light: #90E0EF;
  --dark: #1B365D;
  --dark-alt: #0D1B2A;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --text: #334155;
  --text-light: #64748B;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition)
}

ul,
ol {
  list-style: none
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit
}

/* ---------- Utility ---------- */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto
}

.section {
  padding: 6rem 0
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
  letter-spacing: -.03em;
  line-height: 1.1
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 3.5rem
}

.text-center {
  text-align: center
}

.mx-auto {
  margin-left: auto;
  margin-right: auto
}

/* ---------- Glassmorphism & Cards ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.article-card,
.category-card,
.service-card,
.testimonial-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: all var(--transition);
}

.article-card:hover,
.category-card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  border-color: var(--accent-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: .95rem;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, .35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 119, 182, .45);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 119, 182, .2);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, .35);
}

.btn-protected-contact i {
  margin-right: 8px;
  color: var(--accent);
}

.btn-success {
  background: #10B981;
  color: var(--white) !important;
  border-color: #059669 !important;
}

/* ---------- VISUAL CMS STYLES ---------- */
.cms-edit-wrapper {
  position: relative;
}

.cms-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: 2px solid white;
}

.cms-edit-btn:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.cms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cms-modal {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: cmsFadeIn 0.3s ease;
}

@keyframes cmsFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cms-modal h3 {
  margin-bottom: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-form-group {
  margin-bottom: 1.25rem;
}

.cms-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.cms-form-group input, 
.cms-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.cms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cms-save-btn {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.cms-cancel-btn {
  background: var(--gray-200);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Links and Interactivity ---------- */
a {
  transition: all 0.3s ease;
}

.card-link {
  transition: all 0.3s ease;
}

.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(5px);
}

.footer-links a:hover {
  padding-left: 8px;
  color: var(--accent);
}

.category-card, .article-card, .service-card {
  cursor: pointer;
}

/* Newsletter improvements */
.newsletter-form input {
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(144, 224, 239, 0.3);
}


.btn svg,
.btn i {
  font-size: 1.1em
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.4s ease
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  height: 65px
}

.logo {
  display: flex;
  align-items: center;
  height: 100%
}

.logo img {
  height: 48%;
  width: auto;
  max-width: 175px;
  transition: all 0.4s ease;
  object-fit: contain;
  object-position: left
}

/* Desktop Header Adjustments */
@media (min-width: 768px) {
  .header-inner {
    height: 80px;
    padding: 0 1.5rem;
  }

  .logo img {
    height: 50%;
    max-width: 245px;
  }
}

/* Text Box Glass for Readability */

.text-box-glass {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2rem;
  display: inline-block;
  text-align: left;
  width: 100%;
}

.text-box-glass h1,
.text-box-glass h2 {
  margin-bottom: 1rem;
}

.text-box-glass p {
  margin-bottom: 0;
  color: var(--dark);
}

/* Desktop nav */
.nav-desktop {
  display: none
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
}

.nav-desktop ul {
  display: flex;
  gap: 2.5rem;
  align-items: center
}

.nav-desktop a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding: .25rem 0;
  letter-spacing: 0.02em
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary)
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%
}

/* Marketplace Nav Button */
.nav-btn-marketplace {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white) !important;
  transition: all 0.3s ease;
  padding: 0 !important;
  font-size: 1.1rem !important;
}

.nav-desktop a.nav-btn-marketplace::after {
  display: none !important;
}

.nav-btn-marketplace:hover,
.nav-btn-marketplace.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

/* Academic Nav Button */
.nav-btn-academic {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white) !important;
  transition: all 0.3s ease;
  padding: 0 !important;
  font-size: 1.1rem !important;
}

.nav-desktop a.nav-btn-academic::after {
  display: none !important;
}

.nav-btn-academic:hover,
.nav-btn-academic.active {
  background: linear-gradient(135deg, #6D28D9, #4C1D95) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* Auth-Gated Locked State */
.auth-gated-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(60%);
}
.auth-gated-locked:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Verify Button Pulse */
.qh-verify-btn-pulse {
  animation: verifyPulse 0.6s ease-in-out 3;
}
@keyframes verifyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
}

/* Hero Logo Overlay */
.hero-logo-overlay {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 3;
  background: transparent;
  padding: 0.75rem 1.5rem;
}

.hero-logo-overlay img {
  height: 80px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .hero-logo-overlay {
    top: 2rem;
    right: 3rem;
    padding: 1rem 2rem;
  }
  .hero-logo-overlay img {
    height: 105px;
  }
}

/* Header icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem
}

.search-toggle,
.menu-toggle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  color: var(--dark);
  font-size: 1.6rem
}

.search-toggle:hover,
.menu-toggle:hover {
  background: var(--gray-100);
  color: var(--primary)
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all 0.3s ease
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease
}

.menu-toggle span::before {
  top: -8px
}

.menu-toggle span::after {
  top: 8px
}

.menu-toggle.active span {
  background: transparent
}

.menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg)
}

.menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg)
}

/* ---------- MOBILE NAV ---------- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl)
}

.mobile-nav.open {
  right: 0
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  padding-left: .75rem
}

.mobile-nav .nav-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200)
}

.mobile-nav .nav-social a {
  border: none;
  padding: 0;
  font-size: 1.5rem;
  color: var(--gray-400)
}

.mobile-nav .nav-social a:hover {
  color: var(--primary)
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: var(--white);
  text-align: center;
  font-size: .85rem;
  padding: .5rem 0;
  letter-spacing: .03em;
  font-weight: 600;
  margin-top: 65px
}

.top-bar a {
  color: var(--accent-light);
  font-weight: 600
}

.top-bar a:hover {
  text-decoration: underline
}

@media (min-width: 768px) {
  .top-bar {
    margin-top: 80px;
    font-size: 0.9rem;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white)
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--white)
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  filter: grayscale(10%) brightness(1.05);
  transform: scale(1.1);
  transition: transform 0.5s ease-out
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%)
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  width: 100%
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0, 119, 182, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 119, 182, 0.1);
  border-radius: var(--radius-xl);
  padding: .6rem 1.4rem;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 2rem
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(1.2)
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-light);
  max-width: 650px;
  margin-bottom: 2.5rem;
  line-height: 1.6
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200)
}

.hero-stat {
  text-align: left
}

.hero-stat .number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.02em
}

.hero-stat .label {
  font-size: .9rem;
  color: var(--text-light);
  margin-top: .25rem;
  font-weight: 500
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
  pointer-events: none
}

.cta-banner h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.5rem;
  font-size: 1rem
}

/* ---------- ARTICLES GRID ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200)
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.article-card .card-img {
  position: relative;
  height: 200px;
  overflow: hidden
}

.article-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.article-card:hover .card-img img {
  transform: scale(1.06)
}

.article-card .card-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(0, 119, 182, .9);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: .04em
}

.article-card .card-body {
  padding: 1.25rem
}

.article-card .card-date {
  font-size: .78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .5rem
}

.article-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: .65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.article-card .card-excerpt {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.article-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition)
}

.article-card .card-link:hover {
  gap: .6rem
}

/* ---------- CATEGORIES ---------- */
.categories {
  background: var(--white)
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.category-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center
}

.category-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px)
}

.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block
}

.category-card .cat-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark)
}

.category-card .cat-count {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: .25rem
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: linear-gradient(180deg, var(--gray-100), var(--white))
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: relative
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: .5rem;
  left: 1.25rem;
  font-size: 4rem;
  color: var(--accent-light);
  font-family: Georgia, serif;
  line-height: 1
}

.testimonial-card p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-top: 1.5rem
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: .75rem
}

.testimonial-card .author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem
}

.testimonial-card .author-info .name {
  font-weight: 600;
  color: var(--dark);
  font-size: .9rem
}

.testimonial-card .author-info .role {
  font-size: .78rem;
  color: var(--text-light)
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  position: relative;
  overflow: hidden
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center
}

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.about-img img {
  width: 100%;
  height: auto
}

.about-content .about-tag {
  display: inline-block;
  background: rgba(0, 119, 182, .1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em
}

.about-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2
}

.about-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem
}

.about-feature {
  display: flex;
  align-items: start;
  gap: .6rem
}

.about-feature .feat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 180, 216, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem
}

.about-feature .feat-text {
  font-size: .85rem;
  font-weight: 500;
  color: var(--dark)
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--dark-alt), var(--dark));
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 180, 216, .12) 0%, transparent 70%);
  pointer-events: none
}

.newsletter h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .5rem
}

.newsletter p {
  color: rgba(255, 255, 255, .7);
  margin-bottom: 2rem
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 500px;
  margin: 0 auto
}

.newsletter-form input {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: .95rem;
  transition: border var(--transition)
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .4)
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent)
}

.newsletter-form .btn {
  justify-content: center
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark-alt);
  color: rgba(255, 255, 255, .7);
  padding: 4rem 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand .logo {
  color: var(--white);
  height: auto;
  margin-bottom: 0;
  font-size: 1.3rem;
  display: block;
}

.footer-brand .logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.6;
  max-width: 350px;
  margin: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}

.footer-links a {
  display: block;
  padding: .5rem 0;
  font-size: .88rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: .5rem;
}

.footer-contact a,
.footer-contact p {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  margin-bottom: .75rem;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}


/* ---------- PAGE HEADER ---------- */
.page-header {
  background: 
    radial-gradient(circle at 85% 15%, rgba(0, 180, 216, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0, 119, 182, 0.6) 0%, transparent 55%),
    linear-gradient(135deg, var(--dark) 10%, var(--primary-dark) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 62px;
  position: relative;
  overflow: hidden
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='100' viewBox='0 0 400 100'%3E%3Cpath d='M 0 50 L 120 50 Q 125 40, 130 50 L 140 50 L 145 55 L 155 10 L 165 75 L 170 50 L 190 50 Q 200 30, 210 50 L 400 50' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x;
  animation: heartbeatMove 8s linear infinite;
  pointer-events: none;
  z-index: 1; /* Below text which is z-index 2 */
}

@keyframes heartbeatMove {
  from { background-position-x: 0; }
  to { background-position-x: 400px; }
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: .75rem
}

.page-header p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5)
}

.breadcrumb a {
  color: var(--accent-light)
}

.breadcrumb .current {
  color: var(--white);
  font-weight: 500;
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-header-content .page-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-header-content .page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.breadcrumb a:hover {
  text-decoration: underline
}

/* ---------- CONTACT FORM ---------- */
.contact-section {
  background: var(--white)
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem
}

.form-group {
  margin-bottom: 1.25rem
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border var(--transition)
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, .1)
}

.form-group textarea {
  resize: vertical;
  min-height: 140px
}

.form-group .error-msg {
  color: #EF4444;
  font-size: .78rem;
  margin-top: .3rem;
  display: none
}

.form-group.error input,
.form-group.error textarea {
  border-color: #EF4444
}

.form-group.error .error-msg {
  display: block
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
  background: rgba(0, 180, 216, .05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 180, 216, .2)
}

.form-success.show {
  display: block
}

.form-success .check {
  font-size: 3rem;
  margin-bottom: 1rem
}

.form-success h3 {
  color: var(--dark);
  margin-bottom: .5rem
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent
}

.service-card .s-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem
}

.service-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ============================================================
   SEARCH OVERLAY — Sistema de búsqueda en tiempo real
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Contenedor interior */
.search-overlay-inner {
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Input wrap ─────────────────────────────────────────────────────────── */
.search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 0 1.25rem;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--accent, #00b4d8);
  background: rgba(255,255,255,0.09);
}

.search-icon-prefix {
  color: rgba(255,255,255,0.45);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-overlay input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 300;
  padding: 1.1rem 0;
  font-family: inherit;
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-clear-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.search-clear-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Cerrar ─────────────────────────────────────────────────────────────── */
.search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}

.search-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* ── Panel de resultados ────────────────────────────────────────────────── */
.search-results-panel {
  display: none;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.search-results-panel::-webkit-scrollbar { width: 5px; }
.search-results-panel::-webkit-scrollbar-track { background: transparent; }
.search-results-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }

/* ── Grupos ─────────────────────────────────────────────────────────────── */
.sr-group {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sr-group:last-child { border-bottom: none; }

.sr-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0.6rem 1.25rem 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Item de resultado ──────────────────────────────────────────────────── */
.sr-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}

.sr-item:hover,
.sr-item--active {
  background: rgba(0, 180, 216, 0.08);
}

.sr-item--compact { align-items: flex-start; }

/* Thumbnail del blog */
.sr-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

.sr-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
}

/* Emoji para categorías/páginas */
.sr-emoji {
  font-size: 1.4rem;
  width: 36px;
  flex-shrink: 0;
  text-align: center;
  margin-top: 0.1rem;
}

/* Cuerpo */
.sr-item-body {
  flex: 1;
  min-width: 0;
}

.sr-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.sr-item-excerpt {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sr-item-meta {
  margin-top: 0.3rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Flecha derecha */
.sr-item-arrow {
  color: rgba(255,255,255,0.18);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.sr-item:hover .sr-item-arrow,
.sr-item--active .sr-item-arrow {
  color: var(--accent, #00b4d8);
  transform: translateX(3px);
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.sr-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sr-badge--blog    { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.sr-badge--content { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.sr-badge--cat     { background: rgba(0,180,216,0.2); color:  #67e8f9; margin-left: auto; }
.sr-badge--page    { background: rgba(251,191,36,0.15); color: #fcd34d; margin-left: auto; }

/* ── Ver todos ──────────────────────────────────────────────────────────── */
.sr-see-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #00b4d8);
  text-decoration: none;
  transition: background 0.15s;
}

.sr-see-all:hover { background: rgba(0,180,216,0.06); }

/* ── Estado (cargando / sin resultados) ─────────────────────────────────── */
.sr-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.sr-state-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

/* ── Highlight de texto coincidente ─────────────────────────────────────── */
mark.sr-highlight {
  background: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
  border-radius: 2px;
  padding: 0 1px;
}

/* ── Input-wrap conectado al panel ──────────────────────────────────────── */
.search-results-panel[style*="block"] ~ * { display: none; }
.search-input-wrap:has(~ #search-results-panel[style*="block"]) {
  border-radius: 14px 14px 0 0;
}

/* Ajuste manual (el :has puede no estar disponible en todos los browsers) */
.search-overlay-inner.has-results .search-input-wrap {
  border-radius: 14px 14px 0 0;
  border-bottom-color: transparent;
}

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 900;
  transition: all var(--transition);
  animation: fab-bounce 2s infinite
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .55)
}

@keyframes fab-bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition)
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px)
}

/* ---------- RESPONSIVE ---------- */
@media(min-width:640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .newsletter-form {
    flex-direction: row
  }

  .newsletter-form input {
    flex: 1
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(min-width:768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-grid {
    grid-template-columns: 1fr 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between
  }
}

/* ---------- RENT SERVICE CARD ---------- */
.rent-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 20px !important;
  display: flex;
  flex-direction: column;
}

.trust-badge {
  background: rgba(0, 119, 182, 0.1);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-size: 0.95rem;
  border-left: 4px solid var(--accent);
}

.advisor-subcard {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  transition: var(--transition);
}

.advisor-subcard:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.02);
}

.advisor-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.advisor-info h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.advisor-info p {
  font-size: 0.8rem !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .advisor-subcard {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

/* ---------- TEAM SECTION ---------- */
.team-section {
  background: var(--gray-100);
}

.team-block {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.block-medical .team-card {
  flex: 0 1 calc(50% - 2rem);
  max-width: 450px;
}

.block-tech .team-card {
  flex: 0 1 calc(33.333% - 2rem);
  max-width: 350px;
}

.team-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.team-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.team-card h3 {
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .team-block {
    flex-direction: column;
    align-items: center;
  }
  
  .block-medical .team-card,
  .block-tech .team-card {
    flex: 0 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media(min-width:1024px) {
  .menu-toggle {
    display: none
  }

  .nav-desktop {
    display: block
  }

  .articles-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* ---------- NUEVOS ESTILOS INVERSIONES ---------- */
.btn-inversiones-destacado {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-inversiones-destacado:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 54, 93, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  border-color: var(--accent);
}

.btn-vibrant {
  background: linear-gradient(135deg, #FF9F1C, #FF6B35);
  color: var(--white) !important;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.4);
}

.btn-vibrant:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 159, 28, 0.5);
}

.btn-primary-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white) !important;
}

.btn-primary-glass:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ---------- CTA BANNER — PREMIUM DESIGN ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b365d 25%, #0077b6 50%, #00b4d8 75%, #0d1b2a 100%);
  background-size: 300% 300%;
  animation: ctaGradientShift 8s ease infinite;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(144, 224, 239, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 119, 182, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 8deg,
    rgba(255, 255, 255, 0.01) 8deg 10deg
  );
  animation: ctaRotateSubtle 60s linear infinite;
  pointer-events: none;
}

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

@keyframes ctaRotateSubtle {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.cta-banner > .container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 900px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-banner > .container:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 180, 216, 0.2);
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-banner .btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1rem 2.5rem !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border-radius: 99px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: ctaPulse 2.5s ease-in-out infinite !important;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.cta-banner .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-banner .btn:hover::before {
  left: 100%;
}

.cta-banner .btn:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5), 0 0 60px rgba(16, 185, 129, 0.15) !important;
  animation: none !important;
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 3.5rem 0;
  }
  .cta-banner > .container {
    padding: 2rem 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 18px;
  }
}

.split-experience {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 65px;
}

@media (min-width: 1024px) {
  .split-experience {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    min-height: 100vh;
    padding-top: 0;
    overflow: visible;
  }

  .split-experience .panel {
    flex: 1 1 50%;
    min-height: 50vh;
    max-width: 50%;
  }
}

.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow-y: auto;
}

.panel-inmobiliaria {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
  color: var(--white);
}

.panel-tributaria {
  background: linear-gradient(135deg, #1b365d 0%, #0077b6 100%);
  color: var(--white);
}

.panel-academic {
  background: linear-gradient(135deg, #2d1b69 0%, #6c3fa0 50%, #9b59b6 100%);
  color: var(--white);
}

.panel-marketplace {
  background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #10b981 100%);
  color: var(--white);
}

.panel-content {
  max-width: 600px;
  width: 100%;
}

.panel-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.alliance-banner {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #FF9F1C;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 2rem;
}

.alliance-banner h3 {
  font-size: 1.25rem;
  margin: 0;
}

.panel-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.video-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .video-container {
    grid-template-columns: 1fr 1fr;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.advisor-card-deep {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.advisor-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.advisor-img-main {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
}

.advisor-meta h4 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  color: var(--white);
}

.advisor-role {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 500;
}

.advisor-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 !important;
}

.trust-badge-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 180, 216, 0.2);
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.trust-badge-large i {
  color: #FFD700;
  font-size: 1.5rem;
}

.panel-actions {
  display: flex;
  gap: 1.5rem;
}

/* ============================================
   AUTH SYSTEM STYLES
   ============================================ */

/* ---------- LOGIN BUTTON (Header) ---------- */
.btn-login {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: .95rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 119, 182, .25);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.btn-login:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 119, 182, .4);
}

/* ---------- USER MENU (Logged In) ---------- */
.user-menu {
  display: none;
  align-items: center;
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem .35rem .35rem;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
  font-size: .85rem;
  color: var(--dark);
  font-weight: 500;
}

.user-menu-toggle:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.user-menu-toggle .fa-chevron-down {
  font-size: .65rem;
  color: var(--text-light);
  transition: transform var(--transition);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .7rem;
  flex-shrink: 0;
}

.user-name-display {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .user-name-display { display: none; }
  .user-menu-toggle .fa-chevron-down { display: none; }
  .user-menu-toggle { padding: .25rem; border-radius: 50%; background: transparent; border: none; }
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 1100;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: all var(--transition);
}

.user-dropdown a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.user-dropdown a i {
  width: 18px;
  text-align: center;
  font-size: .95rem;
  color: var(--text-light);
}

.user-dropdown a:hover i { color: var(--primary); }

/* ---------- MOBILE NAV AUTH ---------- */
.mobile-login-link {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--primary) !important;
  margin-top: 1rem;
  padding: 1rem 0 !important;
}

.mobile-login-link i { font-size: 1.1rem; }

.mobile-user-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary);
}

.mobile-user-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-user-header .user-avatar {
  width: 34px;
  height: 34px;
  font-size: .8rem;
}

.mobile-user-header span:last-child {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}

.mobile-user-info > a {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  padding: .85rem 0 !important;
  border-bottom: 1px solid var(--gray-100) !important;
}

/* ---------- AUTH MODAL ---------- */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  padding: 1rem;
}

.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 768px) {
  .auth-modal {
    padding: 1.5rem;
    max-height: 95vh;
  }
}

.auth-modal-overlay.open .auth-modal {
  transform: scale(1) translateY(0);
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
  line-height: 1;
  z-index: 1;
}

.auth-close:hover { color: var(--dark); }

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  margin-bottom: 1.5rem;
}

.auth-logo img {
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 4px;
  gap: 0;
}

.auth-tab {
  flex: 1;
  padding: .65rem 1rem;
  border: none;
  background: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: calc(var(--radius-xl) - 4px);
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}

.auth-form-group label i {
  font-size: .8rem;
  color: var(--primary);
}

.auth-form-group input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border var(--transition), box-shadow var(--transition);
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.auth-form-group input::placeholder {
  color: var(--gray-300);
}

.auth-error {
  color: #EF4444;
  font-size: .82rem;
  font-weight: 500;
  min-height: 1.2rem;
  margin-bottom: .5rem;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: .9rem 1.5rem;
  font-size: 1rem;
  margin-top: .5rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--text-light);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* --- Auth Modal Wide (for 3-step register) --- */
.auth-modal-wide { max-width: 480px; }

/* --- Registration Progress Bar --- */
.reg-progress { position: relative; margin-bottom: 1.75rem; }
.reg-progress-bar {
  height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px;
  transition: width .4s cubic-bezier(.4,0,.2,1); width: 33%;
}
.reg-steps-indicator {
  display: flex; justify-content: space-between; margin-top: .75rem;
}
.reg-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--gray-400);
  background: var(--gray-100); border: 2px solid var(--gray-200);
  transition: all .3s ease;
}
.reg-step-dot.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,119,182,0.3);
}
.reg-step-title {
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
}
.reg-step-title i { color: var(--primary); }
.reg-step-actions {
  display: flex; gap: .75rem; margin-top: .5rem;
}
.reg-step-actions .btn { flex: 1; justify-content: center; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--gray-200); color: var(--dark);
  padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: .4rem;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* --- Phone Input --- */
.phone-input-wrapper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden; transition: border var(--transition), box-shadow var(--transition);
}
.phone-input-wrapper:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}
.phone-prefix {
  padding: .8rem .75rem; background: var(--gray-100);
  font-weight: 600; font-size: .9rem; color: var(--dark);
  border-right: 1px solid var(--gray-200); flex-shrink: 0;
}
.phone-input-wrapper input {
  border: none !important; box-shadow: none !important; padding: .8rem .75rem;
}
.phone-input-wrapper input:focus { outline: none; }

/* --- Select Dropdown --- */
.auth-form-group select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--dark);
  background: var(--white); cursor: pointer;
  transition: border var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.auth-form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

/* --- Field Hints --- */
.field-hint {
  display: block; font-size: .78rem; margin-top: .3rem; color: var(--gray-400);
  transition: color .2s;
}
.field-hint.valid { color: #059669; }
.field-hint.invalid { color: #EF4444; }
.field-hint.warning { color: #f59e0b; }

/* --- Password Strength --- */
.password-strength {
  height: 4px; background: var(--gray-100); border-radius: 4px;
  margin-top: .5rem; overflow: hidden;
}
.strength-bar {
  height: 100%; width: 0; border-radius: 4px; transition: all .3s ease;
}

/* --- Checkbox (Terms) --- */
.auth-checkbox-group { margin-top: .5rem; }
.auth-checkbox {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .82rem; color: var(--text-light); cursor: pointer;
  line-height: 1.5; position: relative; padding-left: 28px;
}
.auth-checkbox input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.auth-checkbox .checkmark {
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border: 1.5px solid var(--gray-300);
  border-radius: 4px; background: #fff; transition: all .2s;
  flex-shrink: 0;
}
.auth-checkbox input:checked ~ .checkmark {
  background: var(--primary); border-color: var(--primary);
}
.auth-checkbox input:checked ~ .checkmark::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-checkbox a { color: var(--primary); font-weight: 600; }

/* --- Verification Code Inputs --- */
.verif-icon-wrapper { text-align: center; margin-bottom: 1.5rem; }
.verif-icon-circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg, rgba(0,119,182,.1), rgba(0,180,216,.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--primary);
}
.verif-title {
  font-size: 1.3rem; font-weight: 700; color: var(--dark);
  text-align: center; margin-bottom: .5rem;
}
.verif-subtitle {
  font-size: .9rem; color: var(--text-light); text-align: center;
  margin-bottom: 2rem; line-height: 1.6;
}
.verif-code-inputs {
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem;
}
.verif-digit {
  width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 800;
  border: 2px solid var(--gray-200); border-radius: 12px; background: var(--white);
  color: var(--dark); transition: all .2s; caret-color: var(--primary);
}
.verif-digit:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,.12);
}
.verif-separator {
  color: var(--gray-300); font-size: 1.2rem; font-weight: 300; margin: 0 .25rem;
}
.verif-resend { text-align: center; margin-top: 1rem; font-size: .85rem; color: var(--text-light); }
.verif-resend a { color: var(--primary); font-weight: 600; cursor: pointer; }
.verif-timer { font-size: .8rem; color: var(--gray-400); margin-top: .25rem; }

/* --- Student Document Upload --- */
.student-doc-dropzone {
  border: 2px dashed var(--gray-300); border-radius: 12px; padding: 2rem;
  text-align: center; cursor: pointer; transition: all .2s;
  background: var(--gray-50, #f8fafc);
}
.student-doc-dropzone:hover { border-color: var(--primary); background: #f0f9ff; }
.student-doc-preview {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: 10px; font-size: .9rem; font-weight: 600; color: #166534;
}
.student-doc-preview i { font-size: 1.2rem; }
.student-doc-remove {
  margin-left: auto; background: none; border: none;
  font-size: 1.3rem; color: #94a3b8; cursor: pointer;
  transition: color .2s;
}
.student-doc-remove:hover { color: #ef4444; }

/* --- RNPI Verification Status --- */
.rnpi-verify-status {
  text-align: center; padding: 2rem 1rem; margin-bottom: 1.5rem;
  background: var(--gray-50, #f8fafc); border-radius: 12px;
  min-height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed; top: 90px; right: 1rem; z-index: 3000;
  display: flex; flex-direction: column; gap: .75rem;
  max-width: 420px; width: 100%;
}
.toast {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: 12px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-left: 4px solid var(--primary);
  transform: translateX(120%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  font-size: .9rem; line-height: 1.5; color: var(--dark);
}
.toast.show { transform: translateX(0); }
.toast i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.toast-success { border-color: #10B981; }
.toast-success i { color: #10B981; }
.toast-error { border-color: #EF4444; }
.toast-error i { color: #EF4444; }
.toast-warning { border-color: #F59E0B; }
.toast-warning i { color: #F59E0B; }
.toast-info { border-color: var(--primary); }
.toast-info i { color: var(--primary); }
.toast-email { border-color: #8B5CF6; }
.toast-email i { color: #8B5CF6; }
.toast-close {
  background: none; border: none; font-size: 1.2rem; color: var(--gray-400);
  cursor: pointer; margin-left: auto; flex-shrink: 0; padding: 0 0 0 .5rem;
}
.toast-close:hover { color: var(--dark); }
@media (max-width: 480px) {
  .toast-container { right: .5rem; left: .5rem; max-width: none; top: 75px; }
}

/* --- Medical/Student Verification Badges --- */
.qh-medical-badge, .qh-student-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; margin-left: .4rem; vertical-align: middle;
}
.qh-medical-badge {
  color: #2563EB; background: rgba(37,99,235,.1);
  padding: 2px 6px; border-radius: 12px; font-weight: 700;
}
.qh-medical-badge i { font-size: .65rem; }
.qh-student-badge {
  color: #7C3AED; background: rgba(124,58,237,.1);
  padding: 2px 6px; border-radius: 12px; font-weight: 700;
}
.qh-student-badge i { font-size: .65rem; }

/* --- Verify Button (Header) --- */
.qh-verify-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff; font-size: .78rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .25s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.qh-verify-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.qh-verify-btn:disabled { opacity: .7; cursor: wait; }
.qh-verify-btn-pulse { animation: verifyPulse 1s ease-in-out 2; }
@keyframes verifyPulse {
  0%,100% { box-shadow: 0 2px 8px rgba(37,99,235,.25); }
  50% { box-shadow: 0 0 0 8px rgba(37,99,235,.15); }
}
@media (max-width: 767px) {
  .qh-vb-text { display: none; }
  .qh-verify-btn { padding: .4rem .6rem; }
}

/* --- Admin Avatar Badges --- */
.admin-avatar { border: 2px solid #2563EB !important; box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.superadmin-avatar { border: 2px solid #F59E0B !important; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }

/* --- Verification Gate (Full-page overlay) --- */
.qh-verification-gate {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.qh-gate-panel {
  text-align: center; max-width: 480px;
}
.qh-gate-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(0,119,182,.1), rgba(0,180,216,.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
}
.qh-gate-panel h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem;
}
.qh-gate-panel p {
  color: var(--text-light); font-size: 1rem; line-height: 1.6; margin-bottom: 2rem;
}
.qh-gate-cta, .qh-gate-login {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(0,119,182,0.25);
}
.qh-gate-cta:hover, .qh-gate-login:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,182,0.3);
}
.qh-gate-cta:disabled, .qh-gate-login:disabled { opacity: .7; cursor: wait; }
.qh-gate-note {
  margin-top: 1.5rem; font-size: .85rem; color: var(--text-light); line-height: 1.6;
}
.qh-gate-note a { color: var(--primary); font-weight: 600; }
.qh-content-locked { filter: blur(8px); pointer-events: none; user-select: none; }

/* --- Auth-gated nav items --- */
.auth-gated-locked { opacity: .5; cursor: not-allowed; }

/* ---------- SERVICES PANEL ---------- */
.services-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  padding: 1rem;
}

.services-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}

.services-panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 720px;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.services-panel-overlay.open .services-panel {
  transform: scale(1) translateY(0);
}

.services-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
  line-height: 1;
  z-index: 1;
}

.services-close:hover { color: var(--dark); }

.services-panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.services-panel-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.services-panel-header h2 i {
  color: var(--primary);
}

.services-panel-header p {
  color: var(--text-light);
  font-size: .95rem;
}

.services-grid-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .services-grid-panel { grid-template-columns: 1fr; }
  .services-panel { padding: 1.75rem; }
}

.service-panel-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-panel-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.12);
  transform: translateY(-4px);
}

.service-panel-card .spc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(0, 180, 216, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--primary);
  transition: all var(--transition);
}

.service-panel-card:hover .spc-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}

.service-panel-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}

.service-panel-card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
}

.spc-badge {
  display: inline-block;
  margin-top: .75rem;
  padding: .2rem .65rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 119, 182, 0.08);
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spc-badge-new {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

.quicksales-card {
  border-color: rgba(16, 185, 129, 0.3);
}

.quicksales-card:hover {
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.quicksales-card .spc-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
  color: #10B981;
}

.quicksales-card:hover .spc-icon {
  background: linear-gradient(135deg, #10B981, #059669);
  color: var(--white);
}

/* ---------- QUICKSALES PAGE ---------- */
.qs-hero {
  background: linear-gradient(135deg, #059669, #10B981, #34D399);
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.qs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.qs-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.qs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: .5rem 1.2rem;
  border-radius: var(--radius-xl);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.qs-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.qs-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.qs-categories {
  padding: 4rem 0;
  background: var(--white);
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.qs-card {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.qs-card:hover {
  background: var(--white);
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  transform: translateY(-4px);
}

.qs-card .qs-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.qs-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.qs-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.qs-card .qs-tag {
  display: inline-block;
  margin-top: .75rem;
  padding: .2rem .65rem;
  font-size: .7rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.qs-coming-soon {
  background: linear-gradient(180deg, var(--gray-100), var(--white));
  padding: 4rem 0;
  text-align: center;
}

.qs-login-required {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.qs-login-required i {
  font-size: 3.5rem;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.qs-login-required h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}

.qs-login-required p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============================================
   QUICKSALES REDESIGN — FULL STYLES
   ============================================ */

/* ---------- SUBNAV ---------- */
.qs-subnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 80px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.qs-subnav-inner {
  display: flex;
  align-items: center;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .5rem 0;
}

.qs-subnav-inner::-webkit-scrollbar { display: none; }

.qs-subnav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-xl);
  white-space: nowrap;
  transition: all var(--transition);
}

.qs-subnav-link:hover,
.qs-subnav-link.active {
  color: #059669;
  background: rgba(16, 185, 129, .08);
}

.qs-subnav-link i {
  font-size: .8rem;
}

/* ---------- HERO FULL ---------- */
.qs-hero-full {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.qs-hero-full-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.qs-hero-full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-hero-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.85), rgba(16, 185, 129, 0.7));
  z-index: 2;
}

.qs-hero-full-content {
  position: relative;
  z-index: 3;
  padding: 5rem 0;
  color: var(--white);
}

.qs-hero-full-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: .5rem 1.2rem;
  border-radius: var(--radius-xl);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.qs-hero-full h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.qs-hero-full h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.qs-hero-full p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.qs-btn-hero {
  background: var(--white) !important;
  color: #059669 !important;
  font-weight: 700;
  padding: .9rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.qs-btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

/* ---------- FEATURED PRODUCT ---------- */
.qs-featured {
  background: var(--white);
}

.qs-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .qs-featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.qs-featured-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.qs-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.qs-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #EF4444;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: var(--radius-xl);
}

.qs-featured-brand {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.qs-featured-info h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.qs-featured-desc {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.qs-featured-price {
  margin-bottom: 1.5rem;
}

.qs-price-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.qs-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qs-btn-buy {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, .35);
  font-weight: 600;
}

.qs-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, .45);
}

.qs-btn-details {
  border: 2px solid #059669 !important;
  color: #059669 !important;
  background: transparent !important;
  font-weight: 600;
}

.qs-btn-details:hover {
  background: #059669 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.qs-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.qs-featured-tags span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-light);
  background: var(--gray-100);
  padding: .35rem .85rem;
  border-radius: var(--radius-xl);
}

.qs-featured-tags span i {
  color: #10B981;
  font-size: .75rem;
}

/* ---------- SECTION HEADERS ---------- */
.qs-section-header {
  margin-bottom: 2.5rem;
}

.qs-section-header .section-title i {
  color: #10B981;
  margin-right: .35rem;
}

/* ---------- PRODUCT CARDS GRID ---------- */
.qs-section-courses { background: var(--gray-100); }
.qs-section-asesorias { background: var(--white); }

.qs-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .qs-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .qs-products-grid { grid-template-columns: repeat(4, 1fr); }
}

.qs-product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.qs-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
  border-color: #10B981;
}

.qs-product-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}

.qs-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.qs-product-card:hover .qs-product-img img {
  transform: scale(1.06);
}

.qs-product-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  font-size: .65rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: .03em;
  z-index: 2;
}

.qs-badge-free {
  background: #10B981;
  color: var(--white);
}

.qs-badge-sale {
  background: #EF4444;
  color: var(--white);
}

.qs-badge-hot {
  background: #F59E0B;
  color: var(--dark);
}

.qs-badge-rec {
  background: #8B5CF6;
  color: var(--white);
}

.qs-badge-premium {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--white);
}

.qs-product-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.qs-product-body h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: .75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qs-product-price {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.qs-price-now {
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
}

.qs-price-sale {
  color: #EF4444 !important;
}

.qs-price-old {
  font-size: .82rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.qs-price-from {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---------- MIS CURSOS ---------- */
.qs-mis-cursos-empty {
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
  margin-bottom: 2rem;
}

.qs-empty-icon {
  font-size: 3rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.qs-mis-cursos-empty h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.qs-mis-cursos-empty p {
  color: var(--text-light);
  font-size: .95rem;
}

.qs-access-info {
  margin-top: 1rem;
}

.qs-access-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.qs-access-card i {
  font-size: 1.3rem;
  color: #10B981;
  margin-top: .15rem;
}

.qs-access-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}

.qs-access-card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---------- MARKETPLACE ---------- */
.qs-section-marketplace { background: var(--white); }

/* ---------- NEWSLETTER ---------- */
.qs-newsletter-section {
  background: linear-gradient(135deg, #064E3B, #059669);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qs-newsletter-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  pointer-events: none;
}

.qs-newsletter-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .5rem;
}

.qs-newsletter-section p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 2rem;
  font-size: .95rem;
}

.qs-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .qs-newsletter-form {
    flex-direction: row;
  }
}

.qs-newsletter-form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: .95rem;
}

.qs-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.qs-newsletter-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .5);
}

/* ---------- VERIFICATION OVERLAY ---------- */
.qs-verification-overlay {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(248, 250, 252, .97), rgba(255, 255, 255, .97));
  backdrop-filter: blur(8px);
  padding: 4rem 1.5rem;
}

.qs-verification-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.qs-verif-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(5, 150, 105, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.qs-verif-icon i {
  font-size: 2rem;
  color: #059669;
}

.qs-verification-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}

.qs-verification-panel > p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.qs-verif-steps {
  text-align: left;
  margin-bottom: 2rem;
}

.qs-verif-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.qs-verif-step:last-child {
  border-bottom: none;
}

.qs-verif-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10B981);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.qs-verif-step strong {
  display: block;
  color: var(--dark);
  font-size: .95rem;
  margin-bottom: .25rem;
}

.qs-verif-step p {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}

.qs-verif-email {
  color: #059669 !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: underline;
}

.qs-verif-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  color: #B45309;
  font-size: .9rem;
}

.qs-verif-status i {
  color: #F59E0B;
  font-size: 1.1rem;
}

.qs-verif-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 600px) {
  .qs-product-img { height: 140px; }
  .qs-products-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN TOOLBAR & INLINE EDITING
   ============================================ */

/* ---------- Admin Toolbar (fixed bottom) ---------- */
.admin-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-top: 2px solid rgba(99, 102, 241, .5);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
  padding: .6rem 0;
  transition: all var(--transition);
}

.admin-toolbar.editing {
  border-top-color: #F59E0B;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.admin-toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.admin-toolbar-badge {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
  padding: .3rem .85rem;
  border-radius: var(--radius-xl);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.admin-toolbar-user {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  font-weight: 500;
}

.admin-toolbar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.admin-btn:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}

.admin-btn-save {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, .3);
}

.admin-btn-save:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, .45);
}

.admin-btn-cancel {
  background: rgba(239, 68, 68, .15) !important;
  color: #FCA5A5 !important;
}

.admin-btn-cancel:hover {
  background: rgba(239, 68, 68, .3) !important;
}

/* ---------- Admin Avatar Badge ---------- */
.admin-avatar {
  background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
  box-shadow: 0 0 0 2px #6366F1, 0 2px 8px rgba(99, 102, 241, .3) !important;
}

/* ---------- Edit Mode Styles ---------- */
.admin-edit-mode .admin-editable {
  outline: 2px dashed rgba(99, 102, 241, .4) !important;
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color .2s ease;
  min-height: 1em;
}

.admin-edit-mode .admin-editable:hover {
  outline-color: rgba(99, 102, 241, .7) !important;
}

.admin-edit-mode .admin-editable:focus {
  outline-color: #6366F1 !important;
  outline-style: solid !important;
  background: rgba(99, 102, 241, .04);
}

.admin-edit-mode .admin-link-editable {
  outline: 2px dashed rgba(245, 158, 11, .4) !important;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.admin-edit-mode .admin-link-editable:hover {
  outline-color: rgba(245, 158, 11, .7) !important;
}

/* ---------- Link Editor Popup ---------- */
.admin-link-editor {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10000;
  background: #1E293B;
  border: 1px solid rgba(99, 102, 241, .3);
  border-radius: var(--radius-md);
  padding: .65rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  min-width: 320px;
  white-space: nowrap;
}

.admin-link-editor label {
  color: rgba(255, 255, 255, .6);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-link-input {
  flex: 1;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: .8rem;
  font-family: monospace;
  min-width: 180px;
}

.admin-link-input:focus {
  border-color: #6366F1;
  outline: none;
}

.admin-link-apply,
.admin-link-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: all .15s;
}

.admin-link-apply {
  background: #059669;
  color: var(--white);
}

.admin-link-apply:hover { background: #10B981; }

.admin-link-close {
  background: rgba(239, 68, 68, .2);
  color: #FCA5A5;
}

.admin-link-close:hover { background: rgba(239, 68, 68, .35); }

/* ---------- Body padding when toolbar is visible ---------- */
body:has(.admin-toolbar) {
  padding-bottom: 52px;
}

body:has(.admin-toolbar) .whatsapp-fab {
  bottom: 70px;
}

body:has(.admin-toolbar) .back-to-top {
  bottom: 70px;
}

@media (max-width: 768px) {
  .admin-toolbar-user { display: none; }
  .admin-toolbar-inner { padding: 0 1rem; }
  .admin-btn { padding: .4rem .75rem; font-size: .75rem; }
  .admin-link-editor { min-width: 260px; }
}

/* ============================================
   MULTI-STEP REGISTRATION
   ============================================ */

.auth-modal-wide {
  max-width: 480px;
}

/* Registration Progress Bar */
.reg-progress {
  margin-bottom: 1.75rem;
  position: relative;
}

.reg-progress-bar {
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 50%;
}

.reg-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
}

.reg-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--text-light);
  transition: all .3s ease;
}

.reg-step-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 119, 182, .3);
}

.reg-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.reg-step-title i {
  color: var(--primary);
}

.reg-step-actions {
  display: flex;
  gap: 1rem;
}

.reg-step-actions .btn {
  flex: 1;
  justify-content: center;
}

.auth-back-btn {
  border-width: 1.5px;
}

/* Phone Input */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border var(--transition), box-shadow var(--transition);
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.phone-prefix {
  padding: .8rem .75rem;
  background: var(--gray-100);
  color: var(--dark);
  font-weight: 600;
  font-size: .95rem;
  border-right: 1px solid var(--gray-200);
  white-space: nowrap;
}

.phone-input-wrapper input {
  border: none !important;
  box-shadow: none !important;
  flex: 1;
  padding: .8rem .75rem;
}

.phone-input-wrapper input:focus {
  outline: none;
}

/* Select styling */
.auth-form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border var(--transition), box-shadow var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.auth-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* Field Hints */
.field-hint {
  display: block;
  font-size: .78rem;
  margin-top: .35rem;
  color: var(--text-light);
  transition: color .2s ease;
}

.field-hint.valid { color: #059669; }
.field-hint.invalid { color: #EF4444; }
.field-hint.warning { color: #F59E0B; }

/* Password Strength */
.password-strength {
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-top: .5rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width .4s ease, background .3s ease;
}

/* Checkbox */
.auth-checkbox-group {
  margin-top: .5rem;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}

.auth-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--gray-300);
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .2s ease;
  position: relative;
}

.auth-checkbox input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.auth-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: .7rem;
  font-weight: 900;
}

.auth-checkbox a {
  color: var(--primary);
  font-weight: 600;
}

.auth-checkbox a:hover {
  text-decoration: underline;
}

/* ============================================
   EMAIL VERIFICATION
   ============================================ */
.verif-icon-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.verif-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 119, 182, .1), rgba(0, 180, 216, .15));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.verif-icon-circle i {
  font-size: 1.75rem;
  color: var(--primary);
}

.verif-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
}

.verif-subtitle {
  text-align: center;
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.verif-subtitle strong {
  color: var(--primary);
}

/* Code Inputs */
.verif-code-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.verif-digit {
  width: 48px;
  height: 56px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  background: var(--white);
  transition: border .2s ease, box-shadow .2s ease;
  caret-color: var(--primary);
}

.verif-digit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, .15);
}

.verif-separator {
  color: var(--gray-300);
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 .15rem;
}

.verif-resend {
  text-align: center;
  margin-top: 1.25rem;
}

.verif-resend p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: .25rem;
}

.verif-resend a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.verif-resend a:hover {
  text-decoration: underline;
}

.verif-timer {
  font-size: .8rem;
  color: var(--gray-400);
}

.verif-skip-btn {
  font-size: .85rem !important;
  padding: .6rem 1rem !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
  transform: translateX(110%);
  opacity: 0;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: all;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--dark);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.toast-success i { color: #059669; }
.toast-error i { color: #EF4444; }
.toast-info i { color: var(--primary); }
.toast-warning i { color: #F59E0B; }
.toast-email i { color: #6366F1; }

.toast-success { border-left: 4px solid #059669; }
.toast-error { border-left: 4px solid #EF4444; }
.toast-info { border-left: 4px solid var(--primary); }
.toast-warning { border-left: 4px solid #F59E0B; }
.toast-email { border-left: 4px solid #6366F1; }

.toast span {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}

.toast-close:hover {
  color: var(--dark);
}

/* Superadmin Avatar */
.superadmin-avatar {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  box-shadow: 0 0 0 2px #F59E0B, 0 2px 8px rgba(245, 158, 11, .3) !important;
}

/* Small Button */
.btn-sm {
  padding: .55rem 1.15rem;
  font-size: .85rem;
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(239, 68, 68, .25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, .35);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dash-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 65px;
  position: relative;
}

@media (min-width: 768px) {
  .dash-layout {
    padding-top: 80px;
  }
}

/* ---------- SIDEBAR ---------- */
.dash-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0D1B2A, #1B365D);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
}

.dash-sidebar-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dash-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.dash-sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.2);
}

.dash-sidebar-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  border: 3px solid rgba(255,255,255,.2);
}

.dash-avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 2px solid #0D1B2A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  cursor: pointer;
  transition: all .2s;
}

.dash-avatar-edit:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.dash-sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.dash-sidebar-role {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

.dash-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: var(--radius-xl);
  font-size: .7rem;
  font-weight: 700;
  margin-top: .5rem;
}

.dash-sidebar-badge.superadmin {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--white);
}

.dash-sidebar-badge.admin {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
}

/* Sidebar Nav */
.dash-sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: all .25s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.dash-nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.06);
  border-left-color: rgba(0, 180, 216, .4);
}

.dash-nav-link.active {
  color: var(--white);
  background: rgba(0, 180, 216, .12);
  border-left-color: var(--accent);
  font-weight: 600;
}

.dash-nav-link i {
  width: 20px;
  text-align: center;
  font-size: .95rem;
}

.dash-notif-count {
  margin-left: auto;
  background: #EF4444;
  color: var(--white);
  font-size: .65rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.dash-back-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
}

.dash-back-link:hover {
  color: var(--white);
}

/* ---------- MAIN CONTENT ---------- */
.dashboard-main {
  flex: 1;
  padding: 2rem 2.5rem;
  background: var(--gray-100);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}

.dash-section {
  display: none;
  animation: dashFadeIn .35s ease;
}

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

@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-section-header {
  margin-bottom: 2rem;
}

.dash-section-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
}

.dash-section-header h1 i {
  color: var(--primary);
}

.dash-section-header p {
  color: var(--text-light);
  font-size: .95rem;
}

/* ---------- DASHBOARD CARDS ---------- */
.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dash-card-title i {
  color: var(--primary);
  font-size: .95rem;
}

.dash-card-danger {
  border-color: rgba(239, 68, 68, .2);
}

.dash-card-danger .dash-card-title {
  color: #DC2626;
}

.dash-card-danger .dash-card-title i {
  color: #EF4444;
}

.dash-card-danger p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* ---------- ALERT ---------- */
.dash-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.dash-alert-warning {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .2);
}

.dash-alert-icon {
  font-size: 1.5rem;
  color: #F59E0B;
  flex-shrink: 0;
}

.dash-alert-content {
  flex: 1;
}

.dash-alert-content strong {
  display: block;
  color: #92400E;
  font-size: .95rem;
  margin-bottom: .15rem;
}

.dash-alert-content p {
  color: #B45309;
  font-size: .85rem;
  margin: 0;
}

/* ---------- PROFILE ---------- */
.dash-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .dash-profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-profile-card {
  background: linear-gradient(135deg, rgba(0, 119, 182, .04), rgba(0, 180, 216, .06));
  border-color: rgba(0, 119, 182, .12);
}

.dash-profile-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

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

.dash-profile-avatar-lg span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.dash-profile-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .25rem;
}

.dash-profile-type {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
}

.dash-profile-meta {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.dash-profile-meta span {
  font-size: .82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.dash-profile-meta i {
  width: 16px;
  text-align: center;
  color: var(--gray-400);
}

.dash-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.dash-stat {
  text-align: center;
}

.dash-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.dash-stat-label {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: .35rem;
  display: block;
}

/* ---------- FORMS ---------- */
.dash-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .dash-form-row {
    grid-template-columns: 1fr;
  }
}

.dash-form-group {
  margin-bottom: 1rem;
}

.dash-form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .35rem;
}

.dash-form-group input,
.dash-form-group textarea,
.dash-form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border .2s, box-shadow .2s;
}

.dash-form-group input:focus,
.dash-form-group textarea:focus,
.dash-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, .1);
}

.dash-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ---------- COURSES GRID ---------- */
.dash-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dash-subtitle i {
  color: var(--primary);
}

.dash-courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .dash-courses-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.dash-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.dash-course-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.dash-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dash-course-card:hover .dash-course-img img {
  transform: scale(1.06);
}

.dash-course-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-xl);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dash-course-badge.free {
  background: #10B981;
  color: var(--white);
}

.dash-course-badge.premium {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: var(--white);
}

.dash-course-badge.superadmin {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
}

.dash-course-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-course-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.dash-course-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.dash-course-body p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.dash-course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .78rem;
  color: var(--text-light);
}

.dash-course-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.dash-course-meta i {
  color: var(--gray-400);
  font-size: .75rem;
}

.dash-enroll-btn.enrolled {
  background: #059669 !important;
  opacity: .8;
  cursor: default;
}

/* Enrolled Course Progress */
.dash-enrolled-course {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.dash-enrolled-course:last-child {
  border-bottom: none;
}

.dash-enrolled-course img {
  width: 80px;
  height: 55px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.dash-enrolled-course h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .5rem;
}

.dash-progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: .25rem;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  transition: width .5s ease;
}

.dash-progress-text {
  font-size: .75rem;
  color: var(--text-light);
}

/* ---------- TALKS ---------- */
.dash-featured-talk {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-talk-hero {
  position: relative;
  height: 300px;
}

.dash-talk-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-talk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
}

.dash-talk-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #EF4444;
  padding: .35rem .85rem;
  border-radius: var(--radius-xl);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .75rem;
  width: fit-content;
}

.dash-talk-live-badge i {
  font-size: .5rem;
  animation: pulse-dot 1.5s infinite;
}

.dash-talk-hero-overlay h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--white);
}

.dash-talk-hero-overlay p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .5rem;
}

.dash-talk-date {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.dash-talk-register-btn {
  width: fit-content;
}

/* Talks Grid */
.dash-talks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .dash-talks-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-talk-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.dash-talk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.dash-talk-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.dash-talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dash-talk-card:hover .dash-talk-thumb img {
  transform: scale(1.06);
}

.dash-talk-duration {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(0,0,0,.75);
  color: var(--white);
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.dash-talk-body {
  padding: 1.25rem;
}

.dash-talk-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
  display: block;
}

.dash-talk-body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .75rem;
  line-height: 1.3;
}

.dash-talk-speaker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.dash-talk-speaker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
}

.dash-talk-speaker strong {
  display: block;
  font-size: .85rem;
  color: var(--dark);
}

.dash-talk-speaker span {
  font-size: .75rem;
  color: var(--text-light);
}

/* ---------- EVENTS LIST ---------- */
.dash-events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-event-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.dash-event-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.dash-event-date {
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.dash-event-day {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.dash-event-month {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}

.dash-event-info {
  flex: 1;
}

.dash-event-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}

.dash-event-info p {
  font-size: .82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.dash-event-tag {
  padding: .15rem .55rem;
  border-radius: var(--radius-xl);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-left: .5rem;
}

.dash-event-tag.live {
  background: rgba(239, 68, 68, .1);
  color: #EF4444;
}

.dash-event-tag.webinar {
  background: rgba(99, 102, 241, .1);
  color: #6366F1;
}

.dash-event-tag.presencial {
  background: rgba(16, 185, 129, .1);
  color: #059669;
}

/* ---------- RESOURCES GRID ---------- */
.dash-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dash-resources-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .dash-resources-grid { grid-template-columns: 1fr; }
}

.dash-resource-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.dash-resource-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 119, 182, .08), rgba(0, 180, 216, .12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.dash-resource-card:hover .dash-resource-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}

.dash-resource-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.dash-resource-card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: .75rem;
  flex: 1;
}

.dash-resource-count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 119, 182, .08);
  padding: .2rem .65rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
}

/* ---------- NOTIFICATIONS ---------- */
.dash-notif-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.dash-notifications-list {
  display: flex;
  flex-direction: column;
}

.dash-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  transition: background .2s;
}

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

.dash-notif-item:not(.read) {
  background: rgba(0, 119, 182, .02);
}

.dash-notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.dash-notif-icon.info { background: rgba(0, 119, 182, .1); color: var(--primary); }
.dash-notif-icon.course { background: rgba(16, 185, 129, .1); color: #059669; }
.dash-notif-icon.event { background: rgba(99, 102, 241, .1); color: #6366F1; }
.dash-notif-icon.warning { background: rgba(245, 158, 11, .1); color: #D97706; }
.dash-notif-icon.success { background: rgba(5, 150, 105, .1); color: #059669; }

.dash-notif-content {
  flex: 1;
}

.dash-notif-content strong {
  display: block;
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: .15rem;
}

.dash-notif-content p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0 0 .25rem;
  line-height: 1.4;
}

.dash-notif-time {
  font-size: .72rem;
  color: var(--gray-400);
}

.dash-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: .5rem;
}

/* ---------- SETTINGS ---------- */
.dash-settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dash-settings-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-account-info {
  display: flex;
  flex-direction: column;
}

.dash-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.dash-info-label {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 500;
}

.dash-info-value {
  font-size: .85rem;
  color: var(--dark);
  font-weight: 600;
}

/* Toggle Switch */
.dash-toggle-group {
  display: flex;
  flex-direction: column;
}

.dash-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  font-size: .9rem;
  color: var(--dark);
}

.dash-toggle:last-child { border-bottom: none; }

.dash-toggle input {
  display: none;
}

.dash-toggle-slider {
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: var(--gray-300);
  position: relative;
  transition: background .3s ease;
  flex-shrink: 0;
}

.dash-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.dash-toggle input:checked + .dash-toggle-slider {
  background: var(--primary);
}

.dash-toggle input:checked + .dash-toggle-slider::after {
  transform: translateX(18px);
}

/* ---------- EMPTY STATE ---------- */
.dash-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.dash-empty-state i {
  font-size: 2.5rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.dash-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}

.dash-empty-state p {
  font-size: .9rem;
  color: var(--text-light);
}

/* ---------- MOBILE DASHBOARD ---------- */
.dash-mobile-toggle {
  display: none;
  position: fixed;
  top: 72px;
  left: 1rem;
  z-index: 200;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
}

.dash-mobile-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.dash-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  opacity: 0;
  transition: opacity .3s;
}

.dash-mobile-overlay.open {
  opacity: 1;
}

@media (max-width: 768px) {
  .dash-mobile-toggle {
    display: flex;
  }

  .dash-mobile-overlay {
    display: block;
    pointer-events: none;
  }

  .dash-mobile-overlay.open {
    pointer-events: all;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    z-index: 200;
    transition: left .35s cubic-bezier(.4, 0, .2, 1);
    padding-top: 0;
  }

  .dash-sidebar.mobile-open {
    left: 0;
  }

  .dashboard-main {
    padding: 1.25rem;
    max-height: none;
    padding-top: 3.5rem;
  }

  .dash-talk-hero { height: 220px; }
  .dash-talk-hero-overlay { padding: 1.25rem; }
  .dash-talk-hero-overlay h2 { font-size: 1.1rem; }

  .dash-profile-top { flex-direction: column; text-align: center; }
  .dash-profile-meta { align-items: center; }

  .dash-event-item {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }

  .dash-event-item .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .dash-profile-stats { grid-template-columns: 1fr; gap: .5rem; }
  .dash-courses-grid { grid-template-columns: 1fr; }
  .dash-talks-grid { grid-template-columns: 1fr; }
  .dash-resources-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .dash-mobile-toggle { display: none; }
  .dash-mobile-overlay { display: none; }
}

/* ============================================
   EDITOR CMS — Visual Builder Styles
   ============================================ */

/* ---------- Editor Toolbar ---------- */
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.06), rgba(0, 180, 216, 0.04));
  border: 1px solid rgba(0, 119, 182, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.editor-toolbar-info {
  font-size: 0.875rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-toolbar-info i {
  color: var(--primary);
}

/* ---------- Section Cards Grid ---------- */
.editor-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editor-section-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.editor-section-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
}

.editor-section-card.editor-hidden {
  opacity: 0.5;
  background: var(--gray-100);
}

.editor-section-card.editor-hidden:hover {
  opacity: 0.75;
}

/* Drag Handle */
.editor-card-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: grab;
  transition: all 0.2s ease;
  border-right: 1px solid var(--gray-200);
  font-size: 1.1rem;
}

.editor-card-handle:hover {
  background: var(--primary);
  color: white;
}

.editor-card-handle:active {
  cursor: grabbing;
}

/* Card Content */
.editor-card-content {
  flex: 1;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.editor-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.editor-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.editor-card-info {
  flex: 1;
  min-width: 0;
}

.editor-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.editor-card-id {
  font-size: 0.72rem;
  color: var(--gray-400);
  font-family: 'Courier New', monospace;
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
}

.editor-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Buttons */
.editor-btn-toggle,
.editor-btn-edit,
.editor-btn-edit-sm,
.editor-btn-expand {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.editor-btn-toggle:hover { background: var(--gray-100); }
.editor-btn-toggle.active { color: var(--primary); border-color: var(--primary); }

.editor-btn-edit:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.editor-btn-edit-sm {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.editor-btn-edit-sm:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.editor-btn-expand {
  border: none;
  background: none;
  color: var(--gray-400);
  width: 28px;
  height: 28px;
}

.editor-btn-expand:hover { color: var(--primary); }
.editor-btn-expand i { transition: transform 0.3s ease; }

/* Card Preview */
.editor-card-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.editor-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}

.editor-card-texts {
  min-width: 0;
  flex: 1;
}

.editor-card-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}

.editor-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}

/* ---------- Items Section ---------- */
.editor-items-section {
  margin-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.5rem;
}

.editor-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.editor-items-header i { margin-right: 0.35rem; color: var(--accent); }

.editor-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
}

.editor-item-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.editor-item-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.1);
}

.editor-item-card.editor-hidden {
  opacity: 0.45;
}

.editor-item-handle {
  color: var(--gray-300);
  cursor: grab;
  font-size: 0.85rem;
  padding: 0 0.25rem;
}

.editor-item-handle:active { cursor: grabbing; }
.editor-item-handle:hover { color: var(--primary); }

.editor-item-thumb {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.editor-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-item-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-item-badge {
  font-size: 0.65rem;
  background: var(--accent);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Drag & Drop States ---------- */
.editor-ghost {
  opacity: 0.35;
  border: 2px dashed var(--primary) !important;
  background: rgba(0, 119, 182, 0.04) !important;
  border-radius: var(--radius-md);
}

.editor-chosen {
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.2) !important;
  border-color: var(--primary) !important;
  z-index: 10;
}

.editor-drag {
  opacity: 0.9;
  transform: rotate(1deg);
}

/* ---------- Editor Modal ---------- */
.editor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: editorFadeIn 0.2s ease;
}

@keyframes editorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.editor-modal {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: editorSlideUp 0.3s ease;
  overflow: hidden;
}

@keyframes editorSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.editor-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.editor-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.editor-modal-header h3 i {
  color: var(--primary);
}

.editor-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.editor-modal-close:hover {
  background: #FEE2E2;
  color: #EF4444;
}

.editor-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.editor-form-group {
  margin-bottom: 1.15rem;
}

.editor-form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.editor-form-group label i {
  font-size: 0.75rem;
  color: var(--accent);
}

.editor-form-group input,
.editor-form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all 0.2s ease;
  background: var(--white);
}

.editor-form-group input:focus,
.editor-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.editor-form-row {
  display: flex;
  gap: 1rem;
}

.editor-form-row .editor-form-group {
  flex: 1;
}

/* Image Upload */
.editor-img-upload {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.editor-img-preview {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--gray-300);
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--gray-400);
  font-size: 0.75rem;
  gap: 0.3rem;
}

.editor-img-preview i {
  font-size: 1.5rem;
}

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

.editor-img-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.editor-img-hint {
  font-size: 0.72rem;
  color: var(--gray-400);
}

.editor-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* ---------- Loading & Empty States ---------- */
.editor-loading,
.editor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--text-light);
  text-align: center;
  gap: 0.75rem;
}

.editor-loading i,
.editor-empty i {
  font-size: 2rem;
  color: var(--gray-300);
}

.editor-loading p,
.editor-empty p {
  max-width: 350px;
  margin: 0;
}

.editor-empty h4 {
  color: var(--dark);
  margin: 0;
}

/* ---------- Editor Toast ---------- */
.editor-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 100000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

.editor-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.editor-toast-success { background: linear-gradient(135deg, #059669, #10B981); }
.editor-toast-error { background: linear-gradient(135deg, #DC2626, #EF4444); }
.editor-toast-info { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* ---------- Editor Responsive ---------- */
@media (max-width: 768px) {
  .editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-card-header {
    flex-wrap: wrap;
  }

  .editor-card-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-thumb {
    width: 100%;
    height: 80px;
  }

  .editor-img-upload {
    flex-direction: column;
  }

  .editor-img-preview {
    width: 100%;
    height: 120px;
  }

  .editor-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .editor-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ============================================
   EDITOR TABS — Multi-página
   ============================================ */

.editor-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.editor-tab {
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.editor-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.editor-item-price {
  font-size: 0.65rem;
  background: #059669;
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   ASESORÍA TRIBUTARIA — Sección + Modal
   ============================================ */

.qs-section-tributaria {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.qs-section-tributaria::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.15), transparent 70%);
  pointer-events: none;
}

.trib-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.trib-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1.25rem;
}

.trib-info .section-title {
  color: white;
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.trib-info .section-title i {
  color: var(--accent);
}

.trib-info .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trib-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.trib-feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.trib-feat i {
  color: #10B981;
  font-size: 0.85rem;
}

.trib-btn-cta {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  color: white !important;
  padding: 0.85rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.trib-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(16, 185, 129, 0.5);
}

/* Card Visual */
.trib-visual {
  display: flex;
  justify-content: center;
}

.trib-card-stack {
  position: relative;
  width: 320px;
}

.trib-card-bg {
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.3), rgba(0, 180, 216, 0.2));
  border: 1px solid rgba(0, 180, 216, 0.15);
}

.trib-card-main {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.trib-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #059669, #10B981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}

.trib-card-main h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.trib-card-main p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.trib-card-stats {
  display: flex;
  gap: 2rem;
}

.trib-card-stats div {
  display: flex;
  flex-direction: column;
}

.trib-card-stats strong {
  color: #10B981;
  font-size: 1.5rem;
  font-weight: 800;
}

.trib-card-stats span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* ─── Tributaria Modal ─────────────────────── */
.trib-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: editorFadeIn 0.2s ease;
}

.trib-modal {
  background: var(--white);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: editorSlideUp 0.3s ease;
  overflow: hidden;
}

.trib-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
}

.trib-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.trib-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.trib-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.trib-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.trib-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trib-form-group {
  display: flex;
  flex-direction: column;
}

.trib-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trib-form-group label i {
  color: #10B981;
  font-size: 0.72rem;
}

.trib-form-group input,
.trib-form-group select {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--dark);
  transition: all 0.2s ease;
  background: var(--white);
}

.trib-form-group input:focus,
.trib-form-group select:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.trib-form-footer {
  text-align: center;
  padding-top: 0.5rem;
}

.trib-btn-submit {
  width: 100%;
  padding: 0.85rem !important;
  background: linear-gradient(135deg, #059669, #10B981) !important;
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.trib-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.trib-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.trib-form-disclaimer {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Success State */
.trib-success {
  text-align: center;
  padding: 2rem 1rem;
}

.trib-success-icon {
  font-size: 4rem;
  color: #10B981;
  margin-bottom: 1rem;
}

.trib-success h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.trib-success p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Tributaria Responsive ──────────────── */
@media (max-width: 768px) {
  .trib-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .trib-info .section-title { font-size: 1.4rem; }
  .trib-features { align-items: center; }
  .trib-visual { order: -1; }
  .trib-card-stack { width: 260px; }
  .trib-card-main { padding: 1.75rem; }

  .trib-form-row { grid-template-columns: 1fr; }
  .trib-modal { max-width: 100%; border-radius: var(--radius-md); }
}

/* ============================================
   ANALYTICS DASHBOARD — Lead Counters
   ============================================ */

.analytics-summary {
  margin-bottom: 1.5rem;
}

.analytics-total-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 119, 182, 0.3);
}

.analytics-total-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.analytics-total-info {
  display: flex;
  flex-direction: column;
}

.analytics-total-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.analytics-total-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.analytics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--card-shadow, rgba(0,0,0,0.08));
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-gradient);
  border-radius: 4px 0 0 4px;
}

.analytics-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--card-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px var(--card-shadow, rgba(0,0,0,0.15));
  flex-shrink: 0;
}

.analytics-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.analytics-card-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.analytics-card-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.analytics-card-title {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  border-top: 1px solid var(--gray-100);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.analytics-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analytics-last-update {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.analytics-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}

.analytics-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.analytics-empty h4 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.analytics-empty p {
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .analytics-total-card { padding: 1.25rem; }
  .analytics-total-number { font-size: 1.8rem; }
  .analytics-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ASESORÍA INMOBILIARIA — Tema Azul
   ============================================ */

.qs-section-inmobiliaria {
  background: linear-gradient(135deg, #0a1628 0%, #132744 50%, #0a1628 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.qs-section-inmobiliaria::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.12), transparent 70%);
  pointer-events: none;
}

.inmob-badge {
  background: rgba(0, 119, 182, 0.15) !important;
  color: #00B4D8 !important;
  border-color: rgba(0, 180, 216, 0.3) !important;
}

.inmob-feat i { color: #00B4D8 !important; }

.inmob-btn-cta {
  background: linear-gradient(135deg, #0077B6, #00B4D8) !important;
  box-shadow: 0 6px 25px rgba(0, 119, 182, 0.35) !important;
}

.inmob-btn-cta:hover {
  box-shadow: 0 8px 35px rgba(0, 119, 182, 0.5) !important;
}

.inmob-card-bg {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.3), rgba(0, 180, 216, 0.2)) !important;
  border-color: rgba(0, 180, 216, 0.15) !important;
}

.inmob-card-icon {
  background: linear-gradient(135deg, #0077B6, #00B4D8) !important;
}

.inmob-card-main .trib-card-stats strong { color: #00B4D8 !important; }

/* Modal header azul */
.inmob-modal-header {
  background: linear-gradient(135deg, #0077B6, #00B4D8) !important;
}

/* Form inputs focus azul */
.inmob-modal .trib-form-group input:focus,
.inmob-modal .trib-form-group select:focus {
  border-color: #0077B6 !important;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1) !important;
}

.inmob-modal .trib-form-group label i {
  color: #0077B6 !important;
}

/* Submit button azul */
.inmob-btn-submit {
  width: 100%;
  padding: 0.85rem !important;
  background: linear-gradient(135deg, #0077B6, #00B4D8) !important;
  color: white !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.inmob-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 119, 182, 0.4);
}

.inmob-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ─── Custom Radio Buttons ──────────────── */
.inmob-radio-group {
  display: flex;
  gap: 1rem;
  padding-top: 0.4rem;
}

.inmob-radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
}

.inmob-radio input[type="radio"] {
  display: none;
}

.inmob-radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.inmob-radio-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s;
}

.inmob-radio input[type="radio"]:checked + .inmob-radio-mark {
  border-color: #0077B6;
}

.inmob-radio input[type="radio"]:checked + .inmob-radio-mark::after {
  background: #0077B6;
}

@media (max-width: 768px) {
  .inmob-radio-group { gap: 1.5rem; }
}

/* ============================================
   MEDICAL VERIFICATION SYSTEM — Global
   ============================================ */

/* Red CTA Verify Button (injected into header) */
.qh-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  animation: qhVerifyPulse 2.5s infinite;
  box-shadow: 0 3px 14px rgba(220,38,38,.35);
  transition: all .3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.qh-verify-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(220,38,38,.45);
  filter: brightness(1.08);
}
.qh-verify-btn i { font-size: .85em; }
@keyframes qhVerifyPulse {
  0%, 100% { box-shadow: 0 3px 14px rgba(220,38,38,.35); }
  50%      { box-shadow: 0 3px 24px rgba(220,38,38,.55); }
}

/* Verified Medical Badge (blue shield ✔) */
.qh-medical-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #2563EB;
  background: rgba(37,99,235,.1);
  border-radius: 50%;
  margin-left: .4rem;
  vertical-align: middle;
  cursor: help;
}
.qh-medical-badge i {
  font-size: .75rem;
  color: #2563EB;
}

/* Large medical badge variant (dashboard profile card) */
.qh-medical-badge[id="dash-profile-verif-badge"],
.qh-student-badge[id="dash-profile-verif-badge"] {
  width: auto;
  height: auto;
  border-radius: 99px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  gap: .35rem;
}

/* Verified Student Badge (emerald green, graduation cap) */
.qh-student-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #059669;
  background: rgba(5,150,105,.1);
  border-radius: 50%;
  margin-left: .4rem;
  vertical-align: middle;
  cursor: help;
}
.qh-student-badge i {
  font-size: .75rem;
  color: #059669;
}

/* Content Lock Gate (overlay + blur) */
.qh-content-locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: .6;
  transition: filter .5s ease, opacity .5s ease;
}

.qh-verification-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  animation: qhGateFadeIn .5s ease;
}
@keyframes qhGateFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.qh-gate-panel {
  background: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: qhGateSlide .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes qhGateSlide {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qh-gate-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}
.qh-gate-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}
.qh-gate-panel p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.qh-gate-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(220,38,38,.35);
  transition: all .3s ease;
  text-decoration: none;
  margin-bottom: .75rem;
}
.qh-gate-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(220,38,38,.45);
}
.qh-gate-login {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,119,182,.35);
  transition: all .3s ease;
  text-decoration: none;
}
.qh-gate-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,119,182,.45);
}
.qh-gate-note {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 1rem;
}
.qh-gate-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .qh-verify-btn span.qh-vb-text { display: none; }
  .qh-gate-panel { padding: 2rem 1.5rem; border-radius: 18px; }
  .qh-gate-icon { width: 64px; height: 64px; font-size: 1.5rem; }
  .qh-gate-panel h2 { font-size: 1.25rem; }
}

/* ============================================
   INFO PANEL — Sliding Categories Drawer
   ============================================ */
.info-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.info-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.info-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  z-index: 1101;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.info-panel.open {
  right: 0;
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.info-panel-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.info-panel-header h3 i {
  color: var(--primary);
  font-size: 1.1rem;
}
.info-panel-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.info-panel-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.info-panel-body {
  padding: 1.25rem 1.75rem 2rem;
  flex: 1;
}
.info-panel-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.info-panel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-panel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.info-panel-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.info-panel-card:hover {
  border-color: var(--accent-light);
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.03), rgba(0, 180, 216, 0.05));
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 119, 182, 0.1);
}
.info-panel-card:hover::before {
  opacity: 1;
}
.info-panel-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.08), rgba(0, 180, 216, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.info-panel-card:hover .info-panel-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.08);
}
.info-panel-card:hover .info-panel-card-icon span {
  filter: grayscale(1) brightness(10);
}
.info-panel-card-content {
  flex: 1;
  min-width: 0;
}
.info-panel-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}
.info-panel-card:hover .info-panel-card-title {
  color: var(--primary);
}
.info-panel-card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}
.info-panel-card-arrow {
  color: var(--gray-300);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.info-panel-card:hover .info-panel-card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.info-panel-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.info-panel-footer .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .info-panel {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
  .info-panel-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
}

/* ============================================
   CATEGORY CAROUSEL STYLES
   ============================================ */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > article.article-card {
  flex: 0 0 calc(33.333% - 1rem); /* 3 items row with gap accounting */
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 10;
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.2s;
}
.carousel-btn:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

@media (max-width: 992px) {
  .carousel-track > article.article-card {
    flex: 0 0 calc(50% - 0.75rem); /* 2 items row */
  }
}
@media (max-width: 600px) {
  .carousel-track > article.article-card {
    flex: 0 0 85%; /* 1 item row with peak to next */
  }
  .carousel-btn {
    display: none; /* Mobile naturally uses horizontal scrolling/swipe */
  }
}

/* ============================================
   MOBILE HERO REFINEMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.15;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }
  .hero-stats {
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .hero-stat {
    text-align: center;
  }
  .hero-stat .number {
    font-size: 1.4rem !important;
  }
  .hero-stat .label {
    font-size: 0.75rem !important;
  }
}

/* ============================================
   CATEGORY QUICK NAV (informacion.html)
   ============================================ */
.category-quick-nav {
  position: relative;
  margin-top: -3.5rem;
  z-index: 10;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.cat-nav-box {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cat-nav-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.cat-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cat-nav-item {
  background: var(--gray-100);
  color: var(--text);
  padding: 0.6rem 1.25rem;
  border-radius: 99px; /* pill shape */
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.cat-nav-item:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.15);
}

@media (max-width: 768px) {
  .category-quick-nav {
    margin-top: -2.5rem;
  }
  .cat-nav-box {
    padding: 1.25rem 1rem;
  }
  .cat-nav-grid {
    gap: 0.5rem;
  }
  .cat-nav-item {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    flex-grow: 1; /* fills out perfectly on mobile */
    text-align: center;
  }
}

/* ============================================
   ACADEMIC — Modals, Video Player, Asesoría
   ============================================ */

/* ── Course card enhancements ── */
.ac-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ac-course-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ac-course-meta span {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ac-course-meta span i { color: var(--primary); font-size: 0.7rem; }
.ac-course-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.ac-course-actions .btn {
  flex: 1;
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
  justify-content: center;
}

/* ── Modal Overlay (Academic) ── */
.ac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ac-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.ac-modal-panel {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
}
.ac-modal-overlay.open .ac-modal-panel {
  transform: translateY(0) scale(1);
}
.ac-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ac-modal-close:hover { background: var(--gray-200, #e5e7eb); }

/* ── Course Detail Modal ── */
.ac-detail-modal-panel { max-width: 760px; }
.ac-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 2rem 1rem;
}
.ac-detail-img {
  border-radius: 12px;
  overflow: hidden;
}
.ac-detail-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.ac-detail-info { display: flex; flex-direction: column; gap: 0.5rem; }
.ac-detail-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ac-detail-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}
.ac-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.ac-detail-instructor,
.ac-detail-duration {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ac-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.ac-tag {
  background: var(--gray-100);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ac-tag i { color: var(--primary); }
.ac-detail-body {
  padding: 0 2rem 1rem;
}
.ac-detail-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.ac-detail-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
}
.ac-detail-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ac-detail-footer .btn { flex: 1; min-width: 160px; justify-content: center; }
.ac-purchased-notice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.ac-purchased-notice i { font-size: 1.1rem; }

@media (max-width: 640px) {
  .ac-detail-header { grid-template-columns: 1fr; }
  .ac-detail-header, .ac-detail-body, .ac-detail-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── Video Player Modal ── */
.ac-video-overlay { background: rgba(0,0,0,.92); }
.ac-video-panel {
  width: 100%;
  max-width: 960px;
  position: relative;
}
.ac-video-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.ac-video-close-btn:hover { background: rgba(255,255,255,.3); }
.ac-player-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.ac-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Transparent overlay prevents right-click on video element */
}
.ac-player-wrapper video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
}
.ac-player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}
.ac-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.ac-ctrl-btn:hover { opacity: 1; }
.ac-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.ac-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s;
}
.ac-time {
  color: rgba(255,255,255,.7);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Asesoría Contable Panel ── */
.ac-asesoria-panel {
  max-width: 600px;
}
.ac-asesoria-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
}
.ac-asesoria-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.ac-asesoria-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 0.5rem;
}
.ac-asesoria-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.ac-asesoria-body { padding: 0 2rem; }
.ac-advisor-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--gray-100);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.ac-advisor-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-advisor-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem;
}
.ac-advisor-creds {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ac-advisor-creds li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.ac-advisor-creds li i { color: #10b981; margin-top: 2px; font-size: 0.75rem; }
.ac-reunion-section,
.ac-objetivo-section {
  margin-bottom: 1.25rem;
}
.ac-reunion-section h4,
.ac-objetivo-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.ac-reunion-section h4 i,
.ac-objetivo-section h4 i { color: var(--primary); }
.ac-reunion-list {
  padding-left: 1.5rem;
  margin: 0;
}
.ac-reunion-list li {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 2px 0;
}
.ac-objetivo-section p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.ac-asesoria-footer {
  padding: 1.25rem 2rem 2rem;
  display: flex;
  gap: 0.75rem;
}
.ac-asesoria-footer .btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}
.btn-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
}
.btn-whatsapp:hover {
  background: #1da851 !important;
}

@media (max-width: 480px) {
  .ac-asesoria-footer { flex-direction: column; }
  .ac-advisor-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ── My Courses Grid ── */
.ac-my-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ac-my-course-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ac-my-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.ac-my-course-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.ac-my-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ac-my-course-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.ac-my-course-card:hover .ac-my-course-play { opacity: 1; }
.ac-my-course-play i {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ac-my-course-info {
  padding: 1rem 1.25rem;
}
.ac-my-type {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.ac-my-course-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.25rem 0 0.75rem;
  line-height: 1.3;
}
.ac-my-course-actions {
  display: flex;
  gap: 0.5rem;
}
.ac-my-course-actions .btn {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
}
.btn-sm { font-size: 0.75rem !important; padding: 0.4rem 0.8rem !important; }

/* ── Unified Toast System ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast i { font-size: 1rem; flex-shrink: 0; }
.toast-success { background: linear-gradient(135deg, #059669, #10b981); }
.toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast-info { background: linear-gradient(135deg, #0077b6, #00b4d8); }
.toast-warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0 0 0 8px;
}

/* ── Cart item type badge ── */
.qh-cart-item-type {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 2px;
}
.qh-cart-item-img-placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300, #d1d5db);
  font-size: 1.2rem;
}
/* =====================================================
   QuickHealth Dashboard — Marketplace Transactions Panel
   ===================================================== */

/* --- Tabs --- */
.dash-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-tab {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: .88rem;
  background: var(--gray-100); color: var(--text);
  border: 1.5px solid var(--gray-200); cursor: pointer;
  transition: all .25s ease;
}
.dash-tab:hover { background: var(--white); border-color: var(--primary); color: var(--primary); }
.dash-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.dash-tab-count {
  min-width: 20px; height: 20px; padding: 0 6px;
  background: rgba(255,255,255,.3); border-radius: 99px;
  font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-tab:not(.active) .dash-tab-count { background: var(--primary); color: #fff; }

/* --- Order card --- */
.trans-order-card { cursor: pointer; transition: all .25s ease; }
.trans-order-card:hover { border-color: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,182,.1); }

/* --- Status badge --- */
.trans-status-badge {
  display: inline-block; padding: .35rem .9rem;
  border-radius: 99px; font-size: .78rem; font-weight: 700;
}
.trans-status-badge.status-pending_payment { background: rgba(245,158,11,.1); color: #D97706; }
.trans-status-badge.status-paid { background: rgba(59,130,246,.1); color: #2563EB; }
.trans-status-badge.status-delivered { background: rgba(16,185,129,.1); color: #059669; }
.trans-status-badge.status-received { background: rgba(16,185,129,.1); color: #059669; }
.trans-status-badge.status-completed { background: rgba(16,185,129,.12); color: #065f46; }
.trans-status-badge.status-disputed { background: rgba(239,68,68,.1); color: #DC2626; }

/* --- Detail Panel --- */
.trans-detail-panel {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--gray-200); padding: 1.5rem;
  margin-top: 1.5rem; animation: fadeInUp .3s ease;
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.trans-detail-header {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); margin-bottom: 1.25rem; flex-wrap: wrap;
}
.trans-detail-header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); flex: 1; margin: 0; }
.trans-detail-close {
  background: none; border: none; color: var(--text-light);
  font-size: .85rem; cursor: pointer; display: flex; align-items: center; gap: .4rem;
  font-weight: 600; padding: .4rem .75rem; border-radius: 8px; transition: all .2s;
}
.trans-detail-close:hover { background: var(--gray-100); color: var(--dark); }

.trans-detail-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
@media (max-width: 768px) { .trans-detail-body { grid-template-columns: 1fr; } }
.trans-detail-left { display: flex; flex-direction: column; }

/* --- Chat --- */
.trans-chat-panel {
  display: flex; flex-direction: column;
  background: var(--gray-100); border-radius: 12px; overflow: hidden;
  min-height: 400px;
}
.trans-chat-header {
  background: linear-gradient(135deg, var(--dark-alt), var(--dark));
  color: #fff; padding: .85rem 1.25rem; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.trans-chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem;
}
.trans-chat-loading { text-align: center; color: var(--text-light); font-size: .82rem; padding: 1.5rem; }
.trans-chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.trans-chat-msg.sent { align-self: flex-end; }
.trans-chat-msg.received { align-self: flex-start; }
.trans-chat-bubble {
  padding: .7rem 1rem; border-radius: 14px; font-size: .88rem; line-height: 1.5; word-break: break-word;
}
.trans-chat-msg.sent .trans-chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.trans-chat-msg.received .trans-chat-bubble { background: #fff; color: var(--dark); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.trans-chat-meta { font-size: .68rem; color: var(--text-light); margin-top: .2rem; padding: 0 .25rem; }
.trans-chat-msg.sent .trans-chat-meta { text-align: right; }

.trans-chat-input-row {
  display: flex; gap: .6rem; padding: .85rem 1rem;
  background: #fff; border-top: 1px solid var(--gray-200);
}
.trans-chat-input-row input {
  flex: 1; padding: .6rem 1rem; border: 1.5px solid var(--gray-200);
  border-radius: 99px; font-size: .88rem; font-family: var(--font);
  transition: border-color .2s;
}
.trans-chat-input-row input:focus { outline: none; border-color: var(--primary); }

/* --- Marketplace Admin Card --- */
.dash-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem; text-align: center; color: var(--text-light);
}
.dash-empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.dash-empty-state h4 { font-size: 1.2rem; color: var(--dark); margin-bottom: .5rem; font-weight: 700; }
.dash-empty-state p { font-size: .9rem; }
