/* ░░ AppSmart — custom styles ░░ */

html { scroll-behavior: smooth; }
body { background: #0a0a0a; }

/* grid background */
.grid-bg {
  background-image:
    linear-gradient(to right, #ffffff 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* reveal on scroll (directional) */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease;
  will-change: opacity, transform;
}
[data-reveal].reveal-up    { transform: translateY(40px); }
[data-reveal].reveal-down  { transform: translateY(-40px); }
[data-reveal].reveal-left  { transform: translateX(-40px); }
[data-reveal].reveal-right { transform: translateX(40px); }
[data-reveal].reveal-zoom  { transform: scale(.92); filter: blur(6px); }
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* marquee */
.marquee {
  animation: scroll 38s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* service card */
.service-card {
  position: relative;
  transition: background .4s ease;
}
.service-card:hover { background: #131313; }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  font-size: 22px;
  color: #c6ff3d;
  background: #0d0d0d;
}

/* steps */
.step {
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 28px 24px;
  background: #0a0a0a;
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover { transform: translateY(-4px); border-color: #c6ff3d44; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: #c6ff3d;
  letter-spacing: .12em;
}

/* work card */
.work-card { display: block; }
.work-img {
  position: relative;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff10;
  letter-spacing: .04em;
  overflow: hidden;
  transition: transform .5s ease, border-color .3s ease;
}
.work-card:hover .work-img {
  transform: scale(1.015);
  border-color: #c6ff3d66;
}

/* photo preview variant (real screenshot) */
.work-img-photo {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.work-img-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,.65) 100%);
  pointer-events: none;
}

/* demo badge (top-left, always visible) */
.demo-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(8px);
  border: 1px solid #c6ff3d44;
  border-radius: 999px;
  color: #c6ff3d;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #c6ff3d;
  box-shadow: 0 0 10px #c6ff3d;
  animation: tag-pulse 1.4s ease-in-out infinite;
}

/* "próximamente" variant */
.demo-badge.soon {
  border-color: #2a2a2a;
  color: #8a8a8a;
}
.demo-badge.soon span {
  width: 6px; height: 6px; border-radius: 999px;
  background: #8a8a8a;
}

/* "caso de estudio" variant (no demo) */
.demo-badge.case {
  border-color: #c6ff3d44;
  color: #c6ff3d;
}
.demo-badge.case span {
  width: 6px; height: 6px; border-radius: 999px;
  background: #c6ff3d;
  box-shadow: 0 0 8px #c6ff3d;
}

/* demo CTA (centered, shows on hover) */
.demo-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(4px);
  color: #c6ff3d;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  opacity: 0;
  transition: opacity .35s ease;
}
.demo-cta svg { transition: transform .35s ease; }
.work-card:hover .demo-cta { opacity: 1; }
.work-card:hover .demo-cta svg { transform: translate(3px, -3px); }

/* chips */
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  font-size: 14px;
  color: #d4d4d4;
  background: #0d0d0d;
  transition: all .25s ease;
}
.chip:hover {
  border-color: #c6ff3d;
  color: #c6ff3d;
  transform: translateY(-2px);
}

