/* =============================================================================
   Zopy — styles.css
   Tokens en DESIGN.md · Borrador de referencia: borrador/Zopy Home.html
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================================================
   TOKENS
   ============================================================================= */
:root {
  /* Brand colors */
  --navy:          #0b1628;
  --navy-mid:      #142238;
  --navy-dark:     #1a2d4a;
  --cyan:          #52BED2;
  --cyan-dark:     #3aa8bc;
  --cyan-tint:     #EEF6FB;
  --coral:         #F66C58;
  --yellow:        #F4BF35;
  --green:         #4CC762;
  --color-whatsapp: #25D366;

  /* Text */
  --text-dark:     #141414;
  --text-mid:      #2C2C2C;
  --text-muted:    #878787;
  --white:         #FFFFFF;

  /* Grays */
  --gray-border:   #E5E7EB;
  --gray-bg:       #F5F7FA;
  --gray-light:    #B4B4B4;

  /* Typography */
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display:  'Vazirmatn', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:         1280px;
  --nav-h:         80px;
  --radius:        14px;
  --radius-sm:     8px;

  /* Spacing (rem-based) */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Animation */
  --ease:      0.22s ease;

  color-scheme: light;
}

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

html {
  font-size: clamp(13px, 0.6vw + 9px, 16px);
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* =============================================================================
   TYPOGRAPHY — display font applies to headings
   ============================================================================= */
h1, h2, h3 {
  font-family: var(--font-display);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.eyebrow.light,
.eyebrow--light {
  color: rgba(255, 255, 255, 0.45);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.0625rem;
  text-wrap: balance;
}

.section-title.light {
  color: var(--white);
}

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

/* =============================================================================
   NAVIGATION — uses template classes: .site-header, .site-nav, etc.
   ============================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Logo: imagen via background — el texto de SITE_NAME queda invisible */
.site-nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  height: var(--nav-h);
  flex-shrink: 0;
  font-size: 0;
  width: 120px;
  background: url('/img/logo.png') no-repeat left center / contain;
}

/* Desktop menu */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

.site-nav__menu li a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
  padding: 0;
}

.site-nav__menu li a:hover,
.site-nav__menu li a[aria-current="page"] {
  color: var(--white);
}

/* Last nav item = CTA button */
.site-nav__menu li:last-child a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.375rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: border-color var(--ease), background var(--ease);
  white-space: nowrap;
  margin-left: 0;
  line-height: normal;
}

.site-nav__menu li:last-child a:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* Hamburger button (template class) */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.site-nav__menu.is-open {
  display: flex;
}

/* Nav divider */
.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.875rem 1.75rem;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 999px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  padding: 0.8125rem 1.625rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color var(--ease), background var(--ease);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* =============================================================================
   HERO
   ============================================================================= */
@keyframes float-glow {
  0%   { transform: translate(0px, 0px); }
  20%  { transform: translate(-860px, 40px); }
  40%  { transform: translate(-680px, 360px); }
  60%  { transform: translate(-180px, 400px); }
  80%  { transform: translate(-440px, 100px); }
  100% { transform: translate(0px, 0px); }
}

#hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--navy);
  background-size: 88px 88px, 88px 88px, auto;
  padding: calc(var(--nav-h) + 5rem) 0 6rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 960px;
  height: 960px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.07) 0%, rgba(82, 190, 210, 0.02) 35%, rgba(82, 190, 210, 0.005) 55%, transparent 72%);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-right {
  display: flex;
  flex-direction: column;
}

.hero-img-area {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: transparent;
}

.hero-img-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  align-self: flex-start;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(76, 199, 98, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(76, 199, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 199, 98, 0); }
}

.hero-img-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.375rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.09375rem;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-headline em {
  font-style: normal;
  color: var(--cyan);
}

.hero-body {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 31.25rem;
}

/* =============================================================================
   STATS
   ============================================================================= */
#stats {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -200px;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -1.5s;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.25rem 2rem;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.25rem;
  margin-bottom: 0.875rem;
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 13.75rem;
  line-height: 1.5;
  text-align: center;
}

/* =============================================================================
   POR QUÉ EXISTIMOS
   ============================================================================= */
#existimos {
  padding: 6rem 0;
  background: var(--white);
}

