/* =============================================================
   HUB CLASES PARTICULARES — CSS Dedicado
   URL: /clases-baile/particulares/
   Fase 5 — Implementación Técnica

   IMPORTANTE: Este archivo afecta ÚNICAMENTE al Hub de Particulares.
   No modificar _base.html ni style.css para estilos de este hub.
   ============================================================= */

/* ── Variables del Hub ──────────────────────────────────────── */
:root {
  --hub-primary:          #ff6a09;
  --hub-dark:             #181d38;
  --hub-light:            #f8f9fa;
  --hub-alt:              #f0f4f8;
  --hub-trust-bg:         #0f1225;
  --hub-wa-green:         #25D366;
  --hub-gold:             #ffc107;
  --hub-text:             #333;
  --hub-muted:            #6c757d;
  --hub-border:           #dee2e6;
  --hub-overlay:          rgba(15, 18, 37, 0.60);
  --hub-placeholder-bg:   #fff3cd;
  --hub-placeholder-brd:  #fd7e14;
  --hub-radius:           12px;
  --hub-radius-sm:        8px;
  --hub-shadow:           0 4px 20px rgba(0,0,0,0.10);
  --hub-shadow-hover:     0 8px 30px rgba(0,0,0,0.18);
  --hub-section-py:       80px;
  --hub-section-py-sm:    48px;
}

/* ── Sistema de Placeholders ────────────────────────────────── */
.hub-placeholder {
  background: var(--hub-placeholder-bg);
  border: 2px dashed var(--hub-placeholder-brd);
  border-radius: var(--hub-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  color: #856404;
  font-size: 0.85rem;
  font-weight: 600;
}

.hub-placeholder--video  { min-height: 280px; }
.hub-placeholder--image  { min-height: 200px; }
.hub-placeholder--map    { min-height: 320px; }
.hub-placeholder--icon   { width: 56px; height: 56px; min-height: unset; padding: 8px; border-radius: 50%; }
.hub-placeholder--stat   { min-height: 80px; }

.hub-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hub-placeholder-bg);
  border: 1px solid var(--hub-placeholder-brd);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #856404;
}

/* ── Sección base ───────────────────────────────────────────── */
.hub-section {
  padding: var(--hub-section-py) 0;
}

.hub-section--alt {
  background-color: var(--hub-alt);
}

.hub-section--dark {
  background-color: var(--hub-dark);
  color: #fff;
}

.hub-section--compact {
  padding: var(--hub-section-py-sm) 0;
}

.hub-section-label {
  display: inline-block;
  background: var(--hub-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── C2 HERO ────────────────────────────────────────────────── */
.hub-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hub-dark);
}

.hub-hero__bg-video,
.hub-hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hub-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--hub-overlay) 55%,
    rgba(15, 18, 37, 0.30) 100%
  );
  z-index: 1;
}

.hub-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 60px;
}

.hub-hero__breadcrumb {
  margin-bottom: 20px;
}

.hub-hero__breadcrumb .breadcrumb-item,
.hub-hero__breadcrumb .breadcrumb-item a,
.hub-hero__breadcrumb .breadcrumb-item.active {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}

.hub-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.50);
}

.hub-hero__h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hub-hero__h1 span {
  color: var(--hub-primary);
}

.hub-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hub-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hub-hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.80);
  font-size: 0.875rem;
}

.hub-hero__trust-stars {
  color: var(--hub-gold);
  font-size: 1rem;
}

.hub-hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  text-align: center;
  animation: hubBounce 2s infinite;
}

.hub-hero__scroll-hint i {
  display: block;
  font-size: 1.4rem;
}

@keyframes hubBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── C3 TRUST BAR ───────────────────────────────────────────── */
.hub-trust-bar {
  background: var(--hub-trust-bg);
  padding: 20px 0;
  border-bottom: 2px solid var(--hub-primary);
}

.hub-trust-stat {
  text-align: center;
  padding: 8px 16px;
}

.hub-trust-stat__number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hub-primary);
  line-height: 1;
  display: block;
}

.hub-trust-stat__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.hub-trust-stat + .hub-trust-stat {
  border-left: 1px solid rgba(255,255,255,0.12);
}

/* ── C4 PROBLEMA ────────────────────────────────────────────── */
.hub-problem__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-problem__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hub-border);
  font-size: 1rem;
  color: var(--hub-text);
}

