/* ==========================================================================
   FOOTER v2 — Espacio Neón
   assets/css/components/footer.css
   
   Mobile: acordeones, trust 2×2, CTA simplificado, RRSS abajo,
   botones contacto rápido. JS mínimo para toggle acordeón.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. VARIABLES (self-contained)
   -------------------------------------------------------------------------- */
/* El footer es GLOBAL y no carga homepage.css, así que define aquí las
   variables que usa (tomadas del :root de origen). Scope en .en-ft para
   no contaminar el resto del sitio. spaceneon.shop, 2026-06-07. */
.en-ft {
  --ft: 'Raleway', sans-serif;
  --fb: 'Nunito', sans-serif;
  --am: #FFED00;
  --ne: #161616;
  --bl: #FFFFFF;
  --mg: #E6007E;
  --mw: 1600px;
  --t: .25s ease;
}

/* --------------------------------------------------------------------------
   1. CTA SUPERIOR
   -------------------------------------------------------------------------- */

.en-ft-cta {
  background: var(--ne);
  position: relative;
  overflow: hidden;
  padding: 52px 0;
}

.en-ft-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(230, 0, 126, .07) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 50%, rgba(68, 0, 153, .05) 0%, transparent 50%);
  pointer-events: none;
}

.en-ft-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 64px;
}

.en-ft-cta__heading {
  font-family: var(--ft);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: var(--bl);
  line-height: 1.25;
  margin: 0;
  flex: 1;
  max-width: none;
}

.en-ft-cta__heading em {
  color: var(--mg);
  font-style: normal;
  text-shadow:
    0 0 4px rgba(230, 0, 126, .6),
    0 0 12px rgba(230, 0, 126, .5),
    0 0 30px rgba(230, 0, 126, .35),
    0 0 60px rgba(230, 0, 126, .15);
}

.en-ft-cta__text {
  display: none;
}

.en-ft-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
}

.en-ft-cta__btn--primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  background: var(--am);
  color: var(--ne);
  font-family: var(--fb);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(255, 237, 0, .25), 0 0 18px rgba(255, 237, 0, .15);
  transition: box-shadow var(--t), transform var(--t);
}

.en-ft-cta__btn--primary:hover {
  box-shadow: 0 0 8px rgba(255, 237, 0, .5), 0 0 24px rgba(255, 237, 0, .35), 0 0 50px rgba(255, 237, 0, .15);
  transform: translateY(-2px);
}

.en-ft-cta__btn--secondary {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  background: var(--mg);
  color: var(--bl);
  font-family: var(--fb);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(230, 0, 126, .3), 0 0 18px rgba(230, 0, 126, .15);
  transition: box-shadow var(--t), transform var(--t);
}

.en-ft-cta__btn--secondary:hover {
  box-shadow: 0 0 8px rgba(230, 0, 126, .5), 0 0 24px rgba(230, 0, 126, .35), 0 0 50px rgba(230, 0, 126, .15);
  transform: translateY(-2px);
}

/* Enlace de texto secundario — oculto en desktop, visible en mobile */
.en-ft-cta__link--secondary {
  display: none;
  font-family: var(--fb);
  font-size: .9rem;
  font-weight: 600;
  color: var(--mg);
  text-decoration: none;
  transition: text-shadow var(--t);
}

.en-ft-cta__link--secondary:hover {
  text-shadow: 0 0 6px rgba(230, 0, 126, .3);
}

/* Trust signals */
.en-ft-cta__trust {
  display: none;
}

.en-ft-cta__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fb);
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}

.en-ft-cta__trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .5)) drop-shadow(0 0 8px rgba(255, 255, 255, .25));
}

/* --------------------------------------------------------------------------
   2. SEPARADOR
   -------------------------------------------------------------------------- */

.en-ft-sep {
  height: 2px;
  background: var(--mg);
  border: none;
  margin: 0;
  box-shadow:
    0 0 4px rgba(230, 0, 126, .6), 0 0 12px rgba(230, 0, 126, .4),
    0 0 30px rgba(230, 0, 126, .2), 0 0 60px rgba(230, 0, 126, .08);
}

/* --------------------------------------------------------------------------
   3. CONTACTO RÁPIDO MOBILE — oculto en desktop
   -------------------------------------------------------------------------- */

