:root {
  /* Base brand */
  --navy: #071a2f;
  --gold: #2d6bdf;
  --accent: var(--gold);
  --accent2: #4da3ff;
  --white: #fff;

  /* Dark UI */
  --bg: #070b10;
  --bg2: #0b1220;
  --text: #e6edf3;
  --muted: rgba(230, 237, 243, 0.78);
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);

  --radius: 22px;
  --radius-soft: 16px;
  --radius-hard: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.28);
  --ring: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent);

  /* Altura aproximada del header sticky.
     Se usa para que el HERO quepa SI o SI en el primer viewport (sin scroll). */
  --topbar-h: 70px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(
      1200px 700px at 12% 0%,
      rgba(45, 107, 223, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1100px 700px at 90% 10%,
      rgba(77, 163, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 650px at 50% 110%,
      rgba(179, 136, 255, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
code {
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 16, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  /* background: rgba(255, 255, 255, 0.06); */
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 18px;
}
.brand__sub {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.92);
}
.nav a {
  position: relative;
}
.nav a:hover {
  color: #fff;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(45, 107, 223, 0);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
  transform: scaleX(0.2);
  transform-origin: left;
}
.nav a:hover::after {
  background: rgba(45, 107, 223, 0.65);
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid transparent;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn:active {
  transform: translateY(0px) scale(0.99);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--ghost,
.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.btn--ghost:hover,
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--small {
  padding: 10px 12px;
  border-radius: 12px;
}
.btn--block {
  width: 100%;
}

.link {
  color: var(--text);
  font-weight: 900;
}
.link:hover {
  color: var(--gold);
}

/* Hero (video + ripple) */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: none;
  margin: 0;
  /* Importante: el header es sticky y ocupa espacio.
     Restamos su alto para que el hero NO provoque scroll en el primer fold. */
  min-height: calc(90svh - var(--topbar-h));
  padding: clamp(28px, 4.5vh, 56px) 0 clamp(26px, 4.2vh, 52px);
  display: flex;
  align-items: stretch;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(315deg, rgba(45, 107, 223, 0.14), transparent 45%);
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 2;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.75);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      900px 420px at 18% 15%,
      rgba(45, 107, 223, 0.2),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 80% 0%,
      rgba(77, 163, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.28));
}
.hero__ripple-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  width: 100%;
  /* El contenedor interno ocupa el alto disponible del hero */
  min-height: 100%;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}
.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98),
    color-mix(in srgb, var(--gold) 28%, rgba(255, 255, 255, 0.95)) 55%,
    rgba(255, 255, 255, 0.92)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}

.hero__content {
  max-width: 64ch;
}
.hero__layout--split {
  grid-template-columns: minmax(0, 1fr) 380px;
}
.hero__media {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__hint {
  max-width: 60ch;
}

.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-card__img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
}
.profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(45, 107, 223, 0.35),
    rgba(255, 255, 255, 0.06)
  );
  color: rgba(255, 255, 255, 0.92);
  font-weight: 1000;
  letter-spacing: -0.5px;
}
.profile-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-card__name {
  color: var(--white);
  font-size: 16px;
}
.profile-card__role {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.profile-card__small {
  color: var(--muted);
  font-size: 12px;
}
.profile-actions .btn {
  justify-content: center;
}

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

.trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.chip {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}
.chip strong {
  color: var(--white);
}

.panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel--glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(10px);
}
.panel__title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 18px;
}
.panel__list {
  margin: 0 0 14px;
  padding-left: 18px;
}
.panel__list li {
  margin: 8px 0;
}
.muted {
  margin-top: 12px;
  color: var(--muted);
}
.h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 18px;
}
.h4 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 16px;
}

/* Bands (alternating accent per section) */
.band {
  position: relative;
}
.band[data-accent="gold"] {
  --accent: var(--gold);
}
.band[data-accent="cyan"] {
  --accent: var(--accent2);
}
.band[data-accent="violet"] {
  --accent: var(--accent2);
}
.band[data-accent="green"] {
  --accent: var(--accent2);
}

