/* ==========================================================================
   Iván Sánchez · Soluciones Digitales
   Hoja de estilos estática. Sin frameworks ni dependencias.
   ========================================================================== */

/* ----- Tipografías locales ----- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

/* ----- Design tokens ----- */
:root {
  --radius: 1rem;

  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.2 0.025 265);
  --card: oklch(0.99 0.006 85);
  --primary: oklch(0.2 0.025 265);
  --primary-foreground: oklch(0.975 0.012 85);
  --secondary: oklch(0.935 0.018 80);
  --muted: oklch(0.94 0.014 82);
  --muted-foreground: oklch(0.47 0.02 265);
  --accent: oklch(0.66 0.19 38);
  --accent-foreground: oklch(0.99 0.006 85);
  --border: oklch(0.88 0.018 80);
  --input: oklch(0.86 0.02 80);
  --ring: oklch(0.66 0.19 38);

  --ink: oklch(0.17 0.025 265);
  --ink-foreground: oklch(0.96 0.012 85);
  --ink-muted: oklch(0.72 0.02 265);
  --ink-border: oklch(1 0 0 / 12%);
  --whatsapp: oklch(0.62 0.15 150);

  --gradient-accent: linear-gradient(120deg, var(--accent), oklch(0.75 0.16 65));
  --shadow-soft: 0 20px 50px -24px oklch(0.2 0.025 265 / 0.25);
  --shadow-accent: 0 16px 40px -14px oklch(0.66 0.19 38 / 0.55);

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* ----- Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ----- Layout utilities ----- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 6rem;
}

/* ----- Icons ----- */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-lg {
  padding: 1rem 1.75rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--card);
}

.btn-outline:hover {
  background: var(--secondary);
}

.icon-arrow {
  transition: transform 0.2s ease;
}

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

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 60;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 0 solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom: 1px solid oklch(0.88 0.018 80 / 70%);
  background-color: oklch(0.975 0.012 85 / 85%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--ink-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1;
}

.logo-dot {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.logo:hover .logo-dot {
  transform: scale(1.25);
}

.logo-text {
  display: block;
  line-height: 1.25;
}

.logo-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo-tagline {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.desktop-nav a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground);
}

.menu-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  border-top: 1px solid oklch(0.88 0.018 80 / 70%);
  padding: 0.5rem 1.25rem 1.5rem;
}

.mobile-nav > a {
  display: block;
  border-bottom: 1px solid oklch(0.88 0.018 80 / 60%);
  padding-block: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
}

.mobile-nav > a.mobile-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  border-bottom: 0;
  border-radius: 9999px;
  background: var(--accent);
  padding-block: 0.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent-foreground);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(0.2 0.025 265 / 6%) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  right: -10rem;
  top: -10rem;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: oklch(0.66 0.19 38 / 20%);
  filter: blur(64px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

.hero-anim {
  animation: hero-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: oklch(0.99 0.006 85 / 70%);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.text-gradient-accent {
  background-image: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.hero-hook {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-actions .icon-wa {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--whatsapp);
}

/* Hero panel */
.hero-panel-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
}

.hero-panel {
  position: relative;
  border-radius: 2rem;
  background: var(--ink);
  padding: 1.5rem;
  color: var(--ink-foreground);
  box-shadow: var(--shadow-soft);
}

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

.panel-label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.panel-dots {
  display: flex;
  gap: 0.375rem;
}

.panel-dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--ink-border);
}

.panel-dots .is-accent {
  background: var(--accent);
}

.panel-list {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--ink-border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.panel-quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-style: italic;
  color: var(--accent);
}

.panel-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.875rem 1rem;
}

.panel-cta .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.panel-cta p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.hero-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  display: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-soft);
  animation: float-y 6s ease-in-out infinite;
}

