/* ============================================================
   VERZA DESIGN — Main Stylesheet
   Design System: Royal Blue, Smoke White, Slate Gray
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Dancing+Script:wght@600;700&family=Nothing+You+Could+Do&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --royal-blue: #1a3fc4;
  --royal-dark: #122d9a;
  --royal-light: #3d5fd4;
  --smoke-white: #f5f5f0;
  --pure-white: #ffffff;
  --slate-gray: #4a5568;
  --dark-bg: #0d1117;
  --dark-surface: #161b27;
  --accent-gold: #c9a96e;
  --accent-gold-light: #e0c48a;
  --text-primary: #0e111b;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --whatsapp: #25D366;

  /* ── Premium Gradient Tokens ── */
  --gradient-brand: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal-blue) 50%, var(--royal-light) 100%);
  --gradient-gold: linear-gradient(135deg, #b8923c 0%, var(--accent-gold) 50%, var(--accent-gold-light) 100%);
  --gradient-dark: linear-gradient(160deg, #0d1117 0%, #161b27 100%);

  /* ── Glow Shadows ── */
  --glow-blue: 0 0 40px rgba(26, 63, 196, .30), 0 8px 32px rgba(26, 63, 196, .20);
  --glow-blue-strong: 0 0 60px rgba(26, 63, 196, .45), 0 12px 40px rgba(26, 63, 196, .30);
  --glow-gold: 0 0 30px rgba(201, 169, 110, .35), 0 4px 16px rgba(201, 169, 110, .20);

  --font-sans: 'Manrope', sans-serif;
  --font-script: 'Dancing Script', cursive;
  --font-brand-script: 'Nothing You Could Do', cursive;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14), 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .18);
  --shadow-blue: 0 8px 32px rgba(26, 63, 196, .25);

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--smoke-white);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  /* hide default cursor — custom cursor takes over */
}

/* ── Noise Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--royal-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: normal;
}

#cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--royal-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s;
  opacity: 0.7;
}

body.cursor-hover #cursor {
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
}

body.cursor-hover #cursor-follower {
  width: 56px;
  height: 56px;
  border-color: var(--accent-gold);
  opacity: 0.5;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--smoke-white);
}

::-webkit-scrollbar-thumb {
  background: var(--royal-blue);
  border-radius: 3px;
}

/* ── Selection ── */
::selection {
  background: rgba(26, 63, 196, .15);
  color: var(--royal-blue);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.handwritten {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--royal-blue);
  font-style: italic;
  letter-spacing: 0.01em;
  font-size: 1.35em;
}

.brand-script {
  font-family: var(--font-brand-script);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--royal-blue);
}

p {
  line-height: 1.7;
  color: var(--slate-gray);
}

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

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

/* ── Layout Utilities ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: rgba(26, 63, 196, .08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  cursor: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.btn:hover::after {
  background: rgba(255, 255, 255, .08);
}

.btn-primary {
  background: var(--royal-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--royal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26, 63, 196, .35);
}

.btn-outline {
  background: transparent;
  color: var(--pure-white);
  border: 1.5px solid rgba(255, 255, 255, .4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .7);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--royal-blue);
  border: 1.5px solid var(--royal-blue);
}

.btn-outline-dark:hover {
  background: var(--royal-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Header ── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(248, 248, 244, .88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(26, 63, 196, .12);
  box-shadow: 0 1px 0 rgba(26, 63, 196, .08), 0 4px 24px rgba(0, 0, 0, .06);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  cursor: none;
}

/* Logo — proportional inside the 100px header */
.logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.35s ease;
}

/* Hero (dark bg): invert blue logo → white */
#header.hero-mode .logo-img {
  filter: brightness(0) invert(1);
}

/* Footer (dark bg): same white treatment */
.footer-logo {
  height: 54px;
  filter: brightness(0) invert(1);
}

.header-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--royal-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

#header.hero-mode .header-logo {
  color: white;
}

#header.hero-mode .header-logo .logo-icon {
  background: rgba(255, 255, 255, .2);
}

