#banner {
  width: 100%;
  height: 100vh;
  display: grid;
  place-content: center;
  padding-top: 72px;
}

.card {
  width: 100vw;
  height: calc(100vh - 72px);
  background: #0c0c0c;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  font-family: 'manifold-extended-cf', sans-serif;
}

.content .logo .logo1 img {
  height: 120px;
  width: auto;
  display: block;
}

.content .logo .logo2 img {
  height: 55px;
  width: auto;
  display: block;
}

.border {
  position: absolute;
  inset: 0px;
  border: 2px solid #39ff14;
  opacity: 0;
  transform: rotate(10deg);
  transition: all 0.5s ease-in-out;
}

.bottom-text {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  font-size: 6px;
  text-transform: uppercase;
  padding: 0px 5px 0px 8px;
  color: #39ff14;
  background: #0c0c0c;
  opacity: 0;
  letter-spacing: 7px;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}

.content {
  transition: all 0.5s ease-in-out;
  position: relative;
  z-index: 1;
  width: 560px;
}

.content .logo {
  height: 125px;
  position: relative;
  width: 218px;
  overflow: hidden;
  transition: width 1s ease-in-out;
}

.content .logo .logo1 {
  height: 120px;
  position: absolute;
  left: 0;
  top: 0;
}

.content .logo .logo2 {
  position: absolute;
  left: 226px;
  top: 50%;
  transform: translateY(-50%);
}

.content .logo .trail {
  position: absolute;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
}

/* ── CANVAS PARTÍCULAS ── */
.banner__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── SERVICIOS TYPEWRITER ── */
.banner__services {
  position: absolute;
  left: 234px;
  top: 0;
  height: 125px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.banner__services::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(57, 255, 20, 0.35);
}

.banner__services-text {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'manifold-extended-cf', sans-serif;
  white-space: nowrap;
}

.banner__services-cursor {
  color: #39ff14;
  font-size: 18px;
  animation: blink 0.8s step-end infinite;
  font-family: monospace;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.banner__services.hidden,
.card:hover .banner__services {
  opacity: 0;
}

.banner__slogan {
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.75;
  font-family: 'manifold-extended-cf', sans-serif;
}

.card:hover .logo {
  width: 560px;
  animation: logoExpand 1s ease-in-out;
}

.card:hover .border {
  inset: 15px;
  opacity: 1;
  transform: rotate(0);
}

.card:hover .bottom-text {
  letter-spacing: 3px;
  opacity: 1;
  transform: translateX(-50%);
}

.card:hover .trail {
  animation: trail 1s ease-in-out;
}

@keyframes logoExpand {
  0%   { border-right: 1px solid transparent; }
  10%  { border-right: 1px solid #39ff14; }
  80%  { border-right: 1px solid #39ff14; }
  100% { border-right: 1px solid transparent; }
}

@keyframes trail {
  0% {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0) 90%, rgb(57, 255, 20) 100%);
    opacity: 0;
  }
  30% {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0) 70%, rgb(57, 255, 20) 100%);
    opacity: 1;
  }
  70% {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0) 70%, rgb(57, 255, 20) 100%);
    opacity: 1;
  }
  95% {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0) 90%, rgb(57, 255, 20) 100%);
    opacity: 0;
  }
}

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

