/*
 * 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-section-gate="1"] {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  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,
.fop-section-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(47, 181, 255, 0.34);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  padding: clamp(24px, 5vw, 44px);
  color: #0f172a;
}

.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;
  }
}
