/* ============================================================
   NEZGA ARQUITECTOS - Premium Architecture Website
   Design System & Styles
   ============================================================ */

/* ============================================================
   0. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

/* StringTune required properties */
@property --progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --spotlight-angle {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@property --spotlight-distance {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  /* Brand Colors */
  --azul-principal: #1D63C7;
  --azul-secundario: #2F7DF0;
  --azul-glow: rgba(47, 125, 240, 0.15);
  --negro-profundo: #0B0F12;
  --gris-oscuro: #1C2329;
  --gris-medio: #2A3038;
  --gris-claro: #E6E6E6;
  --blanco-suave: #F5F3F0;
  --blanco-calido: #FAF8F5;
  --hueso: #EDE8E2;

  /* Functional Colors */
  --texto-claro: #FFFFFF;
  --texto-oscuro: #0B0F12;
  --texto-muted: #8A919A;
  --overlay-dark: rgba(11, 15, 18, 0.7);
  --overlay-hero: linear-gradient(
    135deg,
    rgba(11, 15, 18, 0.85) 0%,
    rgba(28, 35, 41, 0.6) 50%,
    rgba(11, 15, 18, 0.75) 100%
  );
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-dramatic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
  --shadow-dark-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(29, 99, 199, 0.2);

  /* StringTune */
  --vh: 1vh;
  --vw: 1vw;
  --easing-function: cubic-bezier(0.86, 0, 0.31, 1);
  --easing-function-2: cubic-bezier(0.35, 0.35, 0, 1);
  --easing-timing: 1.5s;
  --cursor-size: 10px;
  --cursor-ring-size: 36px;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: auto;
}

body {
  font-family: var(--font-body);
  color: var(--texto-oscuro);
  background-color: var(--blanco-suave);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  height: auto;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn,
body.has-custom-cursor [role="button"] {
  cursor: none;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--texto-muted);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--azul-principal);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--azul-principal);
}

.section-label--light {
  color: var(--azul-secundario);
}

.section-label--light::before {
  background: var(--azul-secundario);
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: 1000px;
}

.container--wide {
  max-width: 1600px;
}

.section-padding {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition-smooth),
              padding var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.header--scrolled {
  background: rgba(11, 15, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1024px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }
}

.header__logo img {
  height: 82px;
  width: auto;
  transition: height var(--transition-smooth);
}

.header--scrolled .header__logo img {
  height: 68px;
}

.header__logo {
  justify-self: start;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
    justify-self: center;
  }
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto-claro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--azul-secundario);
  transition: width var(--transition-smooth);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover {
  color: var(--azul-secundario);
}

.header__nav a.active {
  color: var(--azul-secundario);
}

/* Header CTA */
.header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
    justify-self: end;
  }
}

/* Mobile Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1201;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texto-claro);
  transition: all var(--transition-smooth);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(165deg, rgba(8, 13, 19, 0.99) 0%, rgba(12, 23, 35, 0.99) 100%);
  z-index: 1199;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(5.8rem, 14vw, 7rem) clamp(1rem, 4.5vw, 2rem) 2rem;
  overflow-y: auto;
  gap: 1.1rem;
  transition: right var(--transition-elegant);
  transform: none;
  align-items: center;
}

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

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, rgba(4, 8, 14, 0.68) 0%, rgba(9, 20, 32, 0.8) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1198;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity var(--transition-smooth);
}

.mobile-menu__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100%, 620px);
}

.mobile-menu__links a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 600;
  color: var(--texto-claro);
  line-height: 1.05;
  padding: 0.9rem 0.1rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), background var(--transition-smooth);
}

.mobile-menu__links a:hover {
  color: var(--azul-secundario);
  border-color: rgba(47, 125, 240, 0.55);
  transform: translateX(6px);
  background: transparent;
}

.mobile-menu__cta {
  margin-top: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: min(100%, 620px);
}

.mobile-menu__cta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.mobile-menu__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--azul-secundario);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(47, 125, 240, 0.5);
  padding-bottom: 0.2rem;
  transition: gap var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-menu__cta-link:hover {
  gap: 0.7rem;
  color: var(--texto-claro);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
  width: min(100%, 620px);
}

.mobile-menu__social a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 1rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth);
}

.mobile-menu__social a:hover {
  color: var(--texto-claro);
  border-color: rgba(47, 125, 240, 0.45);
  background: rgba(47, 125, 240, 0.22);
  transform: translateY(-3px);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left var(--transition-dramatic);
}

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

.btn--primary {
  background: var(--azul-principal);
  color: var(--texto-claro);
}

.btn--primary:hover {
  background: var(--azul-secundario);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--texto-claro);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--azul-secundario);
  color: var(--azul-secundario);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--texto-oscuro);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn--outline-dark:hover {
  border-color: var(--azul-principal);
  color: var(--azul-principal);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--negro-profundo);
  color: var(--texto-claro);
}

.btn--dark:hover {
  background: var(--gris-oscuro);
  transform: translateY(-2px);
}

.btn i {
  font-size: 0.75rem;
  transition: transform var(--transition-smooth);
}

.btn:hover i {
  transform: translateX(4px);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-hero);
  z-index: 1;
}

/* Subtle geometric grid pattern overlay */
.hero__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 120px; /* Added space to avoid crowding with the header */
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  color: var(--texto-claro);
  line-height: 1.25; /* Increased line-height to avoid 'amontonado' look */
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--azul-secundario);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .hero__scroll {
    display: flex;
  }
}

