/* CSS Resets & Base Variables */
:root {
  --font-heading: 'Fustat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --blue-primary: #0084ff;
  --blue-cta: rgba(0, 132, 255, 0.8);
  --blue-glow-1: #60B1FF;
  --blue-glow-2: #319AFF;
  --orange-star: #FF801E;
}

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

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: #111;
  /* Core Technical Specs */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ========== SPA Page System ========== */
.app-container {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.page.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.page.exit {
  opacity: 0;
  pointer-events: none;
}

/* Utilities for structural z-index logic */
.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

/* Background Glow wrapper - must sit behind the content */
.glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Adjust height based on where glows should fade */
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  /* Allows clicks to fall through safely */
}

/* Specific glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
}

.glow-1 {
  width: 700px;
  height: 700px;
  background-color: var(--blue-glow-1);
  top: -200px;
  left: -150px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background-color: var(--blue-glow-2);
  top: -100px;
  left: 250px;
  opacity: 0.20;
}

/* Responsive Visibility Utils */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }
}

/* Off-Canvas Menu Buttons */
.close-btn {
  background: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    -4px -4px 8px rgba(255, 255, 255, 0.8),
    4px 4px 10px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hamburger-btn:active {
  transform: scale(0.95);
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.05),
    inset -4px -4px 10px rgba(255, 255, 255, 0.8);
}


.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.05);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.mobile-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

/* Strong Liquid Glass Navbar */
.navbar {
  margin: 2vh auto 0;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 24px;

  /* Visuals */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 100px;

  /* Details & FX */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.25),
    0 20px 40px -10px rgba(0, 0, 0, 0.05);
  z-index: 50;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-primary);
  margin-right: 16px;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 12px;
  /* Uniform gap to match outer buttons */
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  color: #111;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.05);
  color: #555;
  transition: all 0.3s ease;
}

.nav-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.nav-item:hover .nav-icon-wrapper {
  background: #ffffff;
  color: #111;
}

/* Active Nav State */
.nav-item.active {
  background: rgba(255, 255, 255, 0.4);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.nav-item.active:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
  color: #000;
}

.nav-item.active .nav-icon-wrapper {
  background: #ffffff;
  color: var(--blue-primary);
  /* Blue icon just for a tiny accent, or keep it dark */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 100px;

  /* Blue Styling */
  color: #ffffff;
  background-color: var(--blue-cta);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(0, 132, 255, 0.25);

  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  background: var(--blue-primary);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.45),
    0 16px 32px rgba(0, 132, 255, 0.3);
}

/* Hero Wrapper Container Constraints */
.hero-wrapper {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw 1vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: center;
  gap: 4vh;
}

@media (min-width: 1024px) {
  .hero-wrapper {
    gap: 4vh;
  }
}

/* Layout Strategy: from Mobile to Desktop */
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3vh;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
  }
}

/* Hero Left - Content Alignment */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px;
  justify-self: center;
  position: relative;
  z-index: 20;
}

@media (min-width: 1024px) {
  .hero-left {
    justify-self: end;
    margin-right: 40px;
    /* Slight right push for better centering off grid center */
  }
}

/* Social Links (Glassmorphism from Navbar) */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 100px;

  /* Liquid Glass Style */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.25),
    0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

.social-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: #555;
  margin-right: 4px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #222;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  color: var(--blue-primary);
}

.social-icon svg {
  width: 14px;
  height: 14px;
}

/* Hero Headlines & Typographies */
.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: min(9vw, 42px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: #000;
  margin-bottom: 2vh;
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: min(5vw, 75px);
    line-height: 1.05;
    letter-spacing: -2px;
  }
}

.hero-subheadline {
  font-size: min(3.5vw, 16px);
  line-height: 1.5;
  letter-spacing: -0.5px;
  color: #555;
  margin-bottom: 3vh;
  font-weight: 400;
}

@media (min-width: 1024px) {
  .hero-subheadline {
    font-size: 18px;
    letter-spacing: -1px;
  }
}

