/* =========================================================
   enlazate_con_nosotros.css
   Paleta: verde oscuro #1B6B2F | amarillo #F5C400 | blanco
   ========================================================= */

:root {
  --ecn-green:       #1B6B2F;
  --ecn-green-dark:  #145224;
  --ecn-yellow:      #F5C400;
  --ecn-yellow-dark: #d4a900;
  --ecn-white:       #ffffff;
  --ecn-gray-light:  #f4f6f4;
  --ecn-gray-text:   #555;
  --ecn-radius:      12px;
  --ecn-shadow:      0 4px 18px rgba(0,0,0,.10);
  --ecn-transition:  .25s ease;
}

/* ── Botones generales ───────────────────────────────── */
.ecn-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ecn-transition), color var(--ecn-transition),
              border-color var(--ecn-transition), transform var(--ecn-transition);
  border: 2px solid transparent;
}
.ecn-btn--primary {
  background: var(--ecn-yellow);
  color: var(--ecn-green-dark);
  border-color: var(--ecn-yellow);
  font-size: 1.25rem;
  border-radius: 10px;
  padding: 12px 36px;
}
.ecn-btn--primary:hover {
  background: var(--ecn-yellow-dark);
  border-color: var(--ecn-yellow-dark);
  transform: translateY(-2px);
}
/* Botón Beneficios: solo texto subrayado, sin contorno ni fondo */
.ecn-btn--outline {
  background: transparent;
  color: var(--ecn-green);
  border: none;
  text-decoration: underline;
  font-size: 1.25rem;
  padding: 12px 12px;
}
.ecn-btn--outline:hover {
  color: var(--ecn-green-dark);
  background: transparent;
  text-decoration: underline;
  transform: none;
}
.ecn-btn--submit {
  background: var(--ecn-yellow);
  color: var(--ecn-green-dark);
  border: none;
  padding: 14px 56px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ecn-transition), transform var(--ecn-transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ecn-btn--submit:hover {
  background: var(--ecn-yellow-dark);
  transform: translateY(-2px);
}

/* ── Título de sección ───────────────────────────────── */
.ecn-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ecn-green);
  margin-bottom: 40px;
}
.ecn-section-title--dark  { color: #1a1a1a; }
.ecn-section-title--white { color: var(--ecn-white); }

/* ══════════════════════════════════════════════════════
   SECCIÓN 1 – HERO
   ══════════════════════════════════════════════════════ */
.ecn-hero {
  background: var(--ecn-white);
  padding: 60px 0 40px;
  overflow: hidden;
}
.ecn-hero__inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* Imagen personas */
.ecn-hero__personas-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.ecn-hero__personas-img {
  max-width: 100%;
  width: 1000px;
  object-fit: contain;
  align-items: end;
  animation: ecnFadeInLeft .7s ease both;
}

/* Contenido */
.ecn-hero__content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: ecnFadeInRight .7s ease both;
}
.ecn-hero__logo {
  max-width: 600px;
  width: 100%;
}
.ecn-hero__desc {
  font-size: 1.3rem;
  color: var(--ecn-gray-text);
  line-height: 1.7;
  max-width: 600px;
}
.ecn-hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}



/* ══════════════════════════════════════════════════════
   SECCIÓN 2 – SLIDER VALORES
   ══════════════════════════════════════════════════════ */
.ecn-valores {
  /* blanco arriba, gris abajo: el corte a la mitad exacta */
  background: linear-gradient(
    to bottom,
    var(--ecn-white) 50%,
    var(--ecn-gray-light) 50%
  );
  padding: 60px 0;
}

.ecn-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecn-slider__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.ecn-slider__track {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.ecn-slider__item {
  /* Mostrar 3 a la vez: (100% - 2 gaps) / 3 */
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}
.ecn-slider__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ecn-transition);
}
.ecn-slider__item img:hover {
  transform: translateY(-4px);
}

/* Flechas */
.ecn-slider__arrow {
  background: var(--ecn-green);
  color: var(--ecn-white);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ecn-transition), transform var(--ecn-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecn-slider__arrow:hover {
  background: var(--ecn-green-dark);
  transform: scale(1.08);
}
.ecn-slider__arrow:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

/* ══════════════════════════════════════════════════════
   SECCIÓN 3 – FORMULARIO
   ══════════════════════════════════════════════════════ */
.ecn-postulate {
  background: var(--ecn-gray-light);
  padding: 70px 0;
}

.ecn-form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--ecn-green);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--ecn-shadow);
}

