/* ============================================================
   Sites That Sell — Portfolio Premium
   Stylesheet v1.0
   Brand: Dark forest / Gold / Off-white
   ============================================================ */

/* ============================================================
   1. TOKENS & VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --bg:           #0D1110;   /* Primary background */
  --bg-2:         #111918;   /* Secondary background */
  --bg-card:      #151E1B;   /* Card / elevated surfaces */
  --border:       #1E2E28;   /* Default borders */
  --border-light: #2A403A;   /* Hover / active borders */

  --green:        #1F6C4A;   /* Brand green */
  --green-dim:    #163828;   /* Dimmed green for backgrounds */
  --green-bright: #28A068;   /* Light green for availability badge */

  --gold:         #C4953E;   /* Brand gold — primary accent */
  --gold-light:   #D4A84E;   /* Gold hover */
  --gold-dim:     rgba(196, 149, 62, 0.12); /* Gold tinted bg */

  --text-1:       #F0F0EA;   /* Headlines */
  --text-2:       #9A9A92;   /* Body / secondary */
  --text-3:       #5A5A52;   /* Muted labels */
  --white:        #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold:  0 8px 32px rgba(196, 149, 62, 0.15);

  /* Transitions */
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1280px;
  --nav-h:     72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; }

.text-gold {
  color: var(--gold);
  font-style: normal;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(196, 149, 62, 0.2);
  border-radius: var(--r-full);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-4xl) 0;
}

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

