/* ============================================================
   ESTUDIO FREG — Sistema de diseño
   Estética: minimalismo tech, sans-serif geométrica, paleta calma
   ============================================================ */

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

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

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

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

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

input, textarea, button {
  font: inherit;
}

ul { list-style: none; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --bg: #FBFBFA;
  --bg-alt: #F3F2EE;
  --bg-dark: #0E1411;
  --surface: #FFFFFF;
  --ink: #0A0A0B;
  --ink-soft: #2B2B2D;
  --muted: #6E6E70;
  --muted-light: #9A9A9C;
  --border: #E5E4E0;
  --border-strong: #D6D5D0;
  --accent: #62c3f0;       /* Sage green */
  --accent-deep: #006f97;
  --accent-soft: #E8EDE7;
  --accent-glow: rgba(74, 124, 89, 0.08);
  --whatsapp: #00e9e9;
  --whatsapp2: #25D366;
  --whatsapp-dark: #128C7E;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 11, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 10, 11, 0.08);
  --shadow-xl: 0 24px 60px rgba(10, 10, 11, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast: 180ms var(--ease);
  --t-med: 320ms var(--ease);
  --t-slow: 600ms var(--ease);

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --header-h: 72px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  position: relative;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: var(--whatsapp2);
  color: #fff;
  border-color: var(--whatsapp2);
  box-shadow: 0 2px 0 0 var(--whatsapp-dark), var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--whatsapp-dark), var(--shadow-md);
}

.btn-whatsapp:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 var(--whatsapp-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn .icon {
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all var(--t-fast);
}

.link-arrow svg {
  transition: transform var(--t-fast);
}

.link-arrow:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(251, 251, 250, 0.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: all var(--t-med);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 251, 250, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity var(--t-fast);
  width: 90px;
}

.brand:hover { opacity: 0.75; }

.header-logo{
  width: 100%;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-desktop a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 450;
  transition: color var(--t-fast);
  position: relative;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-med);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--t-fast);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5);
  flex-direction: column;
  gap: var(--space-4);
}

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

.nav-mobile a {
  font-size: 1.05rem;
  color: var(--ink);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ---------- HERO — Fullscreen tipográfico ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}

.hero-coords {
  position: absolute;
  top: calc(var(--header-h) + var(--space-5));
  right: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 2.8s forwards;
}

.coords-city { color: var(--accent); }

.hero-stage {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-rule-top {
  animation: rule-grow 0.8s var(--ease-out) 0.1s forwards;
  margin-bottom: clamp(var(--space-6), 5vh, var(--space-9));
}

.hero-rule-mid {
  animation: rule-grow 0.8s var(--ease-out) 1.6s forwards;
  margin-top: clamp(var(--space-6), 5vh, var(--space-9));
  margin-bottom: clamp(var(--space-6), 5vh, var(--space-9));
}

.hero-rule-bot {
  animation: rule-grow 0.8s var(--ease-out) 2.6s forwards;
  margin-top: clamp(var(--space-6), 5vh, var(--space-9));
}

@keyframes rule-grow {
  to { transform: scaleX(1); }
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(4.5rem, 11.5vw, 10rem);
  margin: 0;
}

.hl-line {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  transition: none;
}

.hl-line:nth-child(1) {
  animation: line-rise 0.9s var(--ease-out) 0.5s forwards;
}

.hl-line:nth-child(2) {
  animation: line-rise 0.9s var(--ease-out) 0.85s forwards;
  color: var(--ink);
}

.hl-accent {
  color: var(--accent);
}

@keyframes line-rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-7);
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 2.2s forwards;
}

.hero-sub {
  font-size: clamp(0.75rem, 1vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hero-tagline {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 3s forwards;
}

.hero-tagline-sep { color: var(--accent); }

@keyframes scroll-indicator {
  0% { top: -40px; }
  100% { top: 100%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive hero */
@media (max-width: 1024px) {
  .hero-headline { font-size: clamp(4.5rem, 14vw, 10rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .hero-headline { font-size: clamp(3.5rem, 18vw, 7rem); letter-spacing: -0.03em; }
  .hero-coords { display: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-tagline { font-size: 10px; gap: var(--space-2); }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(3rem, 20vw, 5.5rem); }
  .hero-sub br.hero-br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-line, .hero-rule, .hero-bottom,
  .hero-coords, .hero-tagline {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes scroll-indicator {
  0% { top: -40px; }
  100% { top: 100%; }
}

/* ---------- PROBLEM SECTION ---------- */
.section-problem {
  background: var(--bg-alt);
  border-top: none;
}

.section-title em {
  font-weight: 400;
}

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

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 220px;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transition: .3s all;
}

.problem-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.problem-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.problem-card-cta {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  justify-content: space-between;
}

.problem-card-cta .problem-text {
  color: var(--bg);
  font-size: 1.15rem;
  font-weight: 500;
}

.problem-card-cta .link-arrow {
  color: var(--whatsapp);
  border-color: transparent;
}

.problem-card-cta .link-arrow:hover {
  color: #fff;
  border-color: #fff;
}

.problem-card-cta:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ---------- SERVICES SECTION ---------- */
.section-services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}

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

.service-card-featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.service-card-featured .service-index,
.service-card-featured .service-sub {
  color: var(--muted-light);
}

.service-card-featured .service-title {
  color: var(--bg);
}

.service-card-featured .service-list li {
  color: var(--bg);
}

.service-card-featured .service-list svg {
  color: var(--whatsapp);
}

.service-card-featured:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}

.service-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--whatsapp);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.service-head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.service-card-featured .service-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-3);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  letter-spacing: -0.025em;
}

.service-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.service-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.services-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding-top: var(--space-5);
  flex-wrap: wrap;
}

.services-footer p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- WHY SECTION ---------- */
.section-why {
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--ink);
  transition: all var(--t-med);
}

