/* =======================================================================
   WAYA AGENCY USA — styles.css  (Premium Redesign)
   Dark · Cinematic · Electric Blue
   =======================================================================

   TABLE OF CONTENTS
   1.  Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography Scale
   4.  Reusable Utilities (.container, .section-header, .highlight)
   5.  Buttons
   6.  Scroll-Reveal Animation
   7.  Navigation Bar
   8.  Hero Section
   9.  Logo / Marquee Bar
   10. Services Section
   11. Pricing Section
   12. Portfolio Section
   13. About Section
   14. Contact Section
   15. Footer
   16. Scrollbar
   17. Responsive — Tablet  (≤ 1024px)
   18. Responsive — Mobile  (≤ 768px)
   19. Responsive — Small   (≤ 480px)
   ======================================================================= */


/* -----------------------------------------------------------------------
   1. CUSTOM PROPERTIES
   Think of these as the "design settings" for the whole site.
   Change a value here and it updates everywhere automatically.
   ----------------------------------------------------------------------- */
:root {
  /* Colour palette */
  --clr-black:       #000000;
  --clr-bg:          #050508;        /* Very deep, near-black base */
  --clr-bg-2:        #0c0c12;        /* Slightly lighter — section alternation */
  --clr-bg-3:        #13131c;        /* Card backgrounds */
  --clr-bg-4:        #1c1c28;        /* Card hover / borders */
  --clr-blue:        #2979ff;        /* Electric blue — primary accent */
  --clr-blue-bright: #5b9cff;        /* Lighter blue for text glows */
  --clr-blue-dim:    rgba(41,121,255,.18);
  --clr-blue-glow:   rgba(41,121,255,.35);
  --clr-blue-dark:   #1756d4;
  --clr-white:       #ffffff;
  --clr-off-white:   #e8eaf0;        /* Slightly warm white for body text */
  --clr-grey:        #8a8fa8;        /* Muted text */
  --clr-grey-dark:   #40424f;        /* Disabled / placeholder */
  --clr-border:      rgba(255,255,255,.07);

  /* Typography */
  --font-heading: 'Syne', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:   120px;
  --section-pad-m:  72px;

  /* Shapes */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  28px;

  /* Motion */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-out:    cubic-bezier(0, 0, .2, 1);
  --dur:         .3s;
  --dur-slow:    .6s;

  /* Shadows / Glows */
  --glow-sm:   0 0 16px rgba(41,121,255,.25);
  --glow-md:   0 0 40px rgba(41,121,255,.30);
  --glow-lg:   0 0 80px rgba(41,121,255,.20);
  --shadow-card: 0 8px 40px rgba(0,0,0,.55);

  /* Layout */
  --max-w: 1200px;
}


/* -----------------------------------------------------------------------
   2. RESET & BASE
   Wipes out inconsistent browser defaults so we start from zero.
   ----------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;  /* Sharper text on Mac/Chrome */
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-off-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
img   { max-width: 100%; display: block; }
button { font-family: inherit; }
blockquote { font-style: italic; }


/* -----------------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   Headings use Syne (strong, editorial). Body uses Inter (clean, readable).
   clamp(MIN, PREFERRED, MAX) makes type scale with the viewport.
   ----------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-white);
}


/* -----------------------------------------------------------------------
   4. REUSABLE UTILITIES
   ----------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;              /* Same as: margin-left: auto; margin-right: auto */
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 14px;
  /* Subtle pill background */
  background: var(--clr-blue-dim);
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(41,121,255,.22);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--clr-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-grey);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.75;
}

.highlight {
  color: var(--clr-blue);
  /* Subtle text-shadow glow on the blue words */
  text-shadow: 0 0 30px rgba(41,121,255,.45);
}


/* -----------------------------------------------------------------------
   5. BUTTONS
   Three variants:
   • btn-primary  — solid electric-blue fill
   • btn-ghost    — transparent with white border
   • btn-outline  — alias of ghost (kept for compatibility)
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Shimmer sweep on hover — pure CSS, no JS */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.10) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateX(100%); }

/* Primary — solid fill */
.btn-primary {
  background: var(--clr-blue);
  border-color: var(--clr-blue);
  color: var(--clr-white);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--clr-blue-dark);
  border-color: var(--clr-blue-dark);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

/* Ghost / Outline — transparent */
.btn-ghost,
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.30);
  color: var(--clr-white);
}
.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 9px 20px; font-size: .80rem; }


/* -----------------------------------------------------------------------
   6. SCROLL-REVEAL ANIMATION
   Elements with class="reveal" start invisible and slide up.
   JavaScript (IntersectionObserver) adds .visible when they enter the screen.
   ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in a grid — each card delays slightly after the previous */
