/* ============================================================
   DevEps — Servicios Landing Page
   Styles — Mobile First + Parallax + Glassmorphism
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-light: #f0f2f5;
  --bg-light-alt: #e8eaed;
  --orange: #FF6B00;
  --orange-hover: #FF8533;
  --orange-glow: rgba(255, 107, 0, 0.3);
  --text-light: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-dark: #2d2d2d;
  --text-dark-secondary: #555555;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --footer-bg: #05050f;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-width: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 0%;
  z-index: 10000;
  transition: none;
  box-shadow: 0 0 10px var(--orange-glow);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-switch button.active {
  background: var(--orange);
  color: white;
}

.lang-switch button:hover:not(.active) {
  color: var(--text-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover {
  color: var(--orange);
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 5%;
}

/* Hero: fondo CSS impactante coherente con la marca */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 110% 60% at 72% -8%, rgba(255,107,0,0.28) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 4%  98%, rgba(255,107,0,0.13) 0%, transparent 52%),
    radial-gradient(ellipse 70% 70% at 50% 50%, #0e0e2a 0%, #080816 100%);
  overflow: hidden;
}

/* Vignette suave hacia abajo para reforzar legibilidad del texto */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 22, 0.00) 0%,
    rgba(8, 8, 22, 0.25) 60%,
    rgba(8, 8, 22, 0.65) 100%
  );
  z-index: 1;
}

/* Grid técnico sutil con acento naranja */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,107,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, rgba(0,0,0,0.6) 0%, transparent 80%);
}

/* Glow orb — hidden */
.hero-orb {
  display: none;
}

