/* ============================================================
   ASTROPACO — Tema oscuro astronómico
   ============================================================ */

:root {
  --bg:          #070710;
  --bg2:         #0c0c1a;
  --bg3:         #111125;
  --card:        #12122a;
  --border:      #1e1e40;
  --accent:      #4a9eff;
  --accent2:     #9b59ff;
  --accent-glow: rgba(74,158,255,.25);
  --text:        #e0e0f0;
  --text-muted:  #7070a0;
  --text-dim:    #4a4a70;
  --white:       #ffffff;
  --success:     #2ecc71;
  --error:       #e74c3c;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --transition:  .2s ease;
  --nav-h:       64px;
  --font-sans:   system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display:'Courier New', 'Courier', monospace;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section--dark {
  background: var(--bg2);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #6ab4ff;
  border-color: #6ab4ff;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7,7,16,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .15em;
}

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-list > li { position: relative; }
.nav-list a {
  display: block;
  padding: .5rem .9rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a.active { color: var(--white); background: var(--bg3); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 0 .5rem;
  box-shadow: var(--shadow);
  z-index: 200;
}
.dropdown a { padding: .5rem 1.1rem; border-radius: 0; }
.has-dropdown:hover .dropdown { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Main content offset ─────────────────────────────────── */
.main-content { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Flash messages ──────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  margin: 1rem auto;
  max-width: 900px;
  border-radius: var(--radius);
  font-size: .95rem;
}
.flash-success { background: rgba(46,204,113,.15); border: 1px solid var(--success); color: var(--success); }
.flash-error   { background: rgba(231,76,60,.15);  border: 1px solid var(--error);   color: var(--error);   }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1.2rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  text-align: center;
}
.hero-frame {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 340px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,158,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(155,89,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(74,158,255,.05) 0%, transparent 60%);
  animation: nebula-pulse 8s ease-in-out infinite alternate;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, .55));
}
@keyframes nebula-pulse {
  0%   { opacity: .6; }
  100% { opacity: 1; }
}
/* Star field */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 70%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 45%, rgba(255,255,255,.2) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 2rem 1.5rem;
}
.hero-eyebrow {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 1rem 2.5rem;
}

/* ── Section header ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
}
.section-link {
  color: var(--accent);
  font-size: .9rem;
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* ── Gallery grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-grid--hero {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery-grid--hero .gallery-card--featured {
  grid-column: span 1;
  grid-row: span 1;
}
.gallery-item {
  display: flex;
  flex-direction: column;
}
.gallery-caption {
  padding: .5rem .25rem .25rem;
}
.gallery-caption-title {
  display: block;
  font-size: .85rem;
  color: var(--white);
  margin-bottom: .2rem;
}
.gallery-caption-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-grid--hero .gallery-card { aspect-ratio: unset; }
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .25rem;
}
.gallery-card-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
}
.gallery-card-meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ── Category cards ──────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.cat-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow);
  text-decoration: none;
  color: var(--text);
}
.cat-card--large {
  min-height: 240px;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
  transition: filter var(--transition);
}
.cat-card--large:hover .cat-card-bg { filter: brightness(.45); }
.cat-card-body { position: relative; z-index: 1; }
.cat-card-icon { font-size: 2rem; margin-bottom: .75rem; }
.cat-card h2, .cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.cat-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.cat-card-count {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Feature / stats section ─────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.feature-text p { color: var(--text-muted); margin-bottom: 1rem; }
.feature-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.feature-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Page hero ───────────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero--sm { padding: 4rem 0 2.5rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: .5rem;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.page-count {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: .5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

/* ── Intro text ──────────────────────────────────────────── */
.intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { font-family: var(--font-display); font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.about-lead { font-size: 1.15rem; color: var(--text); margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-social { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.about-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.about-data { display: flex; flex-direction: column; gap: .6rem; }
.about-data li { display: flex; justify-content: space-between; font-size: .9rem; }
.about-data .label { color: var(--text-muted); }
.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-item { display: flex; gap: .75rem; font-size: .9rem; color: var(--text-muted); }
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: .45rem;
}
.contact-cta { text-align: center; }
.contact-cta h2 { font-family: var(--font-display); font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.contact-cta p { color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }

/* ── Equipo ──────────────────────────────────────────────── */
.equipo-group { margin-bottom: 3.5rem; }
.equipo-group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.equipo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.equipo-card:hover { border-color: var(--accent); }
.equipo-card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.equipo-card-icon {
  font-size: 2.5rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.equipo-card-body { padding: 1.25rem; }
.equipo-card-body h3 { font-size: 1rem; color: var(--white); margin-bottom: .5rem; }
.equipo-card-body p { font-size: .875rem; color: var(--text-muted); }
.equipo-note {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  margin-top: 2rem;
}
.build-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.build-step-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.build-step-photo { display: block; border-radius: var(--radius); overflow: hidden; }
.build-step-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.build-step-photo:hover img { transform: scale(1.04); }

/* ── Software ────────────────────────────────────────────── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.software-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition);
}
.software-card:hover { border-color: var(--accent); }
.software-card-header { display: flex; align-items: center; gap: .75rem; padding: 1.5rem 1.5rem 0; }
.software-card-body { padding: 1rem 1.5rem 1.5rem; }
.software-card:not(:has(.equipo-card-img)) .software-card-body { padding-top: 0; }
.software-icon { font-size: 1.8rem; }
.software-card h3 { font-size: 1rem; color: var(--white); margin-bottom: .5rem; }
.software-card p { font-size: .875rem; color: var(--text-muted); }

/* Workflow */
.workflow-section { margin-top: 3rem; }
.workflow-section h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 2rem; }
.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.workflow-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 200px;
  flex: 1;
}
.workflow-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .5rem;
}
.workflow-step h3 { font-size: .95rem; color: var(--white); margin-bottom: .5rem; }
.workflow-step p { font-size: .83rem; color: var(--text-muted); }
.workflow-arrow { color: var(--text-dim); font-size: 1.5rem; flex-shrink: 0; margin-top: 1.5rem; }

/* ── Construcción ────────────────────────────────────────── */
.build-steps { display: flex; flex-direction: column; gap: 3rem; }
.build-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.build-step-num {
  width: 52px; height: 52px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.build-step-content h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: .75rem; }
.build-step-content p { color: var(--text-muted); margin-bottom: .75rem; }
.build-step-content ul { color: var(--text-muted); display: flex; flex-direction: column; gap: .4rem; padding-left: 1.2rem; list-style: disc; }

/* ── Contacto ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-data { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.contact-data li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.contact-icon { font-size: 1.1rem; }
.contact-topics h3 { font-size: 1rem; color: var(--white); margin-bottom: .75rem; }
.contact-topics ul { display: flex; flex-direction: column; gap: .4rem; color: var(--text-muted); font-size: .9rem; list-style: disc; padding-left: 1.2rem; }
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .9rem; color: var(--text-muted); }
.req { color: var(--error); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .7rem 1rem;
  font-size: .95rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error {
  background: rgba(231,76,60,.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: .8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.form-success { text-align: center; padding: 3rem 1rem; }
.form-success-icon {
  width: 64px; height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 { color: var(--white); font-size: 1.5rem; margin-bottom: .75rem; }
.form-success p { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  padding: .5rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-btn--active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

/* ── Other galleries ─────────────────────────────────────── */
.other-galleries-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.other-galleries { display: flex; flex-wrap: wrap; gap: .75rem; }
.other-gallery-link {
  padding: .5rem 1.1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
}
.other-gallery-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 1.5rem; }

