/* PIDEX — Corporate CSS ─────────────────────────────────────────────────────── */
:root {
  --navy:         #1B2A4A;
  --navy-deep:    #142038;
  --navy-light:   #E8EEF4;
  --blue:         #2E5C8A;
  --blue-sky:     #7FB3D8;
  --orange:       #F0932B;
  --orange-dark:  #D47B1A;
  --orange-glow:  rgba(240,147,43,0.12);
  --white:        #FFFFFF;
  --bg:           #F5F7FA;
  --text:         #111827;
  --text-2:       #4B5563;
  --text-muted:   #9CA3AF;
  --border:       #E2E8F0;
  --shadow:       rgba(27, 42, 74, 0.12);
  --radius:       6px;
  --font-head:    'Oswald', 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Titulares con carácter (estilo editorial condensado) */
.hero h1, .section-header h2, .hub-header h1, .step h3,
.trust-card h3, .category-name, .hub-card h3, .cta-section h2,
.tutorial-trigger h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

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

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
}
.logo img {
  height: 52px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--navy); text-decoration: none;
  font-family: var(--font-head); text-transform: uppercase;
  font-weight: 500; font-size: 14px; letter-spacing: 1px;
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 40px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.2px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none; border: none; transition: all .25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(27,42,74,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,42,74,0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(240,147,43,0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,147,43,0.4);
}

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

.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 110px 0 100px;
  background:
    url('/hero-salon.jpg?v=3') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* Velo navy: fuerte a la izquierda (texto blanco legible) y suave a la
   derecha para que se vea la sala (sofá azul + pared naranja) */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 26, 46, 0.94) 0%,
    rgba(18, 30, 52, 0.82) 50%,
    rgba(20, 34, 58, 0.62) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* Subtle orange glow in corner */
