/*
Theme Name: Conabix
Author: Conabix
Description: Theme clásico para la web corporativa de Conabix.
Version: 0.1.0
Text Domain: conabix
*/

:root {
  --blue: #004ea8;
  --blue-deep: #003a7d;
  --blue-bright: #1d6fd4;
  --blue-tint: #eaf1fb;
  --yellow: #ffc72c;
  --yellow-deep: #e6ae12;
  --gray: #75787b;
  --gray-soft: #9a9da0;
  --gray-line: #e4e7ec;
  --gray-bg: #f6f8fb;
  --ink: #14233a;
  --ink-2: #3d4f68;
  --white: #ffffff;
  --max-width: 1480px;
  --radius: 16px;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
  margin-bottom: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 6.4vw, 82px);
}

h2 {
  font-size: clamp(30px, 4.4vw, 56px);
}

.site-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: 48px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--gray-line);
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 78, 168, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; transform: translateY(-3px); }

.site-brand {
  position: relative;
  display: block;
  line-height: 0;
}

.site-brand img,
.custom-logo {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}

.site-brand__logo--negative {
  position: absolute;
  inset: 0 auto auto 0;
  visibility: hidden;
  opacity: 0;
  width: 150px;
  height: auto;
}

.site-header--over-hero:not(.scrolled) .site-brand__logo--positive {
  visibility: hidden;
  opacity: 0;
}

.site-header--over-hero:not(.scrolled) .site-brand__logo--negative {
  visibility: visible;
  opacity: 1;
}

/* Inner pages: blue header background until scroll */
.site-header--inner:not(.scrolled) {
  background: var(--blue);
}

.site-brand__logo {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.primary-menu {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-menu a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.primary-menu a:hover {
  color: var(--white);
}

.primary-menu a:hover::after {
  width: 100%;
}

.site-header.scrolled .primary-menu a {
  color: var(--ink-2);
}

.site-header.scrolled .primary-menu a:hover,
.site-header.scrolled .primary-menu a.is-active {
  color: var(--blue);
}

.primary-menu a.is-active::after {
  width: 100%;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  white-space: nowrap;
}

.language-switcher .lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.language-switcher .lang-btn:hover { color: var(--white); }
.language-switcher .lang-btn.is-active { color: var(--yellow); }

.gtranslate-hidden { display: none; }

.language-switcher .lang-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 300;
}

.site-header.scrolled .language-switcher {
  border-color: var(--gray-line);
}

.site-header.scrolled .language-switcher .lang-btn {
  color: rgba(0, 0, 0, 0.4);
}

.site-header.scrolled .language-switcher .lang-btn:hover { color: var(--ink); }
.site-header.scrolled .language-switcher .lang-sep { color: rgba(0, 0, 0, 0.25); }
.site-header.scrolled .language-switcher .lang-btn.is-active { color: var(--blue); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle > span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transform: translateZ(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.scrolled .menu-toggle > span { background: var(--ink); }

.menu-toggle.is-open > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open > span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.mobile-menu {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu__brand img {
  width: 160px;
  height: auto;
}

.mobile-menu__close {
  padding: 4px;
  color: var(--white);
  font-size: 52px;
  line-height: 1;
  cursor: pointer;
}

.mobile-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.mobile-navigation .primary-menu {
  flex-direction: column;
  align-items: center;
  gap: 28px;
  font-size: 22px;
}

.mobile-navigation .primary-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-menu__language {
  align-self: center;
  margin: 24px;
  padding: 8px 18px;
  font-size: 13px;
}

.site-main--front {
  padding: 0;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 90% at 15% 10%, #0a5fc4 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% 90%, var(--blue-deep) 0%, transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 45%, #0a5fc4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__inner {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  width: 100%;
  max-width: 18ch;
  margin-bottom: 0;
  color: var(--white);
  font-weight: 300;
  line-height: 1.07;
}

.hero__title strong {
  color: var(--yellow);
  font-weight: 600;
}

.hero__line {
  display: block;
}

.hero__divider {
  width: 64px;
  height: 1px;
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.3);
}

.hero__lead {
  width: min(100%, 920px);
  margin-top: 60px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}


.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 0.7fr 1fr; gap: 40px 64px; margin-bottom: 50px; align-items: start; }

.footer-brand { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; margin-top: -7px; }

.footer-logo { width: 100px; height: auto; display: block; }

.footer-about { color: rgba(255,255,255,0.78); font-size: 14px; margin: 0; max-width: 38ch; line-height: 1.6; }

.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.92); margin: 0 0 16px; line-height: 1; }

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-col a { color: rgba(255,255,255,0.78); font-size: 14px; text-decoration: none; transition: color .2s ease; }

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

.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }

.footer-contact a svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.7; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 14px; }

