/* === VARIABLES === */
:root {
  --color-base:     #FFFFFF;
  --color-surface:  #F4FBF7;
  --color-elevated: #EDFAF3;
  --color-border:   #BBE8CC;

  --color-accent:       #22C55E;
  --color-accent-hover: #16A34A;

  --color-text-primary: #0A1A0F;
  --color-text-muted:   #3D6B4F;
  --color-text-dim:     #6B9E7E;

  --font: 'Outfit', sans-serif;
  --radius: 14px;
  --container: 1120px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--color-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--color-accent); }

.section-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-elevated);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: 12px;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.nav__logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 40px;
}
.nav__logo-zyron { color: var(--color-text-primary); }
.nav__logo-dev   { color: var(--color-accent); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-right: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-text-primary); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  padding: 80px 0 96px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__headline {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.hero__sub {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero__microtrust {
  font-size: 13px;
  color: var(--color-text-dim);
}

.hero__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === PHONE MOCKUP === */
.phone-mockup {
  width: 340px;
  border-radius: 46px;
  background: #18181b;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 24px 56px rgba(0,0,0,0.22),
    0 8px 20px rgba(0,0,0,0.12);
  position: relative;
}

.phone-mockup::before { display: none; } /* reemplazado por isla dinámica */

.phone-mockup__frame {
  border-radius: 36px;
  overflow: hidden;
  background: #ECE5DD;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* === PHONE PHYSICAL DETAILS === */

/* Status bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  background: #000;
  padding: 0 14px;
  flex-shrink: 0;
}

.phone-status-bar__time {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.2px;
}

.phone-status-bar__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dynamic island / notch */
.phone-notch {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Side buttons */
.phone-btn {
  position: absolute;
  width: 3px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 2px;
}

.phone-btn--power {
  right: -3px;
  top: 40%;
  transform: translateY(-50%);
}

.phone-btn--vol-up {
  left: -3px;
  top: 23%;
}

.phone-btn--vol-down {
  left: -3px;
  top: calc(23% + 50px);
}

/* Home indicator */
.phone-home-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  flex-shrink: 0;
}

.phone-home-indicator::before {
  content: '';
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

/* === CHAT HEADER === */
.chat-header {
  background: var(--color-accent);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.chat-header__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-header__name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.chat-header__status {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

/* === CHAT MESSAGES === */
.chat-messages {
  flex: 1;
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

/* === BUBBLES === */
.bubble {
  max-width: 82%;
  padding: 8px 11px 6px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--color-text-primary);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  word-break: break-word;
}

.bubble.visible {
  animation: bubbleIn 0.3s ease forwards;
}

.bubble--user {
  background: #FFFFFF;
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bubble--bot {
  background: #DCF8C6;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

.bubble__time {
  display: block;
  font-size: 10px;
  color: var(--color-text-dim);
  text-align: right;
  margin-top: 3px;
  line-height: 1;
}

/* === TYPING INDICATOR === */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  background: #DCF8C6;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.typing-indicator.visible { opacity: 1; }

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.1s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 55%, 100% { transform: translateY(0); opacity: 0.45; }
  27%            { transform: translateY(-5px); opacity: 1; }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === FEATURES === */
.features {
  padding: 96px 0;
  background: var(--color-base);
}

.features .section-title { margin-bottom: 8px; }

.features__subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.1);
}

.feature-card__icon { margin-bottom: 18px; }

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.feature-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.feature-service {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-dim);
}
.feature-service svg { flex-shrink: 0; }

/* === TYPEWRITER === */
.typewriter-word {
  color: var(--color-accent);
}

.typewriter-cursor {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 300;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* === CHAT DEMO === */
.chat-demo {
  background: var(--color-surface);
  padding: 96px 0;
}

.chat-demo__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.chat-demo__copy {
  flex: 1;
  min-width: 0;
}

.chat-demo__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.chat-demo__headline {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.chat-demo__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.chat-demo__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-demo__list li {
  font-size: 15px;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
}

.chat-demo__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.chat-demo__phone-wrap {
  flex-shrink: 0;
}

.chat-messages--static {
  overflow: hidden;
}

.chat-messages--static .bubble {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Menu options inside bot bubble */
.menu-options {
  list-style: none;
  margin: 8px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-options li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--color-text-primary);
}

.menu-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Product pills */
.product-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.product-pill {
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s;
}

.product-pill--active {
  border-color: var(--color-accent);
  background: rgba(34, 197, 94, 0.04);
}

.product-pill__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.product-pill__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.product-pill__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 96px 0;
  background: var(--color-surface);
}

.how-it-works .section-title { margin-bottom: 56px; }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 20px;
}

.step__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.step__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.step__connector {
  flex-shrink: 0;
  width: 72px;
  height: 2px;
  background: var(--color-border);
  margin-top: 28px;
  position: relative;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-border);
  border-top: 2px solid var(--color-border);
  transform: rotate(45deg);
}

/* === PRICING === */
.pricing {
  padding: 96px 0;
  background: var(--color-base);
}

.pricing .section-title { margin-bottom: 8px; }

.pricing__subtitle {
  text-align: center;
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 48px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.plan {
  background: var(--color-base);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.plan--featured {
  border: 2px solid var(--color-accent);
}
.plan--featured:hover {
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.15);
}

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.plan__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan__price-old {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dim);
  text-decoration: line-through;
}

.plan__price-current {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.plan__price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan__features li {
  font-size: 15px;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.plan__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
}

.plan__price-custom {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.plan__price-sub {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.btn--ghost-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--ghost-accent:hover {
  background: var(--color-elevated);
  transform: translateY(-2px);
}

.plan__cta {
  width: 100%;
  justify-content: center;
}

.pricing__note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
}

/* === CTA FINAL === */
.cta-final {
  background: var(--color-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 96px 0;
}

.cta-final__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-final__headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.cta-final__sub {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* === FOOTER === */
.footer {
  padding: 24px 0;
  background: var(--color-base);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__location {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-right: auto;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--color-text-primary); }

.footer__copy {
  font-size: 14px;
  color: var(--color-text-dim);
}

/* === WHATSAPP FLOATING BUTTON === */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
}

.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wa-float:hover .wa-float__tooltip {
  opacity: 1;
}

/* === SCROLL REVEAL === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.scroll-reveal {
  transform: translateY(20px);
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

/* === RESPONSIVE — tablet === */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero__sub { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .hero__microtrust { text-align: center; }
  .hero__phone-wrap { justify-content: center; }

  .chat-demo__inner {
    flex-direction: column-reverse;
    gap: 40px;
    text-align: center;
  }
  .chat-demo__list { align-items: center; }
  .chat-demo__list li { text-align: left; }

  /* features__grid keeps 2-col at tablet */

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step { max-width: 360px; padding: 0 0 0; }
  .step__connector {
    width: 2px;
    height: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .step__connector::after {
    right: -4px;
    top: auto;
    bottom: -6px;
    border-right: 2px solid var(--color-border);
    border-top: none;
    border-bottom: 2px solid var(--color-border);
    transform: rotate(135deg);
  }

  /* pricing__grid keeps 3-col at tablet */

  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__burger { display: flex; }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-base);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 18px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav--open .nav__links a {
    font-size: 17px;
  }
}

/* === RESPONSIVE — mobile === */
@media (max-width: 600px) {
  .hero { padding: 48px 0 64px; }
  .hero__headline { font-size: 36px; }
  .phone-mockup { width: 100%; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; justify-content: center; max-width: 320px; }

  .section-title { font-size: 28px; }
  .cta-final__headline { font-size: 28px; }
  .cta-final__sub { font-size: 15px; }
  .btn--lg { padding: 14px 28px; font-size: 16px; }

  .features { padding: 64px 0; }
  .features__grid { grid-template-columns: 1fr; }
  .pricing__grid  { grid-template-columns: 1fr; }
  .how-it-works { padding: 64px 0; }
  .pricing { padding: 64px 0; }
  .cta-final { padding: 64px 0; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__location { margin-right: 0; }

  .plan__price-current { font-size: 32px; }
}
