/* =========================================================
   CUVO - Hoja de estilos principal
   Tokens de marca adaptados a modo claro para converger con el HTML.
   ========================================================= */

:root {
  /* Marca */
  --blue: #161616;
  --green: #535353;
  --violet: #1f1f1f;
  --amber: #363636;
  --teal: #3d3d3d;
  /* Neutros (Modo Claro) */
  --ink: #0f172a;
  --ink-soft: #64748b;
  --paper: #ffffff;
  --mist: #f8fafc;
  --line: #e2e8f0;

  /* Forma */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-pop: 0 10px 30px rgba(37, 99, 235, 0.15);

  /* Ritmo */
  --container: 1180px;
  --gap: 1.75rem;
  font-size: 16px;
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
    font-family: "DM Sans", sans-serif;

  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}
h1, h2, h3, p, figure {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================
   Tipografía Custom
   =========================== */
.font-dm {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.font-ibarra {
  font-family: "Ibarra Real Nova", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* ===========================
   Hero y Animaciones Custom
   =========================== */
.hero-shell {
  padding-bottom: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #2550fd 0%, #099580 50%, #14f5ae 100%);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ===========================
   Logo Animado (Intacto)
   =========================== */
.modern-logo {
  text-align: center;
  margin: 4rem 0;
  animation: floating 6s ease-in-out infinite;
}
.glowing-svg {
  width: 200px;
  margin-bottom: -2rem;
  filter: drop-shadow(0px 0px 12px rgba(37, 99, 235, 0.2));
}
@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes draw-dot {
  0% { stroke-dashoffset: 38px; stroke-dasharray: 38px; fill: transparent; }
  50% { fill: transparent; }
  100% { stroke-dashoffset: 76px; stroke-dasharray: 38px; }
}
@keyframes fill-red { 100% { fill: #2563eb } }
@keyframes fill-blue { 100% { fill: #2563eb } }
@keyframes fill-dark { 100% { fill: #10b981; } }
@keyframes fill-yellow { 100% { fill: #10b981 } }
.svg-elem-11 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.5s both, fill-red 0.6s ease-out 1.0s both; }
.svg-elem-12 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.62s both, fill-red 0.6s ease-out 1.12s both; }
.svg-elem-13 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.74s both, fill-red 0.6s ease-out 1.24s both; }
.svg-elem-14 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.86s both, fill-blue 0.6s ease-out 1.36s both; }
.svg-elem-15 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.98s both, fill-blue 0.6s ease-out 1.48s both; }
.svg-elem-16 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.1s both, fill-dark 0.6s ease-out 1.6s both; }
.svg-elem-17 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.22s both, fill-dark 0.6s ease-out 1.72s both; }
.svg-elem-18 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.34s both, fill-yellow 0.6s ease-out 1.84s both; }
.svg-elem-19 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.46s both, fill-yellow 0.6s ease-out 1.96s both; }
.svg-elem-20 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.58s both, fill-dark 0.6s ease-out 2.08s both; }
.svg-elem-21 { animation: draw-dot 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1.7s both, fill-red 0.6s ease-out 2.2s both; }

@keyframes animate-svg-stroke-1 { 0% { stroke-dashoffset: 219.08px; stroke-dasharray: 219.08px; } 100% { stroke-dashoffset: 438.17px; stroke-dasharray: 219.08px; } }
@keyframes animate-svg-stroke-2 { 0% { stroke-dashoffset: 109.08px; stroke-dasharray: 109.08px; } 100% { stroke-dashoffset: 218.17px; stroke-dasharray: 109.08px; } }
@keyframes animate-svg-stroke-3 { 0% { stroke-dashoffset: 111.95px; stroke-dasharray: 111.95px; } 100% { stroke-dashoffset: 223.91px; stroke-dasharray: 111.95px; } }
@keyframes animate-svg-stroke-4 { 0% { stroke-dashoffset: 113.79px; stroke-dasharray: 113.79px; } 100% { stroke-dashoffset: 227.58px; stroke-dasharray: 113.79px; } }
@keyframes animate-svg-stroke-5 { 0% { stroke-dashoffset: 219.83px; stroke-dasharray: 219.83px; } 100% { stroke-dashoffset: 439.67px; stroke-dasharray: 219.83px; } }
@keyframes animate-svg-stroke-6 { 0% { stroke-dashoffset: 219.88px; stroke-dasharray: 219.88px; } 100% { stroke-dashoffset: 439.77px; stroke-dasharray: 219.88px; } }
@keyframes animate-svg-stroke-7 { 0% { stroke-dashoffset: 107.42px; stroke-dasharray: 107.42px; } 100% { stroke-dashoffset: 214.85px; stroke-dasharray: 107.42px; } }
@keyframes animate-svg-stroke-8 { 0% { stroke-dashoffset: 110.10px; stroke-dasharray: 110.10px; } 100% { stroke-dashoffset: 220.20px; stroke-dasharray: 110.10px; } }
@keyframes animate-svg-stroke-9 { 0% { stroke-dashoffset: 117.76px; stroke-dasharray: 117.76px; } 100% { stroke-dashoffset: 235.52px; stroke-dasharray: 117.76px; } }
@keyframes animate-svg-stroke-10 { 0% { stroke-dashoffset: 223.00px; stroke-dasharray: 223.00px; } 100% { stroke-dashoffset: 446.01px; stroke-dasharray: 223.00px; } }

.svg-elem-1 { animation: animate-svg-stroke-1 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.2s both; }
.svg-elem-2 { animation: animate-svg-stroke-2 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.32s both; }
.svg-elem-3 { animation: animate-svg-stroke-3 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.44s both; }
.svg-elem-4 { animation: animate-svg-stroke-4 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.56s both; }
.svg-elem-5 { animation: animate-svg-stroke-5 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.68s both; }
.svg-elem-6 { animation: animate-svg-stroke-6 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.8s both; }
.svg-elem-7 { animation: animate-svg-stroke-7 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 2.92s both; }
.svg-elem-8 { animation: animate-svg-stroke-8 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 3.04s both; }
.svg-elem-9 { animation: animate-svg-stroke-9 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 3.16s both; }
.svg-elem-10 { animation: animate-svg-stroke-10 1s cubic-bezier(0.785, 0.135, 0.15, 0.86) 3.28s both; }

/* ===========================
   Scroll Reveal (Auto-ajuste al centro)
   =========================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===========================
   Ejemplo de panel (app-preview)
   =========================== */
.app-preview {
  display: grid;
  grid-template-columns: 230px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 560px;
}
.app-preview__sidebar {
  border-right: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--mist);
}
.app-preview__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
}
.app-preview__brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.app-preview__nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.app-preview__nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
  cursor: pointer;
}
.app-preview__nav-item.is-active {
  background: var(--paper);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}