.footer-bottom a { color: rgba(255,255,255,0.5); margin-left: 18px; text-decoration: none; transition: color .2s ease; }

.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* Tablet ≤980px */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(3, auto); justify-content: center; gap: 36px 96px; }
  .footer-grid > :first-child { max-width: none; grid-column: 1 / -1; text-align: center; }
  .footer-grid > :first-child .footer-brand { justify-content: center; }
  .footer-grid > :first-child .footer-about { margin: 16px auto 0; text-align: center; max-width: 60ch; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .footer-bottom div:last-child { display: flex; gap: 10px 18px; flex-wrap: wrap; justify-content: center; }
  .footer-bottom a { margin-left: 0; }
}

/* Móvil ≤760px */
@media (max-width: 760px) {
  .footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .footer-brand { justify-content: center; }
  .footer-about { text-align: center; max-width: 38ch; margin: 16px auto 0; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 28px; }
  .footer-bottom div:last-child { display: flex; gap: 10px 18px; flex-wrap: wrap; justify-content: center; }
  .footer-bottom a { margin-left: 0; }
}

section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 980px) {
  .site-shell {
    padding-inline: 24px;
  }

  .desktop-navigation,
  .site-header__actions .language-switcher {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-branding {
    transform: none;
    align-self: center;
    margin-left: 0;
  }

  .site-header {
    padding: 8px 0;
    transition: none;
  }

  .hero {
    min-height: 100svh;
    padding: 110px 0 60px;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(36px, 7vw, 60px);
  }

  .hero__lead {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding-inline: 18px;
  }

  .site-brand img,
  .custom-logo {
    width: 150px;
    height: auto;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .hero__lead {
    font-size: 16px;
  }

}

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

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


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn > span, .btn > svg, .btn .arr { position: relative; z-index: 2; }

.btn-primary { background: var(--blue); color: var(--white); flex-shrink: 0; }
.btn-accent  { background: var(--yellow); color: var(--ink); }
.btn-ghost   { border: 1.5px solid var(--gray-line); color: var(--ink); background: none; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-accent::before,
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-accent::before  { background: #ffe07a; }
.btn-primary::before { background: #1565c4; }

.btn-accent:hover::before,
.btn-primary:hover::before { transform: scaleX(1); }

.btn .arr { display: inline-flex; align-items: center; }

/* CF7 submit */
.contact-form-wrap .wpcf7-form > p:last-of-type { text-align: center; margin-top: 6px; }

.contact-form-wrap .wpcf7-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  border: none;
  width: auto;
  background: var(--yellow);
  color: var(--ink);
  white-space: nowrap;
}

.contact-form-wrap .wpcf7-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #ffe07a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-form-wrap .wpcf7-submit:hover::before { transform: scaleX(1); }

/* Section divider — línea gris bajo el título de cada sección */
.section-divider {
  width: 100%;
  height: 0.5px;
  background: rgba(0, 0, 0, 0.1);
  margin: 14px 0 28px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
}

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

.display-italic {
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
}

.hero-title .display-italic {
  color: var(--yellow);
}

/* ==========================================================================
   Services section
   ========================================================================== */

.services-section {
  padding: 72px 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 78, 168, 0.08);
  transform: translateY(-3px);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 24px 0;
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-tint);
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: background 0.25s ease, color 0.25s ease;
}

.service:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}

.service-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-desc {
  padding: 14px 24px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1 1 auto;
}

.service-viz {
  border-top: 1px solid var(--gray-line);
  height: 164px;
  flex: 0 0 164px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  overflow: hidden;
}

.service-viz--blue   { background: var(--blue-tint); }
.service-viz--yellow { background: #fffce8; }

/* Flow — automatización */
.srv-flow {
  display: flex;
  align-items: center;
  width: 100%;
}

.srv-node {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--white);
  border: 1.5px solid rgba(0, 78, 168, 0.2);
  display: grid;
  place-items: center;
  color: var(--blue);
}

.srv-node-end {
  background: var(--yellow);
  border-color: var(--yellow-deep);
  color: var(--ink);
}

.srv-pipe {
  flex: 1;
  height: 2px;
  background: rgba(0, 78, 168, 0.12);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.srv-pipe span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: srvflow 2.2s linear infinite;
}

@keyframes srvflow {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* Chat IA */
.srv-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.srv-msg {
  font-size: 9.5px;
  line-height: 1.3;
  padding: 4px 8px;
  max-width: 94%;
}

.srv-user {
  border-radius: 8px 8px 2px 8px;
  background: rgba(0, 78, 168, 0.09);
  color: var(--blue);
  align-self: flex-end;
}

.srv-ai {
  border-radius: 8px 8px 8px 2px;
  background: rgba(255, 199, 44, 0.15);
  border: 0.5px solid rgba(255, 199, 44, 0.35);
  color: #6b4f00;
  align-self: flex-start;
}

.srv-ai b {
  color: var(--ink);
  font-weight: 600;
}

/* Barras — analítica */
.srv-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  height: 84px;
}

.srv-bars span {
  flex: 1;
  background: linear-gradient(to top, var(--yellow), rgba(255, 199, 44, 0.4));
  border-radius: 3px 3px 0 0;
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .service-head h3   { font-size: 15.5px; }
  .service-desc      { font-size: 13.5px; padding: 12px 20px 18px; }
  .service-head      { padding: 22px 20px 0; }
  .srv-msg           { font-size: 9px; padding: 3px 7px; }
  .srv-node          { width: 28px; height: 28px; }
}

@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; gap: 16px; }

  .service {
    display: grid;
    grid-template-columns: 1fr 240px;
    grid-template-areas: "head viz" "desc viz";
  }

  .service-head { grid-area: head; padding: 24px 26px 0; }
  .service-head h3 { font-size: 18px; }
  .service-desc { grid-area: desc; padding: 12px 26px 24px; font-size: 14.5px; }

  .service-viz {
    grid-area: viz;
    border-top: none;
    border-left: 1px solid var(--gray-line);
    height: auto;
    flex: none;
  }

  .srv-msg  { font-size: 10px; padding: 5px 9px; }
  .srv-node { width: 32px; height: 32px; }
}

