/* easy & Practical — hoja de estilos principal (HTML/CSS estático) */

:root {
  --verde: #72c02c;
  --verde-oscuro: #5fb611;
  --verde-claro: #eef8e4;
  --texto: #333b43;
  --texto-suave: #5b646d;
  --gris-claro: #f5f7f8;
  --borde: #e2e6ea;
  --oscuro: #2b3036;
  --blanco: #ffffff;
  --radio: 10px;
  --sombra: 0 6px 20px rgba(0, 0, 0, 0.07);
  --ancho: 1140px;
}

[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-oscuro); text-decoration: none; }
a:hover { color: var(--verde); text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--oscuro); margin: 0 0 0.5em; }
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 16px;
}

.seccion { padding: 64px 0; }
.seccion--gris { background: var(--gris-claro); }
.seccion__titulo { text-align: center; margin-bottom: 40px; }
.seccion__titulo p { color: var(--texto-suave); margin: 0 auto; max-width: 640px; }
.seccion__titulo::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--verde);
  border-radius: 2px;
}

.salto-skip {
  position: absolute;
  left: -999px;
}
.salto-skip:focus { left: 16px; top: 16px; background: var(--blanco); padding: 8px; z-index: 100; }

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
}
.cabecera__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.cabecera__logo img { height: 40px; width: auto; }
.cabecera__toggle { display: none; }
.cabecera__menu-btn {
  display: none;
  cursor: pointer;
  padding: 8px;
  color: var(--oscuro);
  font-size: 26px;
  line-height: 1;
}
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block;
  padding: 8px 14px;
  color: var(--oscuro);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
}
.menu a:hover,
.menu a[aria-current="page"] { color: var(--verde-oscuro); background: var(--verde-claro); text-decoration: none; }
.menu__boton {
  background: var(--verde);
  color: var(--blanco) !important;
  margin-left: 8px;
}
.menu__boton:hover { background: var(--verde-oscuro) !important; }