.hero__scroll span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--azul-secundario), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   7. HERO INTERIOR (Services & Contact pages)
   ============================================================ */

.hero-interior {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(8rem, 12vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--negro-profundo);
  overflow: hidden;
}

.hero-interior__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-interior__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-interior__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 18, 0.9) 0%,
    rgba(11, 15, 18, 0.7) 100%
  );
  z-index: 1;
}

.hero-interior__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-interior__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--texto-claro);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-interior__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 600px;
  font-weight: 300;
}

/* Decorative geometric line */
.hero-interior::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--azul-principal),
    transparent
  );
  z-index: 2;
}

/* ============================================================
   8. ABOUT / QUIENES SOMOS SECTION
   ============================================================ */

.about {
  background: var(--blanco-calido);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 968px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-dramatic);
}

.about__image-wrap:hover img {
  transform: scale(1.05);
}

/* Decorative corner accent */
.about__image-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  border-right: 3px solid var(--azul-principal);
  border-bottom: 3px solid var(--azul-principal);
  border-radius: 0 0 var(--radius-lg) 0;
  pointer-events: none;
}

.about__text h2 {
  margin-bottom: var(--space-md);
  color: var(--texto-oscuro);
}

.about__text p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   9. DIFFERENTIALS / CARDS PREMIUM
   ============================================================ */

.differentials {
  background: var(--negro-profundo);
  position: relative;
  overflow: hidden;
}

/* Subtle background accent */
.differentials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--azul-glow), transparent 70%);
  pointer-events: none;
}

.differentials__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.differentials__header h2 {
  color: var(--texto-claro);
  margin-bottom: var(--space-sm);
}

.differentials__header p {
  color: rgba(255, 255, 255, 0.5);
}

.diff-card {
  position: relative;
  background: var(--gris-oscuro);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--transition-elegant);
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--azul-principal), var(--azul-secundario));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.diff-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 125, 240, 0.2);
  box-shadow: var(--shadow-dark-card);
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  color: var(--texto-claro);
}

.diff-card h4 {
  color: var(--texto-claro);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.diff-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* ============================================================
   10. SERVICES PREVIEW
   ============================================================ */

.services-preview {
  background: var(--blanco-calido);
}

.services-preview__header {
  max-width: 600px;
  margin-bottom: var(--space-3xl);
}

.services-preview__header h2 {
  margin-bottom: var(--space-sm);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--texto-claro);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-elegant);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-dramatic);
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card:hover .service-card__link {
  gap: 1rem;
}

.service-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

.service-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__body h4 {
  margin-bottom: var(--space-xs);
  color: var(--texto-oscuro);
}

.service-card__body p {
  font-size: 0.9rem;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azul-principal);
  margin-top: var(--space-md);
  transition: gap var(--transition-smooth);
}

.service-card__link:hover {
  gap: 0.75rem;
}

/* ============================================================
   11. PROCESS SECTION
   ============================================================ */

.process {
  background: var(--negro-profundo);
  position: relative;
  overflow: hidden;
}

.process__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.process__header h2 {
  color: var(--texto-claro);
  margin-bottom: var(--space-sm);
}

.process__header p {
  color: rgba(255, 255, 255, 0.5);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  position: relative;
}

