/* ============================================================
   EcosisFlow — Landing Page (tema claro, minimalista)
   ============================================================ */

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

:root {
  --bg:      #F7F9FC;
  --surface: #FFFFFF;
  --border:  #E7ECF3;
  --border2: #EEF2F7;
  --text:    #101828;
  --text2:   #0B1220;
  --muted:   #5B6472;
  --muted2:  #98A2B3;
  --accent:  #0EA5E9;
  --accent2: #0284C7;
  --teal:    #14B8A6;
  --navy:    #0B1220;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.eco-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.eco-nav.scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.04);
}

.navbar-brand-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
}

.eco-nav-link {
  color: #475467;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  transition: color .15s ease;
}
.eco-nav-link:hover { color: var(--accent); }

.eco-nav-cta {
  background: var(--text);
  color: #fff;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.3rem;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.eco-nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(14,165,233,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(15,110,86,.05) 0%, transparent 55%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

/* ── Video del logo animado ──────────────────────────────────── */
.hero-logo-wrap {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(16,24,40,.08);
  padding: 1.25rem;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle,
    rgba(14,165,233,.14) 0%,
    rgba(20,184,166,.08) 45%,
    transparent 72%);
  border-radius: 50%;
  animation: ef-float 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes ef-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(10px,-16px) scale(1.04); }
}

.hero-logo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.hero-logo-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ── Texto Hero ──────────────────────────────────────────────── */
.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  border-radius: 99px;
  background: rgba(14,165,233,.09);
  border: 1px solid rgba(14,165,233,.22);
  color: #0369A1;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: var(--text2);
  line-height: 1.14;
  letter-spacing: -1.2px;
  margin: 0 0 1.1rem;
}

.hero-brand {
  background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 55%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: .8rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 8px 24px rgba(14,165,233,.28);
  display: inline-flex;
  align-items: center;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14,165,233,.36);
  background: var(--accent2);
  color: #fff;
}

.hero-btn-ghost {
  background: var(--surface);
  color: #344054;
  border: 1px solid var(--border);
  padding: .8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
}
.hero-btn-ghost:hover {
  border-color: var(--accent);
  color: #0369A1;
}

/* Pills de productos en hero */
.hero-product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid #E2E8F0;
  color: #475467;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: .15s;
}
.product-pill:hover {
  border-color: var(--pill-color);
  color: var(--text);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Orbes decorativos */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: rgba(14,165,233,.10);
  top: -140px; right: -80px;
  animation: ef-float 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(15,110,86,.08);
  bottom: -100px; left: -60px;
  animation: ef-float 11s ease-in-out infinite reverse;
}
.hero-orb-3 { display: none; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted2);
  font-size: 1.3rem;
  animation: ef-bounce 1.8s ease-in-out infinite;
  z-index: 2;
  transition: opacity .3s;
}
@keyframes ef-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Section commons ─────────────────────────────────────────── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.15rem;
  border-radius: 99px;
  background: rgba(14,165,233,.09);
  border: 1px solid rgba(14,165,233,.22);
  color: #0369A1;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin: 0 0 1rem;
  opacity: 0;
  transform: scale(.85) translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.section-label.visible { opacity: 1; transform: scale(1) translateY(0); }

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text2);
  letter-spacing: -.5px;
  margin: 0 0 .75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Product cards ───────────────────────────────────────────── */
.products-section {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border2);
}

.product-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
  height: 100%;
}
.product-card.visible { opacity: 1; transform: translateY(0); }

.product-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16,24,40,.04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--pc);
  border-radius: 20px 20px 0 0;
}
.product-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%,
    rgba(var(--pr),var(--pg),var(--pb),.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  border-radius: 20px;
  pointer-events: none;
}
.product-card-inner:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--pr),var(--pg),var(--pb),.35);
  box-shadow: 0 24px 50px rgba(var(--pr),var(--pg),var(--pb),.14);
}
.product-card-inner:hover::after { opacity: 1; }

.pc-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.pc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--pr),var(--pg),var(--pb),.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--pc);
  flex-shrink: 0;
}

.pc-badge {
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 99px;
  letter-spacing: .2px;
}

.pc-desc {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 1.1rem;
  line-height: 1.6;
}

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.pc-features li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .87rem;
  color: #344054;
  padding: .3rem 0;
}
.pc-features li i { font-size: .8rem; flex-shrink: 0; }

.pc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.25rem;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: filter .2s, transform .2s;
  text-align: center;
}
.pc-cta:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

/* ── Doble botón de acceso CondFlow ───────────────────────── */
.pc-cta-dual {
  display: flex;
  gap: .5rem;
}
.pc-cta-dual .pc-cta {
  flex: 1;
}

/* ── Precios — tabla comparativa unificada ────────────────────── */
.pricing-section {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border2);
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(16,24,40,.04);
}

.pricing-col {
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border2);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.pricing-col.visible { opacity: 1; transform: translateY(0); }
.pricing-col:last-child { border-right: none; }
.pricing-col:first-child { border-radius: 20px 0 0 20px; }
.pricing-col:last-child { border-radius: 0 20px 20px 0; }

.pricing-col-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .3rem;
}
.pricing-col-head i { font-size: 1.05rem; color: var(--pc); }
.pricing-col-head span {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}

.pricing-col-sub {
  font-size: .82rem;
  color: var(--muted2);
  margin: 0 0 1.5rem;
}

.pricing-row { padding: .75rem 0; border-bottom: 1px dashed var(--border2); }
.pricing-row:last-child { border-bottom: none; }

