/* ===== Design tokens (from Marketing de Bolsillo 360 design system) ===== */
:root {
  --mb-yellow-50: #fbfae0;
  --mb-yellow-100: #f3f0a8;
  --mb-yellow-300: #e2d94a;
  --mb-yellow-500: #d4c64b;
  --mb-yellow-600: #b3a713;
  --mb-yellow-700: #8a800f;
  --mb-gray-900: #242424;
  --mb-gray-800: #333333;
  --mb-gray-700: #4d4d4d;
  --mb-gray-500: #706f6f;
  --mb-gray-300: #b2b2b2;
  --mb-gray-100: #e7e6e1;
  --mb-gray-50: #f6f5f1;
  --mb-white: #ffffff;
  --mb-black: #000000;

  --color-accent: var(--mb-yellow-300);
  --color-bg: #0b0b0b;
  --color-bg-alt: #111111;
  --color-bg-card: #141414;

  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --radius-pill: 999px;
  --container-max: 1240px;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
}

/* ===== Reset & base ===== */
html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

input,
select,
textarea,
button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* ===== Scroll reveal (progressive enhancement) ===== */
@keyframes mbRise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: mbRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
}

@keyframes mbFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mbMarquee {
  from {
    transform: translateX(0);
  }
  to {
    /* --marquee-shift is set by JS to the exact pixel width of one
       logo set, after it clones enough repeats to cover the viewport.
       100% is only a fallback for the (non-JS) single-set markup. */
    transform: translateX(calc(-1 * var(--marquee-shift, 100%)));
  }
}

@keyframes mbPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

.reveal-fade {
  animation: mbFade 0.35s ease both;
}

/* ===== Header navigation / mobile hamburger menu ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--duration-base) ease, opacity var(--duration-base) ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-left: auto;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(11, 11, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 28px 22px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav .btn-primary {
    justify-content: center;
    margin-top: 18px;
  }
}

/* ===== Hero background video ===== */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0.72) 55%, #0b0b0b 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Interactive states (converted from the design's style-hover / style-focus) ===== */

/* Nav links */
.nav-link {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--duration-base) ease;
}
.nav-link:hover {
  color: #ffffff;
}

/* Primary yellow pill button (WhatsApp CTAs, submit, FAB) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--color-bg);
}

/* Outline pill button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  background: rgba(226, 217, 74, 0.08);
  color: #ffffff;
}

/* Accordion question buttons */
.accordion-btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 30px 0;
  display: flex;
  align-items: baseline;
  gap: 28px;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  transition: color var(--duration-base) ease;
}
.accordion-btn:hover {
  color: var(--color-accent);
}
.accordion-panel {
  margin: 0 0 30px 72px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.accordion-panel[hidden] {
  display: none;
}

/* Card hover (solution cards, recursos cards) */
.card-hover {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card-hover:hover {
  border-color: rgba(226, 217, 74, 0.55);
  transform: translateY(-4px);
}
a.card-hover:hover {
  color: #ffffff;
}

/* Servicios grid cells */
.service-cell {
  transition: background var(--duration-base) ease;
}
.service-cell:hover {
  background: var(--color-bg-card);
}

/* Footer links */
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-base) ease;
}
.footer-link:hover {
  color: var(--color-accent);
}
.footer-link-subtle {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-base) ease;
}
.footer-link-subtle:hover {
  color: var(--color-accent);
}

/* Form fields */
.form-field {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field:focus {
  border-color: var(--color-accent);
}
textarea.form-field {
  resize: vertical;
}

/* ===== Responsive helpers ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Role cards (talento page) ===== */
.role-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 38px;
  display: flex;
  flex-direction: column;
}

.role-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.role-icon svg {
  width: 26px;
  height: 26px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.role-tag {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 14px;
}

.role-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  padding: 15px 18px;
  text-align: left;
}

.role-cta.is-accent {
  background: rgba(226, 217, 74, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(226, 217, 74, 0.3);
}

.role-cta.is-dark {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Info cards (application checklist) ===== */
.info-card {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.info-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Embedded form frame ===== */
.form-embed-frame {
  border-radius: 22px;
  padding: 12px;
  overflow: hidden;
}

.form-embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 720px;
}

/* ===== Contact section layout (text column narrower than form column) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.3fr) minmax(340px, 0.7fr);
  gap: 80px;
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