.hero-float p:first-child {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

.hero-float p:last-child {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
}

/* Marquee */
.marquee-wrap {
  position: relative;
  margin-top: 6rem;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: oklch(0.99 0.006 85 / 60%);
  padding-block: 1.25rem;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 2rem;
  color: var(--muted-foreground);
  animation: marquee 40s linear infinite;
}

.marquee-group {
  display: flex;
  gap: 3rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-star {
  color: var(--accent);
  font-style: normal;
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-heading {
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.eyebrow-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-heading h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-intro {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.section-heading-invert .eyebrow {
  color: var(--ink-muted);
}

.section-heading-invert h2 {
  color: var(--ink-foreground);
}

.section-heading-invert .section-intro {
  color: var(--ink-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.75rem;
  transition:
    translate 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  translate: 0 -0.25rem;
  box-shadow: var(--shadow-soft);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--secondary);
  color: var(--foreground);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--accent-foreground);
}

.service-number {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-style: italic;
  line-height: 2.25rem;
  color: var(--muted-foreground);
  opacity: 0.5;
}

.service-card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.service-card > p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.service-list {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.icon-check {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--accent);
}

.services-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: 1 / -1;
  border-radius: 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 1.75rem;
  transition: translate 0.3s ease;
}

.services-cta:hover {
  translate: 0 -0.25rem;
}

.services-cta p {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.25;
}

.services-cta em {
  font-style: italic;
}

.services-cta span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--ink-foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* ==========================================================================
   Why me
   ========================================================================== */
.why {
  background: var(--ink);
  color: var(--ink-foreground);
}

.why-grid {
  display: grid;
  gap: 3.5rem;
  padding-block: 6rem;
}

.seal {
  position: relative;
  display: none;
  width: 10rem;
  height: 10rem;
  margin-top: 3rem;
}

.seal-svg {
  width: 100%;
  height: 100%;
  color: var(--ink-muted);
  animation: spin-slow 30s linear infinite;
}

.seal-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-style: italic;
  color: var(--accent);
}

.reasons {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ink-border);
  border-radius: 1.5rem;
  background: var(--ink-border);
  padding: 0;
  list-style: none;
}

.reasons li {
  background: var(--ink);
  padding: 1.75rem;
}

.reason-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}

.reasons h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.reasons p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-wrap {
  position: relative;
  margin-top: 4rem;
}

.process-line {
  position: absolute;
  left: 1.4rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.process-list {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding-left: 4rem;
}

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  box-shadow: 0 0 0 8px var(--background);
}

.process-list h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.process-list p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  border-block: 1px solid var(--border);
  background: oklch(0.935 0.018 80 / 50%);
}

.projects-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.75rem;
  transition:
    translate 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  translate: 0 -0.25rem;
  box-shadow: var(--shadow-soft);
}

.project-category {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.project-title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.project-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.project-tags li {
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.project-link:hover {
  color: var(--accent);
}

.project-link .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.project-link:hover .icon {
  transform: translate(2px, -2px);
}

.project-links {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding: 1.25rem 0 0;
  list-style: none;
}

.project-links li {
  border-top: 1px solid var(--border);
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: var(--accent);
}

.project-links .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--accent);
}

.project-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  grid-column: 1 / -1;
  border: 2px dashed var(--input);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.project-empty:hover {
  border-color: var(--accent);
  background: var(--card);
}

.project-plus {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-foreground);
  transition: transform 0.3s ease;
}

.project-plus .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.project-empty:hover .project-plus {
  transform: rotate(90deg);
}

.project-empty-copy {
  flex: 1;
}

.project-empty-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.25;
}

.project-empty-title em {
  font-style: italic;
  color: var(--accent);
}

.project-empty-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.project-empty-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--ink-foreground);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 3rem;
  padding-block: 6rem;
}

.faq-list {
  border-block: 1px solid var(--border);
}

.faq-item {
  padding-block: 0.5rem;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
  text-align: left;
  list-style: none;
  cursor: pointer;
  outline-offset: 4px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
}

.faq-item > p {
  padding-bottom: 1.25rem;
  padding-right: 3rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--ink);
  color: var(--ink-foreground);
}

.contact-grid {
  display: grid;
  gap: 3.5rem;
  padding-block: 6rem;
}

.contact-eyebrow {
  color: var(--ink-muted);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.02;
}

.contact-title em {
  font-style: italic;
}

.contact-intro {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--ink-muted);
}

.contact-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.25rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.contact-card-wa {
  background: var(--whatsapp);
  color: var(--ink-foreground);
}

.contact-card-wa:hover {
  transform: translateY(-2px);
}

.contact-card-mail {
  border: 1px solid var(--ink-border);
}

.contact-card-mail:hover {
  background: oklch(0.96 0.012 85 / 5%);
}

.icon-wa-lg {
  width: 2rem;
  height: 2rem;
}

