:root {
  --brand-green: #00A443;
  --brand-blue: #000560;
  --header-height: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Ajuste para que el scroll no oculte los títulos bajo el header sticky */
section {
  scroll-margin-top: var(--header-height);
}

/* Utilidades de Marca */
.text-brand-green {
  color: var(--brand-green);
}

.bg-brand-green {
  background-color: var(--brand-green);
}

.text-brand-blue {
  color: var(--brand-blue);
}

.bg-brand-blue {
  background-color: var(--brand-blue);
}

.border-brand-green {
  border-color: var(--brand-green);
}

.border-brand-blue {
  border-color: var(--brand-blue);
}


.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero .logo {
  height: 100%;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px
}

.logo svg {
  width: 300px;
  height: 180px;
}

.hero p,
.hero h1,
.hero a {
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 550px;
  background: url(../images/bg_hero.jpg) no-repeat;
  background-size: cover;
  opacity: 0.25;
  pointer-events: none;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  z-index: -1;
  opacity: .5;
  background-image: linear-gradient(-60deg, var(--brand-green) 50%, var(--brand-blue) 50%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  animation: bgSlide 3s ease-in-out infinite alternate;
  will-change: background-position;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.bg3 {
  animation-duration: 5s;
}

/* Estilos del Header dinámico (usado en index-v2) */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  transform: translateY(-100%);
  /* Oculto por defecto */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav#main-nav.is-visible {
  transform: translateY(0);
  /* Aparece al hacer scroll */
}

/* Estilos de Formulario Boutique */
.form-input {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  font-weight: 300;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(0, 164, 67, 0.05);
}

/* Modal Overlay */
.lp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 5, 96, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.lp-modal.is-open {
  display: flex;
}

/* =========================================
   Estilos Trabaja con Nosotros
   ========================================= */
.test-option.active {
  border-color: var(--brand-green);
  background-color: rgba(0, 164, 67, 0.03);
  transform: translateY(-2px);
}
.test-option svg {
  display: none;
}

.test-option.active svg {
  display: block;
}


.benefit-card .detail {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.benefit-card.active .detail {
  max-height: 120px;
  opacity: 1;
  margin-top: 1.25rem;
}

.benefit-card.active {
  border-color: var(--brand-green);
  box-shadow: 0 10px 30px -10px rgba(0, 164, 67, 0.15);
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(0, 164, 67, 0.08);
  color: var(--brand-green);
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: var(--brand-blue);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #000780;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -5px rgba(0, 5, 96, 0.3);
}

/* =========================================
   Estilos Específicos para Páginas Legales
   ========================================= */
.legal-content {
  background-color: #ffffff;
}

.legal-content header.minimal {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.legal-content header.minimal img {
  max-width: 140px;
  height: auto;
}

.row {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-content main h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 2rem;
  text-align: left;
}

.legal-content main h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content main p,
.legal-content main ul {
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}

.legal-content main ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.legal-content main a {
  color: var(--brand-green);
  font-weight: 500;
  text-decoration: underline;
}

/* Fondo de página: gris muy claro para que la tarjeta blanca destaque */
main {
  background: #f8fafc;
  padding-bottom: 4rem;
}

/* Banda de careers — discreta, una línea horizontal */
.careers-band {
  max-width: 56rem;
  margin: 0 auto 4rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.careers-band__text {
  flex: 1;
  min-width: 240px;
}

.careers-band__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-green);
  display: block;
  margin-bottom: 0.375rem;
}

.careers-band h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-blue);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.careers-band p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
  font-weight: 300;
}

.careers-band__cta {
  display: inline-block;
  background: transparent;
  color: var(--brand-blue);
  padding: 0.625rem 1.375rem;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.careers-band__cta:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

/* Tarjeta destacada de contacto */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 60px -20px rgba(0, 5, 96, 0.18), 0 1px 3px rgba(0, 5, 96, 0.05);
  overflow: hidden;
}

.contact-card__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-blue));
}

.contact-card__body {
  padding: 2.75rem 2.5rem;
}

.contact-card__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-green);
  margin: 0 0 1rem;
  text-align: center;
}

.contact-card .heading {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--brand-blue);
  margin: 0 0 0.875rem;
  letter-spacing: -0.015em;
  text-align: center;
  line-height: 1.2;
}

.contact-card .text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto 2rem;
  text-align: center;
  font-weight: 300;
  max-width: 28rem;
}


/* =========================================
   Estilos Compartidos de Footer Antiguos
   (Aplica a Trabaja y Legales)
   ========================================= */
footer {
  border-top: 1px solid #f1f5f9;
}

footer .row {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

footer .legal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  footer .legal {
    flex-direction: row;
    justify-content: space-between;
  }
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2rem;
  margin: 0;
}

footer ul a {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

footer ul a:hover {
  color: var(--brand-blue);
}

footer p {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 300;
  margin: 0;
}

@keyframes bgSlide {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* Animacion logo */
@-webkit-keyframes animate-svg-fill-1 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-1 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-1 {
  -webkit-animation: animate-svg-fill-1 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s both;
  animation: animate-svg-fill-1 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s both
}

@-webkit-keyframes animate-svg-fill-2 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-2 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-2 {
  -webkit-animation: animate-svg-fill-2 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s both;
  animation: animate-svg-fill-2 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s both
}

@-webkit-keyframes animate-svg-fill-3 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-3 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-3 {
  -webkit-animation: animate-svg-fill-3 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1s both;
  animation: animate-svg-fill-3 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1s both
}

@-webkit-keyframes animate-svg-fill-4 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-4 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-4 {
  -webkit-animation: animate-svg-fill-4 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s both;
  animation: animate-svg-fill-4 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s both
}

@-webkit-keyframes animate-svg-fill-5 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-5 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-5 {
  -webkit-animation: animate-svg-fill-5 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s both;
  animation: animate-svg-fill-5 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s both
}

@-webkit-keyframes animate-svg-fill-6 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-6 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-6 {
  -webkit-animation: animate-svg-fill-6 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s both;
  animation: animate-svg-fill-6 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s both
}

@-webkit-keyframes animate-svg-fill-7 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-7 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-7 {
  -webkit-animation: animate-svg-fill-7 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.4000000000000001s both;
  animation: animate-svg-fill-7 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.4000000000000001s both
}

@-webkit-keyframes animate-svg-fill-8 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

@keyframes animate-svg-fill-8 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(0, 5, 96)
  }
}

.svg-elem-8 {
  -webkit-animation: animate-svg-fill-8 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.5s both;
  animation: animate-svg-fill-8 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.5s both
}

@-webkit-keyframes animate-svg-fill-9 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

@keyframes animate-svg-fill-9 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

.svg-elem-9 {
  -webkit-animation: animate-svg-fill-9 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.6s both;
  animation: animate-svg-fill-9 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.6s both
}

@-webkit-keyframes animate-svg-fill-10 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

@keyframes animate-svg-fill-10 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

.svg-elem-10 {
  -webkit-animation: animate-svg-fill-10 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.7000000000000002s both;
  animation: animate-svg-fill-10 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.7000000000000002s both
}

@-webkit-keyframes animate-svg-fill-11 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

@keyframes animate-svg-fill-11 {
  0% {
    fill: transparent
  }

  100% {
    fill: rgb(255, 255, 255)
  }
}

.svg-elem-11 {
  -webkit-animation: animate-svg-fill-11 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s both;
  animation: animate-svg-fill-11 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s both
}

/* Estilos de errores en formulario */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.error input,
.error textarea,
.error .border-gray-300 {
  border-color: #ef4444 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}