/* =========================================================
   EquipXchange – estilos de la página de inicio
   ========================================================= */

::selection {
  background: var(--eqx-primary);
  color: #fff;
}

/* ---------- bloques comunes ---------- */
.eqx-section {
  padding: 100px 24px 110px;
}

.eqx-section-inner {
  max-width: 1290px;
  margin: 0 auto;
}

.eqx-kicker {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--eqx-primary);
  margin: 0 0 14px;
}

.eqx-h2 {
  font-family: var(--eqx-font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.eqx-divider {
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: var(--eqx-primary);
  border: none;
  margin: 0 0 46px;
}

.eqx-center {
  text-align: center;
}

.eqx-center .eqx-divider {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- botones ---------- */
.eqx-btn {
  display: inline-block;
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.eqx-btn--primary {
  background: var(--eqx-primary);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(221, 107, 32, 0.6);
}

.eqx-btn--primary:hover {
  background: var(--eqx-primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.eqx-btn--ghost {
  background: transparent;
  color: var(--eqx-offwhite);
  border: 2px solid rgba(250, 249, 247, 0.55);
}

.eqx-btn--ghost:hover {
  border-color: var(--eqx-primary-hover);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   HERO
   ========================================================= */
.eqx-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 660px;
  padding: 150px 24px 210px;
  /* background-image se inyecta inline desde front-page.php */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #141414;
}

.eqx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.45) 100%);
}

.eqx-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

.eqx-hero h1 {
  font-family: var(--eqx-font-head);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  color: var(--eqx-offwhite);
  max-width: 900px;
  margin: 0 0 22px;
}

.eqx-hero h1 span {
  color: var(--eqx-primary-hover);
}

.eqx-hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--eqx-cream);
  max-width: 640px;
  margin: 0 0 36px;
}

.eqx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================
   FRANJA DE IMÁGENES DEL HERO
   (se superpone al hero; la mitad inferior ya pisa el
   fondo crema de la siguiente sección)
   ========================================================= */
.eqx-hero-strip {
  --eqx-strip-overlap: 110px;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  margin-top: calc(-1 * var(--eqx-strip-overlap));
  background: linear-gradient(
    to bottom,
    transparent var(--eqx-strip-overlap),
    var(--eqx-offwhite) var(--eqx-strip-overlap)
  );
}

.eqx-hero-strip-inner {
  max-width: 1290px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.eqx-hero-strip figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  outline: 4px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.eqx-hero-strip figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px -22px rgba(221, 107, 32, 0.45);
}

.eqx-hero-strip img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.eqx-hero-strip figure:hover img {
  transform: scale(1.06);
}

/* =========================================================
   LO QUE OFRECEMOS – tarjetas
   ========================================================= */
.eqx-offers {
  background: var(--eqx-offwhite);
  padding-top: 80px;
}

.eqx-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
  margin-top: 10px;
  text-align: left;
}

.eqx-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid #eeece7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px -18px rgba(17, 17, 17, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.eqx-card:nth-child(4),
.eqx-card:nth-child(5) {
  grid-column: span 3;
}

.eqx-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px -20px rgba(221, 107, 32, 0.35);
}

.eqx-card-img {
  overflow: hidden;
}

.eqx-card-img img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.eqx-card:hover .eqx-card-img img {
  transform: scale(1.06);
}

.eqx-card h3 {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 24px 26px 6px;
}

.eqx-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #565656;
  margin: 0 26px 30px;
}

/* =========================================================
   CÓMO TRABAJAMOS – pasos
   ========================================================= */
.eqx-process {
  background: var(--eqx-dark);
}

.eqx-process .eqx-h2 {
  color: #fff;
}

.eqx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 15px;
  text-align: left;
}

.eqx-step {
  background: #1d1d1d;
  border-top: 3px solid var(--eqx-primary);
  border-radius: 0 0 16px 16px;
  padding: 30px 26px 34px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.eqx-step:hover {
  transform: translateY(-6px);
  background: #232323;
}

.eqx-step-num {
  font-family: var(--eqx-font-head);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--eqx-primary);
  opacity: 0.9;
  margin: 0 0 12px;
}

.eqx-step h3 {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 10px;
}

.eqx-step p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--eqx-gray);
  margin: 0;
}

/* =========================================================
   FAQ – acordeón nativo (<details>)
   ========================================================= */