.existimos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.existimos-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.existimos-left .eyebrow {
  color: var(--cyan);
}

.existimos-title {
  margin-bottom: 1.75rem;
}

.existimos-title em {
  font-style: normal;
  color: var(--cyan);
}

.existimos-body {
  font-size: 1.25rem;
  color: var(--text-mid);
  line-height: 1.85;
  text-align: justify;
}

.existimos-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.existimos-img-wrap {
  position: relative;
  width: 100%;
  max-width: 27.5rem;
}

.existimos-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #D1D5DB;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #6B7280;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.existimos-img-accent {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  background: var(--navy);
  border-radius: 4px;
  bottom: -5%;
  left: -8%;
  z-index: 2;
}

/* =============================================================================
   SERVICES
   ============================================================================= */
#servicios {
  padding: 6rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -3s;
}

.servicios-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.servicios-header .eyebrow {
  color: var(--cyan);
}

.servicios-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.0625rem;
}

.servicios-headline .hl-cyan {
  color: var(--cyan);
  display: block;
}

.servicios-headline .hl-white {
  color: var(--white);
  display: block;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--navy-mid);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease);
}

.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--cyan), 0 12px 36px rgba(82, 190, 210, 0.18);
}

.svc-img-area {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
}

.svc-body {
  padding: 2rem 2rem 1.75rem;
}

.svc-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.svc-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.svc-desc {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 1.375rem;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--ease);
}

.svc-link:hover {
  gap: 10px;
}

/* =============================================================================
   EXPERIENCIA
   ============================================================================= */
#experiencia {
  padding: 6rem 0;
  background: var(--white);
}

.experiencia-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.experiencia-header .eyebrow {
  color: var(--cyan);
}

.experiencia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.exp-card {
  background: var(--cyan-tint);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  border-radius: 1rem;
  padding: 2rem 1.75rem 2.25rem;
  transition: box-shadow var(--ease), transform var(--ease);
}

.exp-card:hover {
  box-shadow: 0 8px 28px rgba(82, 190, 210, 0.18);
  transform: translateY(-4px);
}

.exp-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.875rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.exp-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 0.75rem;
}

.exp-desc {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* =============================================================================
   METHODOLOGY
   ============================================================================= */
#metodologia {
  padding: 6rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#metodologia::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 10%;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -5s;
}

.meto-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.meto-header .eyebrow {
  color: var(--cyan);
}

.meto-steps {
  max-width: 42.5rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.meto-steps::before {
  content: '';
  position: absolute;
  left: 148px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(82, 190, 210, 0.2);
}

.meto-step {
  display: grid;
  grid-template-columns: 108px 32px 1fr;
  column-gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.meto-step.in {
  opacity: 1;
  transform: translateY(0);
}

.meto-step:nth-child(2) { transition-delay: 100ms; }
.meto-step:nth-child(3) { transition-delay: 200ms; }
.meto-step:nth-child(4) { transition-delay: 300ms; }
.meto-step:nth-child(5) { transition-delay: 400ms; }

.meto-step:last-child {
  padding-bottom: 0;
}

.meto-num {
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  letter-spacing: -3px;
  text-align: right;
}

.meto-dot-col {
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

@keyframes pulse-meto-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82, 190, 210, 0); }
  50%       { box-shadow: 0 0 0 5px rgba(82, 190, 210, 0.18); }
}

.meto-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
  z-index: 1;
  animation: pulse-meto-dot 2.6s ease-in-out infinite;
}

.meto-step:nth-child(1) .meto-dot { animation-delay: 0s; }
.meto-step:nth-child(2) .meto-dot { animation-delay: 0.65s; }
.meto-step:nth-child(3) .meto-dot { animation-delay: 1.3s; }
.meto-step:nth-child(4) .meto-dot { animation-delay: 1.95s; }

.meto-step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  padding-top: 2px;
}

.meto-step-desc {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

/* =============================================================================
   PORTFOLIO (section on home)
   ============================================================================= */
#casos {
  padding: 6rem 0;
  background: var(--white);
}

.casos-header-new {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.casos-header-new .eyebrow {
  color: var(--cyan);
}

.casos-ver-todos {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 6px;
  transition: opacity var(--ease);
}

.casos-ver-todos:hover {
  opacity: 0.75;
}

.casos-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.caso-card-new {
  background: var(--navy-mid);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.caso-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 22, 40, 0.45);
}