.en-ft-quickcontact {
  display: none;
}

/* --------------------------------------------------------------------------
   4. GRID PRINCIPAL
   -------------------------------------------------------------------------- */

.en-ft-main {
  background: var(--ne);
  padding: 64px 0 56px;
}

.en-ft-main__inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px 48px;
}

.en-ft-main h3 {
  font-family: var(--ft);
  font-weight: 700;
  font-size: .95rem;
  color: var(--bl);
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-shadow: 0 0 6px rgba(255, 255, 255, .2), 0 0 16px rgba(255, 255, 255, .08);
}

/* Accordion toggle icon — oculto en desktop */
.en-ft-main h3 .en-ft-toggle {
  display: none;
}

/* --- Marca --- */

.en-ft-brand__logo {
  display: block;
  width: 150px;
  height: 59px;
  overflow: hidden;
  margin-bottom: 20px;
  line-height: 0;
}

.en-ft-brand__logo picture {
  display: block;
  width: 150px;
  height: 59px;
}

.en-ft-brand__logo img {
  display: block;
  width: 150px;
  height: 59px;
  object-fit: contain;
  object-position: left center;
}

.en-ft-brand__about {
  font-family: var(--fb);
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
  margin: 0 0 28px;
}

/* Social — desktop */
.en-ft-social {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.en-ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: transparent;
  transition: all var(--t);
}

.en-ft-social a:hover {
  background: var(--mg);
  border-color: var(--mg);
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(230, 0, 126, .5), 0 0 20px rgba(230, 0, 126, .25);
}

.en-ft-social svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .35));
  transition: filter var(--t);
}

.en-ft-social svg,
.en-ft-social svg path,
.en-ft-social svg circle,
.en-ft-social svg rect {
  fill: #fff;
}

.en-ft-social a:hover svg {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6)) drop-shadow(0 0 8px rgba(255, 255, 255, .3));
}

/* Social duplicado en copyright — oculto en desktop */
.en-ft-social--bottom {
  display: none;
}

/* --- Enlaces --- */

.en-ft-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.en-ft-links a {
  font-family: var(--fb);
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  display: inline-block;
  transition: color var(--t), transform var(--t), text-shadow var(--t);
}

.en-ft-links a:hover {
  color: var(--mg);
  transform: translateX(3px);
  text-shadow: 0 0 4px rgba(230, 0, 126, .3), 0 0 12px rgba(230, 0, 126, .15);
}

.en-ft-links a[target="_blank"]::after {
  content: ' \2197';
  font-size: .75em;
  opacity: .5;
}

/* --- Contacto --- */

.en-ft-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.en-ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--fb);
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.en-ft-contact a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color var(--t), text-shadow var(--t);
}

.en-ft-contact a:hover {
  color: var(--mg);
  text-shadow: 0 0 4px rgba(230, 0, 126, .3), 0 0 12px rgba(230, 0, 126, .15);
}

.en-ft-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .3));
}

/* --------------------------------------------------------------------------
   5. COPYRIGHT + PAGOS
   -------------------------------------------------------------------------- */

.en-ft-copy {
  background: var(--ne);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 28px 0 24px;
}

.en-ft-copy__inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.en-ft-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.en-ft-payments__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, .92);
  border-radius: 4px;
  opacity: .8;
  transition: opacity var(--t);
}

.en-ft-payments__item:hover {
  opacity: 1;
}

.en-ft-payments__item svg {
  height: 22px;
  width: auto;
  display: block;
}

.en-ft-copy__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.en-ft-copy__text {
  font-family: var(--fb);
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
  margin: 0;
}

.en-ft-copy__legal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.en-ft-copy__legal a {
  font-family: var(--fb);
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color var(--t);
}