.app-preview__nav-item svg {
  flex: none;
  color: inherit;
}
.app-preview__main {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.app-preview__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-preview__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mist);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--line);
}
.app-preview__profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.app-preview__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex: none;
}
.app-preview__profile-text {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.3;
}
.app-preview__profile-text span:first-child { font-weight: 700; }
.app-preview__profile-text span:last-child { color: var(--ink-soft); }
.app-preview__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin: 0 0 0.2rem;
}
.app-preview__heading h3 { font-size: 1.4rem; font-weight: 800; }
.app-preview__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.app-preview__stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.app-preview__stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.app-preview__stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.app-preview__stat-chip {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--blue);
  background: #eff6ff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}
.app-preview__stat-chip--teal {
  color: var(--teal);
  background: #f0fdfa;
}
.app-preview__panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}
.app-preview__chart, .app-preview__infra {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
}
.app-preview__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.app-preview__chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.app-preview__chart-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}
.app-preview__chart-toggle {
  display: flex;
  background: var(--mist);
  border-radius: 8px;
  padding: 0.2rem;
  border: 1px solid var(--line);
}
.app-preview__chart-toggle button {
  border: none;
  background: none;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}
.app-preview__chart-toggle button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.app-preview__chart-wave {
  height: 130px;
  border-radius: 8px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232563eb' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='%232563eb' fill-opacity='0.3' d='M0,96L60,112C120,128,240,160,360,170.7C480,181,600,171,720,144C840,117,960,75,1080,74.7C1200,75,1320,117,1380,138.7L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
}
.app-preview__infra-row { margin-bottom: 1.1rem; }
.app-preview__infra-row--muted { opacity: 0.55; }
.app-preview__infra-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.app-preview__infra-label span:last-child {
  color: var(--ink-soft);
  font-weight: 500;
}
.app-preview__infra-bar {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  overflow: hidden;
}
.app-preview__infra-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
  .app-preview { grid-template-columns: 1fr; min-height: 0; }
  .app-preview__sidebar { display: none; }
  .app-preview__stats { grid-template-columns: repeat(2, 1fr); }
  .app-preview__panels { grid-template-columns: 1fr; }
}

.bg-steps {
  background: var(--blue);
}