.services-grid  .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid  .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid  .reveal:nth-child(4) { transition-delay: .08s; }
.services-grid  .reveal:nth-child(5) { transition-delay: .16s; }
.services-grid  .reveal:nth-child(6) { transition-delay: .24s; }
.pricing-grid   .reveal:nth-child(2) { transition-delay: .10s; }
.pricing-grid   .reveal:nth-child(3) { transition-delay: .20s; }
.portfolio-grid .reveal:nth-child(2) { transition-delay: .07s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: .14s; }
.portfolio-grid .reveal:nth-child(4) { transition-delay: .07s; }
.portfolio-grid .reveal:nth-child(5) { transition-delay: .14s; }
.portfolio-grid .reveal:nth-child(6) { transition-delay: .21s; }


/* -----------------------------------------------------------------------
   7. NAVIGATION BAR
   Fixed at top. Transparent when at the top of page,
   frosted-glass when scrolled (JavaScript adds .scrolled class).
   ----------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;     /* fallback */
  left: 0;    /* fallback */
  right: 0;   /* fallback */
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(5, 5, 8, .88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--clr-border);
}

.nav-container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo { display: flex; align-items: baseline; gap: 1px; }
.logo-waya {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: .04em;
}
.logo-agency {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-blue);
  letter-spacing: .04em;
}

/* Desktop menu */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-grey);
  transition: color var(--dur) var(--ease);
  position: relative;
}
/* Animated underline on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--clr-blue);
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { color: var(--clr-white); }
.nav-link:hover::after { width: 100%; }

/* CTA button in nav */
.nav-cta {
  background: var(--clr-blue) !important;
  color: var(--clr-white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--clr-blue);
  transition: all var(--dur) var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: transparent !important;
  color: var(--clr-blue) !important;
  box-shadow: var(--glow-sm);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* -----------------------------------------------------------------------
   8. HERO SECTION
   Full-viewport. Layered decorative backgrounds create depth.
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 5% 100px;
  overflow: hidden;
}

/* --- Background layer stack --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Layer 1: noise texture — adds film-grain feel */
.hero-bg__noise {
  position: absolute;
  inset: 0;
  /* CSS-generated noise via repeating radial gradients */
  background-image:
    radial-gradient(ellipse 1px 1px at 20% 30%, rgba(255,255,255,.03) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 70% 60%, rgba(255,255,255,.025) 0%, transparent 100%),
    radial-gradient(ellipse 1px 1px at 50% 80%, rgba(255,255,255,.02) 0%, transparent 100%);
  opacity: .8;
}

/* Layer 2: big radial blue glow top-right */
.hero-bg__radial {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 75vw;
  height: 90vh;
  background: radial-gradient(
    ellipse 60% 60% at 60% 40%,
    rgba(41,121,255,.22) 0%,
    rgba(41,121,255,.06) 40%,
    transparent 70%
  );
  animation: heroGlowPulse 7s ease-in-out infinite alternate;
}

/* Layer 3: fine dot-grid */
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(41,121,255,.15) 1px, transparent 1px);
  background-size: 44px 44px;
  /* Mask fades grid at edges */
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 65% 50%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 65% 50%, black 30%, transparent 75%);
}

/* Layer 4: three diagonal scan lines */
.hero-bg__lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, transparent 40%, rgba(41,121,255,.04) 50%, transparent 60%),
    linear-gradient(104deg, transparent 60%, rgba(41,121,255,.03) 70%, transparent 80%);
}

@keyframes heroGlowPulse {
  0%   { opacity: .8; transform: scale(1) translateX(0); }
  100% { opacity: 1;  transform: scale(1.06) translateX(2%); }
}

/* --- Geometric floating shapes --- */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Large ring — top right */
.shape--ring {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(41,121,255,.18);
  box-shadow: inset 0 0 60px rgba(41,121,255,.07),
              0 0 60px rgba(41,121,255,.07);
  animation: spinSlow 30s linear infinite;
}
/* Inner ring */
.shape--ring::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(41,121,255,.10);
}

/* Small dot-grid square */
.shape--dot-grid {
  position: absolute;
  bottom: 12%;
  right: 18%;
  width: 160px;
  height: 160px;
  background-image: radial-gradient(circle, rgba(41,121,255,.35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .55;
  animation: floatY 6s ease-in-out infinite alternate;
}

/* Horizontal accent bar */
.shape--bar {
  position: absolute;
  top: 38%;
  right: 2%;
  width: 3px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--clr-blue), transparent);
  opacity: .4;
  animation: floatY 8s ease-in-out infinite alternate-reverse;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-20px); }
}

/* --- Hero content --- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(41,121,255,.10);
  border: 1px solid rgba(41,121,255,.25);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--clr-blue-bright);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-badge__dot {
  width: 7px;
  height: 7px;
  background: var(--clr-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-blue);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Main headline */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--clr-white);
  margin-bottom: 28px;
}
/* Italic "Brands" — regular colour */
.hero-title em {
  font-style: normal;
  color: var(--clr-blue);
  text-shadow: 0 0 40px rgba(41,121,255,.50);
}
/* "Dominate." — outlined / stroke text */
.hero-title__outline {
  -webkit-text-stroke: 2px var(--clr-white);
  color: transparent;
  letter-spacing: -.02em;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--clr-grey);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 44px;
}

