:root {
  --bg: #0b0b0f;
  --bg-soft: #13131a;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --muted: #b9bcc7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #08080b 0%, #111118 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* HEADER FIJO */
.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  width: calc(100% - 48px);
  max-width: var(--max-width);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 18px;
  border-radius: 999px;

  backdrop-filter: blur(10px);
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.topbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand:hover {
  opacity: 0.85;
}

.top-link {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.top-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 60px;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  max-height: 500px;
  display: block;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: var(--shadow);
}
.status {
  text-align: center;
}

.status-text {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* SECCIONES */
.section {
  padding: 90px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 860px;
}

.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.story p,
.philosophy-text,
.closing p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 14px;
}

/* IDENTITY */
.identity-flex {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.identity-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.identity-image img {
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* PHILOSOPHY */
.philosophy {
  text-align: center;
}

blockquote {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

/* CLOSING */
.closing {
  text-align: center;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin-bottom: 6px;
}

/* BOTÓN SUBIR */
#scrollTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.25s ease;
  z-index: 999;
}

#scrollTopBtn:hover {
  background: rgba(255, 255, 255, 0.18);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-image img {
    max-width: 420px;
    max-height: 420px;
    margin: 0 auto;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: clamp(2.6rem, 10vw, 4.2rem);
  }

  .identity-flex {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .identity-image img {
    max-width: 220px;
    margin: 0 auto 10px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    width: calc(100% - 24px);
    top: 12px;
    padding: 10px 14px;
  }

  .hero {
    padding: 110px 18px 40px;
  }

  .section {
    padding: 72px 18px;
  }

  .topbar {
    gap: 14px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .top-link {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .hero-image img {
    max-width: 300px;
    max-height: 300px;
  }

  #scrollTopBtn {
    right: 18px;
    bottom: 18px;
  }
}