/* Fuentes. Familjen Grotesk va como variable (eje wght 400..700): cualquier
   peso intermedio disponible y animable. Inter y Space Grotesk siguen porque
   las usan el footer (Inter) y el navbar / menú móvil (Space Grotesk) en
   todas las páginas. IBM Plex Sans, Clash Display y Cabinet Grotesk se
   retiraron: ningún texto visible de ninguna página las usaba (las reglas
   antiguas que aún las nombran caen a sans-serif, pero no se pintan).
   Space Grotesk: 500 (navbar) y 700 (menú móvil). Inter: 300 (texto del
   footer), 400 (la "×" del menú móvil) y 500.
   Satoshi: 400, 500 y 700, los pesos que se pintan (los botones a 600 usan
   la de 700). Ojo: Fontshare devuelve, para "satoshi@300,400,500,700,800",
   una respuesta en caché que sigue incluyendo Clash Display y Cabinet
   Grotesk; con esta lista devuelve solo Satoshi. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Space+Grotesk:wght@500;700&family=Familjen+Grotesk:wght@400..700&family=Fraunces:opsz,wght@9..144,300..600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

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

html {
  scroll-behavior: smooth;
  background-color: #DAD5D7;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #DAD5D7;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
}

body.menu-open {
  overflow: hidden;
}

:root {
  --blanco: #FFFFFF;
  --negro: #0A0A0A;
  --beige-claro: #F5F0E8;
  --beige-medio: #E8E2D6;
  --beige-warm: #E1DCDE;
  --gris-texto: #6B6760;
  --negro-suave: #1A1A1A;
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

.navbar {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
  height: 64px;
  z-index: 10;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Sobre secciones oscuras (CTA final) el cristal claro por defecto se leía
   como beige sobre fondo oscuro y el texto perdía contraste real. Aquí el
   cristal se oscurece (tinte negro en vez de blanco) para que el texto
   --paper de los enlaces se lea con contraste de verdad. */
.navbar.nav-dark {
  background: rgba(10, 10, 10, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-container {
  max-width: 960px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 40px;
  transition: filter 0.3s ease;
}

.navbar.nav-dark .nav-logo {
  filter: brightness(0) invert(1);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 10, 0.75);
  transition: opacity 0.2s ease, color 0.3s ease;
}

.nav-links > li > a:hover {
  opacity: 1;
}

.nav-links > li > a.active {
  opacity: 1;
  font-weight: 700;
}

.navbar.nav-dark .nav-links > li > a {
  color: rgba(255, 255, 255, 0.85);
}

.nav-dropdown {
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-item {
  display: block;
  margin: 0 8px;
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--negro);
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  display: inline-block;
  background: rgba(10, 10, 10, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 8px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: rgba(10, 10, 10, 1);
  color: #FFFFFF;
}

.navbar.nav-dark .nav-cta {
  background: rgba(10, 10, 10, 0.92);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar.nav-dark .nav-cta:hover {
  background: rgba(10, 10, 10, 1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--negro);
  transition: background 0.3s ease;
}

.navbar.nav-dark .nav-hamburger span {
  background: var(--blanco);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
  color: var(--negro);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-links > li > a,
.mobile-dropdown-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  color: var(--negro);
}

.mobile-links > li > a.active,
.mobile-dropdown-label.active {
  text-decoration: underline;
}

.mobile-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-sublinks {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mobile-sublinks a {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gris-texto);
}

.site-footer {
  background: var(--negro);
  border-top: 1px solid var(--negro-suave);
  padding: 32px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 80px;
  filter: brightness(0) invert(0.3);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-center,
.footer-email,
.footer-phone,
.footer-location {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: #333333;
}

.footer-center {
  letter-spacing: 0.05em;
}

/* Enlace legal: hereda el tono del footer, sin ganar peso visual. */
.footer-legal {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-legal:hover {
  color: var(--gris-texto);
}

.page-stub {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 24px 100px;
  text-align: center;
  background: var(--beige-claro);
}

.page-stub h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--negro);
}

/* ===== Content pages (Servicios, Plataformas, FAQ, Contacto) ===== */

.page-header {
  background: var(--beige-warm);
  padding: 180px 80px 96px;
}

.page-eyebrow {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--negro);
  max-width: 780px;
  margin-bottom: 24px;
}

.page-intro {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: #3D3D3D;
  max-width: 620px;
}

.service-section-eyebrow {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 48px;
}

/* Servicios index cards */
.services-index-section {
  background: var(--blanco);
  padding: 100px 80px 140px;
}

.services-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--beige-medio);
}