/* CTA buttons row */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.stat-plus {
  font-size: 1.4rem;
  color: var(--clr-blue);
}
.stat-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-grey);
  margin-top: 5px;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--clr-border);
  flex-shrink: 0;
}

/* Scroll indicator — bottom-center of hero */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-grey);
  font-size: .70rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .65;
  transition: opacity var(--dur) var(--ease);
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator__line {
  width: 1.5px;
  height: 42px;
  background: linear-gradient(to bottom, var(--clr-blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
.scroll-indicator__text { order: -1; }
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* -----------------------------------------------------------------------
   9. LOGO / MARQUEE BAR
   A scrolling strip of client names. Pure CSS animation, no JS.
   ----------------------------------------------------------------------- */
.logobar {
  background: var(--clr-bg-2);
  border-top:    1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 22px 0;
  overflow: hidden;
}

.logobar__label {
  text-align: center;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-grey-dark);
  margin-bottom: 16px;
}

.logobar__track-wrap {
  overflow: hidden;
  /* Fade edges with a gradient mask */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logobar__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.logobar__track span {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--clr-grey-dark);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.logobar__track span:hover { color: var(--clr-grey); }
.logobar__dot {
  color: var(--clr-blue) !important;
  font-size: .5rem !important;
  opacity: .5;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* -----------------------------------------------------------------------
   10. SERVICES SECTION
   ----------------------------------------------------------------------- */
.services {
  padding: var(--section-pad) 0;
  background: var(--clr-bg);
  position: relative;
}

/* Subtle background glow behind section */
.services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(41,121,255,.08) 0%, transparent 65%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Glass-morphism card */
.service-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px 32px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

/* Glow top-edge line that scales in on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-blue), transparent);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
/* Ambient glow on the card face */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(41,121,255,.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(41,121,255,.30);
  box-shadow: var(--glow-sm), var(--shadow-card);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { opacity: 1; }

/* Icon circle */
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--clr-blue-dim);
  border: 1px solid rgba(41,121,255,.22);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  margin-bottom: 22px;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-card__icon {
  background: rgba(41,121,255,.22);
  box-shadow: var(--glow-sm);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-white);
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: .90rem;
  color: var(--clr-grey);
  line-height: 1.72;
  position: relative;
  z-index: 1;
}

/* Arrow that appears at bottom-right on hover */
.service-card__arrow {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 1.1rem;
  color: var(--clr-blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}


/* -----------------------------------------------------------------------
   11. PRICING SECTION
   ----------------------------------------------------------------------- */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

/* Large ambient glow at bottom of section */
.pricing::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 100%, rgba(41,121,255,.10) 0%, transparent 65%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}

.pricing-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  position: relative;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.pricing-card:hover { transform: translateY(-5px); }

/* Featured card */
.pricing-card.featured {
  background: linear-gradient(160deg, #13131c 0%, #0e1428 100%);
  border-color: rgba(41,121,255,.40);
  box-shadow: var(--glow-md), var(--shadow-card);
  transform: scale(1.045);
  z-index: 1;
}
.pricing-card.featured:hover {
  transform: scale(1.045) translateY(-5px);
  box-shadow: var(--glow-lg), var(--shadow-card);
}

/* "Most Popular" pill */
.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-blue);
  color: var(--clr-white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--glow-sm);
}

.plan-header { margin-bottom: 34px; }

.plan-name {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-grey);
  margin-bottom: 18px;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 8px;
}
.price-dollar {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-blue);
  margin-top: 10px;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--clr-white);
}
.plan-period {
  font-size: .78rem;
  color: var(--clr-grey);
}

.plan-features { margin-bottom: 34px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-off-white);
}
.plan-features li.disabled { color: var(--clr-grey-dark); }
.feat-check { color: var(--clr-blue); font-size: .9rem; flex-shrink: 0; }
.feat-cross  { color: var(--clr-grey-dark); font-size: .9rem; flex-shrink: 0; }


/* -----------------------------------------------------------------------
   12. PORTFOLIO SECTION
   Masonry-inspired: first item spans 2 columns (wide).
   ----------------------------------------------------------------------- */