/* Primary CTA Button */
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  /* Color and FX */
  background-color: var(--blue-cta);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  /* Details */
  border-radius: 100px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;

  /* Inner highlight and gentle drop shadow */
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(0, 132, 255, 0.25);

  /* Scale Animation on hover */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.primary-cta:hover {
  transform: scale(1.02);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.45),
    0 16px 32px rgba(0, 132, 255, 0.3);
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--blue-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.cta-icon svg {
  width: 16px;
  height: 16px;
}

/* CTA Group & Secondary CTA */
.cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.02);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.6),
    0 14px 28px rgba(0, 0, 0, 0.08);
}

.cta-icon-alt {
  background: #111;
  color: #ffffff;
}

/* Hero Right - Image Gonzalo */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-right {
    justify-content: center;
  }
}

.hero-photo {
  width: 100%;
  max-width: min(100%, 40vh);
  max-height: 40vh;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero-photo {
    max-width: 260px;
    max-height: 30vh;
    margin: 0 auto;
  }
}

/* Footer Section - "Trusted by" */
.trusted-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1vh;
}

@media (min-width: 1024px) {
  .trusted-section {
    padding-bottom: 20px;
  }
}

.trusted-text {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  margin-bottom: 2vh;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Infinite Carousel */
.logo-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  position: relative;
  /* Fades at the edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 10px 0;
}

.logo-carousel-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll-carousel 40s linear infinite;
  padding-left: 40px;
  /* Essential match for smooth looping */
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 24px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  user-select: none;
}

.carousel-item:hover {
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.tech-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.carousel-item span {
  white-space: nowrap;
}

/* Specific Page Overrides */
#proyectos.page,
#sobre-mi.page,
#servicios.page,
#servicio-diseno.page,
#servicio-web.page,
#servicio-video.page,
#detalle-churn.page,
#detalle-aisha.page,
#detalle-pablo.page,
#detalle-zalostore.page,
#detalle-generador.page,
#detalle-inventario.page,
#detalle-planner.page {
  overflow: hidden;
  /* Prevent full-page scrolling — scroll is handled internally by wrappers */
}

/* ========== PROJECTS SECTION ========== */
.projects-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw;
  /* Padding simétrico vertical y horizontal */
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: 100%;
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
  /* Prevents header from shrinking when grid scrolls */
  padding-bottom: 2vh;
}

.projects-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: #000;
  letter-spacing: -1px;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #555;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
  color: #111;
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
  color: #111;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Projects Scroll Area */
.projects-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;

  /* Glass Container Box */
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.05);

  /* Inner Spacing */
  padding: 24px;
  margin-bottom: 2vh;
}

/* Custom Scrollbar for Projects */
.projects-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.projects-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.projects-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.projects-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Glass Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, opacity 0.3s ease;
  padding: 12px;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(240, 245, 255, 0.5);
  border-radius: 16px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  border-radius: 16px;
}

.project-info {
  padding: 16px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.project-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.04);
  color: #111;
  transition: all 0.3s ease;
}

.project-arrow:hover {
  background: var(--blue-primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3);
}

/* Project Buttons Row */
.project-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.04);
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-detail-btn:hover {
  background: #111;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========== SERVICIOS SECTION ========== */
.services-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: 100%;
}

.services-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-bottom: 2vh;
}

.services-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: min(8vw, 42px);
  color: #111;
  letter-spacing: -1.5px;
}

/* Services Scroll Area — Glass Container (mirrors projects-scroll-area) */
.services-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;

  /* Glass Container Box */
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.05);

  /* Inner Spacing */
  padding: 24px;
  margin-bottom: 2vh;
}

/* Custom Scrollbar for Services */
.services-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.services-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.services-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.services-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

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

/* Service Card (Inspired by User Ref) */
.service-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 40px 32px;
  text-decoration: none;
  color: #111;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.6),
    0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Inner glow effect on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  margin-bottom: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--blue-primary);
  background: transparent;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 8px rgba(0, 132, 255, 0.2));
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