.hub-problem__item:last-child { border-bottom: none; }

.hub-problem__icon {
  color: var(--hub-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hub-inline-link {
  color: var(--hub-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.88em;
  font-weight: 500;
}
.hub-inline-link:hover { opacity: 0.8; }

/* ── C5 COMPARATIVA ─────────────────────────────────────────── */
.hub-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.hub-compare-table th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  background: var(--hub-dark);
  color: #fff;
}

.hub-compare-table th:first-child {
  text-align: left;
  border-radius: var(--hub-radius-sm) 0 0 0;
}

.hub-compare-table th:last-child {
  border-radius: 0 var(--hub-radius-sm) 0 0;
}

.hub-compare-table th.hub-compare-table__highlighted {
  background: var(--hub-primary);
  color: #fff;
}

.hub-compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--hub-border);
  font-size: 0.9rem;
}

.hub-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--hub-dark);
}

.hub-compare-table tr:hover td {
  background: var(--hub-alt);
}

.hub-compare-table__col-highlighted td:nth-child(2) {
  background: rgba(255, 106, 9, 0.05);
  border-left: 2px solid var(--hub-primary);
  border-right: 2px solid var(--hub-primary);
  font-weight: 600;
}

.hub-compare-icon--yes  { color: #198754; font-size: 1.1rem; }
.hub-compare-icon--mid  { color: var(--hub-gold); font-size: 1.1rem; }
.hub-compare-icon--no   { color: #dc3545; font-size: 1.1rem; }

/* ── C6 PERFILES ────────────────────────────────────────────── */
.hub-profile-card {
  background: #fff;
  border-radius: var(--hub-radius);
  padding: 24px 20px;
  box-shadow: var(--hub-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  border-top: 3px solid var(--hub-primary);
}

.hub-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hub-shadow-hover);
}

.hub-profile-card__icon {
  font-size: 2.2rem;
  color: var(--hub-primary);
  margin-bottom: 12px;
  display: block;
}

.hub-profile-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 6px;
}

.hub-profile-card__situation {
  font-size: 0.85rem;
  color: var(--hub-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hub-profile-card__result {
  font-size: 0.85rem;
  color: #198754;
  font-weight: 600;
}

/* ── C7 METODOLOGÍA TIMELINE ────────────────────────────────── */
.hub-timeline {
  display: flex;
  justify-content: space-between;
  gap: 0;
  position: relative;
  padding-top: 16px;
}

.hub-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, var(--hub-primary), var(--hub-dark));
  z-index: 0;
}

.hub-timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hub-timeline__step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hub-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 4px rgba(255,106,9,0.18);
}

.hub-timeline__step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 6px;
}

.hub-timeline__step-desc {
  font-size: 0.78rem;
  color: var(--hub-muted);
  line-height: 1.4;
  max-width: 140px;
  margin: 0 auto;
}

/* ── C8 INSTRUCTOR ──────────────────────────────────────────── */
.hub-instructor__photo {
  border-radius: var(--hub-radius);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--hub-shadow);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.hub-instructor__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hub-dark);
  margin-bottom: 4px;
}