/* CSS-only floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  animation: particleFloat 50s linear infinite;
}

.hero-particles::before {
  box-shadow:
    150px 120px 0 0 rgba(255,255,255,0.20),
    340px 380px 0 0 rgba(255,255,255,0.15),
    520px  55px 0 0 rgba(255,255,255,0.25),
    710px 490px 0 0 rgba(255,255,255,0.18),
    890px 200px 0 0 rgba(255,255,255,0.22),
   1080px 640px 0 0 rgba(255,255,255,0.15),
   1260px 310px 0 0 rgba(255,255,255,0.28),
   1450px 820px 0 0 rgba(255,255,255,0.18),
   1640px 150px 0 0 rgba(255,255,255,0.22),
   1820px 570px 0 0 rgba(255,255,255,0.16),
     90px 870px 0 0 rgba(255,255,255,0.20),
    280px 1050px 0 0 rgba(255,255,255,0.15),
    470px 790px 0 0 rgba(255,255,255,0.25),
    660px 1180px 0 0 rgba(255,255,255,0.18),
    840px 960px 0 0 rgba(255,255,255,0.22),
   1030px 1340px 0 0 rgba(255,255,255,0.15),
   1210px 1100px 0 0 rgba(255,255,255,0.28),
   1400px 1480px 0 0 rgba(255,255,255,0.18),
   1590px 1220px 0 0 rgba(255,255,255,0.20),
   1770px 1390px 0 0 rgba(255,255,255,0.16),
    130px 1560px 0 0 rgba(255,255,255,0.22),
    310px 1720px 0 0 rgba(255,255,255,0.15),
    500px 1650px 0 0 rgba(255,255,255,0.25),
    690px 1890px 0 0 rgba(255,255,255,0.18),
    870px 1790px 0 0 rgba(255,255,255,0.20),
   1060px 2040px 0 0 rgba(255,255,255,0.15),
   1240px 1980px 0 0 rgba(255,255,255,0.22),
   1430px 2100px 0 0 rgba(255,255,255,0.16),
   1620px 1850px 0 0 rgba(255,255,255,0.25),
   1800px 2050px 0 0 rgba(255,255,255,0.18);
}

.hero-particles::after {
  box-shadow:
     60px 270px 0 0 rgba(255,255,255,0.18),
    250px  80px 0 0 rgba(255,255,255,0.25),
    430px 440px 0 0 rgba(255,255,255,0.15),
    620px 170px 0 0 rgba(255,255,255,0.22),
    800px 560px 0 0 rgba(255,255,255,0.18),
    990px 350px 0 0 rgba(255,255,255,0.28),
   1170px 730px 0 0 rgba(255,255,255,0.15),
   1360px 420px 0 0 rgba(255,255,255,0.22),
   1550px 680px 0 0 rgba(255,255,255,0.20),
   1730px 240px 0 0 rgba(255,255,255,0.16),
    100px 940px 0 0 rgba(255,255,255,0.25),
    290px 1120px 0 0 rgba(255,255,255,0.15),
    480px 1010px 0 0 rgba(255,255,255,0.22),
    670px 1260px 0 0 rgba(255,255,255,0.18),
    850px 1070px 0 0 rgba(255,255,255,0.28),
   1040px 1430px 0 0 rgba(255,255,255,0.15),
   1220px 1190px 0 0 rgba(255,255,255,0.20),
   1410px 1580px 0 0 rgba(255,255,255,0.18),
   1600px 1350px 0 0 rgba(255,255,255,0.22),
   1780px 1510px 0 0 rgba(255,255,255,0.16),
    190px 1640px 0 0 rgba(255,255,255,0.25),
    380px 1800px 0 0 rgba(255,255,255,0.15),
    570px 1730px 0 0 rgba(255,255,255,0.22),
    760px 1960px 0 0 rgba(255,255,255,0.18),
    940px 2020px 0 0 rgba(255,255,255,0.20),
   1130px 1870px 0 0 rgba(255,255,255,0.15),
   1310px 2110px 0 0 rgba(255,255,255,0.25),
   1500px 1940px 0 0 rgba(255,255,255,0.18),
   1690px 2080px 0 0 rgba(255,255,255,0.22),
   1870px 1770px 0 0 rgba(255,255,255,0.16);
  animation-delay: -25s;
}

@keyframes particleFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100vh); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards 0.3s;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: 90svh;
  }
  .hero-content h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}

.hero-content h1 .highlight {
  color: #FF6B00;
  -webkit-text-fill-color: #FF6B00;
  font-weight: 800;
  font-style: normal;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c8c8d8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle-line {
  display: block;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.7s;
}

/* ── Hero scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 1.2s, scrollHint 2s ease-in-out infinite 2s;
  transition: color 0.3s;
}
.hero-scroll-hint:hover { color: var(--orange); }
.hero-scroll-hint svg { width: 28px; height: 28px; }

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* Dark section variants */
.section-light .btn-primary { background: var(--orange); color: white; }
.section-light .btn-secondary {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}
.section-light .btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Parallax Sections ── */
.parallax-section {
  height: 50vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-color: var(--bg-primary); /* fallback if image doesn't load */
}

.parallax-section:nth-of-type(1) { background-color: #1a2332; }
.parallax-section:nth-of-type(2) { background-color: #2a1a0a; }
.parallax-section:nth-of-type(3) { background-color: #1a1a2e; }
.parallax-section:nth-of-type(4) { background-color: #0a0a1a; }

.parallax-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 26, 0.5) 0%,
    rgba(10, 10, 26, 0.3) 50%,
    rgba(10, 10, 26, 0.5) 100%
  );
}

.parallax-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
}

.parallax-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    height: 35vh;
  }
}

/* ── Wave Dividers ── */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider.dark-to-light {
  background: var(--bg-light);
}

.wave-divider.light-to-dark {
  background: var(--bg-secondary);
}

.wave-divider svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Section Base ── */
.section-dark {
  background: var(--bg-secondary);
  color: var(--text-light);
  padding: var(--section-padding);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: var(--section-padding);
}

