:root {
  --dark: #0b1120;
  --dark-soft: #111827;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --green: #25d366;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

sup {
  font-size: 12px;
}

.hero {
  min-height: 100vh;
  color: white;
  padding: 28px 7%;
  background:
    linear-gradient(rgba(11, 17, 32, 0.88), rgba(11, 17, 32, 0.94)),
    radial-gradient(circle at top right, #2563eb, transparent 35%),
    linear-gradient(135deg, #0b1120, #1e293b);
}

.navbar,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  background: var(--dark);
  color: white;
  padding: 22px 7%;
}

.logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span,
.login-box h1 span {
  color: var(--blue-light);
}

.nav-links,
.topbar div {
  display: flex;
  gap: 24px;
}

.nav-links a,
.topbar a {
  color: #e5e7eb;
  font-weight: 700;
}

.hero-content {
  max-width: 950px;
  margin-top: 135px;
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  margin: 0 0 24px;
  letter-spacing: -3px;
}

.hero-content p {
  font-size: 21px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 820px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.28);
}

.btn.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.section {
  padding: 90px 7%;
}

.section-title {
  max-width: 850px;
  margin-bottom: 46px;
}

.section-title span,
.highlight span,
.partners-title span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.section-title h2,
.highlight h2,
.contact h2,
.partners-title h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 12px 0;
  letter-spacing: -1.5px;
}

.section-title p,
.highlight p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-title.light h2,
.section-title.light p {
  color: white;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  padding: 34px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.card i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #dbeafe;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.dark-section {
  background: var(--dark);
}

.work-carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.work-slide {
  min-width: min(780px, 88vw);
  background: white;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.work-media-strip {
  display: flex;
  overflow-x: auto;
  gap: 0;
  background: #f1f5f9;
}

.work-media-strip img,
.work-media-strip .model-viewer,
.work-media-strip .file-preview {
  min-width: 100%;
  height: 420px;
}

.work-media-strip img {
  object-fit: cover;
}

.work-info,
.gallery-content {
  padding: 26px;
}

.work-info span,
.category-pill {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.work-info h3,
.gallery-content h3 {
  font-size: 26px;
  margin: 0 0 10px;
}

.work-info p,
.gallery-content p {
  color: var(--muted);
  line-height: 1.6;
}

.center-action {
  text-align: center;
  margin-top: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.gallery-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.file-preview,
.model-viewer {
  width: 100%;
  height: 420px;
  border-bottom: 1px solid var(--border);
}

.file-preview {
  background: linear-gradient(135deg, #111827, #334155);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-preview i {
  font-size: 64px;
  margin-bottom: 12px;
}

.file-preview span {
  font-size: 22px;
  font-weight: 900;
}

.model-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.viewer-loading {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 8px 0 0;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--dark);
  color: white;
  font-weight: 800;
}

.highlight {
  margin: 90px 7%;
  padding: 54px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 35%),
    var(--dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.highlight p {
  color: #cbd5e1;
  max-width: 720px;
}

.partners-section {
  padding: 80px 7%;
  background: white;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  margin-bottom: 34px;
}

.partners-fixed .partners-track {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.partners-marquee {
  overflow: hidden;
}

.partners-marquee .partners-track {
  display: flex;
  gap: 28px;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.partner-logo {
  min-width: 190px;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 130px;
  max-height: 58px;
  object-fit: contain;
  margin-bottom: 10px;
}

.partner-logo span {
  font-weight: 800;
  color: var(--muted);
  font-size: 14px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.contact {
  text-align: center;
  padding: 90px 7%;
  background: white;
}

.contact p {
  max-width: 700px;
  margin: 0 auto 28px;
}

.footer {
  background: var(--dark);
  color: white;
  padding: 28px 7%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.upload-form {
  width: 100%;
  background: white;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.upload-form input,
.upload-form textarea,
.login-box input {
  width: 100%;
  padding: 15px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.upload-form textarea {
  min-height: 120px;
  resize: vertical;
}

.upload-form button,
.login-box button,
.delete-form button,
.partner-admin-card button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.delete-form {
  margin-top: 16px;
}

.danger {
  background: var(--danger) !important;
}

.partners-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.partner-admin-card {
  background: white;
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.partner-admin-card img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
}

.partner-admin-card strong {
  display: block;
  margin-bottom: 16px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 35%),
    linear-gradient(135deg, #0b1120, #1e293b);
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: white;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px;
  border-radius: 10px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
  z-index: 999;
}

@media (max-width: 1100px) {
  .cards,
  .admin-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .nav-links {
    display: none;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
  }

  .topbar div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    margin-top: 110px;
  }

  .cards,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .highlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
  }

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

  .work-media-strip img,
  .work-media-strip .model-viewer,
  .work-media-strip .file-preview,
  .file-preview,
  .model-viewer {
    height: 320px;
  }

  .footer {
    flex-direction: column;
  }
}