.section {
  padding: 70px 0;
}
.band::before {
  content: "";
  position: absolute;
  inset: -1px 0 -1px 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      900px 420px at 14% 0%,
      color-mix(in srgb, var(--accent, var(--gold)) 24%, transparent),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 92% 20%,
      color-mix(in srgb, var(--accent, var(--gold)) 16%, transparent),
      transparent 55%
    );
  opacity: 0.82;
}
.band > .container {
  position: relative;
  z-index: 1;
}
.section__head {
  position: relative;
  z-index: 1;
  max-width: 70ch;
}
.section__head h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  display: inline-block;
}
.section__head h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 78px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent, var(--gold));
  opacity: 0.9;
}
.section__head p {
  margin: 10px 0 0;
  color: var(--muted);
}
.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Skills */
.skills__wide {
  grid-column: 1 / -1;
}
.skills__note {
  margin: 0;
}

/* Skills (minimal icons) */
#skills .skills-min {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
#skills .skills-min__group h3 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  letter-spacing: 0.2px;
}
#skills .skills-min__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#skills .skico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
#skills .skico i {
  font-size: 22px;
  line-height: 1;
  opacity: 0.95;
}
#skills .skico[data-letter]::after {
  content: attr(data-letter);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.2px;
}
#skills .skico:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.075);
  border-color: color-mix(
    in srgb,
    var(--accent, var(--gold)) 38%,
    rgba(255, 255, 255, 0.16)
  );
}

/* About */
.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* About (less boxes) */
#sobre .about__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  margin-top: 22px;
}
#sobre .about__col h3 {
  margin: 0 0 10px;
  color: var(--white);
}
#sobre .about__col p {
  margin: 0;
  color: var(--muted);
}
#sobre .about__col + .about__col {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 28px;
}
.mini {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}
.mini__k {
  display: block;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.2px;
}
.mini__v {
  display: block;
  font-weight: 1000;
  color: var(--white);
  margin-top: 4px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(
    in srgb,
    var(--accent, var(--gold)) 38%,
    rgba(255, 255, 255, 0.16)
  );
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}
.card h3 {
  margin: 0 0 10px;
  color: var(--white);
}
.card p {
  margin: 0;
  color: var(--muted);
}

.card--project {
  padding: 0;
  overflow: hidden;
}
.card__media {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.card__media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.card__body {
  padding: 18px;
}
.card__title {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 18px;
}
.card__subtitle {
  margin: 0 0 12px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.tag {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}
.tag--solid {
  background: color-mix(in srgb, var(--accent, var(--gold)) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent, var(--gold)) 40%, transparent);
}

/* Icon tags (Devicon + generic placeholders) */
.tag--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag__ico {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  flex: 0 0 auto;
}
.tag__ico i {
  font-size: 14px;
  line-height: 1;
  opacity: 0.95;
}
.tag__ico[data-letter]::after {
  content: attr(data-letter);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Steps */
.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, var(--gold)) 18%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--accent, var(--gold)) 40%, transparent);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 10px;
}

/* CTA */
.cta {
  padding: 26px 0 54px;
}
.cta__box {
  background: linear-gradient(
    135deg,
    rgba(11, 31, 58, 0.98),
    rgba(11, 31, 58, 0.86)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 0;
  padding: 28px;
  box-shadow: var(--shadow);
}
.cta__box h2 {
  margin: 0 0 8px;
}
.cta__box p {
  margin: 0 0 16px;
  opacity: 0.9;
}

/* Pages */
.pagehead {
  padding: 26px 0;
}
.pagehead h1 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 34px;
}
.pagehead p {
  margin: 0;
  color: var(--muted);
}

.casehead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 26px 0;
}
.back {
  display: inline-block;
  margin-bottom: 10px;
  opacity: 0.85;
}
.cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
}
.bullets li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.86);
}

.spacer {
  height: 36px;
}
.hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 18px 0;
}