.section-dark-alt {
  background: var(--bg-primary);
  color: var(--text-light);
  padding: var(--section-padding);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-dark h2, .section-dark-alt h2 { color: var(--text-light); }
.section-light h2 { color: var(--text-dark); }

.section-header h2 .accent {
  color: var(--orange);
}

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p, .section-dark-alt .section-header p {
  color: var(--text-secondary);
}

.section-light .section-header p {
  color: var(--text-dark-secondary);
}

/* ── Problem / Solution ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.problem-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.problem-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 107, 0, 0.2);
  transform: translateY(-2px);
}

.problem-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
  border: 1px solid rgba(255, 107, 0, 0.1);
}

.solution-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
}

.solution-text .highlight {
  color: var(--orange);
}

/* ── Services Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  background: var(--orange);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--orange);
  transform: scale(1.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: white;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card .desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.service-card .price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 20px;
}

.service-card .price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dark-secondary);
}

.service-card .btn-card {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.service-card .btn-card:hover {
  background: var(--orange);
  color: white;
}

/* ── Why DevEps ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 107, 0, 0.15);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-visual {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: 100% auto;
  background-position: top left;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
}

.portfolio-visual svg.portfolio-icon {
  width: 80px;
  height: 80px;
  fill: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-icon {
  transform: scale(1.15);
  fill: rgba(255, 255, 255, 0.35);
}

.portfolio-visual .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  letter-spacing: 0.3px;
}

.portfolio-card.dental .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card.shop .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card.fisio .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card:hover.dental .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-card:hover.shop .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-card:hover.fisio .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.portfolio-info .desc {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--orange);
  transition: gap var(--transition);
}

.portfolio-card:hover .portfolio-cta {
  gap: 10px;
}

/* ── Counters ── */
.counters-section {
  background: var(--bg-primary);
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 24px;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  transition: text-shadow 0.3s ease;
}

.counter-value.glow {
  text-shadow: 0 0 30px var(--orange-glow), 0 0 60px rgba(255, 107, 0, 0.15);
}

.counter-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Process / Timeline ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

/* Connection line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--orange);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.process-step:hover .step-number {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 30px var(--orange-glow);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Contact Form ── */
.contact-section {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--orange);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-submit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:active::after {
  width: 400px;
  height: 400px;
}

.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-error {
  color: #ff4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input {
  border-color: #ff4444;
}

.form-group.error .form-error {
  display: block;
}

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 32px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span {
  color: var(--orange);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill var(--transition);
}

.social-link:hover svg {
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
  }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --nav-height: 64px;
  }
  
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .counters-grid { grid-template-columns: 1fr; gap: 16px; }
  .problems-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .section-header { margin-bottom: 40px; }
  .hero-orb { width: 250px; height: 250px; }
  
  /* Mobile lang switch next to hamburger */
  .navbar .lang-switch {
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ── AOS Custom Overrides ── */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fallback: if AOS JS hasn't initialized, show all elements */
html:not(.aos-loaded) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* On mobile: simpler, faster animations */
@media (max-width: 768px) {
  [data-aos] {
    transition-duration: 400ms !important;
  }
  [data-aos][data-aos-delay] {
    transition-delay: 0s !important;
  }
}


/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #12122a;
  border-top: 2px solid rgba(255,107,0,0.35);
  z-index: 9999;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.cookie-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-more {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  white-space: nowrap;
  padding: 8px 4px;
}
.cookie-more:hover { color: rgba(255,255,255,0.8); }
.cookie-btn {
  padding: 9px 24px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  line-height: 1 !important;
}
.cookie-btn-accept {
  background: var(--orange) !important;
  color: #fff !important;
  border: 2px solid var(--orange) !important;
}
.cookie-btn-accept:hover { background: var(--orange-hover) !important; border-color: var(--orange-hover) !important; }
.cookie-btn-reject {
  background: transparent !important;
  color: rgba(255,255,255,0.9) !important;
  border: 2px solid rgba(255,255,255,0.55) !important;
}
.cookie-btn-reject:hover { border-color: #fff !important; color: #fff !important; }
@media (max-width: 600px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── Form Check (privacy checkbox) ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-check label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.form-check label a { color: var(--orange); text-decoration: underline; }
.form-check label a:hover { opacity: 0.8; }
.form-check.error label { color: #ff4444; }
.form-check .form-error { display: none; }
.form-check.error .form-error { display: block; margin-top: 4px; }

/* ── Footer Legal Links ── */
.footer-legal-links {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--orange); }

/* ── Legal Pages ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 80px;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul {
  margin: 0 0 14px 20px;
}
.legal-content ul li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a { color: var(--orange); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text-light); font-weight: 600; }
.legal-updated {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
}