.portfolio {
  padding: var(--section-pad) 0;
  background: var(--clr-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

/* First item spans 2 columns — creates an asymmetric, editorial look */
.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  overflow: hidden;
}
/* Wide item gets a wider aspect ratio */
.portfolio-item--wide .portfolio-thumb { aspect-ratio: 16 / 9; }

/* Rich gradient backgrounds — stand in for real images */
.portfolio-thumb-1 {
  background:
    linear-gradient(135deg, #061524 0%, #0d2d52 50%, #0a1d38 100%);
}
.portfolio-thumb-2 {
  background:
    linear-gradient(135deg, #120826 0%, #2a0d5c 60%, #160a30 100%);
}
.portfolio-thumb-3 {
  background:
    linear-gradient(135deg, #07200f 0%, #0e4a26 60%, #091a0f 100%);
}
.portfolio-thumb-4 {
  background:
    linear-gradient(135deg, #1e1008 0%, #4a2510 60%, #1a0d06 100%);
}
.portfolio-thumb-5 {
  background:
    linear-gradient(135deg, #080a24 0%, #12154e 60%, #060820 100%);
}
.portfolio-thumb-6 {
  background:
    linear-gradient(135deg, #200808 0%, #4e1212 60%, #1a0606 100%);
}

/* Add subtle texture lines to each thumb */
.portfolio-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Scale-up on hover */
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(41,121,255,.08), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.portfolio-thumb:hover::after { opacity: 1; }
.portfolio-thumb:hover .portfolio-overlay { opacity: 1; transform: none; }

/* Overlay slides up from bottom */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,5,8,.97) 0%,
    rgba(5,5,8,.55) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.portfolio-overlay__inner {
  transform: translateY(10px);
  transition: transform .35s var(--ease);
}
.portfolio-thumb:hover .portfolio-overlay__inner { transform: translateY(0); }

.portfolio-category {
  font-size: .70rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 6px;
}
.portfolio-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--clr-white);
}


/* -----------------------------------------------------------------------
   13. ABOUT SECTION
   ----------------------------------------------------------------------- */
.about {
  padding: var(--section-pad) 0;
  background: var(--clr-bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

/* Left visual */
.about-visual { position: relative; }

.about-card-main {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-blue);
  border-radius: var(--radius-lg);
  padding: 42px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
}
/* Glow behind the card */
.about-card-main::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 60% at 10% 50%, rgba(41,121,255,.07), transparent 70%);
  z-index: -1;
}

.about-card-label {
  font-size: .70rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 18px;
}
.about-card-text {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--clr-off-white);
  font-style: italic;
  quotes: "\201C" "\201D";
}
.about-card-text::before { content: open-quote; }
.about-card-text::after  { content: close-quote; }

/* Metrics row below the quote card */
.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.about-metric {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: border-color var(--dur) var(--ease);
}
.about-metric:hover { border-color: rgba(41,121,255,.30); }
.about-metric__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
  margin-bottom: 6px;
}
.about-metric__lbl {
  font-size: .70rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--clr-grey);
}

/* Right copy */
.about-content { padding-left: 8px; }

.about-text {
  font-size: .95rem;
  color: var(--clr-grey);
  line-height: 1.82;
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0 38px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--clr-off-white);
}
.value-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-blue);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--clr-blue);
}


/* -----------------------------------------------------------------------
   14. CONTACT SECTION
   ----------------------------------------------------------------------- */
.contact {
  padding: var(--section-pad) 0;
  background: var(--clr-bg);
  position: relative;
}

/* Background glow */
.contact::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 100%, rgba(41,121,255,.09) 0%, transparent 65%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
/* Icon wrapper */
.info-icon {
  width: 42px;
  height: 42px;
  background: var(--clr-blue-dim);
  border: 1px solid rgba(41,121,255,.20);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-blue);
  flex-shrink: 0;
}
.info-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-grey);
  margin-bottom: 4px;
}
.info-value {
  font-size: .96rem;
  font-weight: 600;
  color: var(--clr-white);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--clr-grey);
  transition: all var(--dur) var(--ease);
}
.social-btn:hover {
  border-color: var(--clr-blue);
  color: var(--clr-blue);
  background: var(--clr-blue-dim);
  box-shadow: var(--glow-sm);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-grey);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: .93rem;
  outline: none;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(41,121,255,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-grey-dark);
}
.form-group select {
  appearance: none;
  cursor: pointer;
  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8fa8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option {
  background: var(--clr-bg-3);
  color: var(--clr-white);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}


/* -----------------------------------------------------------------------
   15. FOOTER
   ----------------------------------------------------------------------- */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: 80px 0 0;
}

