/* ============================================================
   Vive Estudio — styles.css
   Archetype: Glassmorphism Modern (04)
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #F7F8F5;
  --glass: rgba(255,255,255,0.45);
  --glass-border: rgba(255,255,255,0.5);
  --accent: #2860F8;
  --accent-2: #35D07F;
  --bg-dark: #101A35;
  --ink: #171A21;
  --ink-soft: #4B5563;
  --line: rgba(23,26,33,0.12);
  --whatsapp: #25D366;

  --ff-heading: 'Jost', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
  --container: 1200px;
  --gutter: 16px;

  scroll-behavior: smooth;
}

/* ---------- @property for mesh gradient ---------- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft), background .3s var(--ease-soft);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  box-shadow: 0 8px 24px rgba(40,96,248,0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--bg-dark);
}
.btn--white:hover {
  box-shadow: 0 8px 24px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 40px; font-size: 1.1rem; }
.btn--sm { padding: 8px 20px; font-size: 0.875rem; }

/* magnetic inner wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}

.nav.is-scrolled {
  background: rgba(247,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.25rem 0;
  transition: color .3s var(--ease-soft);
}
.nav-link:hover { color: var(--accent); }

/* animated underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta { display: none; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-hamburger span { width: 24px; }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-soft), opacity .3s var(--ease-soft);
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-soft), visibility .4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-link {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  color: #fff;
  transition: color .3s var(--ease-soft);
}
.mobile-menu-link:hover { color: var(--accent-2); }

.mobile-menu-cta { margin-top: 16px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--nav-h);
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at var(--mesh-x) var(--mesh-y),
      rgba(40,96,248,0.35), transparent 60%),
    conic-gradient(from var(--mesh-angle),
      rgba(40,96,248,0.2), rgba(53,208,127,0.12), rgba(16,26,53,0.15), rgba(40,96,248,0.2));
  filter: blur(80px) saturate(130%);
  opacity: 0.7;
  animation: meshShift 30s linear infinite;
}

@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 30%; --mesh-y: 40%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 70%; --mesh-y: 60%; }
  100% { --mesh-angle: 360deg; --mesh-x: 30%; --mesh-y: 40%; }
}

.hero-content {
  text-align: center;
  padding: 40px var(--gutter);
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  max-width: 14ch;
  margin: 0 auto 20px;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- GLASS CARDS ---------- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-card {
    background: rgba(255,255,255,0.85);
  }
}

/* ---------- SERVICIOS / PLANS ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(40,96,248,0.12);
}

.plan-name {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.plan-features {
  flex: 1;
  margin-bottom: 20px;
}
.plan-features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.plan-price {
  margin-bottom: 20px;
}
.plan-price-ars {
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  color: var(--ink);
}
.plan-price-usd {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.plans-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- PROCESO / STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-num {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- POR QUÉ NOSOTROS / DIFFS ---------- */
.diffs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.diff {
  text-align: center;
}

.diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(40,96,248,0.08);
  color: var(--accent);
  margin-bottom: 16px;
}

.diff-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.diff p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- PARA QUIÉN / TARGET ---------- */
.target {
  background: var(--bg-dark);
  color: #fff;
}

.target .section-title { color: #fff; }

.target-text {
  text-align: center;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 16px auto 32px;
  font-size: 1.05rem;
}

.target-rubros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rubro-pill {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 40px;
  font-size: 0.9rem;
  color: #fff;
  transition: background .3s var(--ease-soft);
}
.rubro-pill:hover {
  background: rgba(40,96,248,0.15);
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.portfolio-card {
  overflow: hidden;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.portfolio-thumb {
  height: 180px;
  border-radius: 16px 16px 0 0;
  margin: -32px -32px 16px;
}

.portfolio-card--placeholder .portfolio-thumb {
  background: linear-gradient(135deg, rgba(40,96,248,0.08), rgba(53,208,127,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-info { text-align: center; }

.portfolio-rubro {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.portfolio-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CONTACTO ---------- */
.contacto {
  text-align: center;
}

.contacto-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 16px auto 0;
}

.contacto-cta {
  margin: 32px 0 40px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.contacto-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-heading {
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color .3s var(--ease-soft);
}
a.footer-link:hover { color: var(--accent-2); }

.footer-legal {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  70% { transform: translateY(-6px); }
}

.whatsapp-float.is-bouncing {
  animation: whatsappBounce .6s var(--ease-soft);
}

/* ---------- SCROLL REVEALS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet (768+) */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: scale(1.05); z-index: 1; }

  .steps { grid-template-columns: 1fr 1fr; }

  .diffs { grid-template-columns: 1fr 1fr; }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .contacto-info { flex-direction: row; justify-content: center; gap: 32px; }
}

/* Desktop (1024+) */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-hamburger { display: none; }

  .section { padding: 120px 0; }

  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

  .whatsapp-float { bottom: 32px; right: 32px; }
}

/* Reduced motion — gate intrusive animations and reveals */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 90s; }
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cookie-banner { transition: none; }
}

/* ---------- FOOTER LEGAL LINK ---------- */
.footer-legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-link:hover { color: #fff; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 140%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 20px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(16,26,53,0.28);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-banner .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cookie-banner .btn--outline:hover {
  background: rgba(255,255,255,0.1);
}
@media (max-width: 520px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- LEGAL PAGE (privacidad) ---------- */
.legal-main {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  min-height: 70vh;
}
.legal-wrap { max-width: 760px; }
.legal-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-wrap h2 {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
.legal-wrap h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}
.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-wrap ul { padding-left: 22px; margin-bottom: 12px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-wrap strong { color: var(--ink); }