.hub-instructor__title-badge {
  display: inline-block;
  background: var(--hub-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hub-instructor__bio {
  font-size: 0.95rem;
  color: var(--hub-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hub-instructor__cred-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.hub-instructor__cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--hub-text);
}

.hub-instructor__cred-item i {
  color: var(--hub-primary);
  width: 18px;
  flex-shrink: 0;
}

.hub-instructor__socials {
  display: flex;
  gap: 8px;
}

.hub-instructor__social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--hub-border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hub-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.hub-instructor__social-btn:hover {
  background: var(--hub-dark);
  color: #fff;
  border-color: var(--hub-dark);
}

/* ── C9 PROGRESIÓN ──────────────────────────────────────────── */
.hub-progress-card {
  background: #fff;
  border-radius: var(--hub-radius);
  padding: 24px 20px;
  box-shadow: var(--hub-shadow);
  border-left: 4px solid var(--hub-primary);
  height: 100%;
}

.hub-progress-card__session {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hub-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.hub-progress-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 8px;
}

.hub-progress-card__desc {
  font-size: 0.85rem;
  color: var(--hub-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.hub-progress-card__emotion {
  font-size: 0.82rem;
  color: #198754;
  font-style: italic;
}

/* ── C10 CASOS DE ÉXITO ─────────────────────────────────────── */
.hub-case-card {
  background: #fff;
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.25s;
}

.hub-case-card:hover {
  box-shadow: var(--hub-shadow-hover);
}

.hub-case-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hub-case-card__body {
  padding: 20px;
}

.hub-case-card__profile-badge {
  display: inline-block;
  background: var(--hub-alt);
  color: var(--hub-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.hub-case-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 8px;
}

.hub-case-card__story {
  font-size: 0.85rem;
  color: var(--hub-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hub-case-card__result {
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.25);
  border-radius: var(--hub-radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #198754;
}

/* ── C11 TESTIMONIOS ────────────────────────────────────────── */
.hub-testimonial-card {
  background: #fff;
  border-radius: var(--hub-radius);
  padding: 24px;
  box-shadow: var(--hub-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hub-testimonial-card__stars {
  color: var(--hub-gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.hub-testimonial-card__quote {
  font-size: 0.9rem;
  color: var(--hub-text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
  flex: 1; /* empuja el autor siempre al fondo */
}

.hub-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-testimonial-card__author-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-testimonial-card__author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin: 0 0 2px 0;
}

.hub-testimonial-card__author-result {
  font-size: 0.75rem;
  color: var(--hub-primary);
  font-weight: 600;
  margin: 0 0 3px 0;
}

.hub-video-card {
  position: relative;
  border-radius: var(--hub-radius);
  overflow: hidden;
  background: var(--hub-dark);
  aspect-ratio: 9/16;
  max-height: 320px;
  cursor: pointer;
}

.hub-video-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hub-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-video-card__play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--hub-primary);
  transition: transform 0.2s;
}

.hub-video-card:hover .hub-video-card__play-btn {
  transform: scale(1.1);
}

/* ── C10 STORIES GRID — Mobile First ───────────────────────── */
.hub-stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
}

@media (min-width: 768px) {
  .hub-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hub-stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hub-story-card {
    max-width: 310px;
    margin-inline: auto;
  }
}

.hub-story-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.hub-story-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #111;
}

.hub-story-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.hub-story-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hub-primary);
  background: rgba(255,106,9,0.09);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.hub-story-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.hub-story-quote {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hub-dark);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.hub-story-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex: 1;
}

.hub-story-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0faf4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: auto;
  color: #2a7a50;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hub-story-result i {
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: #2a7a50;
}

/* Video testimonial card (fila 1 de C11) */
.hub-video-testimony {
  background: #000;
  border-radius: var(--hub-radius);
  overflow: hidden;
}

.hub-video-testimony__player {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.hub-video-testimony__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
}

.hub-video-testimony__photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-video-testimony__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.hub-video-testimony__profession {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ── C11 CARRUSEL DE TESTIMONIOS — Mobile First ─────────── */
.hub-carousel-wrapper {
  position: relative;
}

.hub-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hub-carousel::-webkit-scrollbar {
  display: none;
}

.hub-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .hub-carousel__slide {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (min-width: 992px) {
  .hub-carousel__slide {
    flex: 0 0 calc(33.333% - 11px);
  }
}

.hub-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.hub-carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  font-size: 0.85rem;
}

.hub-carousel__btn:hover,
.hub-carousel__btn:focus-visible {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.7);
  outline: none;
}

/* Avatar con inicial — cuando el testimonio no tiene foto */
.hub-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hub-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Avatar pequeño para video cards */
.hub-testimonial-avatar--sm {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

/* Link "Ver en Google" bajo el nombre del autor */
.hub-testimonial-google-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--hub-muted);
  text-decoration: none;
  margin-top: 3px;
  transition: color 0.2s;
}
.hub-testimonial-google-link:hover {
  color: #4285f4;
}

/* ── C12 MODALIDADES ────────────────────────────────────────── */
.hub-modality-card {
  background: #fff;
  border-radius: var(--hub-radius);
  padding: 28px 22px;
  box-shadow: var(--hub-shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-modality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hub-shadow-hover);
}

.hub-modality-card__icon {
  font-size: 2.2rem;
  color: var(--hub-primary);
  margin-bottom: 14px;
  display: block;
}

.hub-modality-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 10px;
}

.hub-modality-card__for-whom {
  font-size: 0.84rem;
  color: var(--hub-muted);
  line-height: 1.55;
  flex: 1; /* empuja el CTA al fondo en todas las cards */
  margin-bottom: 20px;
}

.hub-modality-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hub-primary);
  text-decoration: none;
  border: 1.5px solid var(--hub-primary);
  border-radius: 8px;
  padding: 8px 16px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.hub-modality-card__cta:hover {
  background: var(--hub-primary);
  color: #fff;
}

/* ── C13 INVERSIÓN — Invest Cards ───────────────────────────── */
.hub-invest-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  position: relative;
}