.hero::after {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,147,43,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Premium Live Status Indicator */
.pulse-dot {
  width: 8px; height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero > .container { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,147,43,0.15); color: var(--orange);
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(240,147,43,0.3);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 700; line-height: 1.04;
  color: #FFFFFF; margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.85);
  line-height: 1.7; margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero: subtítulo + ticks + tarjeta de 2 opciones */
.hero-sub { font-family: var(--font-head); text-transform: uppercase; color: #fff; font-size: clamp(15px,1.8vw,20px); letter-spacing: 2px; opacity: .92; margin: 0 0 26px; }
.hero-ticks { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.hero-ticks li { color: #fff; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.hero-ticks li::before { content: '\2713'; color: #34D399; font-weight: 900; font-size: 18px; }
.hero-card { width: 100%; max-width: 440px; background: #fff; border-radius: 6px; padding: 34px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.hero-card-t { font-family: var(--font-head); text-transform: uppercase; font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.hero-card-d { font-size: 14px; color: var(--text-2); margin-bottom: 22px; }
.hero-opt { display: block; width: 100%; text-align: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; font-size: 15px; padding: 16px; border-radius: 40px; text-decoration: none; cursor: pointer; margin-bottom: 12px; }
.hero-opt-orange { background: var(--orange); color: #fff; }
.hero-opt-navy { background: #fff; border: 2px solid var(--navy); color: var(--navy); }
.hero-card-sep { text-align: center; font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ── Hero service card ──────────────────────────────────────────────────────── */
.hero .service-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid rgba(27,42,74,0.06);
}

/* ── Categories grid ────────────────────────────────────────────────────────── */
.categories {
  padding: 80px 0;
  /* Foto de sector (cerradura) muy tenue bajo una base gris clara casi opaca:
     da textura y las tarjetas blancas destacan con su sombra. */
  background:
    linear-gradient(180deg, rgba(245,247,250,0.94) 0%, rgba(245,247,250,0.96) 100%),
    url('/bg-cerrajeria.jpg') center center / cover no-repeat;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  font-size: 13px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 2px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; margin-top: 8px;
  color: var(--navy-deep);
}

.categories-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 4px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-grid::-webkit-scrollbar { display: none; }
.categories-grid > * {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* ── Carousel Wrapper + Flechas ─────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-arrow:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 32px rgba(27, 42, 74, 0.25);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
  left: -20px;
}

.carousel-arrow-right {
  right: -20px;
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

.category-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 20px;
  text-align: center; transition: all .25s ease; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(27,42,74,0.03) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.category-card:hover::before { opacity: 1; }

.category-card:hover {
  border-color: var(--blue); transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(240, 147, 43, 0.08);
  color: var(--orange);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .category-icon {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.05);
}
.category-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.category-price { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.category-badge-new {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; margin-top: 8px;
}

/* ── How it works ───────────────────────────────────────────────────────────── */
.how-it-works {
  /* Foto de sector muy tenue (herramientas) bajo un degradado casi opaco: da
     textura sin robar protagonismo, como el hero. El texto queda oscuro y legible. */
  background:
    linear-gradient(180deg, rgba(245,247,250,0.95) 0%, rgba(255,255,255,0.97) 100%),
    url('/bg-servicios.jpg') center center / cover no-repeat;
  padding: 80px 0;
  position: relative;
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }

.step { text-align: center; padding: 32px 24px; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(27,42,74,0.25);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.step p  { color: var(--text-2); line-height: 1.6; }

/* Cómo funciona V7: pasos + móvil */
.how-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.how-left .section-header { text-align: left; margin-bottom: 26px; }
.how-steps { display: flex; flex-direction: column; }
.how-step { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.how-step:first-child { border-top: none; padding-top: 0; }
.how-ck { color: var(--orange); font-weight: 900; font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.how-step h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 18px; color: var(--navy); margin-bottom: 4px; letter-spacing: 0.3px; }
.how-step p { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.how-phone { display: flex; justify-content: center; }
.how-phone img { width: 100%; max-width: 300px; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
@media (max-width: 768px) {
  .how-wrap { grid-template-columns: 1fr; gap: 30px; }
  .how-phone { order: -1; }
  .how-phone img { max-width: 230px; }
}

/* Profesionales: Academia y Empleo con colage */
.prof-section {
  padding: 88px 0;
  /* Mismo tratamiento que .cta-section: foto de sector + velo navy elegante */
  background:
    linear-gradient(135deg, rgba(20,32,56,0.90) 0%, rgba(27,42,74,0.82) 50%, rgba(46,92,138,0.60) 100%),
    url('/bg-servicios.jpg') center center / cover no-repeat;
}
.prof-section .section-header h2 { color: #fff; }
.prof-section .section-tag { color: var(--orange); }
.prof-section p { color: rgba(255,255,255,0.85) !important; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prof-grid > * { min-width: 0; }
.collage { position: relative; height: 500px; }
.collage .p1 { position: absolute; top: 0; left: 0; width: 62%; height: 72%; object-fit: cover; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.collage .p2 { position: absolute; bottom: 0; right: 0; width: 56%; height: 66%; object-fit: cover; border: 8px solid #fff; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.prof-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 26px; }
.prof-mcard { text-align: left; padding: 22px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: .2s; }
.prof-mcard:hover { border-color: #CBD5E1; box-shadow: 0 6px 18px rgba(27,42,74,.06); }
.prof-mcard .mi { color: var(--orange); margin-bottom: 10px; }
.prof-mcard h4 { font-family: var(--font-head); text-transform: uppercase; font-size: 15px; color: var(--navy); letter-spacing: .5px; margin-bottom: 5px; }
.prof-mcard span { font-size: 13px; color: var(--text-2); }
/* Tarjetas BLANCAS sobre el velo navy de .prof-section (texto oscuro) */
.prof-section .prof-mcard { background: #fff; border: none; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.prof-section .prof-mcard:hover { box-shadow: 0 12px 30px rgba(0,0,0,.32); }
@media (max-width: 768px) {
  .prof-grid { grid-template-columns: 1fr; gap: 34px; }
  .collage { height: 360px; }
  .prof-cards { grid-template-columns: 1fr; }
}

/* ── Trust section ──────────────────────────────────────────────────────────── */
.trust {
  padding: 80px 0;
  /* Foto neutra (herramientas) muy tenue bajo base gris clara. Sin colores que rompan. */
  background:
    linear-gradient(180deg, rgba(245,247,250,0.94) 0%, rgba(245,247,250,0.96) 100%),
    url('/bg-servicios.jpg') center center / cover no-repeat;
}
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.trust-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  transition: all .25s ease;
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
}
.trust-card:hover {
  box-shadow: 0 12px 32px var(--shadow);
  transform: translateY(-4px);
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}
.trust-card:hover .trust-icon {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.05);
}
.trust-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.trust-card p  { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── CTA section ────────────────────────────────────────────────────────────── */
.cta-section {
  /* Imagen VISIBLE (como el hero): un profesional trabajando ilustra el cierre
     "Nosotros ponemos al profesional". Degradado navy translúcido para leer el texto. */
  background:
    linear-gradient(135deg, rgba(20,32,56,0.82) 0%, rgba(27,42,74,0.70) 50%, rgba(46,92,138,0.55) 100%),
    url('/cta-pidex.jpg') center center / cover no-repeat;
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,147,43,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  color: var(--white); margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: clamp(24px, 3.5vw, 38px); font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.1;
  color: var(--orange); margin-bottom: 36px; position: relative;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.main-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  display: flex; align-items: center; margin-bottom: 16px;
}
.footer-logo img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
}
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a  { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center; font-size: 13px;
}

/* ── Professional section ───────────────────────────────────────────────────── */
.professionals-section {
  /* Foto de sector (electricista) igual de tenue, sobre el azul claro corporativo. */
  background:
    linear-gradient(180deg, rgba(232,238,244,0.93) 0%, rgba(232,238,244,0.97) 100%),
    url('/bg-profesionales.jpg') center center / cover no-repeat;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
/* ── Menú móvil (hamburguesa) ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--navy); line-height: 0; }
.mobile-menu { display: none; }

@media (max-width: 768px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .nav          { display: none; }
  .hero         { padding: 60px 0; }

  .nav-toggle   { display: inline-flex; align-items: center; }
  /* En móvil, Entrar/Registrarse pasan al menú ☰: la cabecera queda limpia
     (solo logo + hamburguesa) y nada se desborda por la derecha. */
  .header-actions .btn { display: none; }

  .mobile-menu  { display: flex; flex-direction: column; gap: 2px; padding: 8px 20px 16px; background: var(--white, #fff); border-top: 1px solid #E2E8F0; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .mobile-menu a { padding: 13px 10px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; font-size: 16px; }
  .mobile-menu a:active, .mobile-menu a:hover { background: #F1F5F9; }

  /* Botones de acceso dentro del menú ☰ */
  .mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid #E2E8F0; }
  .mobile-menu-actions .btn { display: block; width: 100%; text-align: center; padding: 13px; }
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero-desc, .hero-buttons, .hero-badge {
  animation: fadeUp 0.6s ease-out both;
}
.hero-desc      { animation-delay: 0.1s; }
.hero-buttons   { animation-delay: 0.2s; }

/* ── PIDEX HUB (Tutoriales, Cursos, Empleo) ─────────────────────────────────── */

.hub-header {
  padding: 60px 0;
  /* Mismo tratamiento que el hero: foto de sector muy tenue bajo el degradado navy.
     Afecta solo a Cursos, Ofertas de Empleo y Nuestro Compromiso (no a la principal). */
  background:
    linear-gradient(135deg, rgba(20,32,56,0.95) 0%, rgba(27,42,74,0.90) 60%, rgba(46,92,138,0.82) 100%),
    url('/bg-servicios.jpg') center center / cover no-repeat;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--orange);
}
.hub-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hub-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.hub-content {
  padding: 60px 0 80px;
  background: var(--bg);
  min-height: 500px;
}

.hub-search-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hub-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.hub-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(27,42,74,0.03);
  transition: all 0.2s ease;
}
.hub-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(46,92,138,0.15);
}

.hub-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
}

.hub-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}
.hub-filter-tabs::-webkit-scrollbar { display: none; }

.hub-tab {
  padding: 10px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.hub-tab:hover {
  background: var(--navy-light);
  color: var(--navy);
  border-color: var(--blue-sky);
}
.hub-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Grids & Cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.hub-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,42,74,0.1);
  border-color: rgba(46,92,138,0.3);
}

.hub-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hub-company-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #F3F4F6;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hub-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid rgba(27,42,74,0.08);
}

.hub-card-title-group {
  flex: 1;
}

.hub-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hub-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.hub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-2);
}

.hub-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hub-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.hub-card-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}

/* Badges */
.badge-featured {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-bottom-left-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Accordion for Tutorials */
.tutorial-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutorial-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s ease;
}
.tutorial-item:hover {
  border-color: var(--blue-sky);
  box-shadow: 0 8px 24px rgba(27,42,74,0.05);
}

.tutorial-trigger {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.tutorial-info {
  flex: 1;
}

.tutorial-item-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.tutorial-trigger h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.tutorial-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.tutorial-arrow {
  font-size: 20px;
  color: var(--navy);
  transition: transform 0.25s ease;
}
.tutorial-item.open .tutorial-arrow {
  transform: rotate(180deg);
}

.tutorial-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(245,247,250,0.5);
  border-top: 0 solid var(--border);
}
.tutorial-item.open .tutorial-collapse {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
  border-top: 1px solid var(--border);
}

.tutorial-content {
  padding: 28px;
}

.tutorial-content p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutorial-step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tutorial-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tutorial-step-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 56, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--orange);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: var(--white);
}

.modal-body {
  padding: 28px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-body h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.modal-body li {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.5;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-form-input, .modal-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  transition: all 0.2s;
}
.modal-form-input:focus, .modal-form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive grid overrides */
@media (max-width: 768px) {
  .hub-search-bar {
    flex-direction: column;
  }
  .hub-filter-tabs {
    margin-bottom: 20px;
  }

  /* ── Carruseles con scroll-snap en móvil ────────────────────────────────── */
  /* Categorías de servicios */
  .categories-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    gap: 14px;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
  }
  .categories-grid > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  /* Confianza / Trust */
  .trust-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    gap: 16px;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
  }
  .trust-grid > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  /* Hub (cursos, empleos) */
  /* Cursos/Empleo en móvil: lista vertical (1 columna), no carrusel. */
  .hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Ecosistema (Cursos + Empleo) y Para profesionales */
  .steps-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    gap: 16px;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
  }
  .steps-grid > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  /* Ocultar barra de scroll horizontal (carruseles más limpios) */
  .categories-grid::-webkit-scrollbar,
  .trust-grid::-webkit-scrollbar,
  .hub-grid::-webkit-scrollbar,
  .steps-grid::-webkit-scrollbar {
    display: none;
  }
  .categories-grid,
  .trust-grid,
  .hub-grid,
  .steps-grid {
    scrollbar-width: none;
  }
}

/* ── Móvil: hero optimizado (sin desbordes) ── */
@media (max-width: 768px) {
  .hero { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 44px); letter-spacing: 0; line-height: 1.1; word-break: break-word; }
  .hero-sub { font-size: 13.5px; letter-spacing: 1px; margin-bottom: 18px; }
  .hero-ticks { gap: 11px; }
  .hero-ticks li { font-size: 14px; align-items: flex-start; line-height: 1.4; }
  .hero-card { max-width: 100%; width: 100%; padding: 22px 18px; margin-top: 6px; }
  .hero-card-t { font-size: 20px; }
  .hero-opt { font-size: 12.5px; letter-spacing: 0.4px; padding: 15px 6px; }
}

