/* ============================================================
   FLIP.CARE — Design System
   Style: Bauhaus · Minimal · Corporate · Modern
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --blue:       #4EB5D8;
  --blue-dark:  #2A8FAD;
  --blue-light: #E8F6FB;
  --gray-50:    #FAFAFA;
  --gray-100:   #F4F4F4;
  --gray-200:   #E8E8E8;
  --gray-300:   #D1D1D1;
  --gray-500:   #888888;
  --gray-700:   #444444;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --container:  1260px;
  --gutter:     clamp(20px, 5vw, 60px);
  --section-y:  clamp(80px, 10vw, 140px);

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --speed:      0.65s;

  --border: 1px solid var(--gray-200);
  --border-dark: 1px solid var(--black);
  --radius: 0px;
  --shadow: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 80px rgba(0,0,0,0.14);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display { font-size: clamp(52px, 8vw, 100px); }
.h1      { font-size: clamp(42px, 6vw, 76px); }
.h2      { font-size: clamp(32px, 4.5vw, 56px); }
.h3      { font-size: clamp(22px, 3vw, 36px); }
.h4      { font-size: clamp(18px, 2vw, 24px); }

.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.body-lg { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; }
.body    { font-size: 16px; line-height: 1.7; }
.small   { font-size: 13px; line-height: 1.6; color: var(--gray-500); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--section-y) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(78,181,216,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(78,181,216,0.4);
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Navigation ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease);
  padding: 0;
}

#nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  overflow: hidden;
}

.lang-switcher button {
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  transition: all 0.2s;
  border-right: 1px solid var(--gray-300);
}
.lang-switcher button:last-child { border-right: none; }
.lang-switcher button.active {
  background: var(--black);
  color: var(--white);
}
.lang-switcher button:hover:not(.active) {
  background: var(--gray-100);
  color: var(--black);
}

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 100px var(--gutter) 40px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  padding: 8px 0;
  border-bottom: var(--border);
}
.mobile-menu-close {
  position: absolute;
  top: 24px; right: var(--gutter);
  font-size: 30px;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-lang {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.mobile-lang button {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
}
.mobile-lang button.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Bauhaus background grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Blue accent shape */
#hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border: 60px solid var(--blue-light);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 60px 0;
}

.hero-content { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--blue);
  background: var(--blue-light);
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(2) .line-inner {
  animation-delay: 0.12s;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 480px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 0.7s forwards;
}

.hero-actions .btn { width: fit-content; }

.hero-note {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.3s forwards;
}

.device-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-float {
  width: clamp(260px, 35vw, 420px);
  filter: drop-shadow(0 30px 80px rgba(78,181,216,0.25));
  animation: deviceFloat 5s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}

.device-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--blue);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}
.device-ring:nth-child(1) { width: 320px; height: 320px; }
.device-ring:nth-child(2) { width: 440px; height: 440px; animation-delay: 0.5s; }
.device-ring:nth-child(3) { width: 560px; height: 560px; animation-delay: 1s; }

@keyframes pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.02); }
}

/* ── Stats Bar ─────────────────────────────────────────────── */
#stats {
  background: var(--black);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  padding: 32px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ── What is FLIP ──────────────────────────────────────────── */
#que-es {
  background: var(--white);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

.what-left .label { margin-bottom: 20px; display: block; }

.what-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: pre-line;
  margin-bottom: 40px;
}

.what-body { display: flex; flex-direction: column; gap: 20px; }
.what-body p { color: var(--gray-700); line-height: 1.75; font-size: clamp(15px, 1.5vw, 17px); }
.what-body .highlight {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--black);
}

.what-right {
  position: relative;
}

.what-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.what-image-wrap img {
  width: 70%;
  animation: deviceFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(78,181,216,0.2));
}

.what-badge {
  position: absolute;
  bottom: 32px;
  left: -20px;
  background: var(--blue);
  color: var(--white);
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 200px;
  box-shadow: var(--shadow);
}

/* ── Product ───────────────────────────────────────────────── */
#producto {
  background: var(--gray-100);
  overflow: hidden;
}

.product-header {
  text-align: center;
  margin-bottom: 80px;
}
.product-header .label { margin-bottom: 20px; display: block; }
.product-header .h2 { white-space: pre-line; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2px;
  background: var(--gray-300);
}

.product-feat {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.35s var(--ease);
}

.product-feat:hover {
  background: var(--black);
  transform: translateY(-4px);
}
.product-feat:hover .feat-title,
.product-feat:hover .feat-body { color: var(--white); }
.product-feat:hover .feat-icon { background: var(--blue); border-color: var(--blue); }

.feat-icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease);
}
.feat-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.product-feat:hover .feat-icon svg { color: var(--white); }

.feat-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  transition: color 0.35s;
}
.feat-body {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  transition: color 0.35s;
}

.product-visual {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.product-img {
  width: clamp(180px, 25vw, 300px);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
  transition: transform 0.5s var(--ease);
}
.product-img:hover { transform: scale(1.05) rotate(-3deg); }

/* ── How it Works ──────────────────────────────────────────── */
#como-funciona {
  background: var(--white);
}

.how-header { margin-bottom: 80px; }
.how-header .label { margin-bottom: 20px; display: block; }

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.steps-container::after {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
  z-index: 0;
}

.step {
  padding: 0 24px 0 0;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px; height: 48px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--blue);
  opacity: 0.4;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-body { font-size: 14px; color: var(--gray-700); line-height: 1.65; }

/* ── Functionalities ───────────────────────────────────────── */
#funcionalidades {
  background: var(--black);
  color: var(--white);
}

.features-header { margin-bottom: 64px; }
.features-header .label { color: var(--blue); margin-bottom: 20px; display: block; }
.features-header .h2 { color: var(--white); white-space: pre-line; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
}