/* Contact */
.form label {
  display: block;
  margin: 12px 0 10px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}
.form input,
.form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.form textarea {
  resize: vertical;
}
.alert {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: 16px;
  margin: 12px 0;
}
.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.card--dark {
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.96),
    rgba(11, 31, 58, 0.86)
  );
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}
.card--dark .muted {
  opacity: 0.88;
}
.card--dark .bullets li {
  opacity: 0.92;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Footer */
.footer {
  background: rgba(11, 31, 58, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__muted {
  opacity: 0.78;
  margin-top: 4px;
  font-size: 12px;
}

.footer__ripples {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.footer__inner {
  position: relative;
  z-index: 1;
}
.ripple-layer .ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 62%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  filter: blur(0.2px);
  animation: ripple 1.35s ease-out forwards;
}

@media (max-width: 920px) {
  :root {
    --topbar-h: 64px;
  }
  .hero__layout {
    grid-template-columns: 1fr;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  #skills .skills-min {
    grid-template-columns: 1fr;
  }
  #sobre .about__layout {
    grid-template-columns: 1fr;
  }
  #sobre .about__col + .about__col {
    border-left: none;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .casehead {
    grid-template-columns: 1fr;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    right: 18px;
    top: 64px;
    background: rgba(11, 31, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
  }
  .nav.is-open {
    display: flex;
  }

  /* Ajuste de hero en móvil: mismo alto de viewport (sin scroll) */
  .hero {
    padding: 24px 0 44px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .lead {
    font-size: 16px;
  }
  .scroll-indicator {
    bottom: 14px;
  }
}

/* Pantallas bajas (laptops pequeñas / móviles con barra): evita que el contenido empuje el botón fuera */
@media (max-height: 720px) {
  .hero {
    padding-top: 22px;
    padding-bottom: 40px;
  }
  .hero__hint {
    display: none;
  }
}

/* Scroll reveal (only when JS is available) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js [data-reveal-item] {
  opacity: 0;
  transform: translateX(-28px);
}
.js [data-reveal-item][data-reveal-from="right"] {
  transform: translateX(28px);
}
.js [data-reveal-item][data-reveal-from="left"] {
  transform: translateX(-28px);
}

.js [data-reveal].is-visible,
.js [data-reveal-item].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

/* Water ripple hover */
@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10);
  }
}

/* Scroll indicator (hero) */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
  animation: scrollBop 1.35s ease-in-out infinite;
  z-index: 4;
}
.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) translateY(-2px);
  animation-play-state: paused;
}
.scroll-indicator__icon {
  opacity: 0.95;
}
@keyframes scrollBop {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (max-width: 920px) {
  .scroll-indicator {
    bottom: 14px;
  }
}

/* =============================
   v2: Hero + Servicios + Perfil
   ============================= */

/* Hero split layout (content + profile) */
.hero__layout--split {
  grid-template-columns: minmax(0, 1fr) 380px;
}
.hero__content {
  max-width: 64ch;
}
.hero__media {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__hint {
  max-width: 60ch;
}

.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-card__img {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(45, 107, 223, 0.35),
    rgba(255, 255, 255, 0.06)
  );
}
.profile-card__placeholder span {
  font-weight: 1000;
  letter-spacing: -0.6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 28px;
}
.profile-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-card__name {
  color: var(--white);
  font-size: 16px;
  line-height: 1.1;
}
.profile-card__role {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 13px;
}
.profile-card__small {
  color: var(--muted);
  font-size: 12px;
}

.profile-actions .btn {
  justify-content: center;
}

/* Servicios */
.services__layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}
.services__title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 18px;
}
.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}
.services__list strong {
  color: rgba(255, 255, 255, 0.92);
}
.services__list span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

/* Accent blue helper */
.band[data-accent="blue"] {
  --accent: var(--gold);
}

@media (max-width: 980px) {
  .hero__layout--split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero__media {
    max-width: 520px;
    justify-self: start;
  }
  .services__layout {
    grid-template-columns: 1fr;
  }
}