/* ---------- Portada ---------- */
.hero {
  background: linear-gradient(135deg, #f4fbec 0%, #ffffff 60%);
  padding: 80px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__etiqueta {
  display: inline-block;
  color: var(--verde-oscuro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.hero h1 { font-size: 2.6rem; }
.hero__lead { font-size: 1.15rem; color: var(--texto-suave); margin-bottom: 28px; }
.hero__imagen img { width: 100%; }

.boton {
  display: inline-block;
  padding: 13px 26px;
  background: var(--verde);
  color: var(--blanco);
  border-radius: 8px;
  font-weight: 700;
  border: 2px solid var(--verde);
  transition: background 0.2s, color 0.2s;
}
.boton:hover { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: var(--blanco); text-decoration: none; }
.boton--secundario { background: transparent; color: var(--verde-oscuro); margin-left: 10px; }
.boton--secundario:hover { background: var(--verde-claro); color: var(--verde-oscuro); }

/* ---------- Productos ---------- */
.producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.producto:last-child { margin-bottom: 0; }
.producto--invertido .producto__imagen { order: 2; }
.producto__imagen img {
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.producto__etiqueta {
  color: var(--verde-oscuro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.lista-check { list-style: none; padding: 0; margin: 16px 0 24px; }
.lista-check li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--verde-oscuro);
  font-weight: 700;
}

/* ---------- Tarjetas ---------- */
.rejilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
}
.tarjeta img { width: 100%; height: 180px; object-fit: cover; }
.tarjeta__cuerpo { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tarjeta__cuerpo p { color: var(--texto-suave); font-size: 0.95rem; }
.tarjeta__enlace { margin-top: auto; font-weight: 700; }

.icono {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.tarjeta--simple { padding: 28px; }

/* ---------- Pasos ---------- */
.pasos {
  counter-reset: paso;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pasos li {
  counter-increment: paso;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px 20px 18px 70px;
  position: relative;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Valores ---------- */
.valores { grid-template-columns: repeat(4, 1fr); }
.valor { text-align: center; padding: 24px 16px; }
.valor .icono { margin: 0 auto 14px; }

/* ---------- Contacto ---------- */
.contacto {
  background: var(--oscuro);
  color: #d6dbe0;
  padding: 64px 0;
}
.contacto h2 { color: var(--blanco); }
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contacto__datos { list-style: none; padding: 0; margin: 0; }
.contacto__datos li { margin-bottom: 14px; display: flex; gap: 12px; }
.contacto__datos i { color: var(--verde); flex: 0 0 92px; font-style: normal; font-weight: 700; }
.contacto a { color: var(--blanco); }
.contacto a:hover { color: var(--verde); }

.formulario label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blanco); font-size: 0.9rem; }
.formulario input,
.formulario textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #444c55;
  border-radius: 8px;
  background: #363c44;
  color: var(--blanco);
  font: inherit;
}
.formulario textarea { min-height: 120px; resize: vertical; }
.formulario input:focus,
.formulario textarea:focus { outline: 2px solid var(--verde); outline-offset: 1px; }
.formulario button { cursor: pointer; border: 0; }

/* ---------- Pie ---------- */
.pie {
  background: #22262b;
  color: #9aa3ab;
  padding: 28px 0;
  font-size: 0.9rem;
}
.pie__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pie img { height: 30px; width: auto; }
.pie__redes a { color: #c8d0d6; margin-left: 14px; }
.pie__redes a:hover { color: var(--verde); }
.pie__microsoft { display: flex; align-items: center; gap: 12px; }
.pie__microsoft img { height: 40px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rejilla { grid-template-columns: repeat(2, 1fr); }
  .valores { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .cabecera__menu-btn { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
  }
  .cabecera__toggle:checked ~ .menu { display: flex; }
  .menu a { padding: 12px 10px; }
  .menu__boton { margin: 8px 0 0; text-align: center; }

  .hero__grid,
  .producto,
  .contacto__grid { grid-template-columns: 1fr; gap: 32px; }
  .producto--invertido .producto__imagen { order: 0; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2rem; }
  .pasos { grid-template-columns: 1fr; }
  .seccion { padding: 48px 0; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.5rem; }
  .rejilla,
  .valores { grid-template-columns: 1fr; }
  .boton--secundario { margin: 10px 0 0 0; display: inline-block; }
  .pie__inner { flex-direction: column; text-align: center; }
}

/* ---------- Animaciones (solo si JavaScript está activo) ---------- */

/* Encabezado: sombra al desplazarse */
.cabecera { transition: box-shadow 0.3s ease; }
.cabecera--scroll { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }

/* Portada: entrada de texto e imagen */
.js-animado .hero__etiqueta,
.js-animado .hero h1,
.js-animado .hero__lead,
.js-animado .hero .boton,
.js-animado .hero__imagen {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-animado .hero h1 { transition-delay: 0.1s; }
.js-animado .hero__lead { transition-delay: 0.2s; }
.js-animado .hero .boton { transition-delay: 0.3s; }
.js-animado .hero__imagen { transform: translateY(40px) scale(0.97); transition-delay: 0.15s; }
.js-animado .hero--listo .hero__etiqueta,
.js-animado .hero--listo h1,
.js-animado .hero--listo .hero__lead,
.js-animado .hero--listo .boton,
.js-animado .hero--listo .hero__imagen {
  opacity: 1;
  transform: none;
}
.js-animado .hero--listo .hero__etiqueta { transition-delay: 0s; }

/* Revelado al hacer scroll */
.js-animado .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-animado .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Tarjetas: elevación al pasar el cursor */
.tarjeta { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.js-animado .tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.js-animado .tarjeta img { transition: transform 0.5s ease; }
.js-animado .tarjeta:hover img { transform: scale(1.05); }

/* Imágenes de producto: leve elevación */
.producto__imagen img { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.js-animado .producto__imagen img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

/* Botones: brillo al pasar el cursor */
.boton { position: relative; overflow: hidden; }
.boton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.boton:hover::after { left: 130%; }

/* Lista de pasos: números que aparecen con un giro */
.js-animado .pasos li::before { transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.js-animado .pasos li.visible::before { transform: translateY(-50%) rotate(360deg); }

/* Movimiento reducido: sin animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Módulos de easyManager ---------- */
.modulo__intro { font-size: 1.05rem; color: var(--texto-suave); max-width: 880px; margin-bottom: 28px; }
.contenedor > h3 { margin-top: 36px; margin-bottom: 12px; font-size: 1.15rem; color: var(--verde-oscuro); }
.contenedor > h3:first-of-type { margin-top: 0; }
.lista-func { list-style: none; padding: 0; margin: 0 0 8px; }
.lista-func li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-left: 4px solid var(--verde);
  border-radius: 8px;
}
.seccion--gris .lista-func li { background: var(--blanco); }
.lista-func li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
}
.lista-func strong { color: var(--oscuro); }
.tarjeta--enlace { color: inherit; }
.tarjeta--enlace:hover { text-decoration: none; color: inherit; }
.tarjeta--enlace h3 { color: var(--oscuro); margin-top: 0; }
.lista-check--ancha { max-width: 880px; margin: 0 auto; }
.lista-check--ancha li { background: var(--blanco); border: 1px solid var(--borde); border-radius: 8px; padding: 12px 16px 12px 40px; margin-bottom: 8px; }
.lista-check--ancha li::before { left: 14px; top: 12px; }

/* ---------- Experiencia en la sección de contacto ---------- */
.contacto__experiencia {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  background: rgba(114, 192, 44, 0.15);
  border-left: 4px solid var(--verde);
  border-radius: 6px;
  color: #d6dbe0;
}
.contacto__experiencia strong { color: var(--verde); }

/* ---------- Portada: dispositivos con capturas reales ---------- */
.dispositivos { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1.15 / 1; }
.dispositivo { position: absolute; background: var(--oscuro); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22); }
.dispositivo__pantalla { width: 100%; height: 100%; overflow: hidden; background: var(--gris-claro); }
.dispositivo__pantalla img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.dispositivo--computador { left: 0; top: 4%; width: 78%; aspect-ratio: 16 / 10; border-radius: 12px; padding: 2.4% 2.4% 0; }
.dispositivo--computador .dispositivo__pantalla { border-radius: 6px 6px 0 0; }
.dispositivo--computador::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -6%; height: 7%;
  background: #3b424b; border-radius: 0 0 10px 10px;
}

.dispositivo--tableta { right: 0; top: 34%; width: 46%; aspect-ratio: 4 / 3; border-radius: 14px; padding: 3%; }
.dispositivo--tableta .dispositivo__pantalla { border-radius: 8px; }

.dispositivo--movil { right: 4%; bottom: 0; width: 22%; aspect-ratio: 9 / 19; border-radius: 22px; padding: 4% 4.5%; }
.dispositivo--movil .dispositivo__pantalla { border-radius: 14px; }

@media (max-width: 820px) {
  .dispositivos { max-width: 480px; }
}
@media (max-width: 560px) {
  .dispositivos { max-width: 100%; aspect-ratio: 1.05 / 1; }
}

/* ---------- Marcos realistas de dispositivos (sobrescriben los anteriores) ---------- */
.dispositivo {
  background: linear-gradient(160deg, #6b727c 0%, #2e333a 45%, #1d2025 100%);
  box-shadow:
    0 30px 60px -20px rgba(20, 30, 10, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* Reflejo de vidrio sobre la pantalla */
.dispositivo__pantalla { position: relative; }
.dispositivo__pantalla::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Computador: bisel fino y base metálica */
.dispositivo--computador { padding: 1.5% 1.5% 0; border-radius: 14px 14px 6px 6px; }
.dispositivo--computador .dispositivo__pantalla { border-radius: 4px 4px 0 0; }
.dispositivo--computador::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.7%;
  width: 1.2%;
  height: 1.2%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #15181c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.dispositivo--computador::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -5%;
  height: 4.2%;
  background: linear-gradient(#d9dde2 0%, #9aa2ab 55%, #6b727c 100%);
  border-radius: 2px 2px 14px 14px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
  -webkit-mask: none;
}

/* Tableta: bisel uniforme y cámara frontal */
.dispositivo--tableta { padding: 2.2%; border-radius: 22px; }
.dispositivo--tableta .dispositivo__pantalla { border-radius: 6px; }
.dispositivo--tableta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.9%;
  width: 0.9%;
  height: 0.9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #15181c;
  z-index: 2;
}

/* Teléfono: bisel fino, muesca tipo "isla" y pantalla redondeada */
.dispositivo--movil { padding: 3.2% 3.6%; border-radius: 34px; }
.dispositivo--movil .dispositivo__pantalla { border-radius: 24px; }
.dispositivo--movil::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.2%;
  width: 30%;
  height: 2.6%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050607;
  z-index: 2;
}

/* ---------- Portada: fotos reales de computador y celular ---------- */
.hero__imagen .dispositivos { position: relative; max-width: 620px; margin: 0 auto; aspect-ratio: auto; }
.hero__imagen .foto--pc { position: relative; display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(20, 30, 10, 0.4); }
.hero__imagen .foto--celular { position: absolute; right: 2%; bottom: -10%; width: 30%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(20, 30, 10, 0.5); }
@media (max-width: 560px) {
  .hero__imagen .foto--celular { bottom: -6%; width: 32%; }
}
