/* =========================================
   PALETA ARIMAST DIGITAL
========================================= */
:root {
  --bg: #050816;
  --bg-alt: #070b1d;
  --card: rgba(13, 18, 45, 0.9);
  --accent: #0d8bff;
  --accent-soft: rgba(13, 139, 255, 0.2);
  --accent-strong: rgba(13, 139, 255, 0.75);
  --text: #f5f7ff;
  --muted: #9aa4c5;
  --border: rgba(255, 255, 255, 0.06);
  --radius-lg: 26px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* =========================================
   RESET
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #151a40 0, #050816 45%, #02020a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #02020a;
}
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* =========================================
   HEADER
========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.95),
    rgba(5, 8, 22, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MARCA */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

/* =========================================
   LOGO CORREGIDO
========================================= */

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(13, 139, 255, 0.45);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================
   HERO
========================================= */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 20px 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  margin: 16px 0 14px;
}

.gradient-text {
  background: linear-gradient(120deg, #65f6ff, #0d8bff, #6c5bff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip,
.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.chip {
  background: rgba(5, 255, 194, 0.08);
  color: #aafaf2;
  border: 1px solid rgba(5, 255, 194, 0.45);
}

.badge {
  background: rgba(13, 139, 255, 0.12);
  color: #c8e3ff;
  border: 1px solid rgba(13, 139, 255, 0.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #0d8bff, #355dff);
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 139, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(13, 139, 255, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
}

/* VISUAL HERO */
.hero-visual {
  position: relative;
  min-height: 260px;
}

.device {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(circle at top, #2837ff, #050816 60%);
  box-shadow: var(--shadow);
}

.device-main img,
.device-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-main {
  transform: rotate(-6deg) translate(16px, 6px);
}

.device-secondary {
  width: 62%;
  height: 60%;
  right: -10%;
  top: 50%;
  transform: rotate(8deg) translate(-10px, -36%);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

/* FLOATING CARDS */
.floating-card {
  position: absolute;
  width: 210px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(7, 11, 32, 0.95);
  border: 1px solid rgba(113, 179, 255, 0.5);
  color: var(--muted);
  font-size: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.fc-1 {
  top: -14px;
  right: 0;
}
.fc-2 {
  bottom: -6px;
  left: -40px;
}

.fc-label {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: #d2e5ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================
   SECTION BASES
========================================= */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(13,139,255,0.03));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.section-header p {
  font-size: 15px;
  color: var(--muted);
}

/* =========================================
   SERVICES GRID
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-strong);
  box-shadow: 0 22px 50px rgba(13, 139, 255, 0.3);
}

.service-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(13, 139, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   CASES
========================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  background: rgba(5, 6, 22, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: 0.22s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(13, 139, 255, 0.25);
}

.case-img {
  height: 170px;
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover img {
  transform: scale(1.08);
}

/* =========================================
   STACK TECNOLÓGICO
========================================= */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stack-block {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius-lg);
}

.stack-block.highlight {
  background: radial-gradient(
    circle at top left,
    rgba(13, 139, 255, 0.35),
    rgba(5, 8, 22, 0.98)
  );
}

/* =========================================
   CONTACTO
========================================= */
.section-contact {
  padding-bottom: 60px;
}

.contact-card {
  background: radial-gradient(
    circle at top left,
    rgba(13, 139, 255, 0.35),
    rgba(5, 8, 22, 0.98)
  );
  border: 1px solid rgba(115, 191, 255, 0.9);
  padding: 26px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================
   REVEAL ANIMATIONS
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

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

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}

.nav a:hover {
  color: #9fd3ff;
}

.service-card ul,
.case-content ul,
.stack-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.case-content {
  padding: 18px;
}

.case-content h3,
.service-card h3,
.stack-block h3,
.contact-card h2,
.vr-copy h3 {
  margin-top: 0;
}

.case-content p,
.service-card p,
.stack-block p,
.vr-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.demo-strip {
  margin-top: 28px;
  padding: 22px;
  background: rgba(13, 18, 45, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.demo-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.demo-links a {
  text-decoration: none;
  color: #d9ecff;
  background: rgba(13, 139, 255, 0.12);
  border: 1px solid rgba(13, 139, 255, 0.3);
  padding: 12px 14px;
  border-radius: 14px;
}

.demo-note {
  color: var(--muted);
  font-size: 13px;
}

/* VR SECTION */
.vr-section {
  padding-top: 20px;
}

.vr-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: center;
}

.vr-visual img {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vr-copy {
  background: rgba(7, 11, 32, 0.75);
  border: 1px solid rgba(13, 139, 255, 0.18);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.vr-chip {
  margin-bottom: 14px;
  display: inline-flex;
}

.vr-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}

.vr-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.vr-list li span {
  color: #8fd4ff;
  font-weight: 700;
}

.vr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-card--vr {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
}

.service-media img {
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip.tech {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcecff;
}

.stack-list {
  list-style: none;
  padding-left: 0;
}

.stack-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.stack-list li span {
  color: #8fd4ff;
  font-weight: 700;
}

.wide {
  width: 100%;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .vr-grid,
  .stack-grid,
  .service-card--vr {
    grid-template-columns: 1fr;
  }

  .service-card--vr {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .service-card--vr {
    grid-column: span 1;
  }

  .nav {
    display: none;
  }

  .vr-actions,
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