.service-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
  color: #000;
  letter-spacing: -0.5px;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 40px;
  flex: 1;
}

/* Minimalist Arrow */
.service-arrow {
  display: flex;
  align-items: center;
  color: #888;
  position: relative;
  transition: all 0.3s ease;
  width: fit-content;
}

.service-arrow svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
  color: var(--blue-primary);
}

.service-card:hover .service-arrow svg {
  transform: translateX(6px);
}

/* ========== SERVICE DETAIL PAGES ========== */
.sdetail-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw 4vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  overflow-y: auto;
}

.sdetail-wrapper::-webkit-scrollbar {
  width: 6px;
}

.sdetail-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sdetail-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.sdetail-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  padding: 8px 20px 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.03);
  width: fit-content;
  flex-shrink: 0;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #111;
  transform: translateX(-4px);
}

/* Detail Hero: Icon + Title + Subtitle */
.sdetail-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sdetail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.sdetail-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(0, 132, 255, 0.2));
}

.sdetail-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: min(10vw, 48px);
  color: #000;
  letter-spacing: -2px;
  line-height: 1.05;
}

.sdetail-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  max-width: 600px;
}

/* Detail Body: Panels Grid */
.sdetail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sdetail-panel {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 32px;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sdetail-panel h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #222;
}

/* Tools panel spans full width */
.sdetail-tools {
  grid-column: 1 / -1;
}

/* Feature List */
.sdetail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sdetail-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #444;
}

.sdetail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-primary);
  opacity: 0.6;
  box-shadow: 0 0 8px rgba(0, 132, 255, 0.3);
}

/* Process Steps */
.sdetail-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.step-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-primary);
  opacity: 0.35;
  line-height: 1;
  min-width: 40px;
}

.sdetail-step strong {
  font-size: 15px;
  color: #111;
  display: block;
  margin-bottom: 4px;
}

.sdetail-step p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* CTA Button at the bottom */
.sdetail-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--blue-cta);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 100px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 24px;
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(0, 132, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  width: fit-content;
  margin-top: 8px;
}

.sdetail-cta:hover {
  transform: scale(1.03);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.45),
    0 16px 32px rgba(0, 132, 255, 0.3);
}

/* ========== PROJECT DETAIL PAGES ========== */
.pdetail-wrapper {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw 6vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
  overflow-y: auto;
}

.pdetail-wrapper::-webkit-scrollbar {
  width: 6px;
}

.pdetail-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.pdetail-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.pdetail-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Hero Section */
.pdetail-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.pdetail-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdetail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdetail-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #555;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pdetail-tag-accent {
  background: rgba(0, 132, 255, 0.1);
  border-color: rgba(0, 132, 255, 0.3);
  color: var(--blue-primary);
}

.pdetail-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  color: #111;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.pdetail-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.pdetail-meta {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.03);
}

.pdetail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pdetail-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdetail-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
}

.pdetail-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.pdetail-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Images */
.pdetail-image {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* El borde sutil le da tridimensionalidad para que no se vea plano/horrible */
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pdetail-image img {
  width: 100%;
  aspect-ratio: 24 / 9;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* Content blocks */
.pdetail-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdetail-content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.pdetail-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* Highlights Grid */
.pdetail-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.pdetail-highlight {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.03);
}

.pdetail-highlight h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.pdetail-highlight p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
}

/* CTA Section */
.pdetail-cta-section {
  text-align: center;
  background: rgba(0, 132, 255, 0.03);
  border: 1px solid rgba(0, 132, 255, 0.1);
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pdetail-cta-section h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

.pdetail-cta-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

/* Modern CTA Card (Servicios) */
.modern-cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(230, 244, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(0, 132, 255, 0.08);
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.04);
}

.modern-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.modern-cta-card p {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

.modern-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 100px;

  /* Blue Styling */
  color: #ffffff;
  background-color: var(--blue-cta);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(0, 132, 255, 0.25);

  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.modern-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(59, 163, 255, 0.5);
  background-color: #2b93ed;
}