.why-card:hover {
  border-top-color: var(--accent);
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.why-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- PROCESS SECTION ---------- */
.section-process {
  background: var(--bg);
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.process-line {
  position: absolute;
  top: 32px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, var(--border) 50%, var(--border) 100%);
  background-size: 8px 1px;
  background-image: repeating-linear-gradient(to right, var(--border-strong) 0, var(--border-strong) 4px, transparent 4px, transparent 8px);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-number {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t-med);
}

.process-step:hover .process-number {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: var(--space-2);
  letter-spacing: -0.02em;
}

.process-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- ABOUT SECTION ---------- */
.section-about {
  background: var(--bg-alt);
}

/* Header */
.about-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-9);
  max-width: 920px;
}

.about-name {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  margin: var(--space-3) 0 var(--space-4);
}

.about-name-line {
  display: block;
}

.about-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.about-dot {
  color: var(--ink);
}

.about-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
}

/* Body: ficha + prosa */
.about-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-9);
  align-items: start;
}

/* Ficha técnica izquierda */
.about-meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
}

.meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}

.meta-value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

/* Prosa derecha */
.about-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 620px;
}

.about-prose p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-prose .prose-lead {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- CONTACT SECTION ---------- */
.section-contact {
  background: var(--bg-dark);
  color: var(--bg);
  border-top: none;
}

.section-contact .section-label {
  color: var(--whatsapp);
}

.section-contact .section-title {
  color: var(--bg);
}

.section-contact em {
  color: var(--whatsapp);
}

.contact-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.contact-head {
  text-align: center;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-whatsapp {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.08) 0%, rgba(37, 211, 188, 0.02) 100%);
  border: 1px solid rgba(37, 211, 159, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-whatsapp::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-whatsapp-info {
  position: relative;
  z-index: 1;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--whatsapp);
  margin-bottom: var(--space-2);
  display: block;
  font-weight: 500;
}

.contact-channel-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: var(--space-2);
  letter-spacing: -0.025em;
}

.contact-channel-desc {
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-7) 0;
  color: var(--muted-light);
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-divider span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  position: relative;
}

.form-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  font-weight: 500;
}

.form-field .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-sans);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--space-3) 0;
  color: var(--bg);
  font-size: 1rem;
  transition: border-color var(--t-fast);
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--whatsapp);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #E86666;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-7);
  color: var(--bg);
}

.form-success svg {
  color: var(--whatsapp);
  padding: var(--space-3);
  background: rgba(37, 211, 102, 0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.form-success h4 {
  color: var(--bg);
  font-size: 1.4rem;
  font-weight: 500;
}

.form-success p {
  color: var(--muted-light);
  max-width: 400px;
}

.contact-form.submitted .form-header,
.contact-form.submitted .form-grid,
.contact-form.submitted .form-footer {
  display: none;
}

.contact-form.submitted .form-success {
  display: flex;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--muted-light);
  padding: var(--space-8) 0 var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo{
  width: 100px;
  opacity: 0.6;
}

.footer-brand-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-bottom: var(--space-2);
}

.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  color: var(--muted-light);
  transition: color var(--t-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-credit a {
  color: var(--bg);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}

.footer-credit a:hover {
  border-bottom-color: var(--bg);
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 99;
  transition: all var(--t-med);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-float:active {
  transform: scale(0.96);
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  opacity: 0.4;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-med);
  box-shadow: var(--shadow-md);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ink);
}

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

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }

/* Section fade on scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-visual {
    display: none;
    max-width: 380px;
    order: -1;
    margin: 0 auto;
  }

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

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

  .about-body {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .about-meta {
    position: static;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .process-line {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --space-10: 5rem;
    --space-9: 4rem;
    --space-8: 3rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-9) 0;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner .btn-whatsapp.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .header-inner .btn-whatsapp.btn-sm .icon {
    width: 14px;
    height: 14px;
  }

  .btn-whatsapp-header{
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--space-7));
    min-height: auto;
    padding-bottom: var(--space-9);
  }

  .hero-visual {
    display: none;
    max-width: 280px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    gap: var(--space-4);
    justify-content: space-between;
  }

  .trust-item {
    flex: 1;
    min-width: 80px;
  }

  .trust-value {
    font-size: 1.2rem;
  }

  .trust-divider {
    display: none;
  }

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

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

  .contact-whatsapp {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-5);
  }

  .contact-whatsapp-info {
    text-align: left;
  }

  .contact-channel-title {
    font-size: 1.4rem;
  }

  .btn-lg {
    width: 100%;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .form-footer .btn-primary {
    width: 100%;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .section-contact {
    padding: var(--space-8) 0;
  }

  .contact-form {
    padding: var(--space-5);
  }

  .meta-row {
    grid-template-columns: 90px 1fr;
    gap: var(--space-3);
  }

  .about-quote {
    padding: var(--space-7) 0 var(--space-5);
  }
}

@media (max-width: 480px) {
  .hero-visual{
    display: none;
  }

  .hero-title {
    letter-spacing: -0.025em;
  }

  .hero-title br {
    display: none;
  }

  .section-title br {
    display: none;
  }

  .hero-trust {
    gap: var(--space-3);
  }

  /* Compact WhatsApp button in header on tiny screens */
  .header-inner .btn-whatsapp.btn-sm span {
    display: none;
  }

  .header-inner .btn-whatsapp.btn-sm {
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-form *:focus-visible {
  outline-color: var(--whatsapp);
}
