﻿/* ==========================================================
   Modo de Energía — web
   Tema oscuro por defecto, igual que la aplicación.
   Minimalista, con movimiento discreto.
   ========================================================== */

:root {
  color-scheme: dark;

  --bg:        #15171D;
  --surface:   #1B1E26;
  --surface-2: #22262F;
  --ink:       #E8EAF0;
  --muted:     #8A90A0;
  --suave:     #5F6574;
  --linea:     #262A34;
  --linea-2:   #333949;

  --acento:    #6E8BFF;
  --acento-2:  #8B5CF6;
  --brillo:    rgba(110, 139, 255, .20);
  --nav-bg:    rgba(21, 23, 29, .78);

  --verde:     #3ED598;
  --violeta:   #A78BFA;
  --naranja:   #F0A15C;

  --radio:     16px;
  --curva:     cubic-bezier(.22, .7, .2, 1);
}

[data-tema="claro"] {
  color-scheme: light;

  --bg:        #FBFAF9;
  --surface:   #FFFFFF;
  --surface-2: #F4F2EF;
  --ink:       #0F1115;
  --muted:     #6B7078;
  --suave:     #9AA0A8;
  --linea:     #E8E5E0;
  --linea-2:   #D6D2CB;

  --acento:    #3B5BFF;
  --acento-2:  #7C4DE8;
  --brillo:    rgba(59, 91, 255, .12);
  --nav-bg:    rgba(251, 250, 249, .82);

  --verde:     #1F9D68;
  --violeta:   #6E4FD8;
  --naranja:   #C97A2C;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

code {
  font-family: "Cascadia Mono", ui-monospace, Consolas, monospace;
  font-size: .85em;
  background: var(--surface-2);
  border: 1px solid var(--linea);
  padding: .1em .38em;
  border-radius: 5px;
}

::selection { background: var(--brillo); }

/* ---------- navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}

.nav.pegada {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--linea);
  padding-top: 12px;
  padding-bottom: 12px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.02em;
  font-size: 15.5px;
}

.logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2F6FE0, #8B5CF6);
  display: grid;
  place-items: center;
  transition: transform .4s var(--curva);
  box-shadow: 0 4px 14px -6px rgba(80, 110, 255, .8);
}

.logo svg { width: 15px; height: 15px; fill: #fff; }
.marca:hover .logo { transform: rotate(-8deg) scale(1.06); }

.enlaces {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
}

.enlaces > a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  transition: color .2s ease;
}

.enlaces > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--curva);
}

.enlaces > a:hover { color: var(--ink); }
.enlaces > a:hover::after { transform: scaleX(1); }

.tema {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .3s var(--curva);
}

.tema:hover {
  color: var(--ink);
  border-color: var(--linea-2);
  background: var(--surface);
  transform: rotate(18deg);
}

.tema svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tema .ico-luna { display: none; }
[data-tema="claro"] .tema .ico-sol { display: none; }
[data-tema="claro"] .tema .ico-luna { display: block; }

.btn-nav {
  padding: 8px 16px;
  border: 1px solid var(--linea-2);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background .2s ease, border-color .2s ease;
}

.btn-nav::after { display: none; }
.btn-nav:hover { background: var(--surface); border-color: var(--acento); }

/* ---------- hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 32px 40px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero-imagen {
  position: relative;
  display: flex;
  justify-content: center;
}

.halo {
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(circle at 50% 45%, var(--brillo), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-imagen img {
  position: relative;
  width: 386px;
  border-radius: 14px;
  border: 1px solid var(--linea-2);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .35);
  animation: flotar 7s ease-in-out infinite alternate;
}

@keyframes flotar {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--suave);
  font-weight: 650;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.038em;
  font-weight: 680;
}

.entradilla {
  margin: 0 0 34px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--curva), box-shadow .3s var(--curva),
              background .25s ease, border-color .25s ease;
  will-change: transform;
}

.btn svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--curva);
}

.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateY(2px); }
.btn:active { transform: translateY(0); }

.btn-primario {
  background: linear-gradient(135deg, #2F6FE0, #8B5CF6);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(90, 110, 255, .9);
}

.btn-primario:hover {
  box-shadow: 0 16px 38px -14px rgba(90, 110, 255, .95);
}

.btn-secundario {
  background: transparent;
  color: var(--ink);
  border-color: var(--linea-2);
}

.btn-secundario:hover {
  background: var(--surface);
  border-color: var(--acento);
}

.meta {
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--suave);
}

.nota-smart {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--suave);
}

.nota-smart svg {
  width: 15px; height: 15px;
  flex: none;
  fill: none;
  stroke: var(--naranja);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- tira de datos ---------- */
.tira {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.tira div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tira b {
  font-size: 22px;
  font-weight: 660;
  letter-spacing: -.02em;
}

.tira span {
  font-size: 13px;
  color: var(--suave);
}

/* ---------- bloques ---------- */
.bloque {
  max-width: 1120px;
  margin: 0 auto;
  padding: 118px 32px 0;
}

.bloque-cab {
  max-width: 620px;
  margin-bottom: 52px;
}

.bloque-cab h2 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.032em;
  font-weight: 660;
}

/* ---------- tarjetas ---------- */
.rejilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tarjeta {
  position: relative;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  transition: transform .4s var(--curva), box-shadow .4s var(--curva), border-color .3s ease;
  overflow: hidden;
}

.tarjeta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--brillo), transparent 62%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.tarjeta:hover::before { opacity: 1; }