/* big WhatsApp CTA */
.cta-whatsapp {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 22px;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  box-shadow: 0 25px 50px -20px #25D36680;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.cta-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, #ffffff22, transparent 50%);
  pointer-events: none;
}
.cta-whatsapp:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 30px 60px -20px #25D366aa;
}
.cta-whatsapp svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px #ffffff44);
}
.cta-whatsapp > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cta-whatsapp-label {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.cta-whatsapp-sub {
  font-size: 13px;
  opacity: .9;
  margin-top: 3px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}
.cta-arrow {
  font-size: 24px;
  transition: transform .3s ease;
}
.cta-whatsapp:hover .cta-arrow { transform: translateX(5px); }

/* form */
.form-input {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  width: 100%;
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-input:focus {
  border-color: #c6ff3d;
  box-shadow: 0 0 0 4px #c6ff3d22;
}
.form-input::placeholder { color: #6a6a6a; }

/* section tag — replaces the // comment style */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  margin-bottom: 18px;
  border: 1px solid #1f1f1f;
  background: linear-gradient(135deg, #0d0d0d, #131313);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, #c6ff3d 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  background-size: 200% 100%;
  animation: tag-shine 3.5s linear infinite;
  opacity: .9;
  pointer-events: none;
}
@keyframes tag-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.tag-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: #c6ff3d;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 0 14px #c6ff3d80;
}
.tag-dot {
  width: 8px; height: 8px;
  background: #c6ff3d;
  border-radius: 999px;
  box-shadow: 0 0 14px #c6ff3d;
  animation: tag-pulse 1.6s ease-in-out infinite;
  margin-left: 4px;
}
@keyframes tag-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}
.tag-line {
  width: 22px;
  height: 1px;
  background: linear-gradient(to right, #c6ff3d, transparent);
}
.tag-label {
  font-weight: 600;
}

/* benefit cards */
.benefit {
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 22px;
  background: #0a0a0a;
  transition: border-color .3s ease, transform .3s ease;
}
.benefit:hover { border-color: #c6ff3d55; transform: translateY(-3px); }
.benefit h3 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin-top: 10px; }
.benefit p  { color: #8a8a8a; font-size: 13.5px; margin-top: 4px; }
.benefit-ico {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #c6ff3d; color: #0a0a0a; border-radius: 10px;
  font-weight: 700;
}

/* testimonial */
.testimonial {
  border: 1px solid #1f1f1f;
  border-radius: 22px;
  padding: 28px;
  background: #0d0d0d;
  transition: border-color .3s ease, transform .3s ease;
}
.testimonial:hover { border-color: #c6ff3d55; transform: translateY(-3px); }
.avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg,#c6ff3d,#9aff00);
  color: #0a0a0a;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
}

/* plans */
.plan {
  position: relative;
  border: 1px solid #1f1f1f;
  border-radius: 24px;
  padding: 32px;
  background: #0a0a0a;
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.plan:hover { border-color: #c6ff3d55; transform: translateY(-4px); }
.plan.featured {
  background: #c6ff3d;
  color: #0a0a0a;
  border-color: #c6ff3d;
  box-shadow: 0 30px 60px -20px #c6ff3d55;
}
.plan.ring-anual {
  border-color: #c6ff3d88;
  box-shadow: 0 0 0 1px #c6ff3d33 inset, 0 20px 50px -25px #c6ff3d55;
}
.plan-custom {
  background: linear-gradient(160deg, #0d0d0d 0%, #0a0a0a 60%, #141414 100%);
  border-color: #2a2a2a;
}
.plan-custom .text-neon { text-shadow: 0 0 12px #c6ff3d88; }
.plan-btn, .plan-btn-dark {
  margin-top: auto;
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: all .25s ease;
  margin-top: 28px;
}
.plan-btn {
  border: 1px solid #2a2a2a;
  color: #fff;
}
.plan-btn:hover { background: #c6ff3d; color: #0a0a0a; border-color: #c6ff3d; }
.plan-btn-dark {
  background: #0a0a0a;
  color: #c6ff3d;
}
.plan-btn-dark:hover { background: #1a1a1a; }

/* faq */
.faq {
  padding: 22px 4px;
  cursor: pointer;
}
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: #c6ff3d;
  font-size: 26px;
  font-weight: 300;
  transition: transform .3s ease;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  margin-top: 14px;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-list {
  margin-top: 14px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-list li {
  position: relative;
  padding: 14px 18px 14px 22px;
  border: 1px solid #1f1f1f;
  background: #0d0d0d;
  border-radius: 12px;
  color: #b8b8b8;
  font-size: 14.5px;
  line-height: 1.6;
}
.faq-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: #c6ff3d;
  border-radius: 0 4px 4px 0;
}

/* ░░ MOBILE OPTIMIZATIONS ░░ */

/* tablets */
@media (max-width: 1024px) {
  .marquee { animation-duration: 28s; }
}

/* mobile */
@media (max-width: 768px) {
  /* tighter section padding */
  section.py-28 { padding-top: 4rem; padding-bottom: 4rem; }

  /* hero adjustments */
  section.relative.pt-40 { padding-top: 7rem; padding-bottom: 4rem; }

  /* smaller blobs on mobile */
  section .blur-3xl { filter: blur(40px); }

  /* marquee faster */
  .marquee { animation-duration: 22s; font-size: 1.4rem !important; gap: 3rem !important; }

  /* big CTA whatsapp shrink */
  .cta-whatsapp { padding: 18px 20px; gap: 14px; border-radius: 18px; }
  .cta-whatsapp svg { width: 22px; height: 22px; }
  .cta-whatsapp-label { font-size: 16px; }
  .cta-whatsapp-sub   { font-size: 12px; }
  .cta-arrow { font-size: 20px; }

  /* plan cards */
  .plan { padding: 26px 22px; border-radius: 20px; }

  /* benefit + testimonial smaller */
  .benefit, .testimonial, .step { padding: 20px; border-radius: 16px; }

  /* faq summary */
  .faq summary { font-size: 16px; }
  .faq p, .faq-list li { font-size: 14px; }

  /* section tag */
  .section-tag { font-size: 11px; padding: 6px 12px 6px 8px; gap: 10px; }
  .tag-num { font-size: 11px; padding: 2px 7px; }

  /* work card preview height */
  .work-img { aspect-ratio: 4/3; }

  /* floating WhatsApp button — smaller, just icon */
  body > a[href*="wa.me"].fixed { padding: 12px; bottom: 18px; right: 18px; }

  /* grid bg lighter */
  .grid-bg { background-size: 36px 36px; }

  /* form chips wrap better */
  .chip { font-size: 13px; padding: 8px 14px; }

  /* nav logo smaller */
  header .h-16 { height: 3.5rem; }

  /* big neon title on mobile */
  h1.font-display { font-size: 2.75rem !important; line-height: 1; }
}

/* small phones */
@media (max-width: 420px) {
  section.py-28 { padding-top: 3rem; padding-bottom: 3rem; }
  h1.font-display { font-size: 2.25rem !important; }
  .font-display.text-4xl { font-size: 1.75rem !important; }
  .plan { padding: 22px 18px; }
  .work-img { font-size: 0 !important; }
  .work-img > span:first-child { display: none; } /* hide huge text labels */
  .cta-whatsapp-sub { display: none; }
}

/* prevent horizontal scroll caused by parallax / blobs */
html, body { overflow-x: hidden; }

/* safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  body > a[href*="wa.me"].fixed {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right:  calc(18px + env(safe-area-inset-right));
  }
}

/* tap highlight removal for cleaner mobile UX */
a, button { -webkit-tap-highlight-color: transparent; }

/* respect users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
