/* =============================================================================
   BOMBUS LAB - Design System
   Paleta: Warm Beige + Dark + Lavender Accent
   Typography: Space Grotesk (display) + Inter (body)
   ============================================================================= */

:root {
  /* Colors */
  --color-bg: #F5F0E8;
  --color-bg-alt: #FFFFFF;
  --color-bg-dark: #1A1A1A;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #5C5C5C;
  --color-text-muted: #767676;
  --color-text-light: #FFFFFF;
  --color-accent: #aba0fb;
  --color-accent-dark: #8B7EE0;
  --color-accent-soft: rgba(171, 160, 251, 0.15);
  --color-accent-ink: #5B4BC4;      /* lavanda legible sobre fondos claros (5.7:1) */
  --color-field-border: #8C8274;    /* borde de campos (3.8:1 sobre blanco) */
  --color-line: #C4B8A8;
  --color-line-dot: #1A1A1A;
  --color-icon: #8B7355;
  --color-border: #E0D8CC;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --header-height-compact: 60px;
  --section-padding: 120px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================================
   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: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* =============================================================================
   Typography
   ============================================================================= */

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

.headline-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.headline-lg {
  font-size: clamp(2rem, 4vw, 3rem);
}

.headline-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

/* =============================================================================
   Layout
   ============================================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
  position: relative;
  scroll-margin-top: var(--header-height-compact);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3rem;
}

/* =============================================================================
   Header
   ============================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  height: var(--header-height-compact);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.header-isotipo {
  width: auto;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
  filter: invert(1);
  transition: height 0.25s ease;
}

.header.scrolled .header-isotipo {
  height: 36px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, box-shadow 0.2s;
}

.header-nav a.btn-cta {
  color: var(--color-text);
}

.header-nav a.is-active {
  color: var(--color-text-light);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.header-nav a:hover {
  color: var(--color-text-light);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-xl);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn-cta:hover {
  transform: translateY(-1px);
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-xl);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions .btn-cta,
.hero-actions .btn-outline {
  min-height: 48px;
  padding: 0 1.75rem;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =============================================================================
   Hero Bombus (animated bee)
   ============================================================================= */

.hero-bombus {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1120 / 928;
  margin: 0 auto;
}

.hero-bombus .bombus-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.hero-bombus .bombus-wing-svg {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.hero-bombus #wingRight {
  left: 20%;
  transform-origin: 30% 30%;
  animation: wing-flap-right 0.8s ease-in-out infinite;
}

.hero-bombus #wingLeft {
  right: 20%;
  transform-origin: 70% 30%;
  animation: wing-flap-left 0.8s ease-in-out infinite;
}

@keyframes wing-flap-right {
  0%, 100% { transform: rotate(0deg) skewY(0deg); }
  50% { transform: rotate(8deg) skewY(2deg); }
}

@keyframes wing-flap-left {
  0%, 100% { transform: rotate(0deg) skewY(0deg); }
  50% { transform: rotate(-8deg) skewY(-2deg); }
}

.hero-bombus .bombus-shadow {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: shadow-breathe 0.8s ease-in-out infinite;
}

@keyframes shadow-breathe {
  0%, 100% { width: 40%; opacity: 1; }
  50% { width: 26%; opacity: 0.6; }
}

/* =============================================================================
   Servicios
   ============================================================================= */

.trabajo {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.trabajo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.trabajo-grilla {
  border-top: none;
  padding-top: 0;
}

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

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

.servicio {
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.servicio-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent-ink);
  margin-bottom: 0.75rem;
}

.servicio h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.servicio p:not(.servicio-num) {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* =============================================================================
   Portafolio: grilla
   ============================================================================= */

.pf-intro {
  padding: calc(var(--header-height) + 5rem) 0 2.5rem;
}

.pf-intro .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.pf-intro-texto {
  max-width: 640px;
}

.pf-bajada {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.pf-filtros {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pf-filtros[hidden] {
  display: none;
}

.pf-filtros button {
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.pf-filtros button span {
  opacity: 0.7;
}

.pf-filtros button[aria-pressed="true"] {
  background: var(--color-text);
  color: var(--color-bg);
}

.pf-grilla-section {
  padding-bottom: var(--section-padding);
}

.pf-grilla {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
  padding-top: 2.5rem;
  border-top: 1.5px solid var(--color-text);
}

.pf-card[hidden] {
  display: none;
}

.pf-card a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-text);
}

.pf-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.pf-card a:hover .pf-card-img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pf-card-cliente,
.pf-card-stack {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.pf-card-nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
}

.pf-card a:hover .pf-card-nombre {
  color: var(--color-accent-ink);
}

.pf-card-encargo {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3D3D3D;
}

.pf-card-stack {
  margin-top: 0.25rem;
}

.pf-cierre {
  padding: 6rem 0;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: center;
}

.pf-cierre h2 {
  margin-bottom: 2rem;
}

/* =============================================================================
   Portafolio: caso
   ============================================================================= */

.caso {
  padding: calc(var(--header-height) + 3rem) 0 var(--section-padding);
}

.caso-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.caso-volver:hover {
  color: var(--color-text);
}

.caso-cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin: 2rem 0 2.5rem;
}

.caso-ver {
  flex-shrink: 0;
  min-height: 48px;
}

.caso-captura {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.caso-cuerpo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem;
  margin-top: 3.5rem;
}

.caso-principal {
  grid-column: span 2;
}

.caso-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.caso-encargo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

.caso-lista {
  list-style: none;
  border-top: 1px solid #D6CCBE;
}

.caso-lista li {
  display: flex;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #D6CCBE;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.caso-num {
  flex-shrink: 0;
  width: 1.75rem;
  padding-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-accent-ink);
}