@media (min-width: 768px) {
  .process__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 125, 240, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.process-step__number {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.process-step h4 {
  color: var(--texto-claro);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--azul-principal), transparent);
    transform: translateY(-50%);
  }
}

/* ============================================================
   12. EXPERIENCE / METRICS SECTION
   ============================================================ */

.experience {
  background: var(--blanco-calido);
  position: relative;
}

.experience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 968px) {
  .experience__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
  }
}

.experience__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

.experience__content h2 {
  margin-bottom: var(--space-md);
}

.experience__content > p {
  margin-bottom: var(--space-xl);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.metric {
  text-align: center;
  padding: var(--space-md) 0;
  border-top: 2px solid var(--azul-principal);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
  border-radius: var(--radius-sm);
}

.metric:hover {
  transform: translateY(-4px);
  border-color: var(--azul-secundario);
  background: rgba(29, 99, 199, 0.05);
}

.metric__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--azul-principal);
  line-height: 1;
}

.metric__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texto-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   12.1 PROJECT GALLERY
   ============================================================ */

.project-gallery {
  background: linear-gradient(180deg, #f8f6f2 0%, #f1ece5 100%);
}

.project-gallery__header {
  max-width: 680px;
  margin-bottom: var(--space-3xl);
  text-align: center;
  margin-inline: auto;
}

.project-gallery__header h2 {
  margin-bottom: var(--space-sm);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: 0 10px 24px rgba(11, 15, 18, 0.12);
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: translateY(0);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.gallery-item--wide {
  grid-column: auto;
}

.gallery-item--tall {
  grid-row: auto;
  min-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-dramatic), filter var(--transition-dramatic);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 18, 0.02) 42%, rgba(11, 15, 18, 0.62) 100%);
  opacity: 0.92;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11, 15, 18, 0.18);
  border-color: rgba(47, 125, 240, 0.35);
}

.gallery-item__caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  color: var(--texto-claro);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: rgba(11, 15, 18, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  width: fit-content;
}

/* ============================================================
   PROJECTS EXECUTED PAGE - PREMIUM PORTFOLIO
   ============================================================ */

.projects-showcase {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(47, 125, 240, 0.08), transparent 70%),
    radial-gradient(900px 340px at 90% 4%, rgba(11, 15, 18, 0.08), transparent 72%),
    linear-gradient(180deg, #f6f7f9 0%, #eceff3 100%);
}

.projects-showcase__header {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.projects-showcase__header h2 {
  margin-bottom: 0.75rem;
}

.projects-showcase__header p {
  color: var(--texto-medio);
}

.projects-showcase__controls {
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
  display: flex;
  justify-content: center;
  width: 100%;
}

.projects-showcase__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  max-width: 980px;
  padding: 0.4rem;
}

.projects-showcase__filters .filter-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(29, 99, 199, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--texto-oscuro);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(13, 31, 54, 0.08);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.projects-showcase__filters .filter-button:hover,
.projects-showcase__filters .filter-button.active,
.projects-showcase__filters .filter-button[aria-pressed="true"] {
  background: var(--azul-principal);
  color: #fff;
  border-color: var(--azul-principal);
  box-shadow: 0 14px 32px rgba(29, 99, 199, 0.22);
  transform: translateY(-1px);
}

.projects-showcase__filters .filter-button:focus-visible {
  outline: 3px solid rgba(29, 99, 199, 0.22);
  outline-offset: 3px;
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card__location {
  display: block;
  margin: 0.35rem 0 0.55rem;
  color: rgba(241, 244, 248, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-showcase__more {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.projects-showcase__more .btn {
  padding: 0.95rem 1.75rem;
}

.projects-showcase__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  min-height: 280px;
  grid-column: span 4;
  box-shadow: 0 18px 42px rgba(11, 15, 18, 0.14);
  isolation: isolate;
  background: #0b0f12;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portfolio-card--wide {
  grid-column: span 8;
}

.portfolio-card--tall {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 580px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-dramatic), filter var(--transition-dramatic);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 18, 0.12) 28%, rgba(11, 15, 18, 0.8) 100%);
}

.portfolio-card__content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.portfolio-card__tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(11, 15, 18, 0.35);
  color: #f1f4f8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card__content h3 {
  color: var(--texto-claro);
  margin-bottom: 0.3rem;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
}

