/* EasyTech — landing comercial (index.html). Requiere main.css + ramp-theme.css. */

/* ── Hero comercial ── */
.ramp.page-home .hero-title--commercial {
  font-size: clamp(2.2rem, 3.5vw, 3.15rem);
  line-height: 1.2;
  max-width: 100%;
}

.ramp.page-home .hero-title--commercial .hero-title-line {
  white-space: nowrap;
}

.ramp.page-home .hero-eyebrow-eco {
  color: #2563eb;
  font-weight: 600;
}

.ramp.page-home .hero--commercial .hero-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: auto;
  max-width: none;
  gap: 0.75rem;
}

.ramp.page-home .hero--commercial .hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ramp.page-home .hero--commercial .hero-inner {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .ramp.page-home .hero--commercial .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .ramp.page-home .hero--commercial .hero-visual {
    min-width: 0;
    width: 100%;
  }

  .ramp.page-home .hero--commercial .hero-laptop-shell {
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
  }

  .ramp.page-home .hero--commercial .hero-laptop-bezel {
    max-height: min(70vh, 580px);
  }
}

@media (min-width: 1280px) {
  .ramp.page-home .hero-title--commercial {
    font-size: clamp(2.35rem, 3.6vw, 3.4rem);
  }
}

.ramp.page-home .hero--commercial .hero-laptop-screen img {
  object-fit: contain;
  object-position: top center;
  background: #f1f5f9;
}

/* ── Métricas ── */
.ramp.page-home .home-metrics {
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.ramp.page-home .home-metrics-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ramp.page-home .home-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ramp.page-home .home-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ramp.page-home .home-metric-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.ramp.page-home .home-metric-value {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #102a43;
}

.ramp.page-home .home-metric-label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.ramp.page-home .home-metric-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
}

/* ── Soluciones ── */
.ramp.page-home .home-solutions {
  background: #fff;
}

.ramp.page-home .home-solutions-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ramp.page-home .home-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ramp.page-home .home-solutions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ramp.page-home .home-solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.ramp.page-home .home-solution-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #102a43;
}

.ramp.page-home .home-solution-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.ramp.page-home .home-solution-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.ramp.page-home .home-solution-link:hover {
  text-decoration: underline;
}

/* ── Odoo + FE ── */
.ramp.page-home .home-odoo-fe {
  background: linear-gradient(180deg, #f0f6ff 0%, #f8fafc 100%);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.ramp.page-home .home-odoo-fe-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .ramp.page-home .home-odoo-fe-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.ramp.page-home .home-odoo-fe .section-title {
  text-align: left;
  margin-top: 0;
}

.ramp.page-home .home-odoo-fe .pillars-lede {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.ramp.page-home .home-odoo-fe-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}

.ramp.page-home .home-odoo-fe-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Ecosistema ── */
.ramp.page-home .home-ecosystem {
  background: #fff;
}

.ramp.page-home .home-eco-grid {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ramp.page-home .home-eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ramp.page-home .home-eco-card {
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.ramp.page-home .home-eco-card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.ramp.page-home .home-eco-card-link:hover {
  background: #fafbfc;
}

.ramp.page-home .home-eco-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ramp.page-home .home-eco-card-body {
  min-width: 0;
  flex: 1;
}

.ramp.page-home .home-eco-card-name {
  margin: 0 0 0.45rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ramp.page-home .home-eco-card-name--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.ramp.page-home .home-eco-brand-prefix {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2563eb;
}

.ramp.page-home .home-eco-brand-prefix--nodeone {
  color: #2563eb;
}

.ramp.page-home .home-eco-brand-prefix--eclass {
  color: #2563eb;
}

.ramp.page-home .home-eco-brand-prefix--epos {
  color: #ea580c;
}

.ramp.page-home .home-eco-brand-prefix--epayroll {
  color: #0d9488;
}

.ramp.page-home .home-eco-brand-prefix--econverso {
  color: #2563eb;
}

.ramp.page-home .home-eco-card-name--stack .home-eco-brand-prefix {
  font-size: 0.875rem;
  line-height: 1.1;
}

.ramp.page-home .home-eco-brand-suffix {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.ramp.page-home .home-eco-card-name:not(.home-eco-card-name--stack) .home-eco-brand-suffix {
  font-size: 1.25rem;
}

.ramp.page-home .home-eco-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

/* ── Casos (carrusel clientes) ── */
.ramp.page-home .home-cases {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.ramp.page-home .home-cases-carousel {
  max-width: 100%;
  margin: 0 auto;
}

.ramp.page-home .home-cases-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.ramp.page-home .home-cases-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ramp.page-home .home-cases-track--loop {
  animation: home-cases-marquee 70s linear infinite;
}

.ramp.page-home .home-cases-carousel:hover .home-cases-track--loop {
  animation-play-state: paused;
}

.ramp.page-home .home-cases-set {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

@keyframes home-cases-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ramp.page-home .home-case-card {
  flex: 0 0 300px;
  width: 300px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .ramp.page-home .home-case-card {
    flex-basis: 320px;
    width: 320px;
  }
}

.ramp.page-home .home-case-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}

.ramp.page-home .home-case-body {
  min-width: 0;
  flex: 1;
}

.ramp.page-home .home-case-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #102a43;
  line-height: 1.2;
}

.ramp.page-home .home-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.ramp.page-home .home-case-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

@media (prefers-reduced-motion: reduce) {
  .ramp.page-home .home-cases-track--loop {
    animation: none;
  }

  .ramp.page-home .home-cases-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
  }

  .ramp.page-home .home-cases-viewport::-webkit-scrollbar {
    display: none;
  }
}

/* ── Metodología ── */
.ramp.page-home .home-method {
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.ramp.page-home .home-method-timeline {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ramp.page-home .home-method-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  position: relative;
}

.ramp.page-home .home-method-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.ramp.page-home .home-method-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.ramp.page-home .home-method-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #102a43;
}

.ramp.page-home .home-method-body p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

/* ── CTA final ── */
.ramp.page-home #cta.home-cta-final {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #102a43 0%, #0d2238 100%);
  color: #fff;
}

.ramp.page-home #cta.home-cta-final h2,
.ramp.page-home #cta.home-cta-final p {
  color: #fff;
}

.ramp.page-home #cta.home-cta-final p {
  opacity: 0.92;
}
