/* SL Creaciones 3D — estilos */

:root {
  --bg: #14161a;
  --bg-alt: #1c1f25;
  --bg-alt-2: #21252c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1ede4;
  --text-muted: #a4a9b3;
  --accent: #e0642f;
  --accent-soft: rgba(224, 100, 47, 0.14);
  --accent-strong: #ff7a3d;
  --radius: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent-strong) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4.5rem;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.hero h1 span {
  color: var(--accent-strong);
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.96rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.hero-collage div:nth-child(1) {
  grid-row: span 2;
}

.hero-collage div img {
  aspect-ratio: auto;
  height: 100%;
}

/* ---------- About ---------- */

.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about .wrap {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.about .eyebrow {
  display: block;
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.about p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------- Gallery ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-img {
  aspect-ratio: 1 / 1;
  background: #0d0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.card-tag {
  font-size: 0.76rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-height: 85vh;
}

.lightbox-img {
  background: #0d0f12;
  border-radius: 10px;
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 70vh;
}

.lightbox-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.lightbox-info p {
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.contact-card {
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-card h3 {
  font-size: 1.15rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */

footer {
  padding: 2.5rem 0;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer a:hover {
  color: var(--accent-strong);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap,
  .about .wrap {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
    gap: 1.2rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 3.5rem 0;
  }
}