@media (max-width: 560px) {
  .services-section { padding: 60px 0; }

  .service {
    display: flex;
    flex-direction: column;
  }

  .service-viz {
    border-left: none;
    border-top: 1px solid var(--gray-line);
    height: auto;
    flex: none;
    min-height: 120px;
    padding: 20px;
  }

  .srv-bars { height: 70px; }
}


/* ==========================================================================
   Method section
   ========================================================================== */

.method-section {
  padding: 48px 0 72px;
  background: var(--gray-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.step {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.step:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 78, 168, 0.08);
  transform: translateY(-2px);
}

.step:hover .step-num {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .method-section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .method-section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Metrics band
   ========================================================================== */

.clients-metrics {
  background: var(--blue);
  color: var(--white);
  padding: 56px 0;
}

.clients-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.clients-metrics__num {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--white);
  text-align: center;
}

.clients-metrics__num em {
  font-style: normal;
  color: var(--yellow);
}

.clients-metrics__lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
  text-align: center;
}

.clients-metrics__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 7px;
  line-height: 1.5;
  text-align: center;
}

.clients-testimonials {
  padding: 72px 0;
}

@media (max-width: 980px) {
  .clients-metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 560px) {
  .clients-metrics__grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Clients section
   ========================================================================== */

.clients-section {
  padding: 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial--featured {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 40px;
}

.testimonial-featured-logo {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-featured-logo img {
  width: 280px;
  height: 140px;
  object-fit: contain;
}

.testimonial-featured-divider {
  width: 1px;
  align-self: stretch;
  background: var(--gray-line);
  flex-shrink: 0;
}

.testimonial-featured-body {
  flex: 1;
}

.testimonial-featured-body .testimonial-quote {
  margin-bottom: 20px;
}

.testimonial--featured .testimonial-name {
  font-size: 15px;
}

.testimonial--featured .testimonial-role {
  font-size: 13px;
}

@media (max-width: 860px) {
  .testimonial--featured { flex-direction: column !important; align-items: center; text-align: center; gap: 20px; }
  .testimonial-featured-logo { width: 100%; justify-content: center; padding-bottom: 8px; }
  .testimonial-featured-logo img { width: 180px; height: 72px; }
  .testimonial-featured-divider { width: 100%; height: 1px; align-self: auto; background: var(--gray-line); }
  .testimonial-featured-body { width: 100%; text-align: left; }
}

.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.logo-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logo-link img {
  transition: opacity 0.2s ease;
}

.logo-link:hover img {
  opacity: 0.8;
}

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.testimonial.testimonial--featured {
  background: #f4f8fe;
  border-color: rgba(0, 78, 168, 0.12);
  padding: 52px 48px;
}

@media (max-width: 860px) {
  .testimonial.testimonial--featured { padding: 28px 24px; }
}

.testimonial:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 78, 168, 0.08);
  transform: translateY(-3px);
}

.testimonial-logobox {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-line);
}

.testimonial-logobox img {
  width: 260px;
  height: 80px;
  object-fit: contain;
  object-position: center center;
}

.testimonial-logobox--sm img {
  width: 160px;
  height: 80px;
  object-fit: contain;
  object-position: center center;
}


