/* ============================================
   DMB CONSULTORIA - STYLESHEET
   Diseño: Minimalista Corporativo Premium
   La fuente Outfit se carga vía <link> en index.html (descarga paralela)
   ============================================ */

/* ── VARIABLES ─────────────────────────────── */
:root {
  --black:      #0a0a0a;
  --charcoal:   #1a1a1a;
  --dark-gray:  #2d2d2d;
  --mid-gray:   #6b6b6b;
  --light-gray: #c8c8c8;
  --off-white:  #f4f3f0;
  --white:      #ffffff;
  --accent:     #bcbcbc;        /* plateado neutro, coherente con el logo */
  --accent-dim: rgba(188,188,188,.15);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --ease-out: cubic-bezier(.16,1,.3,1);

  --section-pad: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 96px);
  --radius: 2px;
  --nav-h: 72px;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── SELECTION ──────────────────────────────── */
::selection { background: var(--accent); color: var(--white); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--white);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  position: relative;
  transition: color .3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .4s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__cta {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background .3s, color .3s !important;
}
.nav__cta:hover { background: var(--accent) !important; }
.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: .04em;
  transition: color .3s;
}
.nav__mobile a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) clamp(24px, 6vw, 96px) 80px;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: .01em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .7s forwards;
}

.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,.55);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .9s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 4px 32px rgba(255,255,255,.12);
}
.btn--primary:hover { box-shadow: 0 8px 40px rgba(255,255,255,.2); }

.btn--wa {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(37,211,102,.2);
}
.btn--wa:hover { box-shadow: 0 8px 36px rgba(37,211,102,.35); }

.btn--outline {
  position: relative;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  transition:
    color .55s var(--ease-out),
    border-color .55s var(--ease-out),
    padding-right .6s var(--ease-out),
    letter-spacing .55s var(--ease-out);
}
.btn--outline::after {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23bcbcbc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
  position: absolute;
  right: 18px;
  top: 50%;
  display: block;
  line-height: 0;
  opacity: 0;
  transform: translateY(-50%) translateX(-14px);
  transition:
    opacity .45s var(--ease-out) .08s,
    transform .55s var(--ease-out) .08s;
}
.btn--outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  padding-right: 54px;
  letter-spacing: .14em;
  transform: none;
}
.btn--outline:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.btn--dark:hover { box-shadow: 0 8px 36px rgba(0,0,0,.4); }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.6s forwards;
}

.hero__scroll span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   SOBRE NOSOTROS
══════════════════════════════════════════════ */
.about {
  padding: var(--section-pad);
  background: var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about__label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 200;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 28px;
}

.about__title em { font-style: italic; color: var(--mid-gray); }

.about__text {
  font-size: .95rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Visual side */
.about__visual {
  position: relative;
}

.about__card {
  background: var(--black);
  color: var(--white);
  padding: clamp(32px, 4vw, 56px);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188,188,188,.12) 0%, transparent 70%);
  pointer-events: none;
}

.about__card-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
}

.about__card-quote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: .5;
  color: var(--accent);
  opacity: .6;
  display: block;
  margin-bottom: 16px;
}

.about__card-author {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.value-pill {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  padding: 14px 18px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    transform .35s var(--ease-out),
    background .35s,
    border-color .35s,
    color .35s;
}
.value-pill:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.1);
  border-color: rgba(188,188,188,.4);
  color: rgba(255,255,255,.95);
}

.value-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.value-pill:hover::before {
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(188,188,188,.7);
}

/* ══════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════ */
.services {
  padding: var(--section-pad);
  background: var(--black);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: .6;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  line-height: 1.1;
  color: var(--white);
}

.section-title--dark { color: var(--black); }

.section-subtitle {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  max-width: 500px;
  margin: 16px auto 0;
  line-height: 1.8;
}
.section-subtitle--dark { color: var(--mid-gray); }