.service-index-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--blanco);
  padding: 56px 48px;
  transition: background 0.2s ease;
}

.service-index-card:hover {
  background: var(--beige-claro);
}

.service-index-card-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--negro);
  margin-bottom: 16px;
}

.service-index-card-desc {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gris-texto);
  margin-bottom: 32px;
}

.service-index-card-price {
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--negro);
  margin-bottom: 24px;
}

.service-index-card-link {
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--negro);
  margin-top: auto;
}

/* "Cómo trabajamos" steps */
.service-steps-section {
  background: var(--blanco);
  padding: 100px 80px;
}

.service-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service-step {
  padding-top: 24px;
  border-top: 1px solid var(--beige-medio);
}

.service-step-number {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gris-texto);
  margin-bottom: 20px;
}

.service-step-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--negro);
  margin-bottom: 12px;
}

.service-step-desc {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gris-texto);
}

/* "Qué incluye" list */
.service-includes-section {
  background: var(--beige-claro);
  padding: 100px 80px;
}

.service-includes-list {
  max-width: 620px;
}

.service-includes-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--beige-medio);
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--negro);
}

.service-includes-list li::before {
  content: '—';
  color: var(--gris-texto);
  flex-shrink: 0;
}

/* Precio */
.service-price-section {
  background: var(--blanco);
  padding: 100px 80px;
}

.service-price-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  margin-bottom: 24px;
}

.service-price-label {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 10px;
}

.service-price-value {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--negro);
}

.service-price-detail {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--gris-texto);
  margin-top: 8px;
}

.service-price-note {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gris-texto);
  max-width: 560px;
}

/* Plataformas index cards (3-up variant of the services grid) */
.platforms-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--beige-medio);
}

/* Plataformas detail pages: "Qué es" / "Por qué importa" / "Qué hacemos aquí" */
.platform-info-section {
  padding: 100px 80px;
}

.platform-info-section--light {
  background: var(--blanco);
}

.platform-info-section--tint {
  background: var(--beige-claro);
}

.platform-info-text {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: #3D3D3D;
  max-width: 640px;
}

/* FAQ accordion */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--beige-medio);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
}

.faq-question-text {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--negro);
}

.faq-icon {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  color: var(--gris-texto);
  flex-shrink: 0;
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-answer p {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gris-texto);
  max-width: 640px;
  padding-bottom: 28px;
}

/* Contacto: form + details */
.contact-section {
  background: var(--negro);
  padding: 100px 80px 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
}

.contact-form-field {
  margin-bottom: 28px;
}

.contact-form-field label {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 10px;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--negro-suave);
  padding: 12px 0;
  color: var(--blanco);
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #4D4D4D;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-bottom-color: var(--blanco);
}

.contact-form-field textarea {
  resize: none;
  min-height: 110px;
}

.contact-form-field.has-error input,
.contact-form-field.has-error textarea {
  border-bottom-color: #E06060;
}

.contact-field-error {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #E06060;
  margin-top: 8px;
}

.contact-submit {
  display: block;
  margin-top: 16px;
  background: var(--blanco);
  color: var(--negro);
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.contact-submit:hover {
  opacity: 0.85;
}

.contact-form-note {
  margin-top: 20px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--gris-texto);
}

.contact-details-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-label {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 8px;
}

.contact-detail-value {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--blanco);
}

/* CTA final */
.service-cta-section {
  background: var(--negro);
  padding: 140px 80px;
  text-align: center;
}

.service-cta-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--blanco);
  margin-bottom: 40px;
}