/* Glowing top accent line */
.footer-glow-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(41,121,255,.40) 30%,
    var(--clr-blue) 50%,
    rgba(41,121,255,.40) 70%,
    transparent 100%
  );
  margin-bottom: 64px;
  box-shadow: 0 0 20px rgba(41,121,255,.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-tagline {
  font-size: .88rem;
  color: var(--clr-grey);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 260px;
}

.footer-socials { margin-top: 24px; }

.footer-links h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links ul li a,
.footer-links ul li span {
  font-size: .88rem;
  color: var(--clr-grey);
  transition: color var(--dur) var(--ease);
}
.footer-links ul li a:hover { color: var(--clr-blue); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: var(--clr-grey); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: .82rem;
  color: var(--clr-grey);
  transition: color var(--dur) var(--ease);
}
.footer-bottom-links a:hover { color: var(--clr-white); }


/* -----------------------------------------------------------------------
   16. SCROLLBAR
   ----------------------------------------------------------------------- */
::-webkit-scrollbar         { width: 5px; }
::-webkit-scrollbar-track   { background: var(--clr-bg); }
::-webkit-scrollbar-thumb   { background: var(--clr-bg-4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-blue); }


/* -----------------------------------------------------------------------
   17. RESPONSIVE — TABLET  (≤ 1024px)
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {

  :root { --section-pad: 90px; }

  /* Services: 2 columns */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Pricing: single column, centered */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }
  .pricing-card.featured:hover { transform: translateY(-5px); }

  /* Portfolio: 2 columns, remove wide item */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--wide { grid-column: span 1; }
  .portfolio-item--wide .portfolio-thumb { aspect-ratio: 4 / 3; }

  /* About: stack vertically */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-content { padding-left: 0; }

  /* Footer: 2 col */
  .footer-grid { grid-template-columns: 1fr 1fr; }

}


