/*
 * Archivo: assets/css/styles.css
 * Resumen: Base visual, variables y secciones principales del portafolio aldr ete.mx.
 */

@import url("components.css?v=20260620-12");

:root {
  --ink: #111827;
  --muted: #667085;
  --soft: #f4f7fb;
  --line: rgba(17, 24, 39, 0.12);
  --cyan: #00a6c8;
  --blue: #315eea;
  --violet: #7c3aed;
  --rose: #e11d48;
  --amber: #f59e0b;
  --green: #16a34a;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #f8fafc;
  background: #070b18;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 166, 200, 0.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.24), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(245, 158, 11, 0.14), transparent 26%),
    linear-gradient(180deg, #070b18, #0f172a 48%, #080d1a);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.18) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent);
}

.site-nav {
  background: rgba(7, 11, 24, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.08);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-link {
  color: rgba(248, 250, 252, 0.72);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

.btn-gradient {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--cyan), var(--violet));
  box-shadow: 0 14px 34px rgba(49, 94, 234, 0.28);
}

.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 11, 24, 0.92), rgba(15, 23, 42, 0.74)),
    linear-gradient(120deg, var(--blue), var(--cyan), var(--violet));
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-section .container-xxl {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 6.6vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
}

.hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.hero-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #dffcff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-claims {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-claims span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(15, 23, 42, 0.38);
}

.hero-console {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    rgba(15, 23, 42, 0.45);
  box-shadow: var(--shadow);
}

.hero-console::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #f59e0b, transparent);
  animation: scanLine 4s linear infinite;
}

.console-top {
  position: absolute;
  top: 22px;
  left: 26px;
  display: flex;
  gap: 8px;
}

.console-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.hero-logo {
  width: min(310px, 72%);
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.28));
}

.console-lines {
  width: 100%;
  display: grid;
  gap: 10px;
}

.console-lines span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
}

.section-pad {
  padding: 72px 0;
}

.bg-soft {
  background: rgba(15, 23, 42, 0.78);
}

.bg-dark-section {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1e293b);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title,
.section-heading h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.text-secondary {
  color: rgba(226, 232, 240, 0.66) !important;
}

@keyframes scanLine {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(300px); opacity: 0.95; }
  100% { transform: translateY(0); opacity: 0.2; }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-top: 84px;
  }

  .hero-console {
    min-height: 420px;
  }
}

@media (max-width: 575px) {
  .section-pad {
    padding: 68px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }
}