/* Service Grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--charcoal);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background .4s var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}

.service-card:hover { background: var(--dark-gray); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .4s var(--ease-out);
}
.service-card:hover .service-card__icon svg {
  transform: scale(1.15) rotate(-3deg);
}

.service-card__number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.service-card__text {
  font-size: .85rem;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════
   TRABAJA CON NOSOTROS
══════════════════════════════════════════════ */
.careers {
  padding: var(--section-pad);
  background: var(--off-white);
}

.careers__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.careers__info {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.careers__perks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.perk {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.perk__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .35s, transform .35s var(--ease-out);
}
.perk__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.perk:hover .perk__icon {
  background: var(--accent);
  color: var(--black);
  transform: scale(1.08);
}

.perk__text h4 {
  font-size: .88rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: .03em;
}

.perk__text p {
  font-size: .82rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 0 4px 60px rgba(0,0,0,.06);
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 28px;
  color: var(--black);
}
.contact .form-card__title { color: var(--white); }

.form-card__intro {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin: 0 0 24px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
  font-weight: 300;
}

.form-card__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-card__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .01em;
}
.form-card__perks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--off-white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  }

/* Validación inline — estado de error */
.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid,
select.form-input.is-invalid {
  border-color: #e05252 !important;
  background-color: rgba(224, 82, 82, .04);
}

.form-error {
  display: block;
  color: #e05252;
  font-size: .76rem;
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.4;
}

/* En la sección oscura de Contacto el rojo se debe seguir viendo bien */
.contact .form-error {
  color: #ff6b6b;
}
.contact .form-input.is-invalid,
.contact .form-textarea.is-invalid {
  background-color: rgba(224, 82, 82, .08);
}

.form-file {
  width: 100%;
  background: var(--off-white);
  border: 1.5px dashed var(--light-gray);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.form-file:hover { border-color: var(--accent); background: var(--accent-dim); }
.form-file input { display: none; }
.form-file__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  color: var(--accent);
}
.form-file__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.form-file__text { font-size: .82rem; font-weight: 300; color: var(--mid-gray); }
.form-file__text strong { color: var(--accent); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.btn--submit {
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease-out), box-shadow .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.btn--submit svg {
  transition: transform .4s var(--ease-out);
}
.btn--submit:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(188,188,188,.3);
}
.btn--submit:hover svg {
  transform: translateX(8px);
}
.btn--submit:active { transform: translateY(0); }