.hub-invest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.13);
}

.hub-invest-card--featured {
  border-color: var(--hub-primary);
}

.hub-invest-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--hub-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 20px;
  text-align: center;
  z-index: 1;
}

.hub-invest-card__body {
  padding: 44px 24px 16px; /* 44px = badge height (~28px) + 16px gap — igual en las 3 cards */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-invest-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.hub-invest-card__subtitle {
  font-size: 0.78rem;
  color: var(--hub-muted);
  font-weight: 500;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hub-invest-card__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 2px;
}

.hub-invest-card__currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hub-muted);
}

.hub-invest-card__amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--hub-dark);
  line-height: 1;
}

.hub-invest-card__price-note {
  font-size: 0.78rem;
  color: var(--hub-muted);
  margin: 0 0 16px 0;
  font-weight: 500;
}

.hub-invest-card__desc {
  font-size: 0.84rem;
  color: var(--hub-muted);
  margin: 0 0 20px 0;
  line-height: 1.55;
}

.hub-invest-card__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hub-invest-card__benefits li {
  font-size: 0.92rem;
  color: var(--hub-text);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}

.hub-invest-card__benefits li i {
  color: #2a7a50;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.hub-invest-card__footer {
  padding: 24px 24px 28px;
}

.hub-invest-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  background: var(--hub-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.hub-invest-card__btn:hover {
  background: var(--hub-primary);
  color: #fff;
  transform: translateY(-1px);
}

.hub-invest-card--featured {
  border-color: var(--hub-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 32px rgba(255,106,9,0.14);
}

.hub-invest-card--featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(255,106,9,0.18);
}

.hub-invest-card--featured .hub-invest-card__btn {
  background: var(--hub-primary);
}

.hub-invest-card--featured .hub-invest-card__btn:hover {
  background: #d95800;
}

.hub-invest-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  max-width: 580px;
  margin: 32px auto 0;
  font-size: 0.82rem;
  color: var(--hub-muted);
  line-height: 1.6;
  text-align: left;
}

.hub-invest-note i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.85rem;
}

/* ── BLOQUES CRO ────────────────────────────────────────────── */
.hub-cro-block {
  background: var(--hub-dark);
  color: #fff;
  padding: 32px 0;
}

.hub-cro-block--light {
  background: var(--hub-alt);
  color: var(--hub-dark);
}

.hub-cro-block__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hub-cro-block__subtitle {
  font-size: 0.9rem;
  opacity: 0.80;
  margin-bottom: 0;
}

/* ── CRO-2 Bridge — puente emocional post-testimonios ───────── */
.hub-cro2-bridge {
  background: var(--hub-alt);
  padding: 64px 0;
}

.hub-cro2-bridge__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hub-cro2-bridge__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--hub-dark);
  margin: 0;
  line-height: 1.25;
}

.hub-cro2-bridge__subtitle {
  font-size: 1rem;
  color: var(--hub-muted);
  line-height: 1.65;
  max-width: 660px;
  margin: 0;
}
}

/* ── C14 FAQ ────────────────────────────────────────────────── */
.hub-faq .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hub-dark);
  background: #fff;
}

.hub-faq .accordion-button:not(.collapsed) {
  color: var(--hub-primary);
  background: rgba(255,106,9,0.05);
  box-shadow: none;
}

.hub-faq .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(255,106,9,0.25);
}

.hub-faq .accordion-button::after {
  filter: none;
}

.hub-faq .accordion-body {
  font-size: 0.9rem;
  color: var(--hub-text);
  line-height: 1.7;
}

.hub-faq .accordion-item {
  border: 1px solid var(--hub-border);
  margin-bottom: 8px;
  border-radius: var(--hub-radius-sm) !important;
  overflow: hidden;
}