.portfolio-card__content p {
  margin: 0;
  color: rgba(241, 244, 248, 0.9);
  line-height: 1.55;
  font-size: 0.92rem;
  max-width: 52ch;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(11, 15, 18, 0.2);
}

.portfolio-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.03);
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */

.cta-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 15, 18, 0.88) 0%,
    rgba(29, 99, 199, 0.5) 100%
  );
  z-index: 1;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section__content h2 {
  color: var(--texto-claro);
  margin-bottom: var(--space-md);
}

.cta-section__content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
}

/* ============================================================
   14. FOOTER - StringTune Shifting Effect
   ============================================================ */

.main-content {
  position: relative;
  z-index: 2;
  background-color: var(--blanco-suave);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.footer {
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 1;
  background: var(--azul-principal);
  color: var(--texto-claro);
  overflow: hidden;
}

.footer::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--negro-profundo);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  gap: var(--space-xl);
}

.footer-spacer {
  height: clamp(60vh, 80vh, 100vh); /* Optimized height for sticky reveal */
  pointer-events: none;
  background: transparent;
  width: 100%;
}

/* ============================================================
   15. ADVANCED ANIMATIONS (StringTune Tutorials)
   ============================================================ */

/* A. Text w/ Progress (Highlight Reveal) */
.-s-word {
  --word-turn: calc((var(--word-index) - 1) / var(--word-global-total));
  --word-step: calc(1 / var(--word-global-total));
  --word-progress: clamp(0, calc((var(--progress) - var(--word-turn)) / var(--word-step)), 1);

  display: inline-block;
  color: var(--texto-muted);
  transition: color 0.3s ease;
  will-change: transform, opacity;
}

[string="progress"] .-s-word {
  color: color-mix(in srgb, var(--texto-oscuro) calc(var(--word-progress) * 100%), var(--texto-muted));
}

.hero [string="progress"] .-s-word {
  color: color-mix(in srgb, var(--texto-claro) calc(var(--word-progress) * 100%), rgba(255,255,255,0.25));
}

/* B. Split Character Animation (Entering Flow) */
.-s-char {
  display: inline-block;
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.8s var(--easing-function), opacity 0.8s var(--easing-function);
  transition-delay: calc(var(--char-index) * 0.03s);
}

.visible .-s-char,
.-inview .-s-char {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* C. Magnetic Interaction */
[string="magnetic"] {
  --magnetic-x: 0;
  --magnetic-y: 0;
  display: inline-block;
  transform: translate3d(calc(var(--magnetic-x) * 1px), calc(var(--magnetic-y) * 1px), 0);
  transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

[string="magnetic"]:hover {
  transition: transform 0.1s linear;
}

/* Specific Magnetic cards */
.service-card[string="magnetic"] {
  transform: translate3d(calc(var(--magnetic-x) * 0.3px), calc(var(--magnetic-y) * 0.3px), 0);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-lg);
  }
}

.footer__brand {
  max-width: 350px;
}

.footer__brand img {
  height: 108px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__nav h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.footer__nav ul li {
  margin-bottom: 0.5rem;
}

.footer__nav ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
}