.caso-card-new.featured {
  grid-row: span 2;
}

.caso-img-area-new {
  flex: 1;
  background: var(--navy);
  overflow: hidden;
  min-height: 140px;
}

.caso-img-area-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.caso-content-new {
  padding: 1.5rem 1.75rem 1.75rem;
}

.caso-tags-new {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.625rem;
}

.caso-name-new {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.caso-desc-new {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* =============================================================================
   FAQ
   ============================================================================= */
#faq {
  padding: 6rem 0;
  background: var(--navy);
  position: relative;
}

#faq::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 20%;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -2.5s;
}

.faq-inner-new {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.faq-left {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.faq-left .eyebrow {
  color: var(--cyan);
}

.faq-title-new {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.09375rem;
  text-wrap: balance;
}

.faq-list {
  max-width: none;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.625rem 0;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

.faq-q-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease);
}

.faq-icon svg {
  transition: transform var(--ease);
}

.faq-icon svg path {
  stroke: rgba(255, 255, 255, 0.7);
}

.faq-item[data-state="open"] .faq-icon {
  background: var(--cyan);
  border-color: var(--cyan);
}

.faq-item[data-state="open"] .faq-icon svg {
  transform: rotate(45deg);
}

.faq-item[data-state="open"] .faq-icon svg path {
  stroke: var(--navy);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0;
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.85;
}

.faq-a-inner {
  padding: 0 3.5rem 1.75rem 0;
}

.faq-item[data-state="open"] .faq-a {
  max-height: 500px;
}

/* =============================================================================
   CONTACT FORM
   ============================================================================= */
#contacto {
  padding: 6rem 0;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

#contacto::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -150px;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -4s;
}

.contacto-inner-new {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contacto-left .eyebrow {
  color: var(--cyan);
}

.contacto-headline {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.09375rem;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.contacto-headline em {
  font-style: normal;
  color: var(--cyan);
}

.contacto-subtext {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
}

.contacto-form {
  display: flex;
  flex-direction: column;
}

.form-field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 0 0.625rem;
  transition: border-color var(--ease);
}

.form-field:focus-within {
  border-bottom-color: var(--cyan);
}

.form-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--white);
  padding: 4px 0;
  width: 100%;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: transparent;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: rgba(255, 255, 255, 0.4);
}

.form-select.filled {
  color: var(--white);
}

.form-select option {
  background: var(--navy-dark);
  color: var(--white);
}

.form-textarea {
  resize: none;
  min-height: 5rem;
}

/* Honeypot — hidden from humans */
.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-submit {
  margin-top: 2rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.8125rem 1.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.form-submit:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* Form feedback message */
.form-success {
  text-align: center;
  padding: 2em 0;
  font-size: 1.1rem;
  color: var(--white);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
/* Hide the template bare footer — rich footer is inlined in each page */
.site-footer {
  display: none !important;
}

/* Rich footer styles — class .zopy-footer used on the inline <footer> */
.zopy-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.zopy-footer::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -120px;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -6s;
}

.zopy-footer__inner {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand .footer-logo {
  margin-bottom: 0.875rem;
  line-height: 1;
}

.footer-brand .footer-logo img {
  display: block;
  width: auto;
  height: 132px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 16.25rem;
}

.footer-col-title {
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copyright,
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--ease);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   WHATSAPP FLOAT
   ============================================================================= */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp, #25D366);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: wa-pulse 2.4s ease-out infinite;
  transition: transform var(--ease), background var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
  background: #1ebe5d;
  animation: none;
}

/* =============================================================================
   REVEAL ANIMATION
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   PORTAFOLIO PAGE
   ============================================================================= */

/* Hero portafolio */
#hero-port {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--navy);
  background-size: 88px 88px, 88px 88px, auto;
  padding: calc(var(--nav-h) + 6rem) 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero-port::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 960px;
  height: 960px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.07) 0%, rgba(82, 190, 210, 0.02) 35%, rgba(82, 190, 210, 0.005) 55%, transparent 72%);
  pointer-events: none;
  animation: float-glow 8s ease-in-out infinite;
}

