/* PDFPrivado - header móvil grid v1
   En móvil: [PDFPrivado][App Pro] / [Inicio Ayuda][Idioma]
   En escritorio: [PDFPrivado] Inicio Ayuda Idioma App de Escritorio.
*/

.pdfp-site-header,
.pdfp-site-header * {
  box-sizing: border-box;
}

.pdfp-site-header {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  background: #ffffff;
}

.pdfp-header-shell {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.pdfp-header-grid {
  min-height: 4rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand nav lang cta";
  align-items: center;
  gap: 1.75rem;
}

.pdfp-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #111827;
  white-space: nowrap;
}

.pdfp-brand-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.pdfp-brand-text {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111827;
}

.pdfp-brand-red {
  color: #dc2626;
}

.pdfp-primary-nav {
  grid-area: nav;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  min-width: 0;
}

.pdfp-nav-link {
  color: #4b5563;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.pdfp-nav-link:hover,
.pdfp-nav-link:focus-visible {
  color: #dc2626;
}

.pdfp-language {
  grid-area: lang;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.pdfp-language-button {
  appearance: none;
  border: 0;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 0.45rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.5rem;
  white-space: nowrap;
}

.pdfp-language:hover .pdfp-language-menu,
.pdfp-language:focus-within .pdfp-language-menu {
  display: block;
}

.pdfp-app-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 2.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pdfp-app-cta:hover,
.pdfp-app-cta:focus-visible {
  background: #b91c1c;
}

.pdfp-app-cta-short {
  display: none;
}

@media (max-width: 767px) {
  .pdfp-header-shell {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .pdfp-header-grid {
    min-height: auto;
    padding-top: 0.7rem;
    padding-bottom: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "nav lang";
    column-gap: 0.75rem;
    row-gap: 0.55rem;
  }

  .pdfp-brand {
    max-width: 100%;
    overflow: hidden;
  }

  .pdfp-brand-icon {
    font-size: 1.15rem;
    flex: 0 0 auto;
  }

  .pdfp-brand-text {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdfp-primary-nav {
    justify-content: flex-start;
    gap: 1rem;
    min-height: 2rem;
  }

  .pdfp-nav-link {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .pdfp-language {
    justify-self: end;
    align-self: center;
    max-width: 100%;
  }

  .pdfp-language-button {
    min-height: 2rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdfp-language-menu {
    top: 100% !important;
    padding-top: 0.35rem !important;
  }

  .pdfp-app-cta {
    min-height: 2rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.78rem;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.16);
  }

  .pdfp-app-cta-full {
    display: none;
  }

  .pdfp-app-cta-short {
    display: inline;
  }
}

@media (max-width: 370px) {
  .pdfp-header-shell {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .pdfp-header-grid {
    column-gap: 0.5rem;
    row-gap: 0.48rem;
  }

  .pdfp-brand-icon {
    font-size: 1rem;
  }

  .pdfp-brand-text {
    font-size: 0.92rem;
  }

  .pdfp-primary-nav {
    gap: 0.75rem;
  }

  .pdfp-nav-link {
    font-size: 0.82rem;
  }

  .pdfp-language-button {
    font-size: 0.78rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    max-width: 8.2rem;
  }

  .pdfp-app-cta {
    font-size: 0.72rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}
