/* ——— Global: no unwanted horizontal scroll ——— */
html.no-x-scroll,
body.no-x-scroll,
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Explicit allowance for carousels / tables */
.allow-x-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

@font-face {
  font-family: 'fingrad';
  src: url('../font/fingard.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.titulo-especial {
  font-family: 'fingrad', serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-light {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.glow-button {
  box-shadow: 0 0 15px rgba(72, 178, 48, 0.3);
  transition: all 0.3s ease;
}

.glow-button:hover {
  box-shadow: 0 0 25px rgba(72, 178, 48, 0.5);
}

.step-transition {
  display: none;
}

.step-transition.active {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.job-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 70, 32, 0.08);
  border-color: rgba(72, 178, 48, 0.35);
}

.lang-active {
  color: #48B230;
}

/* File input styling */
.file-drop {
  border: 2px dashed #e2e8f0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: #48B230;
  background: rgba(72, 178, 48, 0.04);
}

.file-drop.field-invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

/* ——— Form errors ——— */
.field-invalid {
  border-color: #ef4444 !important;
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ef4444;
}

.form-error-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ——— Sticky mobile CTA ——— */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}

.sticky-mobile-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.25rem;
  border-radius: 9999px;
  background: #48B230;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(72, 178, 48, 0.35);
}

@media (max-width: 767px) {
  .sticky-mobile-cta {
    display: block;
  }

  body.has-sticky-cta {
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none !important;
  }
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: 42rem;
  margin: 0 auto;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #1A1C19;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .cookie-banner {
    left: 1.5rem;
    right: auto;
    bottom: 1.5rem;
    margin: 0;
  }

  .cookie-banner__inner {
    min-width: 28rem;
  }

  body.has-sticky-cta .cookie-banner {
    bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  body.has-sticky-cta .cookie-banner {
    bottom: 5.75rem;
  }
}

.cookie-banner__title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cookie-banner__body {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
  font-weight: 500;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  border-radius: 9999px;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.cookie-btn--primary {
  background: #48B230;
  color: #fff;
}

.cookie-btn--primary:hover {
  background: #1E4620;
}

.cookie-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--ghost:hover {
  border-color: #48B230;
  color: #48B230;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 28, 25, 0.72);
  backdrop-filter: blur(8px);
}

.cookie-modal__panel {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal__head h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.cookie-modal__close {
  border: none;
  background: #f1f5f9;
  border-radius: 9999px;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cookie-toggle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.cookie-toggle strong {
  display: block;
  font-size: 0.9rem;
}

.cookie-toggle small {
  display: block;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.cookie-toggle input {
  margin-top: 0.2rem;
}

/* ——— Page loader + skeletons ——— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.page-loader.is-visible {
  opacity: 1;
  pointer-events: all;
}

.page-loader__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 3px solid #e2e8f0;
  border-top-color: #48B230;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 0.5rem;
  height: 0.85rem;
}

.skeleton-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  margin-bottom: 1rem;
}

.skeleton-line.w-1\/3 { width: 33%; }
.skeleton-line.w-2\/3 { width: 66%; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.mb-2 { margin-bottom: 0.5rem; }
.skeleton-line.mb-3 { margin-bottom: 0.75rem; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Responsive helpers ——— */
@media (max-width: 639px) {
  .hero-title-clamp {
    font-size: clamp(2.5rem, 12vw, 3.75rem);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .tablet-pad {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ——— Mobile nav ——— */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  top: 5rem;
  z-index: 98;
  background: rgba(26, 28, 25, 0.35);
  backdrop-filter: blur(2px);
}

body.mobile-nav-open {
  overflow: hidden;
}

#mobile-nav {
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  #mobile-nav:not(.hidden) {
    display: block;
  }
}

/* ——— Empty states ——— */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px dashed #e2e8f0;
  background: #fff;
}

.empty-state__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: rgba(72, 178, 48, 0.1);
  color: #48B230;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1A1C19;
  margin-bottom: 0.5rem;
}

.empty-state__body {
  color: #64748b;
  font-weight: 500;
  max-width: 28rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.empty-state__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: #1A1C19;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
}

.empty-state__action:hover {
  background: #48B230;
}