.service-cta-button {
  display: inline-block;
  background: var(--blanco);
  color: var(--negro);
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.service-cta-button:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 24px;
  }

  .nav-center,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }

  .page-header {
    padding: 140px 24px 64px;
  }

  .services-index-section,
  .service-steps-section,
  .service-includes-section,
  .service-price-section {
    padding: 64px 24px;
  }

  .service-cta-section {
    padding: 96px 24px;
  }

  .services-index-grid,
  .service-steps-grid,
  .platforms-index-grid {
    grid-template-columns: 1fr;
  }

  .service-price-grid {
    gap: 32px;
  }

  .platform-info-section {
    padding: 64px 24px;
  }

  .contact-section {
    padding: 64px 24px 96px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* ===================================================================
   SISTEMA DE DISEÑO — dirección editorial / Swiss cálido
   ===================================================================
   Definido pero AÚN NO aplicado a ninguna página. Nada de lo que
   sigue debe cambiar el aspecto actual de index/servicios/
   plataformas/faq/contacto hasta que se migren una a una en un
   paso posterior. Usa las mismas fuentes ya cargadas arriba
   (Clash Display / Satoshi) — no se añaden fuentes nuevas.
   =================================================================== */

:root {
  --beige-base: #EDEAE3;
  --beige-light: #F4F2EC;
  --ink-black: #0E0E0C;
  --ink-text: #1A1A17;
  --paper-text: #EDEAE3;
  --accent: #8FB93E;
  --hairline: rgba(26, 26, 23, 0.14);
  --hairline-dark: rgba(237, 234, 227, 0.16);

  /* Sistema definitivo (claro y luminoso) — tokens nuevos, en
     paralelo a los de arriba. Los de arriba siguen controlando el
     aspecto de las secciones aún no migradas (Qué hacemos, teasers
     de Servicios/Plataformas); estos son los que usan las secciones
     ya rehechas con la dirección nueva. --accent es el único token
     compartido entre ambos sistemas: es el mismo verde en los dos. */
  --paper: #FBFAF7;
  --paper-alt: #F1EEE7;
  --ink: #15150F;
  --ink-soft: #5B584E;
  --line: rgba(21, 21, 15, 0.16);
}

/* Tipografía de titulares OFICIAL del sistema nuevo: Familjen Grotesk
   Bold (700), cargada arriba vía Google Fonts. Sustituye a Cabinet
   Grotesk como titular por su carácter más suizo/editorial (menos
   genérico). De momento solo se aplica en "Qui som" (index.html) a
   modo de prueba — el resto de titulares con la dirección nueva
   siguen en Cabinet Grotesk hasta que se migren uno a uno. Al escribir
   una nueva regla de titular, usa 'Familjen Grotesk', sans-serif;
   font-weight: 700 directamente (mismo criterio que el resto de este
   sistema: sin variable de fuente, ver el resto de este bloque). */

/* a) Etiqueta de sección numerada, tipo cartel suizo.
   Uso: <p class="section-label"><span class="section-label-index">01</span>Servicios</p>
   El guion/línea entre número y texto se dibuja solo, vía ::after. */
.section-label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-text);
  opacity: 0.6;
}

.section-label--dark {
  color: var(--paper-text);
}

.section-label-index {
  font-weight: 700;
}

.section-label-index::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 12px;
  background: currentColor;
  vertical-align: middle;
}

/* b) Titular de sección con fuerte contraste de escala.
   Uso: <h2 class="section-title">Texto con <em>énfasis</em></h2>
   .section-title--dark para usar sobre .section--dark. */
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-text);
}

.section-title em {
  font-style: italic;
  font-weight: 600;
}

.section-title--dark {
  color: var(--paper-text);
}

/* c) Divisor de línea fina — sustituye a las sombras blandas.
   Uso: <div class="hairline"></div> (o --dark sobre fondo oscuro). */
.hairline {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  border: none;
}

.hairline--dark {
  background: var(--hairline-dark);
}

/* d) Card editorial — bordes finos, sin sombra pesada.
   Uso: <div class="card-editorial">...</div>
   .card-editorial--dark añade un toque sutil de glassmorphism,
   pensado solo para usarse sobre .section--dark. */