.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.testimonial-role {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

.testimonial-sector {
  font-size: 11px;
  color: var(--gray-soft);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Contact section
   ========================================================================== */

.contact-section {
  padding: 48px 0 72px;
  background: var(--gray-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}

.contact-info h2 { max-width: none; margin: 0 0 32px; }
.contact-title-line { display: block; }
.contact-lead { font-size: 18px; line-height: 1.8; color: var(--ink-2); margin: 0; }


.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(0, 78, 168, 0.06);
}

/* --- CF7 structural resets --- */
.contact-form-wrap .wpcf7 { margin: 0; padding: 0; }

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

/* Anular márgenes propios de CF7 */
.contact-form-wrap .wpcf7-form p { margin: 0; }
.contact-form-wrap .field,
.contact-form-wrap .form-row { margin: 0; }
.contact-form-wrap .wpcf7-acceptance { margin: 0; }

/* Two-column rows */
.contact-form-wrap .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Field wrapper */
.contact-form-wrap .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-wrap .field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.contact-form-wrap .field .req { color: #e02424; font-weight: 700; }

/* CF7 wraps each field in a span — make it behave like a block */
.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
}

/* Inputs and textarea */
.contact-form-wrap .wpcf7-text,
.contact-form-wrap .wpcf7-email,
.contact-form-wrap .wpcf7-tel,
.contact-form-wrap .wpcf7-textarea,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-wrap .wpcf7-text:focus,
.contact-form-wrap .wpcf7-email:focus,
.contact-form-wrap .wpcf7-tel:focus,
.contact-form-wrap .wpcf7-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 78, 168, 0.1);
  background: #fff;
}

.contact-form-wrap .wpcf7-textarea {
  resize: vertical;
  min-height: 96px;
}

/* Checkbox rows */
.contact-form-wrap .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

.contact-form-wrap .check a { color: var(--blue); text-decoration: none; }
.contact-form-wrap .check a:hover { text-decoration: underline; }
.contact-form-wrap .check .req { color: #e02424; font-weight: 700; }

/* CF7 acceptance — el label wrappea input + span, sólo él necesita flex */
.contact-form-wrap .wpcf7-acceptance,
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
  padding: 0;
}

/* Reducir espacio entre checkboxes consecutivos */
.contact-form-wrap .wpcf7-form p + p:has(.wpcf7-acceptance) { margin-top: -8px; }

.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}

.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item-label { flex: 1; }

/* CF7 acceptance checkbox custom style */
.contact-form-wrap .wpcf7-acceptance input[type="checkbox"],
.contact-form-wrap .wpcf7-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  background: #fafbfc;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked,
.contact-form-wrap .wpcf7-checkbox input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked::after,
.contact-form-wrap .wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}


/* CF7 validation error messages */
.contact-form-wrap .wpcf7-not-valid-tip {
  display: block;
  font-size: 11px;
  color: #e02424;
  font-weight: 500;
  margin-top: 2px;
}

.contact-form-wrap .wpcf7-not-valid {
  border-color: #e02424 !important;
}

/* CF7 response output */
.contact-form-wrap .wpcf7-response-output {
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  border: 1px solid var(--gray-line);
}

.contact-form-wrap .wpcf7-mail-sent-ok {
  background: #f0faf4;
  border-color: #4caf50;
  color: #276b2e;
}

.contact-form-wrap .wpcf7-mail-sent-ng,
.contact-form-wrap .wpcf7-aborted {
  background: #fff5f5;
  border-color: #e02424;
  color: #9b1c1c;
}

.contact-form-wrap .wpcf7-spam-blocked {
  background: #fffbeb;
  border-color: var(--yellow);
  color: #7c5e0a;
}

/* CF7 spinner */
.contact-form-wrap .wpcf7-spinner {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background-color: var(--blue);
  border-radius: 50%;
  opacity: 0;
}

.contact-form-wrap .wpcf7-spinner::before {
  background-color: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .contact-form-wrap { padding: 24px; }
  .contact-form-wrap .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.page-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-404__code {
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  opacity: 0.12;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-404__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-404__lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */


.page-body {
  padding: 64px 0 96px;
}

.page-body--with-title {
  padding-top: 120px;
}

.legal-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 48px 0;
}

.legal-page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.legal-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  text-align: justify;
}

.legal-content h2,
.legal-content h3 { text-align: left; }

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p { font-size: 14px; margin-bottom: 14px; padding-left: 16px; }
.legal-content .legal-sub-h { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 20px; margin-bottom: 6px; padding-left: 16px; text-align: left; }
.legal-content ul, .legal-content ol { padding-left: 44px; margin-bottom: 14px; }
.legal-content li { text-align: left; font-size: 14px; }
.legal-content li { margin-bottom: 5px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content code { font-family: monospace; font-size: 13px; background: var(--gray-bg); padding: 1px 5px; border-radius: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.1); vertical-align: top; }
.legal-table th { background: var(--ink); color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.legal-table tr:nth-child(even) td { background: rgba(0,78,168,0.03); }