/* -----------------------------------------------------------------------
   18. RESPONSIVE — MOBILE  (≤ 768px)
   iOS + Android fixes incluidos
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {

  :root {
    --section-pad: var(--section-pad-m);  /* 72px */
    /* Reducir radios para que las tarjetas no ocupen tanto espacio óptico */
    --radius-lg: 14px;
    --radius:     8px;
  }

  /* ============================================================
     NAVBAR
  ============================================================ */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    inset-block-start: 0;
    inset-inline-end: -100%;
    width: 78vw;           /* Proporcional al ancho del teléfono, no valor fijo */
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 8, .97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 80px 32px 40px;
    padding-top: max(80px, calc(env(safe-area-inset-top) + 60px));
    transition: right var(--dur) var(--ease),
                inset-inline-end var(--dur) var(--ease);
    z-index: 999;
    border-left: 1px solid var(--clr-border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { right: 0; inset-inline-end: 0; }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;              /* Reducido — padding en cada link da el espaciado */
  }
  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .05em;
    min-height: 48px;      /* Área táctil cómoda */
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    color: var(--clr-off-white);
  }
  .nav-cta {
    margin-top: 12px;
    padding: 12px 24px !important;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ============================================================
     HERO
  ============================================================ */
  .hero {
    padding: 96px 6% 64px;
    padding-top: max(96px, calc(env(safe-area-inset-top) + 80px));
    min-height: auto;
    text-align: left;
  }

  .hero-shapes .shape--ring  { width: 180px; height: 180px; top: 4%; right: -8%; opacity: .4; }
  .hero-shapes .shape--dot-grid { display: none; }
  .hero-shapes .shape--bar  { display: none; }
  .hero-bg__radial { width: 120vw; top: -10%; right: -30%; opacity: .7; }
  .hero-bg { background-attachment: scroll; }  /* iOS: fixed está roto */

  .hero-badge {
    font-size: .70rem;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -.025em;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.72;
    max-width: 100%;
    margin-bottom: 32px;
    color: var(--clr-grey);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 44px;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: .88rem;
  }

  /* Stats — fila horizontal con separadores ocultos */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .stat {
    padding: 16px 10px;
    text-align: center;
    border-right: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
  }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat-divider { display: none; }
  .stat-number  { font-size: 1.6rem; line-height: 1; }
  .stat-plus    { font-size: 1rem; }
  .stat-label   { font-size: .62rem; letter-spacing: .06em; margin-top: 4px; }

  /* ============================================================
     LOGO BAR
  ============================================================ */
  .logobar { padding: 16px 0; }
  .logobar__label { display: none; }

  /* ============================================================
     SECCIÓN HEADERS (compartido por todas las secciones)
  ============================================================ */
  .section-header { margin-bottom: 40px; }

  .section-tag {
    font-size: .65rem;
    letter-spacing: .18em;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
    margin-bottom: 12px;
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: .93rem;
    line-height: 1.68;
    max-width: 100%;
  }

  /* ============================================================
     SERVICIOS
  ============================================================ */
  .services { padding: var(--section-pad) 0; }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card {
    padding: 26px 22px 30px;
    /* Flecha siempre visible en móvil (no hay hover) */
  }
  .service-card__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--clr-grey-dark);
  }
  .service-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
  }
  .service-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .service-card p {
    font-size: .88rem;
    line-height: 1.65;
  }

  /* ============================================================
     PRECIOS
  ============================================================ */
  .pricing { padding: var(--section-pad) 0; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    padding: 0;
  }
  .pricing-card {
    padding: 32px 22px;
    width: 100%;
  }
  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .plan-name {
    font-size: .70rem;
    letter-spacing: .16em;
    margin-bottom: 12px;
  }
  .plan-price { margin-bottom: 4px; }
  .price-dollar { font-size: 1.2rem; margin-top: 6px; }
  .price-amount { font-size: 2.8rem; }
  .plan-period  { font-size: .75rem; margin-top: 6px; margin-bottom: 0; }
  .plan-header  { margin-bottom: 24px; }

  .plan-features { margin-bottom: 24px; }
  .plan-features li {
    font-size: .86rem;
    padding: 8px 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .feat-check, .feat-cross { flex-shrink: 0; margin-top: 1px; }

  .pricing-card .btn {
    min-height: 50px;
    font-size: .85rem;
    letter-spacing: .06em;
  }

  /* ============================================================
     PORTAFOLIO / VISIÓN
  ============================================================ */
  .portfolio { padding: var(--section-pad) 0; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Overlay siempre visible en touch (no hay hover en móvil) */
  .portfolio-overlay {
    opacity: 1;
    transform: none;
  }
  .portfolio-overlay__inner { transform: none; }

  /* ============================================================
     NOSOTROS
  ============================================================ */
  .about { padding: var(--section-pad) 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-content { padding-left: 0; }

  .about-card-main { padding: 28px 22px; }
  .about-card-text { font-size: 1.05rem; line-height: 1.65; }

  .about-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
  }
  .about-metric  { padding: 16px 8px; }
  .about-metric__num { font-size: 1.4rem; }
  .about-metric__lbl { font-size: .62rem; letter-spacing: .06em; }

  .about-card-accent {
    position: static;
    margin-top: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
  }

  .about-text { font-size: .92rem; line-height: 1.75; }

  .about-values {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0 28px;
  }
  .value-item { font-size: .88rem; gap: 10px; }

  /* ============================================================
     CONTACTO
  ============================================================ */
  .contact { padding: var(--section-pad) 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row     { grid-template-columns: 1fr; gap: 14px; }

  .contact-info { gap: 24px; }
  .info-item { gap: 14px; }
  .info-icon { width: 40px; height: 40px; flex-shrink: 0; }
  .info-label { font-size: .65rem; }
  .info-value { font-size: .92rem; }

  .social-links { gap: 10px; margin-top: 4px; }
  .social-btn   { width: 46px; height: 46px; font-size: .72rem; }

  .contact-form { gap: 14px; }
  .form-group label { font-size: .68rem; letter-spacing: .10em; }

  /* iOS: font-size mínimo 16px evita zoom automático al enfocar */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 13px 14px;
    -webkit-appearance: none;
    border-radius: var(--radius);
  }
  .form-group textarea { min-height: 110px; }

  .contact-form .btn-full {
    min-height: 52px;
    font-size: .88rem;
    letter-spacing: .07em;
  }

  /* ============================================================
     FOOTER
  ============================================================ */
  .footer { padding: 56px 0 0; }
  .footer-glow-line { margin-bottom: 44px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  .footer-tagline {
    font-size: .88rem;
    line-height: 1.68;
    max-width: 100%;
    margin-top: 12px;
  }

  .footer-links h4 {
    font-size: .70rem;
    letter-spacing: .14em;
    margin-bottom: 14px;
  }
  .footer-links ul { gap: 10px; }
  .footer-links ul li a,
  .footer-links ul li span { font-size: .88rem; }

  .footer-socials { margin-top: 18px; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 0;
  }
  .footer-bottom p { font-size: .80rem; }
  .footer-bottom-links { gap: 16px; }
  .footer-bottom-links a { font-size: .80rem; }

  /* Safe-area inferior — home bar iPhone */
  .footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* ============================================================
     SCROLL INDICATOR
  ============================================================ */
  .scroll-indicator { display: none; }

}


/* -----------------------------------------------------------------------
   19. RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ----------------------------------------------------------------------- */
@media (max-width: 480px) {

  /* Hero */
  .hero { padding: 88px 5% 56px; }
  .hero-title {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    line-height: 1.1;
  }
  .hero-description { font-size: .95rem; }
  .hero-badge       { font-size: .65rem; padding: 5px 12px; }

  /* Stats en bloque compacto */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.5rem; }
  .stat-plus   { font-size: .9rem; }
  .stat-label  { font-size: .58rem; }

  /* Section headers */
  .section-header   { margin-bottom: 32px; }
  .section-title    { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .section-subtitle { font-size: .90rem; }

  /* Services */
  .service-card { padding: 22px 18px 26px; }
  .service-card h3 { font-size: .96rem; }
  .service-card p  { font-size: .86rem; }

  /* Pricing */
  .pricing-card { padding: 28px 18px; }
  .price-amount { font-size: 2.5rem; }
  .plan-features li { font-size: .84rem; }

  /* About */
  .about-card-main  { padding: 24px 18px; }
  .about-card-text  { font-size: 1rem; }
  .about-metrics    { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-metric     { padding: 13px 6px; }
  .about-metric__num { font-size: 1.25rem; }
  .about-metric__lbl { font-size: .58rem; }
  .about-text       { font-size: .90rem; }
  .value-item       { font-size: .86rem; }

  /* Contact */
  .info-value { font-size: .88rem; }
  .form-group label { font-size: .65rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 12px 13px; }

  /* Footer */
  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .logo-waya, .logo-agency { font-size: 1.2rem; }

  /* Nav */
  .nav-toggle { padding: 8px; }
  .nav-toggle span { width: 22px; }

}


/* -----------------------------------------------------------------------
   20. RESPONSIVE — EXTRA SMALL  (≤ 360px)
   Android gama baja, iPhone SE 1ª gen
   ----------------------------------------------------------------------- */
@media (max-width: 360px) {

  .hero { padding: 80px 5% 48px; }
  .hero-title   { font-size: 1.95rem; line-height: 1.1; }
  .hero-badge   { display: none; }  /* Evita desbordamiento */
  .hero-description { font-size: .90rem; }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  /* 4 stats en 2x2 — ninguno necesita ancho completo */
  .hero-stats .stat:last-child {
    grid-column: auto;
    border-right: none;
    border-top: none;
  }

  .nav-container { width: 92%; }
  .logo-waya, .logo-agency { font-size: 1.1rem; }

  .section-title    { font-size: 1.55rem; }
  .section-subtitle { font-size: .86rem; }

  .service-card   { padding: 20px 16px 24px; }
  .pricing-card   { padding: 24px 14px; }
  .price-amount   { font-size: 2.2rem; }

  .about-metrics  { grid-template-columns: 1fr; gap: 8px; }
  .about-metric   { padding: 14px 12px; text-align: left; display: flex; gap: 12px; align-items: center; }
  .about-metric__num { font-size: 1.4rem; }

  .vision-hero__content { padding: 36px 16px; }
  .vision-pillars       { gap: 14px; }
  .vision-pillar__icon  { width: 38px; height: 38px; font-size: .85rem; }
  .vision-pillar__label { font-size: .65rem; }

  .btn { padding: 12px 18px; font-size: .80rem; }
  .pricing-card .btn { font-size: .80rem; }

  .footer { padding: 44px 0 0; }
  .footer-grid { gap: 28px; }

}


/* Ocultar imágenes del portafolio */
.portfolio-thumb {
    display: none !important;
}

/* =========================================================
   NUESTRA VISIÓN — FONDO ESTRATÉGICO DIGITAL
   Clase: .vision-hero  |  Imagen: Vision-bg.png
   ========================================================= */

/* ---- Contenedor principal con la imagen de fondo ---- */
.vision-hero {
  position: relative;
  overflow: hidden;
  /* La imagen Vision-bg.png se aplica aquí directamente */
  background-image: url("Vision-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* Efecto parallax suave en desktop */
  min-height: 600px;
  margin-bottom: 64px;            /* Espacio antes del grid del portafolio */
  border-radius: var(--radius-lg);
  isolation: isolate;             /* Crea contexto de apilamiento limpio */

  /* ---- BORDE ELÉCTRICO DIGITAL ---- */
  /* border sólido base: azul eléctrico tenue */
  border: 1.5px solid rgba(41, 121, 255, 0.55);

  /* box-shadow en capas simula el efecto de arco eléctrico:
     capa 1 — resplandor interior pegado al borde
     capa 2 — halo difuso intermedio
     capa 3 — corona exterior amplia
     capa 4 — inset: pulso interior desde adentro */
  box-shadow:
    0 0  6px  1px rgba(41, 121, 255, 0.70),   /* borde nítido */
    0 0 18px  4px rgba(41, 121, 255, 0.40),   /* halo medio   */
    0 0 42px 10px rgba(41, 121, 255, 0.18),   /* corona       */
    inset 0 0 22px  4px rgba(41, 121, 255, 0.10); /* resplandor interior */

  /* Animación de parpadeo eléctrico */
  animation: electricPulse 2.8s ease-in-out infinite;
}

/* Fotogramas del pulso eléctrico —
   alterna entre brillo máximo y mínimo como una descarga */
@keyframes electricPulse {
  0%   {
    box-shadow:
      0 0  6px  1px rgba(41, 121, 255, 0.70),
      0 0 18px  4px rgba(41, 121, 255, 0.40),
      0 0 42px 10px rgba(41, 121, 255, 0.18),
      inset 0 0 22px 4px rgba(41, 121, 255, 0.10);
    border-color: rgba(41, 121, 255, 0.55);
  }
  30%  {
    box-shadow:
      0 0  8px  2px rgba(91, 156, 255, 0.90),
      0 0 28px  7px rgba(41, 121, 255, 0.55),
      0 0 60px 16px rgba(41, 121, 255, 0.25),
      inset 0 0 32px 6px rgba(41, 121, 255, 0.18);
    border-color: rgba(91, 156, 255, 0.85);
  }
  55%  {
    box-shadow:
      0 0  4px  1px rgba(41, 121, 255, 0.45),
      0 0 12px  3px rgba(41, 121, 255, 0.25),
      0 0 30px  7px rgba(41, 121, 255, 0.12),
      inset 0 0 14px 3px rgba(41, 121, 255, 0.06);
    border-color: rgba(41, 121, 255, 0.35);
  }
  75%  {
    box-shadow:
      0 0 10px  3px rgba(120, 180, 255, 0.95),
      0 0 32px  9px rgba(41, 121, 255, 0.60),
      0 0 70px 18px rgba(41, 121, 255, 0.28),
      inset 0 0 36px 8px rgba(41, 121, 255, 0.20);
    border-color: rgba(120, 180, 255, 0.90);
  }
  100% {
    box-shadow:
      0 0  6px  1px rgba(41, 121, 255, 0.70),
      0 0 18px  4px rgba(41, 121, 255, 0.40),
      0 0 42px 10px rgba(41, 121, 255, 0.18),
      inset 0 0 22px 4px rgba(41, 121, 255, 0.10);
    border-color: rgba(41, 121, 255, 0.55);
  }
}

/* ---- Overlay en capas: oscuridad base + brillo azul eléctrico ---- */
.vision-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
  /* Capa 1: degradado oscuro para legibilidad del texto */
  background:
    linear-gradient(
      160deg,
      rgba(2, 6, 18, 0.82) 0%,
      rgba(5, 12, 35, 0.75) 40%,
      rgba(2, 8, 25, 0.85) 100%
    );
}

/* ---- Capa de energía azul eléctrica (::before del overlay) ---- */
.vision-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  /* Brillo radial azul centrado — efecto tecnológico */
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 50%,
      rgba(41, 121, 255, 0.20) 0%,
      rgba(41, 121, 255, 0.05) 50%,
      transparent 75%
    );
}

/* ---- Líneas de barrido horizontal (energía / circuito) ---- */
.vision-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(41, 121, 255, 0.06) 30%,
      rgba(41, 121, 255, 0.10) 50%,
      rgba(41, 121, 255, 0.06) 70%,
      transparent 100%
    ),
    /* Cuadrícula tenue de circuito */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(41, 121, 255, 0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(41, 121, 255, 0.04) 40px
    );
}