body {
  background: #0c0c0c;
  color: #e0e0e0;
  font-family: 'manifold-extended-cf', sans-serif;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(12, 12, 12, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__links ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #39ff14;
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: #39ff14;
}

.nav__links a:hover::after {
  width: 100%;
}

/* ── Selector de idioma (Polylang) ── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__lang {
  display: flex;
  align-items: center;
}

/* Polylang genera un <ul> — lo reseteamos */
.nav__lang ul,
.nav__lang .pll-parent-menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__lang li {
  display: flex;
  align-items: center;
}

.nav__lang li + li::before {
  content: '/';
  color: #333;
  font-size: 11px;
  margin: 0 6px;
}

.nav__lang a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__lang a:hover,
.nav__lang .current-lang a,
.nav__lang .pll-current-lang a {
  color: #39ff14;
}

.nav__cta {
  text-decoration: none;
  color: #39ff14;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #39ff14;
  padding: 10px 22px;
  transition: background 0.3s, color 0.3s;
}

.nav__cta:hover {
  background: #39ff14;
  color: #0c0c0c;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e0e0e0;
  transition: background 0.3s;
}

.nav__hamburger:hover span {
  background: #39ff14;
}

/* ── FOOTER ── */
.footer {
  background: #0c0c0c;
  border-top: 1px solid rgba(57, 255, 20, 0.15);
  padding: 64px 48px 32px;
  margin-top: 80px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer__tagline {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.footer__tagline span {
  color: #39ff14;
}

.footer__nav h4,
.footer__contact h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #39ff14;
  margin-bottom: 20px;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav a {
  text-decoration: none;
  color: #888;
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: #e0e0e0;
}

.footer__contact a {
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  transition: color 0.3s;
}

.footer__contact a:hover {
  color: #39ff14;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: #888;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
  margin-bottom: 0;
}

.footer__social a:hover {
  border-color: #39ff14;
  color: #39ff14;
}

.footer__social svg,
.footer__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0.6);
  transition: filter 0.3s;
}

.footer__social a:hover svg,
.footer__social a:hover img {
  filter: brightness(1) drop-shadow(0 0 4px #39ff14);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 11px;
  color: #444;
  letter-spacing: 1px;
}

.footer__made span {
  color: #39ff14;
}

/* ── SECCIONES INTERIORES ── */
.section {
  padding: 120px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--dark {
  max-width: 100%;
  background: #111;
  padding: 120px 80px;
}

.section--dark .section__header,
.section--dark .metodo__steps {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #39ff14;
  margin-bottom: 20px;
}

.section__header {
  margin-bottom: 64px;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section__subtitle {
  margin-top: 20px;
  font-size: 16px;
  color: #888;
  max-width: 540px;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.highlight {
  color: #39ff14;
}

/* ── ¿POR QUÉ ELEGIRNOS? ── */
.porque__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.porque__card {
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, background 0.3s;
}

.porque__card:hover {
  background: #111;
  border-color: rgba(57, 255, 20, 0.2);
}

.porque__icon {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: #39ff14;
  margin-bottom: 20px;
}

.porque__card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.porque__card p {
  font-size: 14px;
  color: #777;
  line-height: 1.75;
}

/* ── MÉTODO STAND OUT ── */
.metodo__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.metodo__step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding-left 0.3s ease;
}

.metodo__step:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.metodo__step:hover {
  padding-left: 16px;
}

.metodo__letter {
  font-size: 56px;
  font-weight: 700;
  color: #39ff14;
  line-height: 1;
  min-width: 64px;
  opacity: 0.15;
  transition: opacity 0.3s;
}

.metodo__step:hover .metodo__letter {
  opacity: 1;
}

.metodo__info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  padding-top: 10px;
  letter-spacing: 0.3px;
}

.metodo__info p {
  font-size: 14px;
  color: #777;
  line-height: 1.75;
  max-width: 600px;
}

/* ── TRABAJA CON NOSOTROS ── */
.section--cta {
  max-width: 100%;
  padding: 140px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  border-top: 1px solid rgba(57, 255, 20, 0.1);
}

.cta__title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cta__text {
  font-size: 16px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

.cta__btn {
  display: inline-block;
  text-decoration: none;
  color: #0c0c0c;
  background: #39ff14;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  font-family: 'manifold-extended-cf', sans-serif;
  transition: background 0.3s, transform 0.2s;
}

.cta__btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.cta__quote {
  padding-left: 60px;
  border-left: 1px solid rgba(57, 255, 20, 0.25);
}

.cta__quote blockquote {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ── TOUCH ACTIVO (reemplaza :hover para dispositivos táctiles) ── */
.card.is-active .logo {
  width: 560px;
  animation: logoExpand 1s ease-in-out;
}
.card.is-active .border {
  inset: 15px;
  opacity: 1;
  transform: rotate(0);
}
.card.is-active .bottom-text {
  letter-spacing: 3px;
  opacity: 1;
  transform: translateX(-50%);
}
.card.is-active .trail {
  animation: trail 1s ease-in-out;
}
.card.is-active .banner__services {
  opacity: 0;
}

/* Dispositivos sin hover (tablets/phones) — estado expandido por defecto */
@media (hover: none) {
  .content .logo {
    width: 560px;
  }
  .card .border {
    inset: 15px;
    opacity: 0.4;
    transform: rotate(0);
  }
  .card .bottom-text {
    letter-spacing: 3px;
    opacity: 0.7;
    transform: translateX(-50%);
  }
}

/* ── RESPONSIVE TABLET ── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }

  .footer { padding: 56px 40px 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }

  .section { padding: 80px 40px; }
  .section--dark { padding: 80px 40px; }
  .section--cta { padding: 100px 40px; gap: 56px; }

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

  /* Banner tablet — ajustar tamaños pero mantener expansión */
  .content { width: 440px; }
  .content .logo { width: 188px; }
  .content .logo .logo1 img { height: 90px; }
  .content .logo .logo2 img { height: 44px; }
  .content .logo .logo2 { left: 196px; }
  .banner__services { left: 200px; }
  .card:hover .logo,
  .card.is-active .logo { width: 440px; }
  .banner__slogan { font-size: 14px; }

  /* Touch en tablet — logo ya expandido */
  @media (hover: none) {
    .content .logo { width: 440px; }
  }
}

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }

  .nav__links,
  .nav__cta { display: none; }

  .nav__hamburger { display: flex; }

  /* ── Banner mobile: logos apilados verticalmente ── */
  .content {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .content .logo {
    width: auto !important;
    height: auto !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .content .logo .logo1 {
    position: static;
    height: auto;
  }

  .content .logo .logo1 img {
    height: 72px;
    width: auto;
  }

  .content .logo .logo2 {
    position: static;
    transform: none;
    left: auto;
    top: auto;
  }

  .content .logo .logo2 img {
    height: 38px;
    width: auto;
  }

  .content .logo .trail { display: none; }

  /* Typewriter debajo del logo en móvil */
  .banner__services {
    position: static;
    height: auto;
    left: auto;
    top: auto;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1 !important;
  }

  .banner__services::before { display: none; }

  .banner__services-text { font-size: 11px; letter-spacing: 2px; }

  /* Ocultar animaciones del border/trail en móvil (no hay hover ni touch expand) */
  .card:hover .logo { animation: none; }
  .card.is-active .logo { width: auto !important; animation: none; }
  .card.is-active .border,
  .card .border { inset: 15px; opacity: 0.3; transform: rotate(0); }
  .card .bottom-text { opacity: 0.5; letter-spacing: 3px; transform: translateX(-50%); }

  .banner__slogan { font-size: 12px; letter-spacing: 2px; padding: 0 24px; text-align: center; }

  /* ── Resto del responsive ── */
  .footer { padding: 48px 20px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section { padding: 64px 20px; }
  .section--dark { padding: 64px 20px; }

  .porque__grid { grid-template-columns: 1fr; }

  .section--cta { grid-template-columns: 1fr; padding: 64px 20px; gap: 40px; }
  .cta__quote { padding-left: 20px; }

  .metodo__step { gap: 20px; }
  .metodo__letter { font-size: 36px; min-width: 44px; }
}