.card-editorial {
  display: block;
  background: var(--beige-light);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 40px;
  transition: border-color 0.2s ease;
}

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

.card-editorial--dark {
  display: block;
  background: rgba(237, 234, 227, 0.04);
  border: 1px solid var(--hairline-dark);
  border-radius: 14px;
  padding: 40px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: border-color 0.2s ease;
}

.card-editorial--dark:hover {
  border-color: var(--accent);
}

/* Tipografía y accesorios comunes para el contenido de una card-editorial. */
.card-editorial-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 24px;
}

.card-editorial-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.card-editorial-desc {
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.75;
}

/* Enlace discreto con subrayado fino, sustituye a los botones
   genéricos para acciones secundarias tipo "Ver más →". Hereda el
   color del texto (currentColor), funciona sobre claro y oscuro. */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.link-arrow-text {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow-glyph {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

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

.link-arrow:hover .link-arrow-glyph {
  color: var(--accent);
  transform: translateX(4px);
}

/* Lista editorial a ancho completo — sustituye al "SaaS-card kit"
   para listar ofertas/servicios: filas grandes separadas por
   hairlines, sin caja ni sombra. Usada en la home (teaser) y en
   servicios.html (índice completo). El nombre en Clash Display es
   el elemento memorable; el resto va quieto. Uso:
   <div class="service-list">
     <a href="..." class="service-row">
       <span class="service-row-name">Nombre</span>
       <span class="service-row-desc">Descripción</span>
       <span class="service-row-price">Precio</span>
       <span class="service-row-arrow" aria-hidden="true">→</span>
     </a>
   </div>
   Añade "service-row--large" junto a "service-row" para la versión
   con más presencia (usada en el índice, no en el teaser). */
.service-list {
  grid-column: 1 / -1;
  margin-top: 48px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}

.service-list .service-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.service-row-name {
  grid-column: 1 / span 5;
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.01em;
  color: var(--ink-text);
  transition: color 0.2s ease;
}

.service-row-desc {
  grid-column: 6 / span 4;
  align-self: center;
  font-family: 'Satoshi', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-text);
  opacity: 0.65;
}

.service-row-price {
  grid-column: 10 / span 2;
  align-self: center;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-text);
  opacity: 0.7;
}