/* ---- Contenido de texto sobre el overlay ---- */
.vision-hero__content {
  position: relative;
  z-index: 2;           /* Por encima del overlay */
  max-width: 820px;
  margin-inline: auto;
  padding: 80px 40px;
  text-align: center;
}

/* Tag de sección */
.vision-hero__content .section-tag {
  margin-bottom: 18px;
}

/* Título principal */
.vision-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 28px;
  /* Sombra de texto para mayor legibilidad sobre la foto */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.60);
}

/* Párrafo principal — texto destacado */
.vision-hero__lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--clr-off-white);
  line-height: 1.80;
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.50);
}

/* Párrafo secundario — texto de apoyo */
.vision-hero__body {
  font-size: 0.96rem;
  color: var(--clr-grey);
  line-height: 1.82;
  margin-bottom: 44px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.40);
}

/* ---- Pilares (Estrategia · Tecnología · Resultados) ---- */
.vision-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.vision-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vision-pillar__icon {
  width: 52px;
  height: 52px;
  background: rgba(41, 121, 255, 0.14);
  border: 1px solid rgba(41, 121, 255, 0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clr-blue);
  box-shadow: 0 0 18px rgba(41, 121, 255, 0.25);
  transition: all var(--dur) var(--ease);
}

.vision-pillar:hover .vision-pillar__icon {
  background: rgba(41, 121, 255, 0.28);
  box-shadow: var(--glow-md);
  transform: translateY(-3px);
}