.caso-lateral {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.caso-box {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.caso-box--oscuro {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.caso-box--oscuro p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
}

.caso-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.caso-stack li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
}

.caso-siguiente {
  display: block;
  padding: 4rem 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.caso-siguiente .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.caso-siguiente .container > span {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.caso-siguiente .eyebrow {
  margin: 0;
}

.caso-siguiente-nombre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.caso-siguiente:hover .caso-siguiente-nombre {
  color: var(--color-accent-ink);
}

/* =============================================================================
   Chat Section
   ============================================================================= */

.chat-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: visible;
  background: var(--color-bg-alt);
}

.chat-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.chat-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.chat-wrapper {
  position: relative;
  max-width: 600px;
  flex: 1;
}

.chat-container {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  max-height: 360px;
}

.chat-message {
  margin-bottom: 1rem;
  display: flex;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message--user .chat-bubble {
  background: var(--color-accent-soft);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
}

.chat-message--assistant .chat-bubble {
  background: var(--color-surface);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-sm);
}

.chat-bubble {
  padding: 0.75rem 1rem;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-input-area {
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-status {
  min-height: 1.25rem;
  margin: 0;
  padding: 0 1.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.chat-input {
  flex: 1;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-field-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--color-surface);
  resize: none;
  max-height: 120px;
}

.chat-input::placeholder {
  color: var(--color-text-muted);
}

.chat-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.chat-send:hover {
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-nota {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Chat surrounding icons */
.chat-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.chat-icon--tl { top: -20px; left: -60px; }
.chat-icon--tr { top: -20px; right: -60px; }
.chat-icon--bl { bottom: -20px; left: -60px; }
.chat-icon--br { bottom: -20px; right: -60px; }
.chat-icon--ml { top: 50%; left: -80px; transform: translateY(-50%); }
.chat-icon--mr { top: 50%; right: -80px; transform: translateY(-50%); }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* =============================================================================
   Contacto / CTA Final
   ============================================================================= */

.contacto {
  padding: var(--section-padding) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.contacto .container {
  position: relative;
  z-index: 2;
}

.contacto h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.contacto-email {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
}

.contacto-email a {
  transition: color 0.2s;
}

.contacto-email a:hover {
  color: var(--color-text-light);
}

.btn-contacto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  border: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.btn-contacto:hover {
  transform: translateY(-2px);
  background: var(--color-accent-dark);
  box-shadow: 0 8px 24px rgba(171, 160, 251, 0.3);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-bg-dark);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   Line System
   ============================================================================= */

.line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.line-path {
  fill: none;
  stroke: var(--color-line);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.contacto .line-path {
  stroke: rgba(255, 255, 255, 0.2);
}

.line-dot {
  fill: var(--color-line-dot);
}

.contacto .line-dot {
  fill: rgba(255, 255, 255, 0.4);
}

/* =============================================================================
   Scroll Reveal Animations
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger delays */
.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; }

/* =============================================================================
   Responsive
   ============================================================================= */

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

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

  .pf-intro .container,
  .trabajo-header,
  .caso-cabecera {
    flex-direction: column;
    align-items: flex-start;
  }

  .caso-cuerpo {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .caso-principal {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --header-height: 64px;
  }

  /* Header */
  .header-nav a:not(.btn-cta) {
    display: none;
  }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    max-width: 100%;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-bombus {
    max-width: 250px;
  }

  /* Chat icons */
  .chat-icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .servicios-grid,
  .pf-grilla {
    grid-template-columns: 1fr;
  }

  .pf-filtros {
    max-width: 100%;
    overflow-x: auto;
  }

  .pf-filtros button {
    flex-shrink: 0;
  }
}

/* =============================================================================
   Accessibility
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: opacity 0.3s;
    transform: none;
  }

  .reveal.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    transform: none;
  }

  .hero-bombus .bombus-wing-svg {
    animation: none;
  }

  .hero-bombus .bombus-shadow {
    animation: none;
  }

  .typing-dot {
    animation: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent-ink);
  outline-offset: 2px;
}

.header a:focus-visible,
.contacto a:focus-visible {
  outline-color: var(--color-accent);
}

/* Selection */
::selection {
  background: var(--color-accent-soft);
}
