/*
 * Marca publica del FOP.
 * Se carga sobre el bundle compilado para produccion PHP.
 */
#root header [data-fop-brand="logo"] {
  height: 34px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

#root header [data-fop-brand="subtitle"] {
  color: #2FB5FF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#root header .h-16 {
  position: relative;
  justify-content: center;
}

#root header [data-fop-logo-applied="1"] {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transform: translate(-50%, -50%);
}

#root header [data-fop-logo-applied="1"] > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0 !important;
}

@media (max-width: 640px) {
  #root header [data-fop-brand="logo"] {
    height: 28px;
    max-width: 150px;
  }

  #root header [data-fop-brand="subtitle"] {
    font-size: 9px;
  }
}

.fop-intro-open {
  overflow: hidden;
}

[data-fop-intro-gate="1"],
[data-fop-intro-gate="1"] *,
[data-fop-section-gate="1"],
[data-fop-section-gate="1"] *,
.fop-intro-card,
.fop-section-card {
  box-sizing: border-box !important;
}

[data-fop-intro-gate="1"] {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 12px 48px 12px;
  width: 100vw;
  max-width: 100vw;
  background:
    radial-gradient(circle at top left, rgba(47, 181, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(10px);
}

[data-fop-section-gate="1"] {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(47, 181, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(10px);
}

.fop-intro-card {
  width: 100%;
  max-width: 760px;
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(47, 181, 255, 0.34);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  padding: clamp(16px, 4vw, 36px);
  color: #0f172a;
  box-sizing: border-box !important;
}

.fop-section-card {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(47, 181, 255, 0.34);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  padding: clamp(16px, 4vw, 36px);
  color: #0f172a;
  box-sizing: border-box !important;
}

.fop-intro-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  border: 1px solid rgba(47, 181, 255, 0.34);
  border-radius: 999px;
  background: rgba(47, 181, 255, 0.09);
  color: #0ea5e9;
  padding: 8px 14px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.fop-intro-card h1,
.fop-section-card h1 {
  margin: 0 0 18px;
  color: #020617;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  font-weight: 950;
}

.fop-intro-copy {
  display: grid;
  gap: 14px;
  color: #475569;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
}

.fop-intro-copy p {
  margin: 0;
}

.fop-section-copy {
  display: grid;
  gap: 14px;
  color: #334155;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.72;
}

.fop-section-copy p,
.fop-section-copy ul,
.fop-section-copy ol {
  margin: 0;
}

.fop-section-copy ul,
.fop-section-copy ol {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.fop-section-copy li::marker {
  color: #2FB5FF;
  font-weight: 900;
}

.fop-section-copy h3 {
  margin: 8px 0 0;
  color: #020617;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}

.fop-intro-copy strong {
  color: #020617;
  font-weight: 900;
}

.fop-intro-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.fop-intro-actions span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.fop-intro-actions button {
  border: 0;
  border-radius: 999px;
  background: #2FB5FF;
  color: #ffffff;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(47, 181, 255, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}

.fop-intro-actions button:hover {
  background: #129fe8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  [data-fop-intro-gate="1"],
  [data-fop-section-gate="1"] {
    padding: 14px;
    align-items: flex-start;
    overflow: auto;
  }

  .fop-intro-card,
  .fop-section-card {
    max-height: none;
    margin: 14px 0;
    border-radius: 22px;
  }

  .fop-intro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fop-intro-actions button {
    width: 100%;
  }
}

[data-fop-section-label="1"] {
  max-width: min(100%, 460px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-fop-final-note="1"] {
  border: 1px solid rgba(47, 181, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(47, 181, 255, 0.1), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: 22px;
  color: #0f172a;
}

[data-fop-final-note="1"] span {
  display: block;
  margin-bottom: 8px;
  color: #020617;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

[data-fop-final-note="1"] p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

[data-fop-department-fallback="1"] {
  display: grid;
  gap: 10px;
  margin: 10px 0 22px;
}

.fop-fallback-label {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fop-fallback-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.fop-fallback-select:focus {
  border-color: #2FB5FF;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 181, 255, 0.16);
}

.fop-gate-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fop-intro-actions button.fop-btn-back {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.fop-intro-actions button.fop-btn-back:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .fop-gate-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
}

/* Intro PDF Download Buttons */
.fop-intro-downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.fop-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fop-download-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.fop-download-btn:active {
  transform: translateY(0);
}

.fop-download-icon {
  width: 16px;
  height: 16px;
  color: #0284c7;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fop-intro-downloads {
    flex-direction: column;
  }

  .fop-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Partners Logobar */
/* Partners Logobar */
.partners-logobar {
  width: 100%;
  background-color: #f8fafc;
  padding: 36px 16px;
  margin-top: 40px;
  box-sizing: border-box;
}

.partners-logobar-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  box-sizing: border-box;
}

.partners-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .partners-main-row {
    flex-wrap: nowrap !important;
    gap: 24px;
  }
  .partners-group {
    flex-wrap: nowrap !important;
  }
}

.partners-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.partners-inline-title {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.partners-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.partners-flex-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partners-flex-group.initiative {
  gap: 20px;
}

.partners-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partners-logo-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.partners-logo-wrap a:hover {
  transform: scale(1.06);
}

.partners-logo-wrap img {
  display: block;
  width: auto;
  object-fit: contain;
  user-select: none;
  max-width: 100%;
}

/* Specific heights matching the design */
.partners-img-talento { height: 38px; max-height: 38px; }
.partners-img-pormas { height: 38px; max-height: 38px; }
.partners-img-bid { height: 28px; max-height: 28px; }
.partners-img-eshoy { height: 28px; max-height: 28px; }
.partners-img-seco { height: 34px; max-height: 34px; }
.partners-img-integra { height: 24px; max-height: 24px; }
.partners-img-anglo { height: 22px; max-height: 22px; }
.partners-img-fondoempleo { height: 22px; max-height: 22px; }
.partners-img-credicorp { height: 22px; max-height: 22px; }
.partners-img-scotia { height: 20px; max-height: 20px; }

@media (min-width: 640px) {
  .partners-img-talento { height: 42px; max-height: 42px; }
  .partners-img-pormas { height: 42px; max-height: 42px; }
  .partners-img-bid { height: 30px; max-height: 30px; }
  .partners-img-eshoy { height: 30px; max-height: 30px; }
  .partners-img-seco { height: 38px; max-height: 38px; }
  .partners-img-integra { height: 26px; max-height: 26px; }
  .partners-img-anglo { height: 24px; max-height: 24px; }
  .partners-img-fondoempleo { height: 24px; max-height: 24px; }
  .partners-img-credicorp { height: 24px; max-height: 24px; }
  .partners-img-scotia { height: 22px; max-height: 22px; }
}

.partners-allies-section {
  padding-top: 4px;
}

.partners-logobar.in-overlay {
  width: min(960px, 100%);
  background-color: transparent;
  padding: 40px 16px 20px 16px;
  margin-top: 40px;
  box-sizing: border-box;
}

.partners-flex-group.allies {
  gap: 28px;
}

/* Floating WhatsApp Button */
.fop-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  text-decoration: none !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.25s ease;
}

.fop-whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.48);
}

.fop-whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  /* Prevent horizontal scroll on mobile */
  html, body, #root {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Intro overlay on mobile */
  [data-fop-intro-gate="1"] {
    padding: 16px 12px 32px 12px !important;
  }

  .fop-intro-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .fop-intro-card h1 {
    font-size: 20px !important;
    line-height: 1.28 !important;
    margin-bottom: 14px !important;
  }

  .fop-intro-pill {
    font-size: 9px !important;
    padding: 6px 10px !important;
    margin-bottom: 14px !important;
  }

  .fop-intro-copy p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .fop-download-btn {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  .fop-intro-actions button {
    width: 100% !important;
    padding: 14px !important;
    font-size: 14px !important;
  }

  /* Main container & Header cards inside #root on mobile */
  #root .max-w-2xl {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
  }

  #root .bg-white.rounded-3xl,
  #root .bg-white.rounded-2xl,
  #root .bg-white.rounded-\[28px\] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 12px !important;
  }

  /* Fix Auto-guardado and Mapa header row overflow */
  #root .bg-white .flex-wrap {
    gap: 6px !important;
  }

  #root span.whitespace-nowrap,
  #root button.whitespace-nowrap {
    white-space: nowrap !important;
    word-break: normal !important;
    hyphens: manual !important;
  }

  /* Floating WhatsApp Button on Mobile */
  .fop-whatsapp-float {
    bottom: 16px !important;
    right: 16px !important;
    padding: 12px !important;
    z-index: 99999 !important;
  }
  .fop-whatsapp-float span {
    display: none !important;
  }
}






