:root {
  --brand-black: #0b0b0f;
  --brand-gold: #ffd700;
  --brand-gold-deep: #b8860b;
  --brand-gold-light: #ffea70;
  --brand-purple: #6e56cf;
  --brand-slate: #1b1b23;
  --brand-soft: #a896ff;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151522 0, #050509 45%, #000 85%);
  color: #f9fafb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

/* Containers / layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.logo-text {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(
    135deg,
    var(--brand-gold-light),
    var(--brand-gold-deep)
  );
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-links-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1rem;
  gap: 0.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 9, 0.98);
}

.nav-links-mobile.show {
  display: flex;
}

.nav-links-mobile a {
  padding: 0.25rem 0;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-left {
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-gold-light),
    var(--brand-gold-deep)
  );
  color: #111;
  box-shadow:
    0 0 1px rgba(255, 215, 0, 0.25),
    0 6px 18px rgba(255, 215, 0, 0.15);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.hero-tags span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
}

/* Hero right card */

.hero-right {
  width: 100%;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at top left, #ffd700 0, #06060b 35%);
  padding: 1.3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.hero-logo-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.18),
    rgba(255, 215, 0, 0) 60%
  );
  filter: blur(10px);
  top: 10px;
}

.hero-logo-circle {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.hero-logo-wordmark {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.hero-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-pills span {
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-align: center;
}

/* Sections genéricos */

.section {
  padding: 3rem 0;
}

.section-title {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 1.6rem;
  margin: 0 0 1.8rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards */

.card-title {
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  color: rgba(249, 250, 251, 0.82);
  line-height: 1.6;
}

.card-list {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.9);
}

.card-list li {
  margin-bottom: 0.25rem;
}

/* Proyectos */

.project-thumb {
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.7);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
}

.project-title {
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}

.project-text {
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.9);
  margin: 0 0 0.7rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.8);
}

/* Sobre mí */

.about-grid {
  align-items: flex-start;
}

/* Contacto */

.contact-grid {
  align-items: flex-start;
}

.form {
  display: grid;
  gap: 0.7rem;
}

.input {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  outline: none;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus {
  border-color: var(--brand-gold-light);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}

.form-btn {
  margin-top: 0.5rem;
}

.contact-right .card + .card {
  margin-top: 0.75rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.85rem;
}

.contact-links a {
  color: rgba(248, 250, 252, 0.9);
}

.contact-links a:hover {
  color: var(--brand-gold);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0 2rem;
  background: rgba(3, 7, 18, 0.98);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  margin-bottom: 0.3rem;
}

.footer-text {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-right a {
  color: rgba(209, 213, 219, 0.9);
}

.footer-right a:hover {
  color: var(--brand-gold);
}

/* Responsive */

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-right {
    order: -1;
  }

  .form-status {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.form-status--ok {
  color: #bbf7d0;
}

.form-status--error {
  color: #fecaca;
}

}