.service-row-arrow {
  grid-column: 12 / span 1;
  justify-self: end;
  align-self: center;
  font-size: 20px;
  color: var(--ink-text);
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-row:hover .service-row-name {
  color: var(--accent);
}

.service-row:hover .service-row-arrow {
  transform: translateX(6px);
  opacity: 0.9;
}

/* Variante con más presencia: índice completo (servicios.html) en
   vez del teaser reducido de la home. */
.service-row--large {
  padding: 56px 0;
}

.service-row--large .service-row-name {
  font-size: clamp(30px, 3.4vw, 46px);
}

.service-row--large .service-row-desc {
  font-size: 16px;
  max-width: 460px;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 28px 0;
  }

  .service-row--large {
    padding: 36px 0;
  }

  .service-row-name,
  .service-row-desc,
  .service-row-price {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .service-row-arrow {
    display: none;
  }
}

/* e) Sistema de botones DEFINITIVO (no tocar el "Hablemos" del
   navbar, que tiene su propio estilo propio y no debe cambiar).
   Un botón es texto + un detalle circular SEPARADO (nunca una
   flecha pegada al texto). El primario lleva relleno; el
   secundario, contorno. Uso:
   <a class="btn-pill" href="...">
     <span>Texto</span>
     <span class="btn-pill-icon" aria-hidden="true">→</span>
   </a>
   <a class="btn-pill btn-pill--ghost" href="...">...</a>
   Para un enlace de texto sin botón, usa .link-arrow (ya existe). */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-pill:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn-pill-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover .btn-pill-icon {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(2px);
}

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

.btn-pill--ghost .btn-pill-icon {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

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

/* Hueco de imagen — patrón de producción para cuando aún no hay
   foto real: marco fino + marcas de registro en las esquinas + nota
   de qué falta. Nunca un icono de montaña ni un degradado; se lee
   como una nota de producción, no como un error. El aspect-ratio lo
   decide cada instancia (contenido, no la clase). Uso:
   <div class="image-placeholder" style="aspect-ratio: 4 / 5;">
     <span class="image-placeholder-corner image-placeholder-corner--tl"></span>
     <span class="image-placeholder-corner image-placeholder-corner--tr"></span>
     <span class="image-placeholder-corner image-placeholder-corner--bl"></span>
     <span class="image-placeholder-corner image-placeholder-corner--br"></span>
     <p class="image-placeholder-note">Qué va aquí<br>Proporción · estado</p>
   </div>
   Cuando llegue la foto real: <img> con la misma clase image-placeholder
   (border-radius y aspect-ratio se mantienen) y fuera las esquinas/nota. */
.image-placeholder {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.image-placeholder-corner {
  position: absolute;
  width: 11px;
  height: 11px;
}

.image-placeholder-corner--tl {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--ink-soft);
  border-left: 1px solid var(--ink-soft);
}

.image-placeholder-corner--tr {
  top: 14px;
  right: 14px;
  border-top: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
}

.image-placeholder-corner--bl {
  bottom: 14px;
  left: 14px;
  border-bottom: 1px solid var(--ink-soft);
  border-left: 1px solid var(--ink-soft);
}

.image-placeholder-corner--br {
  bottom: 14px;
  right: 14px;
  border-bottom: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
}

.image-placeholder-note {
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 220px;
}

/* Superficies del sistema nuevo — fondo + color de texto + padding
   vertical generoso y coherente (140px / 88px en móvil) para las
   secciones ya migradas a la dirección clara. Añade también
   data-nav-theme="light" o "dark" en el <section>: eso lo lee
   RateUpSite.initNavTheme() / el observer de la home, no esta clase.
   (.section--dark/--light/--paper, con nombres parecidos, son el
   sistema antiguo — se retiran cuando migremos esas secciones.) */
.surface-paper {
  background: var(--paper);
  color: var(--ink);
  padding: 140px 0;
}

.surface-paper-alt {
  background: var(--paper-alt);
  color: var(--ink);
  padding: 140px 0;
}

.surface-ink {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
}

@media (max-width: 768px) {
  .surface-paper,
  .surface-paper-alt,
  .surface-ink {
    padding: 88px 0;
  }
}

/* Microanimación de entrada — sutil, de un solo uso por elemento
   (se dispara una vez al entrar en el viewport, nunca en bucle).
   Pensada para aplicarse a 1-2 elementos por sección (p.ej. el
   titular y la imagen), nunca a todo, para que aporte vida sin ser
   el "fade-slide-up" genérico y omnipresente. Añade "reveal" y,
   para escalonar el segundo elemento, "reveal--delay-1" (o -2).
   Requiere RateUpSite.initReveal() llamado una vez en la página.
   Respeta prefers-reduced-motion (aquí y en el JS). */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}

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

.reveal--delay-1 {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* f) Contenedor con márgenes disciplinados y grid de 12 columnas.
   Uso: <div class="container-grid"><div style="grid-column: span 6">...</div></div>
   Permite alinear contenido de forma asimétrica y rigurosa. */
.container-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* g) Utilidades de sección clara/oscura. Añade también
   data-nav-theme="dark" o "light" en el <section> del HTML para
   que el navbar reaccione al hacer scroll (esa parte la gestiona
   RateUpSite.initNavTheme(), no esta clase). */
.section--dark {
  background: var(--ink-black);
  color: var(--paper-text);
  padding: 120px 0;
}

.section--light {
  background: var(--beige-base);
  color: var(--ink-text);
  padding: 120px 0;
}

.section--paper {
  background: var(--beige-light);
  color: var(--ink-text);
  padding: 120px 0;
}

@media (max-width: 768px) {
  .container-grid {
    padding: 0 24px;
    gap: 16px;
  }

  .section--dark,
  .section--light,
  .section--paper {
    padding: 72px 0;
  }
}