.tarjeta:hover {
  transform: translateY(-4px);
  border-color: var(--linea-2);
  box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .95);
}

.tarjeta h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.015em;
  font-weight: 640;
}

.tarjeta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  position: relative;
}

.icono {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.icono svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-azul    { color: var(--acento);  background: rgba(110, 139, 255, .14); }
.c-verde   { color: var(--verde);   background: rgba(62, 213, 152, .12); }
.c-violeta { color: var(--violeta); background: rgba(167, 139, 250, .14); }
.c-naranja { color: var(--naranja); background: rgba(240, 161, 92, .12); }

[data-tema="claro"] .c-azul    { background: #EAF0FF; }
[data-tema="claro"] .c-verde   { background: #E8F6EF; }
[data-tema="claro"] .c-violeta { background: #F1ECFD; }
[data-tema="claro"] .c-naranja { background: #FDF1E6; }

/* ---------- dos columnas ---------- */
.dos-columnas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.col h3 {
  margin: 0 0 18px;
  font-size: 19px;
  letter-spacing: -.02em;
  font-weight: 640;
}

.lista {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  color: var(--muted);
}

.lista li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.lista li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--linea-2);
}

.lista li.nota {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--linea);
  background: var(--surface);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}

.lista li.nota::before { display: none; }

/* ---------- capturas ---------- */
.capturas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capturas figure { margin: 0; }

.capturas img {
  border-radius: 14px;
  border: 1px solid var(--linea);
  box-shadow: 0 30px 60px -46px rgba(0, 0, 0, .95);
  transition: transform .55s var(--curva), border-color .3s ease;
}

.capturas figure:hover img { transform: scale(1.012); border-color: var(--linea-2); }

.capturas figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--suave);
}

/* ---------- tabla ---------- */
.tabla { border-top: 1px solid var(--linea); }

.fila {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--linea);
  font-size: 15.5px;
}

.fila span { color: var(--suave); }
.fila b { font-weight: 560; }

/* ---------- preguntas ---------- */
.faq details { border-bottom: 1px solid var(--linea); }

.faq summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-weight: 580;
  font-size: 16.5px;
  list-style: none;
  position: relative;
  transition: color .2s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--suave);
  border-bottom: 1.6px solid var(--suave);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--curva), border-color .2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--ink);
}

.faq summary:hover { color: var(--acento); }

.faq p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 720px;
}

/* ---------- llamada final ---------- */
.cta {
  max-width: 1120px;
  margin: 118px auto 0;
  padding: 56px 32px;
  text-align: center;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  background:
    radial-gradient(560px circle at 50% 0%, var(--brillo), transparent 70%);
}

.cta h2 {
  margin: 0 0 8px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  letter-spacing: -.032em;
  font-weight: 660;
}

.cta p {
  margin: 0 0 28px;
  color: var(--muted);
}

.cta .acciones { justify-content: center; }

/* ---------- pie ---------- */
.pie {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 56px;
  text-align: center;
  font-size: 13.5px;
  color: var(--suave);
}

.pie-fila {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 560;
}

.logo-mini {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: none;
}

.logo-mini svg { width: 12px; height: 12px; }

.punto { opacity: .45; }
.pie p { margin: 0; }

/* ---------- animaciones de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--curva), transform .75s var(--curva);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
    text-align: left;
  }
  .hero-imagen img { width: min(386px, 100%); }
  .tira { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .enlaces > a:not(.btn-nav) { display: none; }
  .rejilla,
  .dos-columnas,
  .capturas { grid-template-columns: 1fr; }
  .dos-columnas { gap: 40px; }
  .fila { grid-template-columns: 1fr; gap: 4px; }
  .bloque { padding-top: 80px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav,
  .hero,
  .bloque,
  .tira,
  .pie,
  .cta { padding-left: 20px; padding-right: 20px; }
  .acciones { flex-direction: column; }
  .btn { justify-content: center; }
  .tira { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- sin movimiento si el sistema lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-imagen img { animation: none; }
  .btn, .tarjeta, .capturas img, .logo, .tema, .faq summary::after { transition: none; }
  .btn:hover, .tarjeta:hover, .capturas figure:hover img, .marca:hover .logo, .tema:hover { transform: none; }
}

/* ---------- vídeo ---------- */
.video-marco {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--linea-2);
  background: #000;
  box-shadow: 0 40px 80px -55px rgba(0, 0, 0, .95);
}

.video {
  display: block;
  width: 100%;
  height: auto;
  /* sin clic derecho ni opción de guardar el vídeo */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.video-sonido {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 12, 17, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font: 600 12.5px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .3s var(--curva);
}

.video-sonido:hover {
  background: rgba(22, 26, 34, .92);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

.video-sonido svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-sonido .ondas { opacity: 0; transition: opacity .2s ease; }
.video-sonido.activo .ondas { opacity: 1; }

/* ---------- pie con enlaces ---------- */
.pie-enlaces {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pie-boton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 560;
  transition: color .2s ease, border-color .2s ease, transform .3s var(--curva), background .2s ease;
}

.pie-boton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pie-boton:hover {
  color: var(--ink);
  border-color: var(--acento);
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .pie-enlaces { flex-direction: column; align-items: center; }
  .video-sonido { right: 10px; bottom: 10px; padding: 8px 12px; }
}