/* ── Navigation ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: none;
  padding: 4px 0;
  transition: color 0.2s;
}

#header.hero-mode .nav-link {
  color: rgba(255, 255, 255, .85);
}

#header.hero-mode .nav-link:hover {
  color: white;
}

.nav-link:hover {
  color: var(--royal-blue);
}

/* SVG pencil-stroke underline */
.nav-link .nav-underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.nav-link .nav-underline path {
  stroke: var(--royal-blue);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.hero-mode .nav-link .nav-underline path {
  stroke: rgba(255, 255, 255, .8);
}

.nav-link:hover .nav-underline path {
  stroke-dashoffset: 0;
}

/* ── Mobile Menu ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

#header.hero-mode .menu-toggle span {
  background: white;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--smoke-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Hero Section ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1920&q=90');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg,
      rgba(8, 12, 22, .80) 0%,
      rgba(18, 45, 154, .40) 45%,
      rgba(26, 63, 196, .20) 70%,
      rgba(8, 12, 22, .60) 100%);
}

/* Ambient glow — bottom left corner */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center,
      rgba(26, 63, 196, .25) 0%,
      transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  padding-top: 72px;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  color: white;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-content h1 .handwritten {
  color: #DCFF00;
  font-size: 1.15em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, .8);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* ── Hero Decorative SVG ── */
.hero-deco {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
  pointer-events: none;
  animation: heroDecoSpin 40s linear infinite;
  opacity: 0.9;
}

@keyframes heroDecoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── Nosotras Section ── */
#nosotras {
  padding: clamp(3rem, 5vw, 4rem) 0;
  background: var(--pure-white);
  overflow: hidden;
  position: relative;
}

/* Subtle dot pattern */
#nosotras::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 63, 196, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.nosotras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.nosotras-image-wrap {
  position: relative;
  width: 70%;
  /* Reduced size to fit better on screen (Zoom effect) */
  margin: 0 auto;
}

.nosotras-image-wrap .img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}

.nosotras-image-wrap .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nosotras-image-wrap:hover .img-frame img {
  transform: scale(1.04);
}

.nosotras-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gradient-brand);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-blue);
  text-align: center;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .15);
}

.nosotras-badge .badge-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.nosotras-badge .badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.95;
}

.nosotras-deco {
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 80px;
  height: 80px;
  color: var(--royal-blue);
  opacity: 0.15;
  z-index: 0;
}

.nosotras-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.nosotras-quote {
  background: var(--smoke-white);
  border-left: 3px solid var(--royal-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

.nosotras-text {
  font-size: 1.05rem;
  color: var(--slate-gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.founders-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.founders-avatars {
  display: flex;
}

.founders-avatars .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid white;
  overflow: hidden;
  margin-left: -10px;
  box-shadow: var(--shadow-sm);
}

.founders-avatars .avatar:first-child {
  margin-left: 0;
}

.founders-avatars .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders-info .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.founders-info .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Designer Photos in Nosotras ── */
.nosotras-text-photos {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.nosotras-text-block {
  flex: 1;
  min-width: 0;
}

.designer-photos {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  width: 200px;
  min-width: 160px;
  flex-shrink: 0;
  align-self: center;
}

.designer-photo {
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.designer-photo-small {
  width: 140px;
  height: 200px;
  position: relative;
  z-index: 1;
}

.designer-photo-large {
  width: 170px;
  height: 220px;
  margin-top: -40px;
  margin-left: 40px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .nosotras-text-photos {
    flex-direction: column;
  }

  .designer-photos {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .designer-photo-small {
    width: 140px;
    height: 190px;
  }

  .designer-photo-large {
    width: 160px;
    height: 210px;
    margin-top: 0;
    margin-left: 0;
  }
}

/* ── Services Section ── */
#servicios {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--smoke-white);
}

.services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1.05rem;
}

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

.service-card {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-light));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-blue-strong);
  border-color: transparent;
}

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

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 63, 196, .1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.4s;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--royal-blue);
  transition: color 0.4s;
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, .2);
}

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

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  transition: color 0.4s;
}

.service-card:hover h3,
.service-card:hover p {
  color: rgba(255, 255, 255, .9);
}

.service-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  background: var(--gradient-dark);
  border-color: transparent;
  color: white;
  box-shadow: var(--glow-blue);
  position: relative;
  overflow: hidden;
}

.service-card.featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  pointer-events: none;
}

.service-card.featured::before {
  display: none;
}

.service-card.featured h3 {
  color: white;
  font-size: 1.75rem;
}

.service-card.featured p {
  color: rgba(255, 255, 255, .75);
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, .1);
}

.service-card.featured .service-icon svg {
  color: var(--accent-gold);
}

.service-card.featured:hover {
  transform: translateY(-4px);
}

/* ── Before/After Slider ── */
.before-after-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: col-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
}

.ba-after {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=900&q=85');
  background-size: cover;
  background-position: center;
}

.ba-before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid white;
  transition: width 0s;
}

.ba-before-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* width is set dynamically by JS to compensate for clip */
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=900&q=85');
  background-size: cover;
  background-position: left center;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: col-resize;
}

.ba-handle-circle {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--royal-blue);
}