.hero-port-inner {
  position: relative;
  z-index: 1;
  max-width: 42.5rem;
  margin: 0 auto;
}

.hero-port-title {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 5vw, 3.875rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.125rem;
  margin-bottom: 1.5rem;
}

.hero-port-title em {
  font-style: normal;
  color: var(--cyan);
}

.hero-port-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 32.5rem;
  margin: 0 auto;
}

/* Destacados */
#destacados {
  padding: 6rem 0 4rem;
  background: var(--white);
}

.destacados-header {
  text-align: center;
  margin-bottom: 3rem;
}

.destacados-header .eyebrow {
  color: var(--cyan);
}

.dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dest-card {
  background: var(--navy-mid);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 22, 40, 0.45);
}

.dest-img {
  flex: 1;
  background: var(--navy);
  overflow: hidden;
}

.dest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dest-body {
  padding: 1.75rem 2rem 2rem;
}

.dest-tags {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.625rem;
}

.dest-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.625rem;
}

.dest-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* Filtros */
#filtros {
  padding: 3rem 0 5rem;
  background: var(--white);
}

.filtro-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filtro-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 5rem;
  flex-shrink: 0;
}

.filtro-sep {
  height: 1px;
  background: var(--gray-border);
  margin-bottom: 1.75rem;
}

.filtro-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  font-family: var(--font-body);
}

.filtro-btn:hover {
  background: var(--gray-bg);
}

.filtro-btn.active {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.proyecto-card {
  background: var(--navy-mid);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.proyecto-card[data-state="hidden"] {
  display: none;
}

.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 22, 40, 0.45);
}

.proy-img {
  flex: 1;
  background: var(--navy);
  overflow: hidden;
}

.proy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proy-body {
  padding: 1.375rem 1.5rem 1.625rem;
}

.proy-tags {
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.proy-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.proy-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  font-size: 1.125rem;
  color: var(--text-muted);
  display: none;
}

.no-results.visible {
  display: block;
}

/* CTA portafolio */
#cta-port {
  padding: 6rem 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-port::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 30%;
  width: 880px;
  height: 880px;
  background: radial-gradient(circle, rgba(82, 190, 210, 0.055) 0%, rgba(82, 190, 210, 0.015) 35%, rgba(82, 190, 210, 0.003) 55%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 8s ease-in-out infinite;
  animation-delay: -3s;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.09375rem;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.cta-title em {
  font-style: normal;
  color: var(--cyan);
}

.cta-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 30rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn-ghost-port {
  display: inline-flex;
  align-items: center;
  padding: 0.8125rem 1.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-body);
  transition: border-color var(--ease), background var(--ease);
}

.btn-ghost-port:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .meto-step {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 960px) {
  .meto-steps::before { left: 108px; }
  .meto-step { grid-template-columns: 80px 32px 1fr; }
  .meto-num { font-size: 3.375rem; }
  .experiencia-grid { grid-template-columns: repeat(2, 1fr); }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #hero {
    padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-right {
    display: none;
  }

  .hero-headline {
    letter-spacing: -0.0625rem;
  }

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

  .stat + .stat::before {
    display: none;
  }

  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.25rem 1.5rem;
  }

  .stat:last-child {
    border-bottom: none;
  }

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

  .casos-grid-new { grid-template-columns: 1fr; }
  .caso-card-new.featured { grid-row: span 1; }
  .casos-header-new { flex-direction: column; align-items: flex-start; }

  .faq-inner-new {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq-left {
    position: static;
  }

  .contacto-inner-new {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.75rem 1.5rem;
    gap: 0;
    z-index: 99;
  }

  .site-nav__menu li {
    width: 100%;
  }

  .site-nav__menu li a {
    display: block;
    padding: 0.8125rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-nav__menu li:last-child a {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    padding: 0.8125rem 1.25rem;
    margin-left: 0;
    border-bottom: none;
    border-radius: var(--radius-sm);
    line-height: normal;
  }

  .site-nav__toggle {
    display: flex;
  }

  .dest-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  #servicios,
  #metodologia,
  #casos,
  #faq,
  #contacto,
  #experiencia,
  #destacados,
  #filtros,
  #cta-port {
    padding: 4.5rem 0;
  }

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