.feature-item {
  background: var(--black);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease);
}

.feature-item:hover {
  background: rgba(78,181,216,0.1);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.feature-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.feature-item:hover .feature-icon {
  border-color: var(--blue);
  background: var(--blue);
}
.feature-icon svg { width: 18px; height: 18px; stroke: var(--white); }

.feature-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}

/* ── App Section ───────────────────────────────────────────── */
#app {
  background: var(--white);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

.app-left .label { margin-bottom: 20px; display: block; }
.app-title { white-space: pre-line; margin-bottom: 28px; }
.app-body { color: var(--gray-700); line-height: 1.75; margin-bottom: 40px; font-size: clamp(15px, 1.5vw, 17px); }

.app-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-step-num {
  width: 32px; height: 32px;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  flex-shrink: 0;
}

.app-step-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.app-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  aspect-ratio: 1 / 1.1;
  position: relative;
  overflow: hidden;
}

.app-right img {
  width: 75%;
  object-fit: cover;
}

.app-right-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--white);
  border: var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-text { font-size: 12px; font-weight: 600; }

/* ── Markets ───────────────────────────────────────────────── */
#mercados {
  background: var(--gray-50);
}

.markets-header { margin-bottom: 64px; }
.markets-header .label { margin-bottom: 20px; display: block; }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.market-card {
  padding: 40px 28px;
  border: var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.market-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.market-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.market-card:hover::before { transform: scaleX(1); }

.market-icon {
  font-size: 36px;
  line-height: 1;
}

.market-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.market-body { font-size: 14px; color: var(--gray-700); line-height: 1.65; }

/* ── Purpose / Company ─────────────────────────────────────── */
#proposito {
  background: var(--white);
  overflow: hidden;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

.purpose-left .label { margin-bottom: 20px; display: block; }
.purpose-title { white-space: pre-line; margin-bottom: 36px; }
.purpose-body { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.purpose-body p { color: var(--gray-700); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; }

.purpose-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: var(--border);
}

.p-stat {
  background: var(--white);
  padding: 24px 20px;
  text-align: center;
}
.p-stat-val {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}
.p-stat-lab { font-size: 12px; color: var(--gray-500); letter-spacing: 0.04em; }

.purpose-right {
  position: relative;
}

.purpose-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.purpose-img-secondary {
  position: absolute;
  bottom: -32px; left: -32px;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

/* ── FAQ ───────────────────────────────────────────────────── */
#faq {
  background: var(--gray-50);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.faq-left .label { margin-bottom: 20px; display: block; }
.faq-left .h2 { white-space: pre-line; margin-bottom: 24px; }
.faq-left .contact-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-top: var(--border-dark);
}
.faq-item:last-child { border-bottom: var(--border-dark); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}

.faq-question:hover { color: var(--blue); }

.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  font-size: 18px;
  font-weight: 300;
}

.faq-item.open .faq-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
}
.faq-answer p {
  padding-bottom: 24px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.75;
}

/* ── CTA Section ───────────────────────────────────────────── */
#cta {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: var(--section-y) 0;
}

.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--white);
}
.cta-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ── Contact ───────────────────────────────────────────────── */
#contacto {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.contact-left .label { margin-bottom: 20px; display: block; }
.contact-title { white-space: pre-line; margin-bottom: 24px; }
.contact-sub { color: var(--gray-700); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; margin-bottom: 40px; }

.contact-email {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border: var(--border-dark);
  margin-bottom: 20px;
  transition: all 0.25s;
}
.contact-email:hover { background: var(--gray-50); }
.contact-email-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); display: block; margin-bottom: 4px; }
.contact-email-addr { font-family: var(--font-display); font-size: 15px; font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea { height: 140px; }

.form-submit { margin-top: 8px; }

.form-msg {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; display: block; }
.form-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 280px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-made { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── Cookie Banner ─────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  max-width: 380px;
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: 6px 6px 0px var(--black);
  padding: 28px;
  transform: translateY(calc(100% + 60px));
  transition: transform 0.6s var(--ease);
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  animation: wiggle 1.5s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
}

.cookie-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cookie-body {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  flex: 1;
  padding: 11px 16px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--black);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--blue); border-color: var(--blue); }

.cookie-btn-decline {
  padding: 11px 16px;
  background: transparent;
  color: var(--gray-700);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--gray-300);
  transition: all 0.2s;
  cursor: pointer;
}
.cookie-btn-decline:hover { border-color: var(--black); color: var(--black); }

.cookie-more {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--blue);
  width: fit-content;
}

/* ── Modal (Reserve FLIP) ──────────────────────────────────── */
#modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  max-width: 480px;
  width: 100%;
  padding: 48px;
  border: var(--border-dark);
  box-shadow: 8px 8px 0px var(--blue);
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}

#modal.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover { color: var(--black); }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-note { font-size: 12px; color: var(--gray-500); margin-top: 8px; text-align: center; }

/* ── Scroll animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  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; }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 24px 0;
}

/* ── Scroll to top ─────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 500;
}
#scroll-top.show { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--blue); transform: translateY(-3px); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4, .product-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-container::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-actions { align-items: center; }
  .hero-visual { display: none; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }

  .what-grid,
  .app-grid,
  .purpose-grid,
  .contact-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .purpose-img-secondary { display: none; }
  .what-right { display: none; }

  .product-grid,
  .features-grid { grid-template-columns: 1fr; }

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

  .steps-container { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-mobile-btn { display: flex; }

  #cookie-banner { left: 16px; right: 16px; max-width: none; bottom: 16px; }

  .modal-box { padding: 32px 24px; }

  .product-visual { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .markets-grid { grid-template-columns: 1fr; }
  .purpose-stats { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