/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
.contact {
  padding: var(--section-pad);
  background: var(--black);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* Overrides de los headers para alinearlos a la izquierda en Contacto */
.contact .section-label    { justify-content: flex-start; }
.contact .section-title    { text-align: left; margin-bottom: 16px; }
.contact .section-subtitle {
  text-align: left;
  margin-left: 0;
  color: rgba(255,255,255,.4);
}

.contact__info-block {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  margin-top: 40px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.contact__info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(188,188,188,.1);
  border: 1px solid rgba(188,188,188,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background .35s, border-color .35s;
}
.contact__info-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.contact__info-item:hover .contact__info-icon {
  background: rgba(188,188,188,.2);
  border-color: rgba(188,188,188,.5);
}

.contact__info-detail h4 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact__info-detail p {
  font-size: .9rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

.contact .form-card {
  background: var(--charcoal);
  box-shadow: 0 4px 60px rgba(0,0,0,.3);
}

.contact .form-label { color: rgba(255,255,255,.5); }
.contact .form-input,
.contact .form-textarea {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.contact .form-input:focus,
.contact .form-textarea:focus {
  background: rgba(255,255,255,.07);
}
.contact .form-input::placeholder,
.contact .form-textarea::placeholder { color: rgba(255,255,255,.2); }

.contact .form-select option {
  background: #1a1a1a;
  color: var(--white);
}

.contact .section-title { color: var(--white); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37,211,102,.5);
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .4;
  animation: pulse 2.5s ease-out infinite;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 72px clamp(24px, 6vw, 96px) 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand img {
  height: 44px;

  margin-bottom: 16px;
}

.footer__brand p {
  font-size: .85rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  line-height: 1.75;
  max-width: 240px;
}

.footer__contact-direct       { margin-top: 24px; }
.footer__contact-direct p {
  font-size: .82rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

.footer__col-title {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-size: .85rem;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  transition: color .3s;
}
.footer__links a:hover { color: var(--accent); }

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  transition: border-color .3s, color .3s, background .3s;
}
.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(255,255,255,.25);
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(255,255,255,.25);
  transition: color .3s;
}
.footer__legal a:hover { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 110px;
  right: 32px;
  background: var(--charcoal);
  border: 1px solid rgba(188,188,188,.3);
  border-radius: 4px;
  padding: 16px 22px;
  font-size: .85rem;
  font-weight: 300;
  color: var(--white);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  z-index: 9999;
  transform: translateY(16px);
  opacity: 0;
  transition: all .4s var(--ease-out);
  max-width: 300px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast__icon { color: var(--accent); margin-right: 8px; }

/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: .7; }
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: .5; }
  50%      { transform: scaleY(.6); opacity: .15; }
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .4; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* El nav desktop no cabe en menos de ~1050px → activamos el hamburger acá */
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }
  .about          { grid-template-columns: 1fr; }
  .about__visual  { order: -1; }
  .careers__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .careers__info  { position: static; }
  .footer__top    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .form-grid    { grid-template-columns: 1fr; }
  .footer__top  { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand p { max-width: 100%; }
  .about__values { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   PÁGINAS LEGALES + 404 (compartido)
══════════════════════════════════════════════ */
.legal-page {
  background: #f4f3f0;
  min-height: 100vh;
  padding-top: 80px;
}
.legal-page.legal-page--dark {
  background: var(--black);
  display: flex;
  flex-direction: column;
}

.legal-hero {
  background: var(--black);
  padding: 64px 24px 48px;
  text-align: center;
}
.legal-hero__label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 200;
  margin-bottom: 12px;
}
.legal-hero p {
  color: rgba(255,255,255,.4);
  font-size: 13px;
  font-weight: 300;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-content h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 14px;
  font-weight: 300;
  color: #4a4a4a;
  line-height: 1.9;
  margin-bottom: 14px;
}
.legal-content ul { margin: 8px 0 16px 20px; }
.legal-content ul li {
  font-size: 14px;
  font-weight: 300;
  color: #4a4a4a;
  line-height: 1.9;
  margin-bottom: 6px;
}
.legal-content ul li::marker { color: var(--accent); }

.legal-highlight {
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-highlight p {
  color: rgba(255,255,255,.6);
  margin: 0;
  font-size: 13px;
}
.legal-highlight strong { color: var(--accent); }

/* Nav fijo oscuro en páginas legales/404 + botón "Volver" */
.legal-page .nav { background: var(--black) !important; }
.legal-back-home {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s;
}
.legal-back-home:hover { opacity: .7; }
.legal-page .nav__links a { color: rgba(255,255,255,.7) !important; }
.legal-page .nav__links a:hover { color: var(--white) !important; }
.legal-page .nav__links .nav__cta,
.legal-page .nav__links .nav__cta:visited {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 10px 22px !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
}
.legal-page .nav__links .nav__cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}
.legal-page .nav__links .nav__cta::after { display: none !important; }

/* Página 404 */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page__code {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 200;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.04em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .8s ease-out .1s forwards;
}
.error-page__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .8s ease-out .3s forwards;
}
.error-page__title em {
  color: var(--accent);
  font-style: normal;
}
.error-page__text {
  max-width: 480px;
  color: rgba(255,255,255,.5);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .8s ease-out .5s forwards;
}
.error-page__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .8s ease-out .7s forwards;
}
.error-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.error-page__btn:hover {
  background: var(--accent);
  color: var(--white);
}
.error-page__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
}
.error-page__btn--ghost:hover {
  background: rgba(255,255,255,.05);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.4rem; }
  .toast { right: 16px; left: 16px; max-width: none; }
}

/* ══════════════════════════════════════════════
   ACCESIBILIDAD: respetar preferencia de animaciones reducidas
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-float__pulse { animation: none; opacity: 0; }
}