/* Foco de teclado propio, en marca (--accent), en vez del anillo
   azul por defecto del navegador — visible solo en navegación por
   teclado (:focus-visible), no al hacer click con el ratón. */
.service-row:focus-visible,
.link-arrow:focus-visible,
.card-editorial:focus-visible,
.card-editorial--dark:focus-visible,
.platform-item:focus-visible,
.btn-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* Las transiciones de hover de estos componentes son cosméticas,
   no esenciales para su uso: se desactivan si el usuario prefiere
   menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  .service-row-name,
  .service-row-arrow,
  .link-arrow-text,
  .link-arrow-glyph,
  .card-editorial,
  .card-editorial--dark,
  .platform-item-name,
  .btn-pill,
  .btn-pill-icon {
    transition: none !important;
  }
}

/* ===================================================================
   CTA final compartido (index, servicios/gbp, plataformas/google-maps,
   faq). Un único bloque centrado sobre --ink: firma (logo) -> titular
   gigante -> subtítulo -> botón. Uso:
   <section class="cta-final" data-nav-theme="dark">
     <div class="cta-final-sign reveal"><img class="cta-final-logo" ...></div>
     <h2 class="cta-final-title cta-fold-title">...</h2>
     <p class="cta-final-subtitle reveal" data-fold-after="0">...</p>
     <div class="cta-final-action reveal" data-fold-after="0.12">.btn-pill</div>
   </section>
   El titular se despliega palabra a palabra (FoldText): las palabras las
   genera RateUpSite.initFoldTitles(), que también retrasa subtítulo y botón
   hasta después de la última palabra (data-fold-after = retardo extra).
   =================================================================== */
.cta-final {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 112px 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* La firma: el logo como sello. La opacidad va en la imagen y el .reveal en
   su envoltorio, para que la animación (que lleva opacity a 1) no la anule. */
.cta-final-sign {
  margin-bottom: 12px;
}

.cta-final-logo {
  display: block;
  height: 44px;
  width: auto;
  opacity: 0.55;
}

.cta-final-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 11em;
  margin: 0;
  text-wrap: balance;
  /* Profundidad para el despliegue 3D de cada palabra. */
  perspective: 900px;
}

/* --paper al 50%. En el color y no en opacity: .reveal anima opacity a 1. */
.cta-final-subtitle {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(251, 250, 247, 0.5);
  max-width: 360px;
  margin: 0 auto;
  text-wrap: balance;
}

/* Frases en líneas propias (index): cada span es su propio bloque
   equilibrado, para que no quede una palabra sola al final. */
.cta-final-subtitle > span {
  display: block;
  text-wrap: balance;
}

.cta-final-action {
  margin-top: 20px;
}

/* .btn-pill del sistema sobre --ink, con más presencia que el estándar.
   Sin .btn-pill-icon: el círculo con flecha es para CTAs intermedios; el
   cierre final es una píldora limpia, solo texto. */
.cta-final .btn-pill {
  padding: 20px 44px;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
}

.cta-final .btn-pill:hover {
  background: var(--accent);
  color: var(--ink);
}

/* FoldText: cada palabra se despliega desde arriba (rotateX -85deg -> 0) al
   entrar el titular en pantalla. El retardo escalonado (0.07s por palabra)
   lo pone initFoldTitles(). Las palabras solo existen si hay JS: sin JS el
   titular es texto normal y siempre visible. */
.fold-word {
  display: inline-block;
  opacity: 0;
  transform: rotateX(-85deg);
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1), transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.fold-word--visible {
  opacity: 1;
  transform: rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .fold-word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .cta-final {
    gap: 22px;
    padding: 88px 24px;
  }

  .cta-final-subtitle {
    font-size: 17px;
  }

  .cta-final .btn-pill {
    padding: 18px 38px;
  }
}

/* Móvil estrecho: el titular baja para que frases largas ("¿Hablamos de tu
   ficha?") quepan en 390px partiendo solo entre palabras. */
@media (max-width: 480px) {
  .cta-final-title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }
}