/* ── C7 VIDEO ───────────────────────────────────────────────── */
.hub-c7-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--hub-radius);
}

/* ── C15 CTA FINAL ──────────────────────────────────────────── */
.hub-cta-final {
  position: relative;
  padding: 100px 0 96px;
  overflow: hidden;
  background: var(--hub-dark);
  color: #fff;
}

.hub-cta-final__content {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.hub-cta-final__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.hub-cta-final__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── C16 IG BLOCK ───────────────────────────────────────────── */
.hub-ig-card {
  background: #fff;
  border-radius: var(--hub-radius);
  padding: 24px 20px;
  box-shadow: var(--hub-shadow);
  height: 100%;
}

.hub-ig-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--hub-radius-sm);
  display: block;
  margin-bottom: 16px;
}

.hub-ig-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hub-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hub-ig-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 8px;
}

.hub-ig-card__excerpt {
  font-size: 0.85rem;
  color: var(--hub-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.hub-ig-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hub-primary);
  text-decoration: none;
}

.hub-ig-card__link:hover { text-decoration: underline; }

/* ── C17 UBICACIÓN ──────────────────────────────────────────── */
.hub-c17-video {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--hub-radius);
  margin-inline: auto;
}


.hub-location__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.hub-location__info-item i {
  color: var(--hub-primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── C18 ECOSISTEMA ─────────────────────────────────────────── */
.hub-ecosystem-card {
  background: #fff;
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.25s;
}

.hub-ecosystem-card:hover {
  box-shadow: var(--hub-shadow-hover);
  text-decoration: none;
  color: inherit;
}

.hub-ecosystem-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hub-ecosystem-card__body {
  padding: 16px;
}

.hub-ecosystem-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hub-dark);
  margin-bottom: 4px;
}

.hub-ecosystem-card__desc {
  font-size: 0.78rem;
  color: var(--hub-muted);
  margin: 0;
}

/* ── Botones del Hub ────────────────────────────────────────── */
.btn-hub-primary {
  background: var(--hub-primary);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--hub-primary);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.btn-hub-primary:hover {
  background: #e55d00;
  border-color: #e55d00;
  color: #fff;
}

.btn-hub-wa {
  background: var(--hub-wa-green);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--hub-wa-green);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hub-wa:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}

.btn-hub-outline {
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
  transition: all 0.25s;
}

.btn-hub-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-hub-wa-sm {
  background: var(--hub-wa-green);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-hub-wa-sm:hover {
  background: #1da851;
  color: #fff;
}

/* ── Títulos de sección del hub ─────────────────────────────── */
.hub-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hub-dark);
  margin-bottom: 12px;
}

.hub-section-title--white { color: #fff; }

.hub-section-lead {
  font-size: 1rem;
  color: var(--hub-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Responsive: Mobile First ───────────────────────────────── */
@media (max-width: 767.98px) {

  :root {
    --hub-section-py: 48px;
  }

  /* Hero */
  .hub-hero { min-height: 85vh; }
  .hub-hero__content { padding-left: 20px; padding-right: 20px; }
  .hub-hero__h1 { font-size: 1.85rem; }
  .hub-hero__ctas { flex-direction: column; }
  .hub-hero__ctas .btn-hub-wa,
  .hub-hero__ctas .btn-hub-outline { width: 100%; justify-content: center; }

  /* Trust bar: vertical en muy pequeño, horizontal de 2x2 */
  .hub-trust-stat + .hub-trust-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }

  /* Timeline: vertical */
  .hub-timeline {
    flex-direction: column;
    gap: 24px;
  }
  .hub-timeline::before {
    top: 0;
    left: 24px;
    width: 3px;
    height: 100%;
  }
  .hub-timeline__step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  .hub-timeline__step-number { margin: 0; flex-shrink: 0; }
  .hub-timeline__step-desc { max-width: 100%; }

  /* Comparativa: scroll horizontal */
  .hub-compare-wrapper { overflow-x: auto; }
  .hub-compare-table { min-width: 480px; }

  /* Pricing: vertical */
  .hub-pricing-card--featured::before { display: none; }

  /* CTA final: padding reducido */
  .hub-cta-final { padding: 72px 0 64px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hub-timeline::before { left: 8%; width: 84%; }
}