.vision-pillar__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-grey);
}

/* ---- Borde azul brillante en la parte superior del bloque ---- */
.vision-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(41, 121, 255, 0.60) 30%,
    var(--clr-blue) 50%,
    rgba(41, 121, 255, 0.60) 70%,
    transparent
  );
  z-index: 3;
  box-shadow: 0 0 16px rgba(41, 121, 255, 0.40);
}

/* ---- Borde azul brillante en la parte inferior ---- */
.vision-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(41, 121, 255, 0.30) 40%,
    rgba(41, 121, 255, 0.30) 60%,
    transparent
  );
  z-index: 3;
}

/* =========================================================
   RESPONSIVE — VISIÓN
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .vision-hero {
    background-attachment: scroll;
    min-height: 520px;
  }
  .vision-hero__content {
    padding: 64px 32px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .vision-hero {
    background-attachment: scroll;
    min-height: auto;
    border-radius: var(--radius);
    margin-bottom: 48px;
    background-size: cover;
    background-position: center top;
  }
  .vision-hero__content {
    padding: 52px 22px;
  }
  .vision-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .vision-hero__lead {
    font-size: 1rem;
  }
  .vision-hero__body {
    font-size: 0.90rem;
  }
  .vision-pillars {
    gap: 20px;
  }
  .vision-pillar__icon {
    width: 48px;
    height: 48px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .vision-hero__content {
    padding: 40px 18px;
  }
  .vision-pillars {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .vision-pillar__icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}