@charset "UTF-8";
:root {
  --bg-hero: #eef4fc; /* Azul suave para el encabezado */
  --primary: #1e6091; /* Azul de acento principal */
  --primary-hover: #1a4971; /* Azul oscuro para hover */
  --text-main: #2b2d42; /* Texto oscuro legible */
  --text-muted: #5c677d; /* Texto secundario */
  --bg-white: #ffffff;
  --bg-tag: #f0f4f8;
  --bg-tag-hover: #dbe7f3;
  --border-color: #d8e2dc;
  --radius: 8px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 70px; /* Altura de compensaciÃ³n para la nav bar */
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- CompensaciÃ³n para enlaces con ID (Evita solapamiento con la Nav Bar) --- */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* --- Encabezado / Hero --- */
.hero {
  background-color: var(--bg-hero);
  padding: 3.5rem 1.5rem 4rem 1.5rem;
  text-align: center;
}

.brand-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: rgba(30, 96, 145, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buscador con Filtro de Zona */
.search-box {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 780px;
  background-color: var(--bg-white);
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-group {
  flex: 1.8;
  display: flex;
}

.input-group.location-group {
  flex: 1.4;
  border-left: 1px solid var(--border-color);
}

.search-box input,
.search-box select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-main);
}

.search-box select {
  cursor: pointer;
}

.search-box optgroup {
  font-weight: 700;
  color: var(--primary);
}

.search-box button {
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-white);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background-color: var(--primary-hover);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Botones de AcciÃ³n Nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-link {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  transition: opacity 0.2s;
}

.btn-link:hover {
  opacity: 0.8;
}

.btn-link-nav {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.btn-link-nav:hover {
  color: #0284c7;
}

.btn-primary {
  text-decoration: none;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-logout {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* --- Contenido Principal --- */
.main-content {
  padding: 3rem 1.5rem 6rem 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* CategorÃ­as */
.categories-section {
  margin-top: 2rem;
}

.category-group {
  margin-bottom: 2rem;
}

.category-group h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.categories-header .section-title {
  margin-bottom: 0;
}

/* Formulario de Sugerencia */
.suggest-box {
  display: flex;
  gap: 0.4rem;
  background-color: var(--bg-white);
  border: 1px solid var(--primary);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
}

.suggest-box input {
  border: none;
  outline: none;
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
  font-family: var(--font-main);
  color: var(--text-main);
  width: 100%;
}

.suggest-box button {
  background-color: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggest-box button:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.tag {
  background-color: var(--bg-tag);
  color: var(--primary-hover);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: var(--bg-tag-hover);
  border-color: var(--primary);
}

/* --- SecciÃ³n: CÃ³mo Funciona --- */
.how-it-works-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-number {
  width: 42px;
  height: 42px;
  background-color: var(--bg-hero);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--primary-hover);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- SecciÃ³n: Empresas / Sponsors --- */
.companies-section,
.trust-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.trust-section {
  padding-bottom: 2rem;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.company-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.company-card:hover {
  transform: translateY(-3px);
}

.company-card h3 {
  font-size: 1.15rem;
  color: var(--primary-hover);
  margin-bottom: 0.6rem;
}

.company-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.trust-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-header .section-title {
  margin-bottom: 0;
}

.btn-sponsor-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  background-color: var(--bg-tag);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-sponsor-link:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.logo-card {
  aspect-ratio: 1 / 1;
  background-color: var(--bg-white);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.logo-card:hover {
  border-style: solid;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.logo-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.logo-card:hover img {
  filter: grayscale(0%);
}

/* --- Sección: Planes Landing --- */
.pricing-section {
  margin-top: 6rem; /* <--- Subí o bajá este valor (ej: 9rem, 11rem, 12rem) para ajustar el espacio a mano */
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.price-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(30, 96, 145, 0.12);
}

.card-badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--bg-tag);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.card-badge.primary {
  color: var(--bg-white);
  background-color: var(--primary);
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 0.5rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.btn-card-outline {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-card-outline:hover {
  background-color: var(--primary-hover);
  color: var(--bg-white);
}

.btn-card-primary {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--bg-white);
  background-color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-card-primary:hover {
  background-color: var(--primary-hover);
}

/* --- SecciÃ³n: Nosotros --- */
.about-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.about-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: 180px;
}

.about-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-hero);
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-top: 0.75rem;
  line-height: 1.2;
}

.profile-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.3rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: italic;
}

.about-text p + p {
  margin-top: 1rem;
}

/* --- SecciÃ³n: Contacto --- */
.contact-section {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.contact-card {
  background-color: var(--bg-hero);
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-email {
  display: block;                  /* Cambiamos de inline-block a block para poder centrarlo */
  width: 100%;                     /* Ocupa el ancho disponible sin salirse */
  max-width: 100%;                 /* LÃ­mite para que no desborde el contenedor */
  margin: 1.2rem auto 0 auto;      /* Lo centra horizontalmente */
  text-align: center;              /* Centra la direcciÃ³n de mail dentro del cuadro */
  font-size: 1.05rem;              /* TamaÃ±o de letra adecuado para mÃ³viles */
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 0.6rem 0.8rem;          /* Padding ajustado para pantallas estrechas */
  background-color: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  box-sizing: border-box;          /* Garantiza que el padding no sume ancho extra */
  word-break: break-all;           /* Si la pantalla es ultra chica, evita que rompa la caja */
}

/* En pantallas de computadora (mÃ¡s de 768px) le devolvemos el tamaÃ±o grande si te gusta */
@media (min-width: 768px) {
  .contact-email {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }
}

.contact-email:hover {
  color: var(--primary-hover);
  border-color: var(--primary);
}

/* --- CATÃLOGO DE POSTULANTES --- */
.bg-light {
  background-color: #f8fafc;
}

.filter-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filter-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
}

.btn-filter {
  padding: 0.65rem 1.5rem;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-filter:hover {
  background: #0369a1;
}

.catalog-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.catalog-header h2 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.catalog-header h2 span {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 400;
}

.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.worker-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.worker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.worker-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
}

.worker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f1f5f9;
}

.badge-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.worker-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.worker-job {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0284c7;
  margin: 0 0 0.4rem 0;
}

.worker-location {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.worker-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-card-whatsapp {
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-card-whatsapp:hover {
  background: #1da851;
}

.btn-card-profile {
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-card-profile:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* --- DASHBOARD DEL POSTULANTE --- */
.dashboard-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.dash-header-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.dash-user-welcome {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar-upload-preview {
  position: relative;
  width: 85px;
  height: 85px;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f1f5f9;
}

.btn-change-avatar {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dash-user-welcome h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 0.4rem;
}

.status-pill.active {
  background: #dcfce7;
  color: #166534;
}

.status-pill.paused {
  background: #fef3c7;
  color: #92400e;
}

.dash-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0284c7;
  min-width: 20px;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dash-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.card-title p {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
}

/* Switch Privacidad */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-top: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0284c7;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.privacy-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.privacy-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  margin-top: 2px;
}

/* GalerÃ­a de Trabajos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Zona de Acciones / Peligro */
.danger-zone {
  border-color: #fecaca;
  background: #fff5f5;
}

.account-actions .action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.account-actions p {
  font-size: 0.775rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.divider {
  border: 0;
  border-top: 1px solid #fee2e2;
  margin: 1rem 0;
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

/* --- Clases de Utilidad y Modales Tab Genericos --- */
.hidden-input,
.hidden {
  display: none !important;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cursor-pointer {
  cursor: pointer;
}

.margin-top-1 {
  margin-top: 1rem;
}

.modal-tabs {
  display: flex;
  background: #f8fafc;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.75rem;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--text-main);
  color: #a0aec0;
  padding: 1.8rem 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-footer p {
  margin: 0;
  line-height: 1.4;
}

.powered-by strong {
  color: #ffffff;
  font-weight: 600;
}

.main-footer a {
  color: #63b3ed;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- MODAL DE AUTENTICACIÃ“N (SPLIT GRID & OVERLAY) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 90%;                   /* Se ajusta al 90% de la pantalla en mÃ³viles */
  max-width: 820px;             /* En escritorio se expande hasta su tamaÃ±o normal */
  max-height: 92vh;             /* Limita la altura para que no se salga de la pantalla */
  overflow-y: auto;             /* Permite hacer scroll interno si el formulario es largo */
  padding: 1.5rem;              /* Padding mÃ¡s adecuado para pantallas pequeÃ±as */
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  box-sizing: border-box;       /* Garantiza que el padding no incremente el ancho total */
}

/* Para pantallas de escritorio (mÃ¡s de 768px), le devolvemos el padding amplio */
@media (min-width: 768px) {
  .modal-card {
    padding: 2.5rem;
  }
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-split-grid {
  display: flex;
  align-items: stretch;
}

.modal-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

.modal-divider {
  width: 1px;
  background: #e2e8f0;
  align-self: stretch;
}

.auth-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #334155;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: #0284c7;
}

.forgot-pass-link {
  font-size: 0.8rem;
  color: #0284c7;
  text-decoration: none;
  margin-top: 1rem;
  margin-bottom: 3.1rem;
  display: block;
  text-align: center;
  width: 100%;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.btn-secondary {
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* --- BOTÃ“N PUBLICAR PERFIL --- */
.stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-publish {
  background-color: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.15);
}

.btn-publish:hover {
  background-color: #15803d;
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.25);
}

.btn-publish:active {
  transform: scale(0.98);
}

/* --- DASHBOARD: SECCIÃ“N PIN SEGURIDAD --- */
.pin-card-container {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-left: 5px solid #eab308;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pin-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pin-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pin-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.pin-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.pin-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.pin-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.pin-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pin-input {
  width: 90px;
  padding: 0.55rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  color: #facc15;
  background-color: #020617;
  border: 1.5px solid #eab308;
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pin-input:focus {
  border-color: #fde047;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25);
}

.btn-copy-pin {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  color: #f8fafc;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-pin:hover {
  background-color: #334155;
  border-color: #eab308;
}

.btn-update-pin {
  background-color: #eab308;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.2);
}

.btn-update-pin:hover {
  background-color: #ca8a04;
}

.btn-update-pin:active {
  transform: translateY(1px);
}

/* --- FORMULARIOS DE PERFIL --- */
.profile-info-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-info-card .card-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.profile-info-card .form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.profile-info-card label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none; /* <--- CAMBIADO DE 'vertical' A 'none' PARA QUE NO SE PUEDA ESTIRAR */
  height: 200px; /* <--- ALTURA FIJA Y PROLIJA */
  line-height: 1.5;
}

.form-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-tip {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.4rem;
  margin-bottom: 0;
  line-height: 1.3;
}

/* --- CARGA Y SLOTS DE CV --- */
.cv-upload-group {
  margin-top: 1.5rem;
}

.cv-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.cv-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-file-icon {
  font-size: 1.5rem;
}

.cv-file-details {
  min-width: 0;
  overflow: hidden;
}

.cv-file-name {
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.cv-file-size {
  font-size: 0.75rem;
  color: #64748b;
}

.btn-delete-cv {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-delete-cv:hover {
  background-color: #fee2e2;
}

.file-input-hidden {
  display: none;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-input-label:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
  color: #0284c7;
}

.form-actions {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.btn-save-profile {
  width: 100%;
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.btn-save-profile:hover {
  background-color: #0369a1;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-save-profile:active {
  transform: translateY(1px);
}

.form-sublabel {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
}

.cv-slots-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-slot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.cv-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cv-slot-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.cv-slot.locked {
  background-color: #f8fafc;
  border: 2px dashed #7dd3fc;
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.cv-slot.locked:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
}

.badge-lock {
  background-color: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Placa overlay centrada sobre el slot bloqueado */
.locked-overlay-content {
  position: absolute;
  inset: 0;
  top: 38px;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(1.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
}

.cv-slot.locked:hover .locked-overlay-content {
  background: rgba(240, 249, 255, 0.88);
}

.locked-overlay-content p {
  margin: 0;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* El contenido del slot bloqueado NO se oculta: se mantiene con su tamaño idéntico pero atenuado */
.cv-slot.locked .unlocked-content {
  display: block;
  opacity: 0.3;
  filter: grayscale(80%);
  pointer-events: none;
}

.cv-slot:not(.locked) .locked-overlay-content,
.cv-slot:not(.locked) .badge-lock {
  display: none;
}

/* --- GESTIÃ“N DE PLANES Y TARJETAS --- */
.plan-management-card {
  padding: 24px;
  border: 1px solid #0056b3;
  border-radius: 12px;
  background-color: #ffffff;
  margin-top: 50px; /* <--- Subilo o bajalo desde acá a tu gusto (ej: 40px, 60px) */
  margin-bottom: 30px;
}

.plan-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-status.badge-trial {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.smart-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.plan-card {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.plan-card-featured {
  border: 2px solid #0288d1;
  background-color: #f9fcff;
}

.featured-tag {
  position: absolute;
  top: -10px;
  right: 10px;
  background-color: #0288d1;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.plan-card-header h5 {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.plan-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0288d1;
  margin: 4px 0;
}

.plan-price span {
  font-size: 0.75rem;
  color: #777;
  font-weight: normal;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px 0;
  font-size: 0.8rem;
  color: #555;
}

.plan-features li {
  margin-bottom: 5px;
}

.btn-plan {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.gallery-card-container {
  border: 1px solid #0056b3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-header-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .search-box {
    flex-direction: column;
    gap: 0.5rem;
  }

  .input-group.location-group {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
  }

  .search-box button {
    width: 100%;
  }

  /* --- ETAPA 1: NAVEGACIÃ“N Y CONTENEDOR DASHBOARD --- */
  .container {
    padding: 0 1rem;
  }

  .dashboard-container {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .nav-container {
    flex-direction: column;
    height: auto;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 0.75rem;
  }

  .nav-container h2 {
    font-size: 1.15rem;
    margin: 0;
  }

  .nav-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .btn-link-nav {
    font-size: 0.85rem;
  }

  .btn-logout {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  /* --- ETAPA 1: TARJETA DE BIENVENIDA Y PERFIL --- */
  .dash-header-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .dash-user-welcome {
    gap: 1rem;
  }

  .avatar-upload-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .dash-user-welcome h1 {
    font-size: 1.25rem;
    word-break: break-word;
    line-height: 1.2;
  }

  .text-subtle {
    font-size: 0.85rem;
  }

  .status-pill {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  /* --- ETAPA 1: MÃ‰TRICAS, PRIVACIDAD Y BOTÃ“N PUBLICAR --- */
  .dash-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 0.25rem;
  }

  .stat-box {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    min-width: 0;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
    text-align: center;
  }

  /* Orden visual simÃ©trico: Visitas (1), Privacidad (2) y Publicar Perfil ancho completo abajo (3) */
  .dash-stats .stat-box:nth-child(1) {
    order: 1;
  }

  .dash-stats .stat-box:nth-child(3) {
    order: 2;
  }

  .dash-stats .stat-box:nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
    padding: 0;
    background: transparent;
    border: none;
  }

  .btn-publish {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  /* --- ETAPA 1: TARJETA DE SEGURIDAD PIN --- */
  .pin-card-container {
    padding: 1.15rem 1rem;
    border-radius: 14px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .pin-card-header {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .pin-icon {
    font-size: 1.35rem;
  }

  .pin-title {
    font-size: 1rem;
  }

  .pin-subtitle {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .pin-card-body {
    max-width: 100%;
    width: 100%;
  }

  .pin-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .pin-input {
    width: 80px;
    padding: 0.5rem;
    font-size: 1.05rem;
    flex-shrink: 0;
  }

  .btn-copy-pin {
    width: 42px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
  }

  .btn-update-pin {
    flex: 1;
    min-width: 130px;
    padding: 10px 14px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 8px;
  }

  /* --- ETAPA 2: FORMULARIO DE INFORMACIÃ“N PERSONAL Y ESTADO DE CUENTA --- */
  .profile-info-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .profile-info-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .profile-info-card .form-group {
    margin-bottom: 1rem;
  }

  .form-input,
  .form-control {
    font-size: 16px !important; /* Previene el zoom automÃ¡tico invasivo en iOS / Safari */
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
  }

  .form-textarea {
    font-size: 16px !important; /* Previene el zoom automÃ¡tico en iOS */
    padding: 0.65rem 0.85rem;
    min-height: 95px;
    border-radius: 10px;
  }

  /* Tarjetas de Pausar Perfil y Eliminar Cuenta */
  .dash-col > div.card[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 1rem !important;
  }

  .dash-col > div.card[style*="justify-content: space-between"] button {
    width: 100% !important;
    text-align: center !important;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-profile {
    flex-direction: column;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .modal-split-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-divider {
    height: 1px;
    width: 100%;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .forgot-pass-link {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 900px) {
  .smart-plans-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- TARJETA DE CANDIDATO PERSONALIZADA --- */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.worker-card-custom {
  background-color: #ffffff;
  border: 1px solid #1e6091; /* Borde de 1px azul */
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.worker-card-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.worker-thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.worker-header-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.worker-name-custom {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.worker-job-custom {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e6091;
  margin-top: 0.2rem;
}

.worker-location-custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.location-icon {
  color: #ea4335; /* Rojo tipo Pin de Google Maps */
}

/* Captura y recorta la reseÃ±a a 3 lÃ­neas */
.worker-bio-custom {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Botones en el pie de la tarjeta */
.card-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-card-profile-custom {
  background-color: #f1f5f9;
  color: #1e6091;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-card-profile-custom:hover {
  background-color: #e2e8f0;
  color: #1a4971;
}

.btn-card-whatsapp-custom {
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease;
}

.btn-card-whatsapp-custom:hover {
  background-color: #1da851;
}

/* --- MODAL AMPLIADO (VER PERFIL) --- */
.modal-profile-expanded {
  max-width: 650px; /* TamaÃ±o mediano/grandecito */
  padding: 2rem;
}

.modal-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.modal-profile-photo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e6091;
}

.modal-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-profile-job {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e6091;
  margin: 0.2rem 0 0.4rem 0;
}

.modal-profile-location {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.modal-profile-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.modal-profile-body h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-profile-bio {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.modal-profile-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
  width: 100% !important;
}

.modal-profile-actions > * {
  width: 100% !important;
  flex: unset !important; /* Anula cualquier estiramiento flex previa */
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* AdaptaciÃ³n Responsive */
@media (max-width: 992px) {
  .workers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .workers-grid {
    grid-template-columns: 1fr;
  }
  .card-footer-buttons {
    grid-template-columns: 1fr;
  }
}

/* --- GALERÃA EN EL MODAL DE PERFIL --- */
.modal-gallery-section {
  margin-top: 1rem;
}

.modal-gallery-section h4 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.04);
  border-color: #1e6091;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- SECCIÃ“N DE FILTROS Y BÃšSQUEDA --- */
.filters-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filters-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334155;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #1e6091;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 96, 145, 0.15);
}

.btn-clear-filters {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-clear-filters:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* MENSAJE DE NO RESULTADOS */
.no-results-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  margin-top: 1rem;
}

.no-results-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.no-results-card h3 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.no-results-card p {
  color: #64748b;
}

@media (max-width: 768px) {
  .filters-card {
    flex-direction: column;
  }
  .filter-group {
    width: 100%;
  }
  .btn-clear-filters {
    width: 100%;
    justify-content: center;
  }
}

/* FIX MODAL - Asegura que se vea */
.modal-overlay {
  display: none !important;
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7) !important;
  z-index: 9999 !important;
  justify-content: center !important;
  align-items: center !important;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.modal-card {
  background: white !important;
  border-radius: 16px !important;
  max-width: 900px;
  width: 90%;
  position: relative;
  z-index: 10000 !important;
}

/* === FIX MODAL - ALINEAR BOTONES INGRESAR / CREAR CUENTA === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
#loginView button[type="submit"] {
  transform: translateY(40px); /* <--- AumentÃ¡ o disminuÃ­ este valor */
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}
.modal-split-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 32px;
}
.modal-divider {
  background: #e5e7eb;
  width: 1px;
}
.modal-col {
  display: flex;
  flex-direction: column;
}
.auth-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  margin-top: 20px;
}
/* Esto es lo que alinea los botones */
.forgot-pass-link {
  margin-top: 4px;
  margin-bottom: 16px;
}

#forgotForm button[type="submit"] {
  transform: none;
}
.auth-form .btn-primary,
.auth-form .btn-secondary {
  margin-top: auto; /* EMPUJA EL BOTON AL FONDO */
  background: #1e6091 !important; /* MISMO AZUL PARA LOS DOS */
  color: white !important;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  height: 48px;
}
.auth-form .btn-primary:hover,
.auth-form .btn-secondary:hover {
  background: #164e78 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-split-grid {
    grid-template-columns: 1fr;
  }
  .modal-divider {
    height: 1px;
    width: 100%;
  }
}

/* ==========================================
   ESTILOS DE BLUR PARA PERFILES PAUSADOS O EXPIRADOS
   ========================================== */

/* Contenedor relativo para posicionar el cartel superpuesto */
.worker-card-custom.card-blurred {
  position: relative !important;
  overflow: hidden;
  user-select: none;
}

/* Aplicamos el desenfoque a todo el contenido interno de la tarjeta */
.worker-card-custom.card-blurred > *:not(.card-blur-overlay) {
  filter: blur(5px) grayscale(40%);
  opacity: 0.45;
  pointer-events: none; /* Deshabilita clics en WhatsApp y Ver Perfil */
}

/* Cartel superpuesto elegante y nÃ­tido (sin blur) */
.card-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.78); /* Fondo slate oscuro semitransparente */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  z-index: 10;
  box-sizing: border-box;
}

.card-blur-overlay .overlay-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.card-blur-overlay .overlay-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px 0;
}

.card-blur-overlay .overlay-desc {
  color: #cbd5e1;
  font-size: 12px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.card-blur-overlay .btn-renovar-plan {
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.card-blur-overlay .btn-renovar-plan:hover {
  background-color: #0369a1;
}

/* ==========================================
   MODAL DE LEGALES (TÃ‰RMINOS Y CONDICIONES)
   ========================================== */
.modal-legales-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-legales-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-legales-card {
  background: #ffffff;
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-legales-body {
  overflow-y: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-right: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
  text-align: left;
}

.modal-legales-body h3 {
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #0f172a;
}

.btn-cerrar-legales {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.btn-cerrar-legales:hover {
  color: #0f172a;
}

.btn-entendido {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-entendido:hover {
  background-color: #1d4ed8;
}

/* Contenedor principal que recorta el desborde y aplica difuminado en los bordes */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 15px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* Pista que contiene todas las tarjetas en fila horizontal y las desliza */
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carruselInfinito 30s linear infinite;
}

/* Pausa el movimiento al pasar el cursor o presionar con el dedo */
.carousel-track:hover {
  animation-play-state: paused;
}

/* AnimaciÃ³n continua de 0 a -50% */
@keyframes carruselInfinito {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ajuste para que las tarjetas mantengan su ancho dentro de la pista flex */
.logo-card {
  flex: 0 0 160px; /* Ancho fijo para cada tarjeta de logo */
  box-sizing: border-box;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.forgot-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-title {
  min-height: 45px;
}

.modal-subtitle {
  min-height: 40px;
}

/* ==========================================
   MARCO VISUAL DEL SLOT / CANAL ACTIVO
   ========================================== */
.cv-slot.canal-activo {
  border: 2px solid #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
  background-color: #f8fafc;
  transition: all 0.25s ease;
}

.cv-slot-indicator {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ==========================================================================
   COMPONENTE: GUÃA PASO A PASO PARA POSTULANTES (TARJETA COMPACTA Y PROLIJA)
   ========================================================================== */
.guide-card-container {  
  max-width: 490px;  
  width: 100%;  
  background: #ffffff;  
  border: 1.5px solid #cbd5e1;  
  border-radius: 14px;  
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.06);  
  overflow: hidden;  
  position: relative;  
  margin: 70px auto 0 auto; /* <-- ¡Aquí empujamos físicamente la tarjeta hacia abajo desde arriba! */
  transform: none; /* Chau transform */
}

.guide-card-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-header-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.guide-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
}

.guide-header-sub {
  font-size: 0.75rem;
  color: #e0f2fe;
  margin-top: 1px;
  margin-bottom: 0;
}

.guide-step-counter {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.guide-progress-bar {
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  position: relative;
}

.guide-progress-fill {
  height: 100%;
  background: #38bdf8;
  width: 20%;
  transition: width 0.35s ease;
}

.guide-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.guide-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.guide-slide {
  min-width: 100%;
  width: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.slide-badge-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.slide-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
  line-height: 1.3;
}

.slide-description {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 10px;
}

.slide-tip-box {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 0;
  line-height: 1.4;
  word-break: break-word; /* <-- Agregado para seguridad */
}

.tip-save {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.tip-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.tip-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.slide-tip-icon {
  font-size: 0.95rem;
  margin-top: 1px;
}

.guide-card-footer {
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-prev {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-prev:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-next {
  background: #0284c7;
  color: #ffffff;
}

.btn-next:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.guide-dots-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.guide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.guide-dot.active {
  width: 16px;
  border-radius: 8px;
  background: #0284c7;
}

/* --- RESPONSIVE DE LA GUÃA (TABLET Y CELULARES) --- */
@media (max-width: 900px) {
  .guide-card-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .guide-card-header {
    padding: 10px 14px;
  }

  .guide-header-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .guide-header-title {
    font-size: 0.9rem;
  }

  .guide-slide {
    padding: 12px 14px;
  }

  .slide-title {
    font-size: 0.98rem;
  }

  .slide-description {
    font-size: 0.82rem;
  }

  .guide-card-footer {
    padding: 8px 12px;
  }

  .guide-nav-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   AJUSTES RESPONSIVE PARA MÓVILES (PERFIL & PANEL)
   ========================================================================== */
   /* Estilo base para las tarjetas de acción en escritorio */
.account-action-card {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Reglas generales para móviles */
@media (max-width: 768px) {

  /* 1. Reset de seguridad para evitar desbordes por padding */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* 2. Inputs, Selects y Textareas */
  .form-input,
  .form-control,
  .form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 3. Tarjetas de Pausar Perfil y Eliminar Cuenta (Opción B) */
  .account-action-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 16px;
  }

  .account-action-card button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* 4. Slot de CVs y ajuste para nombres de PDF largos */
  .cv-slot-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cv-file-details {
    min-width: 0;
    overflow: hidden;
  }

  .cv-file-name {
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* 5. Guía de Éxito Laboral */
  .guide-card-container {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .slide-description,
  .slide-tip-box {
    word-break: break-word;
  }
}

/* ==========================================================================
   ESTRUCTURA RESPONSIVE DEFINITIVA (HASTA 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Permite que la cuadrícula y columnas fluyan sin anchos rígidos */
  .dashboard-container, 
  .main-content, 
  .dash-col, 
  .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Ajuste para la tarjeta de guía en celulares */
  .guide-card-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}