/* =========================================================
   ARVOTIA — Hoja de estilos principal
   Sistema de diseño con variables. Cambia la marca aquí abajo.
   ========================================================= */

:root {
  /* --- Colores de marca (AJUSTA a tu identidad) --- */
  --bg:          #0B0E1A;
  --bg-alt:      #0F1424;
  --surface:     #151B30;
  --surface-2:   #1C2340;
  --border:      rgba(255,255,255,0.08);

  --text:        #E8EBF2;
  --text-muted:  #9AA4BF;

  --accent-1:    #2E7DE6;   /* azul Arvotia */
  --accent-2:    #22D3EE;   /* cian Arvotia */
  --accent-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));

  /* Colores por producto */
  --vyra:        #6C5CE7;   /* morado VYRA (oficial) */
  --inmotia:     #2563EB;   /* azul Inmotia (oficial) */
  --kovia:       #7C3AED;   /* violeta Kovia (oficial) */

  /* --- Tipografía --- */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Espaciado / radios --- */
  --radius:   16px;
  --radius-sm: 10px;
  --maxw:     1180px;
  --shadow:   0 20px 50px -20px rgba(0,0,0,0.6);
}

/* =========================== Reset =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

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

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* =========================== Botones =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--accent-grad);
  color: #0B0E1A;
  box-shadow: 0 10px 30px -10px rgba(46,125,230,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34,211,238,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* =========================== Header =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,14,26,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.brand-mark {
  width: 56px; height: 56px;
  flex-shrink: 0;
  /* Ícono recortado (solo la X) para que se vea grande y nítido */
  background: url('/assets/logo-mark.png') center / contain no-repeat;
  font-size: 0;               /* oculta la "A" de respaldo */
  border-radius: 8px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.96rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-2); }
.nav-links .nav-cta.active { color: #0B0E1A; }
.nav-links .nav-cta {
  color: #0B0E1A;
  background: var(--accent-grad);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { color: #0B0E1A; opacity: .92; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* =========================== Hero =========================== */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle at center, rgba(46,125,230,0.30), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(34,211,238,0.20), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-logo { max-width: 380px; width: 78%; margin: 0 auto 18px; border-radius: 16px; }
.hero-note { margin-top: 18px; color: var(--text-muted); font-size: 0.9rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; margin-top: 60px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; }
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* =========================== Secciones =========================== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* =========================== Grids / cards =========================== */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.4); background: var(--surface-2); }
.card-icon { font-size: 1.9rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

/* =========================== Productos =========================== */
.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
}
.product-reverse { grid-template-columns: 1.1fr 0.9fr; }
.product-reverse .product-media { order: 2; }

.product-media {
  min-height: 220px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border);
}
.product-logo { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; letter-spacing: 0.02em; }
.product-media-img { padding: 0; overflow: hidden; }
.product-media-img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--radius); }
.product-body h3 { font-size: 1.8rem; margin: 10px 0 14px; }
.product-body p { color: var(--text-muted); margin-bottom: 18px; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--tag);
  background: color-mix(in srgb, var(--tag) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag) 40%, transparent);
}
.product-points { margin: 0 0 22px; display: grid; gap: 8px; }
.product-points li { position: relative; padding-left: 26px; color: var(--text); font-size: 0.96rem; }
.product-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* =========================== Proceso =========================== */
.steps .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* =========================== Testimonios =========================== */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.quote p { font-size: 1.02rem; margin-bottom: 20px; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { font-family: var(--font-head); }
.quote footer span { color: var(--text-muted); font-size: 0.88rem; }

/* =========================== Contacto =========================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { margin: 26px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a:hover { color: var(--accent-2); }
.ci-icon { font-size: 1.2rem; }
.socials { display: flex; gap: 18px; flex-wrap: wrap; }
.socials a { color: var(--text-muted); font-weight: 500; transition: color .2s; }
.socials a:hover { color: var(--accent-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.form-status { margin-top: 14px; font-size: 0.92rem; text-align: center; }
.form-status.ok { color: var(--inmotia); }
.form-status.err { color: #f87171; }

/* =========================== Footer =========================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.footer-brand .brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; }
.footer-logo { width: 150px; max-width: 60%; height: auto; }
.newsletter label { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: 0.92rem; }
.nl-row { display: flex; gap: 10px; }
.nl-row input {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 18px; color: var(--text); min-width: 220px;
}
.nl-row input:focus { outline: none; border-color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding: 22px 24px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p, .footer-bottom a { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom a:hover { color: var(--accent-2); }

/* =========================== WhatsApp flotante =========================== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  font-size: 1.6rem; box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================== Banda CTA =========================== */
.cta-band {
  text-align: center;
  background: linear-gradient(120deg, rgba(46,125,230,0.14), rgba(34,211,238,0.14));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 54px 30px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin-bottom: 26px; }

/* =========================== Página legal =========================== */
.container-narrow { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 6px; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--accent-2); }
.legal p { color: var(--text-muted); margin-bottom: 14px; }
.legal a { color: var(--accent-2); }
.legal a:hover { text-decoration: underline; }
.legal-list { margin: 0 0 16px; display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 22px; color: var(--text-muted); }
.legal-list li::before { content: "•"; position: absolute; left: 4px; color: var(--accent-2); font-weight: 700; }

/* =========================== Footer legal =========================== */
.footer-legal { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; }
.footer-legal a:hover { color: var(--accent-2); }

/* =========================== Sección estrella =========================== */
.feature-star {
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--accent-1) 16%, transparent),
    color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, var(--border));
  border-radius: var(--radius);
  padding: 44px;
}
.feature-star h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 12px 0 12px; }
.feature-star > p { color: var(--text-muted); max-width: 720px; margin-bottom: 24px; }
.points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.points-grid li { position: relative; padding-left: 26px; color: var(--text); }
.points-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
@media (max-width: 640px) { .points-grid { grid-template-columns: 1fr; } .feature-star { padding: 30px 24px; } }

/* =========================== Footer nav =========================== */
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--text-muted); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--accent-2); }

/* =========================== Temas por producto =========================== */
/* Cambian el color de acento en las páginas de VYRA / Inmotia */
.theme-vyra    { --accent-1: #6C5CE7; --accent-2: #00D1FF;
                 --accent-grad: linear-gradient(90deg, #6C5CE7, #8A7CFF 50%, #00D1FF); }
.theme-inmotia { --accent-1: #2563EB; --accent-2: #22D3EE;
                 --accent-grad: linear-gradient(140deg, #1D4ED8, #22D3EE); }
.theme-kovia   { --accent-1: #7C3AED; --accent-2: #A78BFA;
                 --accent-grad: linear-gradient(140deg, #7C3AED, #3B82F6); }

/* =========================== Animación reveal =========================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================== Responsive =========================== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product, .product-reverse { grid-template-columns: 1fr; }
  .product-reverse .product-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 84px; right: 0;
    width: min(80vw, 300px); height: calc(100vh - 84px);
    flex-direction: column; align-items: flex-start;
    gap: 22px; padding: 34px 28px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(105%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nl-row { flex-direction: column; }
  .nl-row input { min-width: 0; width: 100%; }
}

/* Respeta preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