.modern-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #3ba3ff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.modern-cta-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ========== ABOUT ME SECTION ========== */
.about-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2vh 4vw;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  height: 100%;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-bottom: 2vh;
}

.about-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: min(8vw, 42px);
  color: #111;
  letter-spacing: -1.5px;
}

.about-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 32px;
  overflow: hidden;
}

/* Left Col: Profile Card */
.about-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.04);
  padding: 32px;
  align-items: center;
  text-align: center;
}

.about-profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: -8px;
}

.about-profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-profile h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.about-profile .role {
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
  /* small positive margin to breathe from the title */
}

.about-bio {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.about-badge {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Right Col: Content Scroll Area */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  padding-right: 12px;
  padding-bottom: 4vh;
}

.about-content::-webkit-scrollbar {
  width: 6px;
}

.about-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Glass Content Panel */
.about-panel {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  padding: 32px;
  box-shadow:
    inset 0 4px 6px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-panel h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #222;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

/* Testimonials Slider */
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Smooth iOS swipe */
  user-select: none;
  /* Previene la seleccion de texto al arrastrar */
  gap: 16px;
  padding-bottom: 8px;
}

/* Custom scrollbar for webkit */
.testimonials-slider::-webkit-scrollbar {
  height: 6px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.testimonial-card {
  flex: 0 0 calc(50% - 8px);
  /* 2 cards on desktop */
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, background 0.3s ease;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 85%;
    /* Muestra un poco de la siguiente en móvil */
  }
}

.testimonial-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-author-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 132, 255, 0.2);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.testimonial-text {
  font-size: 14.5px;
  color: #444;
  line-height: 1.6;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.testimonial-author-role {
  font-size: 13px;
  color: var(--blue-primary);
  font-weight: 500;
}

/* Timeline Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.experience-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: rgba(0, 0, 0, 0.06);
}

.exp-item {
  position: relative;
  padding-left: 56px;
}

.exp-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--blue-primary);
  z-index: 2;
}

.exp-content {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px 20px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.exp-title {
  font-weight: 700;
  font-size: 16px;
  color: #111;
}

.exp-date {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.exp-company {
  font-size: 14px;
  color: var(--blue-primary);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.5;
}

/* Tech Stack Grid */
.tech-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-bubble {
  background: #fff;
  border-radius: 100px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.tech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tech-bubble img,
.tech-bubble svg {
  width: 20px;
  height: 20px;
}

/* ========== RESPONSIVE ========== */

/* Deep Mobile Nav Adjustments */
/* =========================================
   CONTACTO SECTION
   ========================================= */
.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8vh 5vw 6vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.contact-header {
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.contact-subtitle {
  font-size: 16px;
  color: #555;
  max-width: 500px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Form Container */
.contact-form-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 40px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.03);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-row>.form-group {
  flex: 1;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder {
  color: #888;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

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

.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 20px;
  border-radius: 100px;

  /* Blue Styling */
  color: #ffffff;
  background-color: var(--blue-cta);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: inset 0px 4px 4px 0px rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(0, 132, 255, 0.25);

  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 132, 255, 0.4);
  background: #0070d9;
}

/* Info Container */
.contact-info-container {
  flex: 1;
  /* Make it symmetrical to the form container */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 40px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.contact-info-card {
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info-card:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, 0.5);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

.info-value {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

/* Contact Responsive */
@media (max-width: 992px) {
  .contact-content {
    flex-direction: column;
    /* Formulario arriba de la info */
    gap: 48px;
    align-items: stretch;
    /* Ensures the form container fills the full width */
  }

  .contact-info-container {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .contact-info-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 250px;
  }
}

@media (max-width: 600px) {
  .contact-wrapper {
    padding: 6vh 5vw 4vh;
    /* Less padding to maximize space for the form */
  }

  .contact-title {
    font-size: 32px;
  }

  .contact-form-container,
  .contact-info-container {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .contact-form {
    gap: 16px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .contact-info-card {
    flex: 1 1 100%;
  }
}

/* =========================================
   GLOBAL RESPONSIVE 
   ========================================= */
@media (max-width: 1024px) {

  /* About Tablet (769px - 1024px) */
  .about-grid {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 24px;
  }

  .about-content {
    overflow-y: visible;
    padding-right: 0;
    padding-bottom: 24px;
  }

  .about-profile {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 32px;
  }

  .about-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-profile-img {
    width: 130px;
    height: 130px;
    margin-bottom: 0;
    margin-right: 24px;
  }

  .about-profile .social-links {
    margin-top: 12px !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 24px);
    justify-content: space-between;
    padding: 10px 16px;
    margin-top: 16px;
  }

  .navbar-links {
    display: none;
  }

  .hero-wrapper {
    padding-top: 2vh;
    padding-bottom: 4vh;
    text-align: center;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .hero-left {
    align-items: center;
  }

  .hero-subheadline {
    text-align: center;
  }

  .social-links {
    padding: 4px 10px;
    gap: 8px;
    margin-bottom: 2vh;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }

  .cta-group {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-top: 1vh;
  }

  .primary-cta,
  .secondary-cta {
    padding: 12px 10px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
  }

  .cta-icon {
    width: 22px;
    height: 22px;
  }

  .trusted-text {
    font-size: min(3vw, 11px);
    white-space: nowrap;
  }

  /* Projects Mobile */
  .projects-wrapper {
    padding: 2vh 4vw;
    /* Ensure there is a small gap top/bottom on mobile */
  }

  .projects-scroll-area {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 2vh;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-title {
    font-size: 24px;
  }

  .filter-pills {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .project-info {
    padding: 12px 0px 4px;
    /* Un poco menos de padding para celular */
  }

  /* Services Mobile */
  .services-wrapper {
    padding: 2vh 4vw;
  }

  .services-header {
    padding-bottom: 1vh;
  }

  .services-title {
    font-size: 24px;
  }

  .services-scroll-area {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 2vh;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 20px 20px;
  }

  .service-icon {
    margin-bottom: 12px;
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-name {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .service-desc {
    display: block;
    font-size: 13.5px;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .service-arrow {
    margin-top: auto;
  }

  .service-arrow svg {
    width: 20px;
    height: 20px;
  }

  /* Service Detail Mobile */
  .sdetail-wrapper {
    padding: 2vh 5vw 6vh;
    gap: 24px;
  }

  .sdetail-icon svg {
    width: 36px;
    height: 36px;
  }

  .sdetail-title {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .sdetail-subtitle {
    font-size: 15px;
  }

  .sdetail-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sdetail-panel {
    padding: 24px;
    border-radius: 20px;
  }

  .sdetail-panel h4 {
    font-size: 17px;
  }

  .sdetail-list li {
    font-size: 13.5px;
  }

  .step-num {
    font-size: 22px;
    min-width: 32px;
  }

  .sdetail-step strong {
    font-size: 14px;
  }

  .sdetail-step p {
    font-size: 13px;
  }

  .sdetail-cta {
    font-size: 14px;
    padding: 12px 20px;
    width: 100%;
    justify-content: center;
  }

  /* Project Detail Mobile */
  .pdetail-wrapper {
    padding: 2vh 5vw 6vh;
    gap: 32px;
  }

  .pdetail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdetail-title {
    font-size: 36px;
  }

  .pdetail-highlights {
    grid-template-columns: 1fr;
  }

  .pdetail-cta-section {
    padding: 32px 20px;
  }

  /* About Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
    /* Fallback de scroll total al contenedor asimetrico */
    display: flex;
    flex-direction: column;
  }

  .about-content {
    overflow-y: visible;
    padding-right: 0;
  }

  .about-profile {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .about-profile-info {
    align-items: center;
  }

  .about-profile-img {
    width: 160px;
    height: 160px;
    margin-right: 0;
    margin-bottom: -8px;
  }

  .about-profile .social-links {
    margin-top: 16px !important;
  }

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

/* ========== SCROLL REVEAL ANIMATIONS (FLOW) ========== */

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Activated State */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay Utils for staggered animations */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}