.eqx-faq-section {
  background: var(--eqx-offwhite);
}

.eqx-faq {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.eqx-faq details {
  background: #fff;
  border: 1px solid #eeece7;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px -18px rgba(17, 17, 17, 0.15);
}

.eqx-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--eqx-ink);
  transition: color 0.25s ease;
}

.eqx-faq summary::-webkit-details-marker {
  display: none;
}

.eqx-faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--eqx-primary);
  transition: transform 0.3s ease;
}

.eqx-faq details[open] summary {
  color: var(--eqx-primary);
}

.eqx-faq details[open] summary::after {
  transform: rotate(45deg);
}

.eqx-faq details p {
  margin: 0;
  padding: 0 26px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #565656;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.eqx-contact {
  position: relative;
  padding: 110px 24px 120px;
  /* background-image se inyecta inline desde front-page.php */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a202c;
}

.eqx-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.85);
}

.eqx-contact-inner {
  position: relative;
  max-width: 1290px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.eqx-contact .eqx-h2 {
  color: #fff;
}

.eqx-contact-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--eqx-cream);
  margin: 0 0 26px;
}

.eqx-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
}

.eqx-contact-email:hover {
  color: var(--eqx-primary-hover);
}

.eqx-contact-email svg {
  width: 20px;
  height: 20px;
  fill: var(--eqx-primary-hover);
  flex-shrink: 0;
}

.eqx-form-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 38px;
  box-shadow: 0 35px 70px -25px rgba(0, 0, 0, 0.5);
}

.eqx-form-card h3 {
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 22px;
}

/* --- Contact Form 7 --- */
.eqx-form label {
  display: block;
  font-family: var(--eqx-font-head);
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-bottom: 0;
}

/* CF7 mete el input DENTRO del label con un <br> en medio:
   lo ocultamos y damos el espacio con el wrap */
.eqx-form .wpcf7-form label br {
  display: none;
}

.eqx-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 7px;
}

.eqx-form .wpcf7-form p {
  margin: 0 0 18px;
}

.eqx-form .wpcf7-form p:last-child,
.eqx-form .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

.eqx-form .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

.eqx-form input[type='text'],
.eqx-form input[type='email'],
.eqx-form input[type='tel'],
.eqx-form input[type='number'],
.eqx-form input[type='url'],
.eqx-form select,
.eqx-form textarea {
  width: 100%;
  background: var(--eqx-offwhite);
  border: 1px solid var(--eqx-border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--eqx-font-body);
  font-size: 16px;
  color: var(--eqx-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eqx-form input:focus,
.eqx-form textarea:focus {
  outline: none;
  border-color: var(--eqx-primary);
  box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.18);
}

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

.eqx-form .wpcf7-submit {
  width: 100%;
  background: var(--eqx-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-family: var(--eqx-font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(221, 107, 32, 0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.eqx-form .wpcf7-submit:hover {
  background: var(--eqx-primary-hover);
  transform: translateY(-2px);
}

.eqx-form .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 13px;
  margin-top: 4px;
}

.eqx-form .wpcf7-response-output {
  border-radius: 10px;
  margin: 14px 0 0;
  padding: 12px 16px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .eqx-hero h1 {
    font-size: 40px;
  }

  .eqx-h2 {
    font-size: 34px;
  }

  .eqx-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .eqx-card,
  .eqx-card:nth-child(4),
  .eqx-card:nth-child(5) {
    grid-column: span 1;
  }

  .eqx-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .eqx-contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .eqx-section {
    padding: 70px 20px;
  }

  .eqx-hero {
    padding: 110px 20px 150px;
    min-height: 0;
  }

  .eqx-hero-strip {
    --eqx-strip-overlap: 70px;
    padding: 0 20px;
  }

  .eqx-hero-strip-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .eqx-hero-strip img {
    height: 200px;
  }

  .eqx-hero h1 {
    font-size: 31px;
  }

  .eqx-h2 {
    font-size: 28px;
  }

  .eqx-hero-sub {
    font-size: 17px;
  }

  .eqx-cards,
  .eqx-steps {
    grid-template-columns: 1fr;
  }

  .eqx-contact {
    padding: 70px 20px 80px;
  }

  .eqx-form-card {
    padding: 30px 24px;
  }
}