.footer__nav ul li a:hover {
  color: var(--texto-claro);
  padding-left: 6px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer__contact-item i {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
  font-size: 0.85rem;
}

.footer__contact-item span,
.footer__contact-item a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__contact-item a:hover {
  color: var(--texto-claro);
}

.footer__cta-area {
  display: none; /* Hidden in this version */
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.footer__cta-area h3 {
  color: var(--texto-claro);
  margin-bottom: var(--space-xs);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.footer__cta-area p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__credit {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer__credit:hover {
  color: var(--texto-claro);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.footer__socials a:hover {
  background: var(--texto-claro);
  color: var(--azul-principal);
  border-color: var(--texto-claro);
  transform: translateY(-3px);
}

/* ============================================================
   15. WHATSAPP FLOATING BUTTON
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 950;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: whatsappPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   15.1 CUSTOM CURSOR
   ============================================================ */

.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-cursor-dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, var(--azul-secundario) 55%, var(--azul-principal) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 28px rgba(47, 125, 240, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}

.custom-cursor-ring {
  width: var(--cursor-ring-size);
  height: var(--cursor-ring-size);
  border-radius: 50%;
  border: 1.5px solid rgba(47, 125, 240, 0.7);
  background: radial-gradient(circle, rgba(47, 125, 240, 0.14) 0%, rgba(47, 125, 240, 0) 72%);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

body.has-custom-cursor.cursor-active .custom-cursor-dot,
body.has-custom-cursor.cursor-active .custom-cursor-ring {
  opacity: 1;
}

body.has-custom-cursor.cursor-hover .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(1.7);
  border-color: rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle, rgba(47, 125, 240, 0.26) 0%, rgba(47, 125, 240, 0) 76%);
  box-shadow: 0 0 26px rgba(47, 125, 240, 0.35);
}

body.has-custom-cursor.cursor-hover .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(1.45);
  box-shadow: 0 0 30px rgba(47, 125, 240, 0.72);
}

/* ============================================================
   16. SERVICES PAGE STYLES
   ============================================================ */

.services-main {
  background: var(--blanco-calido);
}

.services-main__header {
  max-width: 600px;
  margin-bottom: var(--space-3xl);
}

.services-main__header h2 {
  margin-bottom: var(--space-sm);
}

/* Premium service card - editorial layout */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .service-detail:nth-child(even) .service-detail__image {
    order: 2;
  }

  .service-detail:nth-child(even) .service-detail__text {
    order: 1;
  }
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-dramatic);
}

.service-detail__image:hover img {
  transform: scale(1.04);
}

.service-detail__image:hover {
  box-shadow: var(--shadow-card-hover);
}

.service-detail__text h3 {
  margin-bottom: var(--space-sm);
  color: var(--texto-oscuro);
}

.service-detail__text p {
  margin-bottom: var(--space-md);
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-detail__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--texto-muted);
}

.service-detail__features li i {
  color: var(--azul-principal);
  font-size: 0.7rem;
}

/* Complementary services grid */
.services-complementary {
  background: var(--negro-profundo);
}

.services-complementary__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.services-complementary__header h2 {
  color: var(--texto-claro);
  margin-bottom: var(--space-sm);
}

.services-complementary__header p {
  color: rgba(255, 255, 255, 0.5);
}

.comp-card {
  background: var(--gris-oscuro);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-elegant);
}

.comp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 125, 240, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.comp-card:hover .comp-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(47, 125, 240, 0.2);
}

.comp-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 125, 240, 0.1);
  border-radius: var(--radius-sm);
  margin: 0 auto var(--space-md);
  color: var(--azul-secundario);
  font-size: 1.1rem;
  transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.comp-card h4 {
  color: var(--texto-claro);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.comp-card p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* Services closing section */
.services-closing {
  background: var(--blanco-calido);
}

.services-closing__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.services-closing__inner h2 {
  margin-bottom: var(--space-md);
}

.services-closing__inner p {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   17. CONTACT PAGE STYLES
   ============================================================ */

.contact-section {
  background: var(--blanco-calido);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

@media (min-width: 968px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* Form premium styling */
.contact-form {
  background: var(--texto-claro);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.contact-form h3 {
  margin-bottom: var(--space-lg);
  color: var(--texto-oscuro);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--texto-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texto-oscuro);
  background: var(--blanco-suave);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--azul-principal);
  box-shadow: 0 0 0 3px rgba(29, 99, 199, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 0.3rem;
  display: none;
}

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

.form-success {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
  animation: fadeInUp 0.4s ease;
}

.form-success.visible {
  display: block;
}

.form-success i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact info column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__block {
  display: flex;
  gap: var(--space-md);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--negro-profundo);
  border-radius: var(--radius-sm);
  color: var(--azul-secundario);
  font-size: 1rem;
}

.contact-info__text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--texto-oscuro);
}

.contact-info__text p,
.contact-info__text a {
  font-size: 0.9rem;
  color: var(--texto-muted);
}

.contact-info__text a:hover {
  color: var(--azul-principal);
}

.contact-info__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.contact-info__socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--negro-profundo);
  color: var(--texto-claro);
  font-size: 1rem;
  transition: all var(--transition-smooth);
}

.contact-info__socials a:hover {
  background: var(--azul-principal);
  transform: translateY(-3px) scale(1.04);
}

/* Contact image strip */
.contact-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: var(--space-md);
}

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

/* ============================================================
   18. STRINGTUNE INTEGRATION STYLES
   ============================================================ */

/* Reveal on scroll - image animation */
.st-reveal {
  overflow: hidden;
}

