:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-hover: #171717;
  --surface-thumb: #1d1d1d;
  --border: #222222;
  --border-hover: #343434;
  --accent: #c8f31d;
  --accent-hover: #d7ff38;
  --text: #ffffff;
  --text-secondary: #9a9a9a;
  --text-muted: #666666;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --max-width: 1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  color: var(--text);
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn-accent {
  background-color: var(--accent);
  color: #0a0a0a;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: #2c2c2c;
}

.btn-ghost:hover {
  border-color: #4a4a4a;
  background-color: rgba(255, 255, 255, 0.04);
}

.btn-dark {
  background-color: #0a0a0a;
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.btn-outline-dark {
  background-color: transparent;
  color: #0a0a0a;
  border-color: rgba(10, 10, 10, 0.55);
}

.btn-outline-dark:hover {
  background-color: rgba(10, 10, 10, 0.08);
  border-color: #0a0a0a;
}

/* ─── Eyebrow & Headings ──────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 36px;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 92px 0 80px;
}

.hero .eyebrow {
  margin-bottom: 22px;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  max-width: 880px;
  margin-bottom: 26px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─── Brands Strip ────────────────────────────────────────────────────────── */
.brands-section {
  padding: 28px 0 64px;
}

.brands-section .eyebrow {
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
}

.brand-item {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  user-select: none;
}

.brand-item:hover {
  color: var(--text-secondary);
}

/* ─── Services Grid (Qué hago) ────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

.service-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Projects Grid (Trabajos seleccionados) ──────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
  transform: translateY(-3px);
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background-color: var(--surface-thumb);
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-thumb-placeholder {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b5b5b5;
}

.project-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

.project-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── About Split (Sobre mí) ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-left .section-title {
  margin-bottom: 0;
}

.about-photo-wrap {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  background-color: var(--surface);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-copy p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── FAQ (Preguntas Frecuentes) ─────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.faq-grid .section-title {
  margin-bottom: 12px;
}

.faq-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 340px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background-color: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.faq-answer {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-section {
  padding: 56px 0 88px;
}

.cta-banner {
  background-color: var(--accent);
  color: #0a0a0a;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
}

.cta-banner h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 520px;
  margin-bottom: 16px;
  color: #0a0a0a;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(10, 10, 10, 0.78);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #181818;
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo-wrap {
    width: 190px;
    height: 190px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 52px 0;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .brands-row {
    gap: 16px 28px;
  }
}