.pricing-row-name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.pricing-plan-name { font-weight: 500; font-size: .85rem; color: #344054; }
.pricing-row.is-pro .pricing-plan-name { font-weight: 700; }

.pricing-popular-tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--pc);
  background: rgba(var(--pr),var(--pg),var(--pb),.12);
  padding: .15rem .5rem;
  border-radius: 99px;
}

.pricing-row-amount { margin-top: .35rem; }
.pricing-amount { font-weight: 800; font-size: 1.4rem; color: var(--text2); }
.pricing-period { font-weight: 500; font-size: .72rem; opacity: .55; margin-left: 2px; color: var(--text2); }
.pricing-consultar { font-weight: 700; font-size: 1rem; color: var(--muted); }

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.5rem;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .87rem;
  text-decoration: none;
  transition: .2s;
  border: 1.5px solid var(--pc);
  color: var(--pc);
  background: transparent;
  list-style: none;
  cursor: pointer;
}
.pricing-cta:hover { background: var(--pc); color: #fff; }

.pricing-contact {
  position: relative;
  margin-top: 0;
}
.pricing-contact > summary::-webkit-details-marker { display: none; }
.pricing-contact > summary::marker { content: ""; }
.pricing-contact > summary i.bi-chevron-down { transition: transform .2s ease; }
.pricing-contact[open] > summary i.bi-chevron-down { transform: rotate(180deg); }

.pricing-contact-menu {
  margin-top: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  text-align: left;
}
.pricing-contact-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .7rem;
  border-radius: 9px;
  color: #344054;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: background .15s;
}
.pricing-contact-menu a:hover { background: var(--bg); color: #344054; }
.pricing-contact-menu a i { width: 18px; text-align: center; flex-shrink: 0; }
.pricing-contact-menu a i.bi-whatsapp { color: #25D366; }

/* ── Cómo funciona ───────────────────────────────────────────── */
.how-section {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border2);
}

.how-card {
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.how-card.visible { opacity: 1; transform: none; }

.how-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto .85rem;
  box-shadow: 0 8px 20px rgba(14,165,233,.25);
}
.how-icon {
  font-size: 1.4rem;
  color: #CBD5E1;
  margin-bottom: .75rem;
}
.how-card h5 { color: var(--text); font-weight: 700; margin-bottom: .5rem; font-size: 1.05rem; }
.how-card p { color: var(--muted); font-size: .87rem; }

/* ── Soporte ─────────────────────────────────────────────────── */
.support-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border2);
}

.support-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(16,24,40,.05);
}

.support-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.support-body h3 { color: var(--text); font-weight: 700; margin-bottom: .5rem; font-size: 1.2rem; }
.support-body p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }

.support-btn {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.5rem;
  border-radius: 12px;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  color: #0369A1;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}
.support-btn:hover {
  background: rgba(14,165,233,.18);
  color: #0284C7;
}

/* ── Footer ──────────────────────────────────────────────────── */
.eco-footer {
  background: var(--navy);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer-links-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.35);
  margin: 0 0 .75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .85rem;
  padding: .2rem 0;
  transition: color .15s;
}
.footer-link:hover { color: #fff; }

.fl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .5rem;
}

/* Enlace admin — funcional pero invisible a propósito */
.footer-legal-link {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
  transition: color .15s;
}
.footer-legal-link:hover { color: rgba(255,255,255,.75); }

.footer-admin-link {
  width: 10px;
  height: 10px;
  opacity: 0;
  text-decoration: none;
  display: inline-block;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-logo-wrap { width: 220px; height: 220px; }
  .hero-actions { justify-content: center; }
  .hero-product-pills { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-logo { height: 52px; }
  .pricing-col { border-right: none; border-bottom: 1px solid var(--border2); }
  .pricing-col:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .product-card { opacity: 1; transform: none; }
  .how-card     { opacity: 1; transform: none; }
  .pricing-col  { opacity: 1; transform: none; }
  .section-label { opacity: 1; transform: none; }
  .hero-logo-wrap { width: 180px; height: 180px; }
  .support-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }

  /* Contenido centrado dentro de las cards al apilarse en una columna */
  .product-card-inner,
  .pricing-col {
    align-items: center;
    text-align: center;
  }
  .pc-header,
  .pricing-col-head {
    justify-content: center;
  }
  .pc-features li {
    justify-content: center;
  }
  .pricing-row-name-line {
    flex-direction: column;
    gap: .3rem;
  }
  .pricing-contact-menu { text-align: center; }
  .pricing-contact-menu a { justify-content: center; }
  .pricing-col:first-child { border-radius: 20px 20px 0 0; }
  .pricing-col:last-child { border-radius: 0 0 20px 20px; }
}

@media (max-width: 480px) {
  .eco-nav { padding: .65rem 0; }
  .eco-nav-link { display: none; }
  .eco-nav-cta { font-size: .8rem; padding: .5rem 1.05rem; }
  .nav-logo-text { font-size: 1.02rem; }

  .hero-section { padding: 3rem 0 3.5rem; }
  .hero-title { letter-spacing: -0.8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-logo-wrap { width: 150px; height: 150px; padding: .9rem; }

  .products-section,
  .pricing-section,
  .how-section,
  .support-section { padding: 3.25rem 0; }
  .section-header { margin-bottom: 2.25rem !important; }

  .product-card-inner,
  .pricing-col { padding: 1.5rem 1.35rem; }

  .footer-top { gap: 1.25rem; }
}