.en-ft-copy__legal a:hover {
  color: var(--mg);
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE — TABLET (≤ 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .en-ft-main__inner {
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
  }
  .en-ft-cta { padding: 64px 0; }
  .en-ft-cta__inner { padding: 0 24px; }
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE — MOBILE (≤ 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {

  /* --- CTA simplificado: 1 botón + link texto --- */
  .en-ft-cta { padding: 48px 0; }
  .en-ft-cta__inner { padding: 0 20px; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .en-ft-cta__text { display: block; font-size: .95rem; max-width: 560px; }
  .en-ft-cta__trust { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; margin-top: 4px; }
  .en-ft-cta__heading { flex: none; max-width: 580px; font-size: clamp(1.5rem, 5vw, 2rem); }

  .en-ft-cta__buttons { flex-direction: column; width: 100%; gap: 12px; }
  .en-ft-cta__btn--primary {
    width: 100%; justify-content: center; text-align: center;
    padding: 16px 24px; font-size: .95rem;
  }
  /* Ocultar botón secundario gordo, mostrar link texto */
  .en-ft-cta__btn--secondary { display: none; }
  .en-ft-cta__link--secondary { display: inline-flex; align-items: center; gap: 4px; width: 100%; justify-content: center; text-align: center; }

  /* --- Trust 2×2 grid --- */
  .en-ft-cta__trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 4px;
  }
  .en-ft-cta__trust-item { font-size: .78rem; gap: 6px; }
  .en-ft-cta__trust-item svg { width: 16px; height: 16px; }

  /* --- Contacto rápido mobile --- */
  .en-ft-quickcontact {
    display: flex;
    gap: 12px;
    padding: 0 20px 0;
    background: var(--ne);
    padding-top: 28px;
  }
  .en-ft-quickcontact a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: var(--fb);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: box-shadow var(--t);
  }
  .en-ft-quickcontact a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .en-ft-quickcontact__call {
    background: var(--mg);
    color: var(--bl);
    box-shadow: 0 0 6px rgba(230, 0, 126, .3), 0 0 14px rgba(230, 0, 126, .12);
  }
  .en-ft-quickcontact__call:hover {
    box-shadow: 0 0 10px rgba(230, 0, 126, .5), 0 0 24px rgba(230, 0, 126, .2);
  }
  .en-ft-quickcontact__email {
    background: rgba(255, 255, 255, .08);
    color: var(--bl);
    border: 1.5px solid rgba(255, 255, 255, .15);
  }
  .en-ft-quickcontact__email:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, .15);
  }

  /* --- Grid mobile: 1 col --- */
  .en-ft-main { padding: 28px 0 32px; }
  .en-ft-main__inner { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }

  /* --- Social oculto en marca, visible en copyright --- */
  .en-ft-social--top { display: none; }
  .en-ft-social--bottom {
    display: flex;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
  }
  .en-ft-social--bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .15);
    background: transparent;
    transition: all var(--t);
  }
  .en-ft-social--bottom a:hover {
    background: var(--mg);
    border-color: var(--mg);
    box-shadow: 0 0 8px rgba(230, 0, 126, .4);
  }
  .en-ft-social--bottom svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .3));
  }
  .en-ft-social--bottom svg,
  .en-ft-social--bottom svg path,
  .en-ft-social--bottom svg circle,
  .en-ft-social--bottom svg rect {
    fill: #fff;
  }

  /* --- Marca mobile: sin social, compacto --- */
  .en-ft-col--brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .en-ft-brand__about { margin-bottom: 0; text-align: center; }
  .en-ft-brand__logo img { object-position: center center; }

  /* --- ACORDEONES mobile --- */
  .en-ft-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .en-ft-accordion h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 18px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .en-ft-main h3 .en-ft-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: var(--fb);
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .4);
    transition: transform var(--t), color var(--t);
    flex-shrink: 0;
  }

  /* Contenido del acordeón: oculto por defecto */
  .en-ft-accordion .en-ft-links,
  .en-ft-accordion .en-ft-contact {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
  }

  /* Acordeón abierto */
  .en-ft-accordion.is-open .en-ft-links,
  .en-ft-accordion.is-open .en-ft-contact {
    max-height: 600px;
    padding-bottom: 20px;
  }

  .en-ft-accordion.is-open h3 .en-ft-toggle {
    transform: rotate(45deg);
    color: var(--mg);
  }

  /* --- Copyright mobile --- */
  .en-ft-copy { padding: 24px 0 20px; }
  .en-ft-copy__inner { gap: 16px; padding: 0 20px; }
  .en-ft-copy__row {
    flex-direction: column;
    text-align: center;
  }
  .en-ft-copy__legal { justify-content: center; }
  .en-ft-payments { gap: 8px 10px; }
}