.section-sub {
  margin-top: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

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

.btn:hover::after { background: rgba(255,255,255,0.04); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: #0D1110;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(196, 149, 62, 0.25);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 28px rgba(196, 149, 62, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--text-3);
  background: rgba(255,255,255,0.03);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 0.95rem;
  border-radius: var(--r-lg);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon { transform: translateX(3px); }

/* ============================================================
   6. NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(13, 17, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Mobile: monogram only */
.nav-logo-desktop { display: none; }
.nav-logo-mobile  { display: block; }

/* Nav links */
.nav-links {
  display: none;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.05); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-1);
  transition: transform 0.3s var(--ease), opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu — Compact Premium Panel */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 16px;
  right: 16px;
  background: rgba(13, 17, 16, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  z-index: 950;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

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

/* Nav links */
.mm-nav {
  padding: var(--space-md) var(--space-lg);
}

.mm-nav ul {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mm-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mm-nav li:last-child {
  border-bottom: none;
}

.mm-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  color: var(--text-1);
  padding: 13px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mm-nav a:hover,
.mm-nav a:active {
  color: var(--gold);
}

/* Footer: CTA */
.mm-footer {
  padding: var(--space-md) var(--space-lg);
  padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.mm-cta-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(196, 149, 62, 0.2);
}

/* ============================================================
   7. HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 108, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 108, 74, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(31, 108, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 7px 16px;
  background: rgba(31, 108, 74, 0.1);
  border: 1px solid rgba(31, 108, 74, 0.3);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-bright);
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero-title em {
  display: block;
  font-style: italic;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero Visual — Browser Mockup */
.hero-visual { display: none; }

.mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.browser-mockup {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(196, 149, 62, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.7s var(--ease);
  position: relative;
  z-index: 2;
}

.browser-mockup:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
}

.bm-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.bm-dots { display: flex; gap: 6px; }

.bm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bm-dot-r { background: #FF5F57; }
.bm-dot-y { background: #FEBC2E; }
.bm-dot-g { background: #28C840; }

.bm-url {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.bm-screen { background: #0A0E0C; }

.bm-nav-bar {
  height: 34px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bm-hero {
  padding: 28px 20px 20px;
  background: linear-gradient(145deg, #0D1A14 0%, #09100D 100%);
}

.bm-lines { margin-bottom: 18px; }

.bm-line {
  height: 9px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 9px;
}

.bm-xl { width: 82%; }
.bm-lg { width: 62%; }
.bm-md { width: 44%; }
.bm-gold { background: rgba(196, 149, 62, 0.35); }

.bm-cta-btn {
  width: 96px;
  height: 26px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--r-sm);
  opacity: 0.85;
}

.bm-cards {
  display: flex;
  gap: 8px;
  padding: 14px 12px;
  background: rgba(10, 14, 12, 0.95);
}

.bm-card {
  flex: 1;
  height: 48px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(21, 30, 27, 0.96);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 5;
}

.fb-icon { font-style: normal; }

.fb-1 {
  bottom: 22%;
  left: -30px;
  animation: float-y 5s ease-in-out infinite;
}

.fb-2 {
  top: 15%;
  right: -20px;
  animation: float-y 5s ease-in-out infinite 2.5s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
  z-index: 1;
}

.scroll-hint:hover { color: var(--text-2); }

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   9. SERVICES
   ============================================================ */
#servicios { background: var(--bg); }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border: 1px solid rgba(196, 149, 62, 0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============================================================
   10. PORTFOLIO
   ============================================================ */
#proyectos {
  background: var(--bg-2);
  position: relative;
}

#proyectos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.portfolio-card:not(.pc-placeholder):hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Project browser mockup with real screenshot */
.pc-visual {
  background: #0A0F0D;
  padding: var(--space-xl) var(--space-xl) 0;
  overflow: hidden;
}

.pc-browser {
  width: 100%;
  background: #0A0E0C;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(196,149,62,0.05);
}

.pc-bbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.pc-bbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pc-bbar span:nth-child(1) { background: #FF5F57; }
.pc-bbar span:nth-child(2) { background: #FEBC2E; }
.pc-bbar span:nth-child(3) { background: #28C840; }

.pc-burl {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.25);
}

.pc-screen {
  overflow: hidden;
  height: 175px;
}

/* Real screenshot inside browser frame */
.project-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .project-preview-img {
  transform: scale(1.04);
}

/* Card info */
.pc-info {
  padding: var(--space-xl);
}

.pc-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.pc-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(196, 149, 62, 0.2);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.pc-location {
  font-size: 12px;
  color: var(--text-3);
}

.pc-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.pc-case {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pc-case-row { display: flex; flex-direction: column; gap: 4px; }

.pc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pc-case-row p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
}

.pc-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: var(--space-md);
  background: rgba(31, 108, 74, 0.07);
  border: 1px solid rgba(31, 108, 74, 0.2);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

.pc-result svg {
  width: 16px;
  height: 16px;
  color: var(--green-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.pc-cta {
  display: inline-flex;
  gap: 6px;
}

.pc-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.pc-cta:hover svg { transform: translateX(3px); }

/* Placeholder cards */
.pc-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.pc-placeholder:hover {
  border-color: var(--border-light);
  background: rgba(255,255,255,0.01);
}

.pc-ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl);
}

.pc-ph-icon {
  width: 56px;
  height: 56px;
  color: var(--border-light);
}

.pc-ph-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
}

.pc-ph-sub {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ============================================================
   11. PROCESS
   ============================================================ */
#proceso { background: var(--bg); }

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

.process-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover { border-color: var(--border-light); transform: translateX(4px); }
.process-step:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 52px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.process-step:hover .step-num { opacity: 1; }

.step-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ============================================================
   12. ADVANTAGES
   ============================================================ */
#ventajas {
  background: var(--bg-2);
  position: relative;
}

#ventajas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.ventaja-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ventaja-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.v-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: border-color 0.3s, background 0.3s;
}

.ventaja-card:hover .v-icon {
  background: var(--gold-dim);
  border-color: rgba(196, 149, 62, 0.3);
}

.v-icon svg {
  width: 22px;
  height: 22px;
}

.ventaja-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ventaja-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
#cta {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 60vh;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(31, 108, 74, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 30%, rgba(196, 149, 62, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 108, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 108, 74, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, black 0%, transparent 80%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.cta-tag { display: block; margin-bottom: var(--space-lg); }

#cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

.cta-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.cta-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   14. FAQ
   ============================================================ */
#faq { background: var(--bg-2); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s ease;
  background: var(--bg-card);
}

.faq-item:hover, .faq-item.open {
  border-color: var(--border-light);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 20px var(--space-xl);
  text-align: left;
  color: var(--text-1);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.faq-trigger:hover { color: var(--gold); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.35s var(--ease), color 0.2s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s ease;
}

.faq-body p {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-2);
}

.faq-item.open .faq-body {
  max-height: 300px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
#footer {
  background: #080C0A;
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: var(--space-3xl) 0;
}

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

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

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 320px;
  margin-bottom: var(--space-xl);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.social-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all 0.25s ease;
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  background: var(--gold-dim);
  border-color: rgba(196, 149, 62, 0.3);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-nav-col h4,
.footer-contact-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-xl);
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--text-1); }

.footer-contact-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-motto {
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   16. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(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; }

/* ============================================================
   17. MEDIA QUERIES — TABLET (768px+)
   ============================================================ */
@media (min-width: 768px) {
  section { padding: var(--space-3xl) 0; }

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ventajas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-cta {
    display: inline-flex;
  }

  /* Show horizontal logo on tablet+, hide monogram */
  .nav-logo-desktop { display: block; }
  .nav-logo-mobile  { display: none; }

  .hero-stats {
    gap: var(--space-xl);
  }
}

/* ============================================================
   18. MEDIA QUERIES — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  section { padding: var(--space-4xl) 0; }

  .nav-links {
    display: flex;
  }

  .nav-toggle { display: none; }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "content visual"
      "actions visual"
      "stats   visual";
    grid-template-rows: auto auto auto;
    row-gap: 0;
    column-gap: var(--space-2xl);
    align-items: start;
  }

  .hero-content  { grid-area: content; }
  .hero-visual   { grid-area: visual; display: block; align-self: center; }
  .hero-actions  { grid-area: actions; padding-top: var(--space-xl); margin-bottom: 0; }
  .hero-stats    { grid-area: stats;   padding-top: var(--space-xl); }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ventajas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pc-screen {
    height: 220px;
  }
}

/* ============================================================
   19. MEDIA QUERIES — LARGE DESKTOP (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 5rem;
  }

  .hero-container {
    column-gap: var(--space-3xl);
  }
}

/* ============================================================
   20. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   21. ACTIVE NAV STATE
   ============================================================ */
.nav-links a.active {
  color: var(--text-1);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--gold);
}

/* ============================================================
   22. MOBILE FIXES
   Hero visual compacto | burbujas reposicionadas | placeholder extra
   ============================================================ */

/* -- Hero: mockup visible en tablet/mobile, compacto y sin 3D -- */
@media (max-width: 1023px) {
  #hero {
    padding-top: calc(var(--nav-h) + var(--space-md));
    padding-bottom: var(--space-2xl);
  }

  /* Hero-container en mobile: gap entre content / visual / actions / stats */
  .hero-container {
    gap: var(--space-lg);
  }

  /* Mostrar el visual — order natural del DOM: content → visual → actions → stats */
  .hero-visual {
    display: block;
  }

  .mockup-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Sin 3D en mobile */
  .browser-mockup {
    transform: none !important;
    transition: none;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,149,62,0.07);
  }

  /* Pantalla del mockup más compacta */
  .bm-hero   { padding: 14px 14px 10px; }
  .bm-cards  { padding: 10px; }
  .bm-card   { height: 36px; }

  /* Floating badges: visibles en mobile — ancladas a los bordes del mockup */
  .float-badge {
    display: flex;
    font-size: 11px;
    padding: 6px 12px;
    gap: 5px;
  }

  /* Burbuja inferior-izquierda */
  .fb-1 {
    bottom: 16%;
    left: 8px;
    right: auto;
    animation: float-y 5s ease-in-out infinite;
  }

  /* Burbuja superior-derecha */
  .fb-2 {
    top: 14%;
    right: 8px;
    left: auto;
    animation: float-y 5s ease-in-out infinite 2.5s;
  }
}

/* -- Hero: tipografía y spacing mobile -- */
@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2.75rem, 11.5vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0; /* el gap del container maneja el espacio */
  }

  .hero-badge {
    margin-bottom: var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
  }

  .stat-item {
    align-items: center;
    text-align: center;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .scroll-hint {
    position: static;
    transform: none;
    margin: 1.5rem auto 0;
    display: flex;
  }

  .scroll-line {
    height: 24px;
  }
}

/* -- Portfolio: placeholder compact en mobile -- */
@media (max-width: 767px) {
  .pc-placeholder {
    min-height: 180px;
  }

  .pc-ph-inner {
    gap: var(--space-sm);
    padding: var(--space-lg);
  }

  .pc-ph-icon {
    width: 40px;
    height: 40px;
  }

  .pc-ph-title {
    font-size: 0.95rem;
  }

  .pc-ph-sub {
    font-size: 0.8rem;
    max-width: 260px;
    text-align: center;
  }
}

/* -- Ventajas: compact list layout on mobile -- */
@media (max-width: 767px) {
  .ventajas-grid {
    gap: 10px;
  }

  /* Grid 2-col: [icon 36px] | [h3 + p apilados] */
  .ventaja-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: var(--space-md);
    row-gap: 4px;
    padding: var(--space-md) var(--space-lg);
    align-items: start;
  }

  .ventaja-card .v-icon {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    align-self: center;
  }

  .ventaja-card .v-icon svg {
    width: 17px;
    height: 17px;
  }

  .ventaja-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.93rem;
    align-self: center;
    margin-bottom: 0;
  }

  .ventaja-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-2);
  }
}

/* -- FAQ: compact accordion on mobile -- */
@media (max-width: 767px) {
  .faq-list {
    gap: 12px;
  }

  .faq-item {
    border-radius: var(--r-lg);
  }

  .faq-trigger {
    padding: 18px 20px;
    min-height: 68px;
    align-items: center;
    gap: var(--space-md);
  }

  .faq-trigger span {
    font-size: 0.97rem;
    line-height: 1.3;
  }

  .faq-chevron {
    width: 18px;
    height: 18px;
  }

  .faq-body p {
    padding: 0 20px 18px;
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

/* -- CTA: mobile headline fix + note alignment -- */
@media (max-width: 767px) {
  #cta h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    line-height: 1.08;
    max-width: 300px;
    margin-inline: auto;
  }

  .cta-sub {
    font-size: 0.95rem;
    max-width: 300px;
    margin-inline: auto;
  }

  .cta-note {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
    text-align: center;
    line-height: 1.5;
  }

  .cta-note svg {
    display: none !important;
  }
}