.st-reveal img {
  scale: 1.3;
  opacity: 0;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition:
    scale var(--easing-timing) var(--easing-function),
    opacity var(--easing-timing) var(--easing-function),
    clip-path var(--easing-timing) var(--easing-function);
}

.st-reveal.-inview img {
  scale: 1;
  opacity: 1;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Split text animation */
.-splitted {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.-s-line {
  display: flex;
  width: 100%;
  will-change: contents;
}

.-s-word {
  display: inline-flex;
  will-change: contents;
}

.-s-char {
  display: inline-flex;
  will-change: contents;
  cursor: default;
  transform: translate3d(0, 120%, 0);
}

.-splitted.-inview .-s-char {
  transform: translate3d(0, 0, 0);
  transition: transform 0.9s var(--easing-function);
  transition-delay: calc((var(--char-start) / 5) * 0.3s);
}

/* Magnetic effect styles */
.st-magnetic {
  transform: translate(calc(var(--magnetic-x, 0) * 0.3%), calc(var(--magnetic-y, 0) * 0.3%));
}

/* ============================================================
   19. SCROLL ANIMATIONS (Custom)
   ============================================================ */

.reveal {
  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);
}

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

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

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.counter-animate {
  display: inline-block;
}

/* ============================================================
   20. RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .header {
    padding: 1rem 0;
  }

  .header__logo img {
    height: 74px;
  }

  .header--scrolled .header__logo img {
    height: 62px;
  }

  .footer__brand img {
    height: 90px;
  }

  .header__cta {
    display: none !important;
  }

  .hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .hero {
    align-items: center;
    padding-bottom: 4rem;
    padding-top: 6rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header {
    padding: 0.9rem 0;
  }

  .header__logo img {
    height: 66px;
  }

  .header--scrolled .header__logo img {
    height: 56px;
  }

  .mobile-menu {
    padding-top: max(5.4rem, env(safe-area-inset-top));
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    padding-bottom: 1.8rem;
  }

  .mobile-menu__links a {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
    padding: 0.82rem 0.1rem 1rem;
  }

  .hero {
    min-height: 92vh;
    min-height: 92dvh;
    padding-top: 6.8rem;
    padding-bottom: 2.4rem;
    align-items: flex-end;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__subtitle {
    margin-bottom: var(--space-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about__grid,
  .experience__grid,
  .contact-grid {
    gap: 2rem;
  }

  .project-gallery__header {
    margin-bottom: var(--space-xl);
  }

  .project-gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-item__caption {
    font-size: 0.78rem;
  }

  .services-preview__header,
  .services-main__header {
    margin-bottom: var(--space-xl);
  }

  .service-card__body,
  .contact-form {
    padding: 1.25rem;
  }

  .process-step {
    padding: 1.4rem 1rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .footer-spacer {
    height: 60vh;
  }

  .footer__inner {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .footer__cta-area h3 {
    font-size: 1.5rem;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .service-detail {
    margin-bottom: var(--space-xl);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header__logo img {
    height: 58px;
  }

  .header--scrolled .header__logo img {
    height: 50px;
  }

  .mobile-menu {
    padding-top: max(5rem, env(safe-area-inset-top));
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    padding-bottom: 1.6rem;
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }

  .hero-interior {
    min-height: 40vh;
  }

  .hero-interior__title {
    font-size: 2.5rem;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .gallery-item__caption {
    font-size: 0.74rem;
  }

  .footer__brand img {
    height: 72px;
  }
}

@media (max-width: 1024px) {
  .projects-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card,
  .portfolio-card--wide,
  .portfolio-card--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .projects-showcase__header {
    margin-bottom: var(--space-xl);
  }

  .projects-showcase__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .portfolio-card,
  .portfolio-card--wide,
  .portfolio-card--tall {
    min-height: 260px;
  }

  .portfolio-card__content p {
    font-size: 0.86rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }

  body,
  a,
  button,
  .btn {
    cursor: auto !important;
  }
}

/* Large desktop */
@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }

  html {
    font-size: 18px;
  }
}

/* ============================================================
   21. PRINT STYLES
   ============================================================ */

@media print {
  .header,
  .whatsapp-float,
  .hero__scroll {
    display: none;
  }
}

.projects-hero__title {
  max-width: 16ch;
  line-height: 0.98;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 768px) {
  .projects-hero__title {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    line-height: 1.02;
  }
}
