/* layout.css: header/footer/grid */

:root {
  --header-h: 72px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 120;
  display: flex;
  align-items: center;
  backdrop-filter: blur(6px);
  background: transparent;
  /* transparent over hero */
  transition: background .28s ease, box-shadow .28s ease, transform .18s ease;
  border-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
}

.brand img {
  height: 36px;
  display: block
}

.brand span {
  font-size: 1.02rem;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: .6px;
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.14), rgba(157, 135, 255, 0.08));
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.06);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.site-nav a:active {
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 18px;
  cursor: pointer;
  gap: 6px;
  width: 44px;
  height: 44px;
}

/* header state when scrolled */
.site-header.scrolled {
  background: rgba(3, 6, 10, 0.42);
  /* subtle, not heavy gray */
  box-shadow: 0 8px 24px rgba(3, 6, 10, 0.18);
  backdrop-filter: blur(8px);
}

/* HERO */
.hero {
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: .7rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 14px;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges li {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, .03);
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* FOOTER PRO */

.site-footer {
  background: linear-gradient(135deg, #0b0f1a, #111827);
  color: #fff;
  padding: 60px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* footer */
.site-footer {
  position: relative;
  /* IMPORTANTE para el ::before */
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 70%);
  pointer-events: none;
}

/* GRID más limpio y cuadrado */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  /* último para la imagen */
  gap: 28px;
  align-items: start;
}

/* Bloques alineados */
.footer-grid>div {
  min-width: 0;
}

.footer-grid strong {
  font-size: 1.05rem;
  color: #fff;
  display: block;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px;
  line-height: 1.45;
}

/* Links como lista vertical bien ordenada */
.footer-grid a {
  color: rgba(255, 255, 255, 0.65);
  transition: all .25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.9;
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Columna de imagen a la derecha */
.footer-side {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-side img {
  width: 170px;
  /* ajusta esto */
  max-width: 100%;
  height: auto;
  opacity: .95;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Línea inferior */
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom small {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive: la imagen baja abajo y queda centrada */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-side {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 10px;
  }

  .footer-side img {
    width: 220px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 320px;
  }

  /* ✅ Footer: 2 columnas en tablet */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-side {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .footer-side img {
    width: 220px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(11, 13, 16, .92);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 12px;
  }

  /* avoid content jumps when using fixed header */
  main {
    scroll-padding-top: var(--header-h);
  }
}
