/* ==========================================================================
   Panda Creativo Studio — Páginas Web (tema tech)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06070D;
  --bg-alt: rgba(10,12,23,0.92);
  --surface: #12162A;
  --surface-2: #171B33;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.22);

  --text: #F4F6FF;
  --muted: #A6ACC9;

  --accent: #4F6BFF;
  --accent-2: #8B5CF6;
  --accent-3: #22D3EE;
  --gradient: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 100%);
  --gradient-glow: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 55%, #22D3EE 100%);

  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 30px -12px rgba(0,0,0,0.45);
  --shadow-strong: 0 24px 60px -18px rgba(0,0,0,0.6);
  --shadow-glow: 0 20px 60px -20px rgba(79,107,255,0.45);
  --ease: cubic-bezier(.16,.84,.44,1);

  --mx: 50;
  --my: 40;
  --sy: 0px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--accent-2); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.text-gradient {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px rgba(139,92,246,0.6); }

.btn-outline {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-3); background: rgba(34,211,238,0.06); transform: translateY(-2px); }

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 22px;
}
.eyebrow-dark {
  background: rgba(139,92,246,0.08);
  border: 1px solid var(--border);
  color: var(--muted);
}

.section-header { max-width: 640px; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,7,13,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo-mark { height: 34px; width: auto; flex-shrink: 0; }
.logo-text { font-family: var(--font-head); font-size: 1rem; }
.logo-text strong { font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.nav-cta) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--text); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gradient);
  transition: right .25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  margin-inline: auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Global animated background layer ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  transform: translate3d(calc((var(--mx) - 50) * 0.5px), calc((var(--my) - 40) * 0.5px + var(--sy)), 0);
  transition: transform .6s var(--ease);
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -180px; left: 6%;
  opacity: 0.45;
  animation: drift1 26s ease-in-out infinite;
}
.blob-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  top: 60%; right: 2%;
  opacity: 0.35;
  animation: drift2 32s ease-in-out infinite;
}
.blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  bottom: -180px; left: 36%;
  opacity: 0.25;
  animation: drift3 22s ease-in-out infinite;
}
@keyframes drift1 { 0%, 100% { translate: 0 0; } 50% { translate: 50px 35px; } }
@keyframes drift2 { 0%, 100% { translate: 0 0; } 50% { translate: -40px -30px; } }
@keyframes drift3 { 0%, 100% { translate: 0 0; } 50% { translate: 30px -40px; } }

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; transition: none; }
}

/* ---------- Hero / CTA final ---------- */
.hero, .cta-final {
  position: relative;
  color: var(--text);
}
.hero { padding: 96px 0 110px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 7px; }
.i-check { width: 16px; height: 16px; color: var(--accent-3); flex-shrink: 0; }
.i-bolt { width: 16px; height: 16px; color: var(--accent-3); flex-shrink: 0; }

/* Hero visual mockup */
.hero-visual { position: relative; will-change: transform; }
.browser-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  animation: float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .browser-mock, .floating-chip { animation: none !important; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.browser-url {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 999px;
}
.browser-body { padding: 26px; }
.mock-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.mock-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--gradient); }
.mock-nav span:not(.mock-logo) { width: 40px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.mock-nav span:last-child { margin-left: auto; width: 60px; background: var(--accent-3); opacity: 0.8; }

.mock-hero { margin-bottom: 30px; }
.mock-line { height: 14px; border-radius: 4px; background: rgba(255,255,255,0.14); margin-bottom: 10px; }
.mock-line.w-60 { width: 78%; height: 20px; }
.mock-line.w-40 { width: 55%; background: rgba(255,255,255,0.08); }
.mock-btn { width: 120px; height: 30px; border-radius: 999px; background: var(--gradient); margin-top: 16px; }

.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }

.floating-chip {
  position: absolute;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-strong);
}
.chip-1 { top: -18px; right: 10%; animation: float 6s ease-in-out infinite; animation-delay: .3s; }
.chip-2 { bottom: 10%; left: -24px; animation: float 6s ease-in-out infinite; animation-delay: 1s; }

/* ---------- Badges strip ---------- */
.badges-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 30px 0; }
.badges-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}
.badge-ico { font-size: 1.1rem; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.process-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.process-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.feature-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }

.project-thumb {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--surface-2);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-info { padding: 22px; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-3);
  margin-bottom: 10px;
}
.project-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-info p { color: var(--muted); font-size: 0.92rem; }

.project-cta { text-align: center; margin-top: 44px; color: var(--muted); }
.project-cta a { color: var(--accent-3); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.price-featured {
  background: var(--surface-2);
  border: 1.5px solid var(--accent-2);
  box-shadow: 0 30px 70px -22px rgba(139,92,246,0.5);
  transform: scale(1.03);
}
.price-featured:hover { transform: scale(1.03) translateY(-6px); }

.price-ribbon {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.price-desc { color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 26px; }
.price-from { font-size: 0.85rem; color: var(--muted); }
.price-old {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent-3);
}
.price-amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }

.price-features { flex: 1; margin-bottom: 28px; }
.price-features li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-weight: 700;
}
.price-features li.feature-express {
  color: var(--accent-3);
  font-weight: 600;
}
.price-features li.feature-express::before {
  content: "⚡";
}

.price-note {
  text-align: center;
  margin-top: 44px;
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.stars {
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1;
}
.stars-track { color: var(--border-strong); }
.stars-fill {
  position: absolute;
  top: 0; left: 0;
  width: calc(var(--rating) * 20%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent-3);
}
.testimonial-card blockquote { font-size: 1rem; margin-bottom: 20px; color: var(--text); }
.testimonial-card figcaption { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .2s var(--ease); }
.faq-item.open { border-color: var(--border-strong); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); color: var(--muted); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--accent-3); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  overflow: hidden;
  min-height: 0;
  color: var(--muted);
  padding: 0 24px;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer p { padding: 0 24px 22px; }

/* ---------- CTA final ---------- */
.cta-final { padding: 110px 0; text-align: center; }
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 640px; margin: 0 auto 16px; }
.cta-final p { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(6,7,13,0.94); color: var(--muted); padding: 70px 0 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { color: var(--text); margin-bottom: 16px; }
.footer-tagline { font-size: 0.92rem; max-width: 260px; margin-bottom: 22px; }

.footer-col h4 { color: var(--text); font-size: 0.85rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 0.9rem; }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-static { opacity: 0.75; }

.footer-bottom { padding: 22px 0; font-size: 0.82rem; opacity: 0.7; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: rgba(6,7,13,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a:not(.nav-cta) { font-size: 1.05rem; }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }

  .process-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .price-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-6px); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .cta-final { padding: 80px 0; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-actions.center { align-items: center; }

  .process-grid, .feature-grid,
  .project-grid, .price-grid, .testimonial-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; gap: 10px; }
}