/* Título dentro del form va blanco */
.ecn-postulate .ecn-section-title--dark {
  color: #1a1a1a;
}

.ecn-form__group {
  margin-bottom: 20px;
}

.ecn-form__input,
.ecn-form__select {
  width: 100%;
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  font-size: .97rem;
  color: #333;
  background: var(--ecn-white);
  outline: none;
  transition: box-shadow var(--ecn-transition);
  appearance: none;
}
.ecn-form__input:focus,
.ecn-form__select:focus {
  box-shadow: 0 0 0 3px rgba(245,196,0,.5);
}
.ecn-form__input.is-invalid,
.ecn-form__select.is-invalid {
  box-shadow: 0 0 0 3px rgba(220,53,69,.4);
}

/* Select custom arrow */
.ecn-form__group:has(.ecn-form__select) {
  position: relative;
}
.ecn-form__group:has(.ecn-form__select)::after {
  content: '▾';
  position: absolute;
  right: 20px;
  top: 14px;
  pointer-events: none;
  color: var(--ecn-green);
  font-size: 1rem;
}

/* File input */
.ecn-form__group--file {
  margin-bottom: 20px;
}
.ecn-form__file-input {
  display: none;
}
.ecn-form__file-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  padding: 8px 8px 8px 8px;
  background: var(--ecn-white);
  transition: box-shadow var(--ecn-transition);
}
.ecn-form__file-label:hover {
  box-shadow: 0 0 0 3px rgba(245,196,0,.4);
}
.ecn-form__file-label.is-invalid {
  box-shadow: 0 0 0 3px rgba(220,53,69,.4);
}
.ecn-form__file-btn {
  background: var(--ecn-green);
  color: var(--ecn-white);
  border-radius: 30px;
  padding: 8px 22px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ecn-form__file-name {
  font-size: .88rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mensajes de error — blancos sobre fondo verde */
.ecn-form__error {
  display: block;
  font-size: .82rem;
  color: #ffd0d5;
  margin-top: 5px;
  padding-left: 16px;
  min-height: 16px;
}

/* Mensaje resultado */
.ecn-form__message {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .95rem;
  text-align: center;
}
.ecn-form__message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.ecn-form__message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Botón Enviar */
.ecn-btn--submit {
  background: var(--ecn-yellow);
  color: var(--ecn-green-dark);
  border: none;
  padding: 14px 56px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ecn-transition), transform var(--ecn-transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ecn-btn--submit:hover {
  background: var(--ecn-yellow-dark);
  transform: translateY(-2px);
}

/* Loader spinner */
.ecn-loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(27,107,47,.3);
  border-top-color: var(--ecn-green);
  border-radius: 50%;
  animation: ecnSpin .7s linear infinite;
}

/* ══════════════════════════════════════════════════════
   SECCIÓN 4 – BENEFICIOS
   ══════════════════════════════════════════════════════ */
.ecn-beneficios {
  background: var(--ecn-white);
  padding: 70px 0 0;
}

.ecn-beneficios__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ecn-beneficios__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #333;
  font-size: 1.5rem;
  font-weight: 500;
}
.ecn-beneficios__check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
}

.ecn-beneficios__persona {
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  animation: ecnFadeInUp .8s ease both;
}

/* ══════════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════════ */
@keyframes ecnFadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ecnFadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ecnFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ecnSpin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ecn-hero {
    padding: 40px 0 20px;
    text-align: center;
  }
  .ecn-hero__content-col {
    align-items: center;
  }
  .ecn-hero__personas-img {
    width: 280px;
    margin-bottom: 24px;
  }
  .ecn-hero__logo {
    max-width: 260px;
  }
  .ecn-hero__desc {
    font-size: .9rem;
  }

  /* Slider: 1 elemento visible en móvil */
  .ecn-slider__item {
    flex: 0 0 100%;
  }

  .ecn-form-wrapper {
    padding: 28px 18px;
  }

  .ecn-beneficios {
    padding: 50px 0 0;
    text-align: center;
  }
  .ecn-beneficios__list li {
    justify-content: flex-start;
    text-align: left;
    color: #333;
  }
  .ecn-beneficios__persona {
    max-height: 260px;
    margin-top: 30px;
  }

  .ecn-section-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Slider: 2 elementos visibles en tablet */
  .ecn-slider__item {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}