.icon-mail {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.contact-card-text {
  min-width: 0;
}

.contact-card-title {
  display: block;
  font-weight: 700;
}

.contact-card-sub {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.contact-card-wa .contact-card-sub {
  opacity: 0.85;
}

.contact-card-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-muted);
}

/* Form */
.contact-form {
  border: 1px solid var(--ink-border);
  border-radius: 2rem;
  background: oklch(0.96 0.012 85 / 3%);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.label-optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field {
  width: 100%;
  border: 1px solid var(--ink-border);
  border-radius: 1rem;
  background: oklch(0.96 0.012 85 / 5%);
  padding: 0.875rem 1rem;
  color: var(--ink-foreground);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field::placeholder {
  color: oklch(0.72 0.02 265 / 70%);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px oklch(0.66 0.19 38 / 30%);
}

.field option {
  color: var(--foreground);
}

.field-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--accent);
}

.field-error:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-form {
  flex: 1;
  padding: 1rem 1.5rem;
}

.btn-form .icon-wa {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-form-outline {
  border: 1px solid var(--ink-border);
  background: transparent;
  color: var(--ink-foreground);
}

.btn-form-outline:hover {
  background: oklch(0.96 0.012 85 / 5%);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-muted);
}

.form-status.is-success {
  color: var(--whatsapp);
}

.form-status.is-error {
  color: var(--accent);
}

.form-fallback {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Footer & floating WhatsApp
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.footer-nav a:hover {
  color: var(--foreground);
}

.footer-copy {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.floating-wa {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--ink-foreground);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.floating-wa:hover {
  transform: scale(1.1);
}

.floating-wa svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ==========================================================================
   Reveal on scroll & animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Escalonado de aparición */
.services-grid .reveal:nth-child(1) {
  transition-delay: 0ms;
}

.services-grid .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.services-grid .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.services-grid .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.services-grid .reveal:nth-child(5) {
  transition-delay: 240ms;
}

.services-grid .reveal:nth-child(6) {
  transition-delay: 300ms;
}

.reasons li:nth-child(even) {
  transition-delay: 80ms;
}

.process-list li:nth-child(2) {
  transition-delay: 100ms;
}

.process-list li:nth-child(3) {
  transition-delay: 200ms;
}

.process-list li:nth-child(4) {
  transition-delay: 300ms;
}

.projects-grid .reveal:nth-child(1) {
  transition-delay: 0ms;
}

.projects-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.projects-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.projects-grid .reveal:nth-child(4) {
  transition-delay: 240ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }

  .section {
    padding-block: 8rem;
  }

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

  .hero {
    padding-top: 9rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-panel {
    padding: 2rem;
  }

  .hero-float {
    display: block;
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .section-intro {
    font-size: 1.125rem;
  }

  .service-card {
    padding: 2rem;
  }

  .services-cta {
    padding: 2rem;
  }

  .services-cta p {
    font-size: 2.25rem;
  }

  .why-grid,
  .contact-grid {
    padding-block: 8rem;
  }

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

  .reasons li {
    padding: 2rem;
  }

  .faq {
    padding-block: 8rem;
  }

  .contact-title {
    font-size: 3.75rem;
  }

  .contact-form {
    padding: 2.25rem;
  }

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

  .form-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .section-heading h2 {
    font-size: 3.75rem;
  }

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

  .process-line {
    left: 0;
    top: 1.4rem;
    width: 100%;
    height: 1px;
  }

  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .process-list li {
    padding-left: 0;
    padding-top: 4rem;
  }

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

  .project-empty {
    grid-column: span 1;
    min-height: 18rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
  }

  .hero h1 {
    font-size: 5.6rem;
  }

  .hero-panel-wrap {
    max-width: none;
  }

  .services-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

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

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    grid-column: span 3;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 2;
  }

  .services-cta {
    flex-direction: row;
    align-items: center;
  }

  .services-cta span {
    margin-top: 0;
  }

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

  .why-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  .seal {
    display: block;
  }

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

  .project-empty {
    grid-column: 1 / -1;
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .project-empty-cta {
    margin-left: auto;
  }

  .faq {
    grid-template-columns: 1fr 1.5fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-anim,
  .hero-float,
  .marquee,
  .seal-svg {
    animation: none;
  }

  .btn,
  .service-card,
  .services-cta,
  .contact-card,
  .floating-wa,
  .project-plus,
  .faq-icon {
    transition: none;
  }
}