/* ── Section CTA row ─────────────────────────────────────── */
.section-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── 404 ─────────────────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: 8rem 1rem;
}
.error-404 h1 { font-family: var(--font-display); font-size: 6rem; color: var(--accent); }
.error-404 p { color: var(--text-muted); margin: 1rem 0 2rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .logo-icon { color: var(--accent); }
.footer-brand .logo-text { font-family: var(--font-display); font-size: .95rem; letter-spacing: .15em; color: var(--white); }
.footer-brand p { color: var(--text-muted); font-size: .875rem; margin-top: .75rem; max-width: 300px; }
.footer-links h4, .footer-social h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .9rem;
  text-decoration: none;
}
.social-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .8rem;
  max-width: 1200px;
  margin-inline: auto;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Lightbox ────────────────────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  align-items: center;
  justify-content: center;
}
.lightbox.open, .lb-overlay.open {
  display: flex;
}
.lb-img-wrap {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#lb-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 0 60px rgba(74,158,255,.2);
  display: block;
}
.lb-info {
  width: 100%;
  background: rgba(10,10,20,.92);
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: .85rem 1.25rem;
  box-sizing: border-box;
}
.lb-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 .3rem;
}
.lb-info-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0 0 .5rem;
  line-height: 1.45;
}
.lb-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin: 0;
}
.lb-info-meta span {
  font-size: .75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  padding: .15rem .45rem;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}
.lb-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

/* ── Admin styles (compartidos) ──────────────────────────── */
.admin-wrap {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.admin-nav {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.admin-nav a {
  padding: .45rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .875rem;
  text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active { border-color: var(--accent); color: var(--accent); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--text-dim); font-weight: 500; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
td { color: var(--text-muted); }
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-blue { background: rgba(74,158,255,.15); color: var(--accent); }
.badge-green { background: rgba(46,204,113,.15); color: var(--success); }
.badge-red { background: rgba(231,76,60,.15); color: var(--error); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid--hero { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--hero .gallery-card--featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .section { padding: 3.5rem 0; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list > li { width: 100%; }
  .nav-list a { padding: .75rem 1rem; }
  .dropdown { position: static; border: none; padding: 0 1rem; background: transparent; box-shadow: none; }
  .nav-toggle { display: flex; }
  .gallery-grid--hero { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid--hero .gallery-card--featured { grid-column: span 2; }
  .cat-grid--large { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); align-self: center; margin: 0; }
  .build-step { grid-template-columns: 48px 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid--hero { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-grid--hero .gallery-card--featured { grid-column: span 1; }
  .hero-frame { height: 55vw; min-height: 280px; max-height: 480px; }
  .feature-stats { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { display: none; }
}