.ba-label {
  position: absolute;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.ba-label.antes {
  left: 1rem;
  background: rgba(0, 0, 0, .6);
  color: white;
  backdrop-filter: blur(4px);
}

.ba-label.despues {
  right: 1rem;
  background: var(--royal-blue);
  color: white;
}

.ba-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .6);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Portfolio Section ── */
#portafolio {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--pure-white);
  overflow: hidden;
  /* Prevent horizontal scroll leak from carousels */
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.portfolio-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.portfolio-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border-light);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: var(--royal-blue);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

/* --- Browse Mode: Category Rows --- */
.cat-row {
  margin-bottom: 4rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cat-row.hidden {
  display: none !important;
}

.cat-row-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.cat-row-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.cat-row-header h3 svg {
  color: var(--royal-blue);
  opacity: 0.8;
}

.cat-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Carousel --- */
.proj-carousel-wrap {
  position: relative;
  margin: 0 -0.5rem;
  display: block !important;
}

.proj-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem;
  scrollbar-width: none;
}

.proj-carousel::-webkit-scrollbar {
  display: none;
}

.proj-slide {
  flex: 0 0 calc(33.333% - 1rem) !important;
  min-width: calc(33.333% - 1rem);
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--smoke-white);
  border: 1px solid var(--border-light);
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: block !important;
}

@media (max-width: 1024px) {
  .proj-slide {
    flex: 0 0 calc(50% - 0.75rem) !important;
    min-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 640px) {
  .proj-slide {
    flex: 0 0 85% !important;
    min-width: 85%;
  }
}

.proj-slide:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(18, 45, 154, 0.1);
  border-color: rgba(26, 63, 196, .2);
}

.proj-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.proj-slide:hover img {
  transform: scale(1.08);
}

.proj-slide-info {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(9, 14, 28, 0.9) 0%, rgba(18, 45, 154, 0.2) 60%, transparent 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 1.5rem;
  opacity: 1;
  transition: background 0.3s ease;
  z-index: 2;
}

.proj-slide:hover .proj-slide-info {
  background: linear-gradient(to top, rgba(9, 14, 28, 0.95) 0%, rgba(18, 45, 154, 0.3) 70%, transparent 100%) !important;
}

.proj-slide-info .proj-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.proj-slide-info .proj-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.1;
}

.proj-slide-info .proj-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Arrows Browse --- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  opacity: 0;
}

.proj-carousel-wrap:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: -10px;
}

.carousel-arrow-right {
  right: -10px;
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* ── Detail Mode: Project Panel ── */
.proj-detail {
  padding-top: 1rem;
  animation: detailFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes detailFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.proj-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.proj-detail-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.proj-detail-back:hover {
  color: var(--royal-blue);
}

.proj-detail-meta {
  text-align: center;
}

.proj-detail-meta .proj-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 4px;
}

.proj-detail-meta h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.proj-detail-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
}

.proj-detail-hero-wrap {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--smoke-white);
  box-shadow: var(--shadow-lg);
}

.proj-detail-hero {
  aspect-ratio: 16/9;
  cursor: zoom-in;
}

.proj-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.proj-detail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.proj-detail-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.proj-detail-prev {
  left: 1.5rem;
}

.proj-detail-next {
  right: 1.5rem;
}

.proj-detail-thumbs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.proj-detail-thumbs::-webkit-scrollbar {
  height: 4px;
}

.proj-detail-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.thumb-item {
  flex: 0 0 160px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.thumb-item:hover {
  opacity: 1;
}

.thumb-item.active {
  border-color: var(--royal-blue);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(9, 14, 28, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, .1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  text-align: center;
  margin-top: 1.5rem;
  color: white;
}

#lightbox-project {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

#lightbox-counter {
  font-size: 0.9rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .proj-detail-arrow {
    width: 44px;
    height: 44px;
  }

  .proj-detail-prev {
    left: 1rem;
  }

  .proj-detail-next {
    right: 1rem;
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

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

.lightbox-arrow {
  width: 40px;
  height: 40px;
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

.project-gallery {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
}

/* ── Testimonials ── */
#testimonios {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--dark-bg);
  color: white;
  overflow: hidden;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonios-header h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.testimonios-header p {
  color: rgba(255, 255, 255, .6);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, .5) 50%, transparent 100%);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(26, 63, 196, .30);
  transform: translateY(-6px);
  box-shadow: var(--glow-blue);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-gold);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
}

.author-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, .5);
}

/* ── Contact / CTA Section ── */
#contacto {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--smoke-white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contacto-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.contacto-content p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-gray);
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--royal-blue);
  flex-shrink: 0;
}

.contacto-form {
  background: var(--pure-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26, 63, 196, .06);
  border: 1px solid rgba(26, 63, 196, .10);
  position: relative;
  overflow: hidden;
}

.contacto-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--smoke-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26, 63, 196, .1);
  background: white;
}

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

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

/* ── Footer ── */
#footer {
  background: var(--dark-bg);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--royal-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition-fast);
  cursor: none;
}

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

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
  cursor: none;
}

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

.footer-col .contact-line {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-col .contact-line svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--royal-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .35);
}

/* ── WhatsApp FAB ── */
#whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  cursor: none;
  transition: var(--transition);
}

#whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}

#whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: waPulse 2.5s ease-out infinite;
}

#whatsapp-fab svg {
  position: relative;
  z-index: 1;
}

/* WhatsApp Tooltip */
#whatsapp-fab .wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark-bg);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow-md);
}

#whatsapp-fab .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--dark-bg);
}

#whatsapp-fab:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card.featured {
    grid-column: span 2;
  }

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

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

  .portfolio-masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .nosotras-badge {
    bottom: 1rem;
    right: 1rem;
  }

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

  .service-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

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

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

  .portfolio-masonry {
    columns: 1;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  body {
    cursor: auto;
  }

  #cursor,
  #cursor-follower {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

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

/* ── Video Section ── */
#proceso {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: #2323AF;
  position: relative;
  overflow: hidden;
}

/* Gold accent line on top */
#proceso::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

/* Texture overlay */
#proceso::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

#proceso .section-label {
  color: white;
  background: rgba(255, 255, 255, .15);
}

#proceso h2 {
  color: white;
}

#proceso p {
  color: rgba(255, 255, 255, .8);
}


.videos-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.videos-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}


/* ── Reel Carousel ── */
.reel-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Stage — holds 3 visible slides + arrows */
.reel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 520px;
  height: 500px;
  flex-shrink: 0;
}

/* Individual slides — absolute positioned, class-driven */
.reel-slide {
  position: absolute;
  width: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Active — center, full size */
.reel-slide.active {
  left: 50%;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  border-color: rgba(201, 169, 110, .30);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 30px rgba(35, 35, 175, .3);
}

/* Previous — left peek */
.reel-slide.prev {
  left: 0;
  transform: translateX(-15%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
  filter: blur(2px) brightness(0.6);
  pointer-events: none;
}

/* Next — right peek */
.reel-slide.next {
  right: 0;
  left: auto;
  transform: translateX(15%) scale(0.82);
  opacity: 0.45;
  z-index: 2;
  filter: blur(2px) brightness(0.6);
  pointer-events: none;
}

/* Hidden — off-screen */
.reel-slide.hidden {
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* Arrows — over stage edges */
.reel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .35);
  color: white;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.reel-arrow--prev {
  left: 8px;
}

.reel-arrow--next {
  right: 8px;
}

.reel-arrow:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-50%) scale(1.1);
}

/* Info panel — right side */
.reel-info-panel {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  color: white;
  animation: fadeInfoIn 0.4s ease;
}

@keyframes fadeInfoIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.reel-info-panel h3 {
  font-size: 1.35rem;
  margin: 0.6rem 0 0.5rem;
  line-height: 1.3;
}

.reel-info-panel p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  margin: 0;
}

/* Counter */
.reel-counter {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
}

.reel-counter-current {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* Dot indicators */
.reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.reel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.reel-dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.2);
}

.reel-dot:hover:not(.active) {
  border-color: rgba(255, 255, 255, .8);
}

/* Video placeholder for "coming soon" */
.video-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-xl);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play / Pause button — center overlay */
.video-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .35);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, .2);
}

.video-play-btn svg {
  width: 48px;
  height: 48px;
  color: white;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
  transition: transform 0.2s, opacity 0.2s;
}

.video-play-btn:hover svg {
  transform: scale(1.1);
}

/* Hide play overlay when playing */
.video-wrap.playing .video-play-btn {
  background: transparent;
}

.video-wrap.playing .video-play-btn svg {
  opacity: 0;
}

.video-wrap.playing:hover .video-play-btn {
  background: rgba(0, 0, 0, .2);
}

.video-wrap.playing:hover .video-play-btn svg {
  opacity: 1;
}

/* Mute / Unmute button — bottom right corner */
.video-mute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.video-mute-btn:hover {
  background: rgba(26, 63, 196, .8);
  transform: scale(1.1);
}

.video-mute-btn svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* Video tag */
.video-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, .15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .2);
}

/* ── Responsive carousel ── */
@media (max-width: 768px) {
  .reel-carousel {
    flex-direction: column;
    gap: 1.5rem;
  }

  .reel-stage {
    width: 380px;
    height: 400px;
  }

  .reel-slide {
    width: 200px;
  }

  .reel-info-panel {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .reel-stage {
    width: 300px;
    height: 330px;
  }

  .reel-slide {
    width: 160px;
  }

  .reel-arrow {
    width: 34px;
    height: 34px;
  }

  .reel-arrow svg {
    width: 16px;
    height: 16px;
  }
}