/* ========================================
   Sprint Judicial — Main Stylesheet
   Architecture: ITCSS
   Naming: BEM
   ======================================== */

/* ========================================
   1. SETTINGS — Design Tokens
   ======================================== */

:root {
  /* Colores */
  --deep: #0B1D33;
  --navy: #152A4A;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --teal: #06B6D4;
  --gold: #F59E0B;
  --green: #10B981;
  --purple: #8B5CF6;
  --red: #EF4444;
  --surface: #0F2440;
  --surface-light: #1A3558;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 36, 64, 0.7);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* Tipografia */
  --font-display: 'Source Serif 4', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 100px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;

  /* Layout */
  --container-max: 1100px;
  --nav-height: 64px;
}

/* ========================================
   2. GENERIC — Reset
   ======================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

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

/* ========================================
   3. ELEMENTS — Base HTML styles
   ======================================== */

body {
  font-family: var(--font-body);
  background: var(--deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background grain texture (hidden on mobile for iOS perf) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  body::before {
    display: block;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
}

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

ul, ol {
  list-style: none;
}

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

section {
  padding: var(--space-3xl) 0;
}

/* ========================================
   4. OBJECTS — Layout utilities
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ========================================
   5. COMPONENTS
   ======================================== */

/* ----- Navbar ----- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 29, 51, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar--scrolled {
  background: rgba(11, 29, 51, 0.95);
  padding: var(--space-sm) 0;
}

/* Remove backdrop-filter when menu is open so position:fixed children reference the viewport */
.navbar--menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.navbar__logo-accent {
  color: var(--accent-light);
}

/* Mobile-first: completely removed from render tree when closed (fixes iOS Safari ghost text) */
.navbar__links {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  z-index: 105;
  background: rgba(11, 29, 51, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar__links.is-open {
  display: flex;
  pointer-events: auto;
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 10px 4px;
  transition: color 0.3s;
}

.navbar__link:hover,
.navbar__link.is-active {
  color: var(--white);
}

.navbar__cta {
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.navbar__cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Hamburger toggle (visible on mobile, hidden on desktop) */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger to X animation */
.navbar--menu-open .navbar__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar--menu-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar--menu-open .navbar__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1.4;
}

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

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

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

.btn--outline:hover {
  border-color: var(--accent-light);
  color: var(--white);
}

.btn--green {
  background: var(--green);
  color: var(--white);
}

.btn--green:hover {
  background: #0d9668;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.btn--lg {
  font-size: 1rem;
  padding: 14px 24px;
  width: 100%;
  justify-content: center;
}

/* ----- Hero ----- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 750px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title-highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: opacity 0.4s ease;
}

.hero__scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

/* ----- Stat ----- */

.stat__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ----- Section headers ----- */

.section__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.section__title {
  margin-bottom: 20px;
}

.section__description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.section__label--center {
  display: block;
  text-align: center;
}

.section__title--center {
  text-align: center;
}

.section__description--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Service cards ----- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Color variants via data attribute */
.service-card[data-color="blue"]::before { background: linear-gradient(90deg, var(--accent), var(--teal)); }
.service-card[data-color="blue"]:hover { border-color: rgba(59, 130, 246, 0.3); }
.service-card[data-color="blue"] .service-card__icon { background: rgba(59, 130, 246, 0.15); }

.service-card[data-color="teal"]::before { background: linear-gradient(90deg, var(--teal), var(--green)); }
.service-card[data-color="teal"]:hover { border-color: rgba(6, 182, 212, 0.3); }
.service-card[data-color="teal"] .service-card__icon { background: rgba(6, 182, 212, 0.15); }

.service-card[data-color="gold"]::before { background: linear-gradient(90deg, var(--gold), var(--red)); }
.service-card[data-color="gold"]:hover { border-color: rgba(245, 158, 11, 0.3); }
.service-card[data-color="gold"] .service-card__icon { background: rgba(245, 158, 11, 0.15); }

.service-card[data-color="green"]::before { background: linear-gradient(90deg, var(--green), var(--accent)); }
.service-card[data-color="green"]:hover { border-color: rgba(16, 185, 129, 0.3); }
.service-card[data-color="green"] .service-card__icon { background: rgba(16, 185, 129, 0.15); }

.service-card[data-color="purple"]::before { background: linear-gradient(90deg, var(--purple), var(--accent)); }
.service-card[data-color="purple"]:hover { border-color: rgba(139, 92, 246, 0.3); }
.service-card[data-color="purple"] .service-card__icon { background: rgba(139, 92, 246, 0.15); }

.service-card[data-color="red"]::before { background: linear-gradient(90deg, var(--red), var(--gold)); }
.service-card[data-color="red"]:hover { border-color: rgba(239, 68, 68, 0.3); }
.service-card[data-color="red"] .service-card__icon { background: rgba(239, 68, 68, 0.15); }

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.service-card__description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card__tag {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.service-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.service-card__status--production {
  color: var(--green);
}

.service-card__status--development {
  color: var(--gold);
}

.service-card__status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.service-card__status--production .service-card__status-dot {
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.service-card__status--development .service-card__status-dot {
  background: var(--gold);
}

.service-card__cta {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: color 0.3s;
}

.service-card__cta:hover {
  color: var(--white);
}

/* ----- Process (Como Funciona) ----- */

.process {
  position: relative;
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

.process__step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  position: relative;
}

.process__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}

.process__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.process__step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.process__line {
  display: none;
}

/* ----- Credentials ----- */

.credentials {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credentials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.credential {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credential:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.credential__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.credential__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.credential__description {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----- About ----- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content .section__description {
  margin-bottom: 0;
}

.about__list {
  margin-top: var(--space-lg);
}

.about__list li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.about__list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.about__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  display: none;
}

.about__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.about__role {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.about__bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about__links {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.about__links .btn {
  font-size: 0.85rem;
  padding: 10px 18px;
}

/* ----- Trust Bar ----- */

.trust-bar {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  text-align: center;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.trust-bar__icon {
  font-size: 1.5rem;
}

.trust-bar__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ----- CTA Intermedio ----- */

.cta-mid {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-mid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.cta-mid__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-mid__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-mid__description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ----- Comparison ----- */

.comparison {
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.comparison__column {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comparison__column--before {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.comparison__column--after {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.comparison__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.comparison__column--before .comparison__heading {
  color: var(--red);
}

.comparison__column--after .comparison__heading {
  color: var(--green);
}

.comparison__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison__item {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: var(--space-xl);
  position: relative;
  line-height: 1.6;
}

.comparison__item::before {
  position: absolute;
  left: 0;
  font-size: 1rem;
}

.comparison__item--negative::before {
  content: '\2717';
  color: var(--red);
}

.comparison__item--positive::before {
  content: '\2713';
  color: var(--green);
}

.comparison__item strong {
  color: var(--white);
}

/* ----- FAQ ----- */

.faq {
  padding: var(--space-4xl) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color 0.3s;
}

.faq__question:hover {
  color: var(--accent-light);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 var(--space-lg);
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----- Blog ----- */

.blog {
  padding: var(--space-4xl) 0;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.blog__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blog__card-date {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.blog__card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog__card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: auto;
  transition: color 0.3s;
}

.blog__card:hover .blog__card-link {
  color: var(--white);
}

.blog__fallback {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ----- CTA Section ----- */

.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  display: none;
}

.cta-section .section__label {
  display: block;
  text-align: center;
}

.cta-section .section__title {
  text-align: center;
  margin-bottom: var(--space-md);
}

.cta-section .section__description {
  margin: 0 auto 36px;
  text-align: center;
}

.cta-section__buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section__note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Footer ----- */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer__column-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.footer__column-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__column-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s;
}

.footer__column-links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ----- Trust Bar Logo ----- */

.trust-bar__logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  opacity: 0.9;
  transition: opacity 0.3s;
}

.trust-bar__item:hover .trust-bar__logo {
  opacity: 1;
}

/* ----- Hero Rotator ----- */

.hero__rotator {
  display: grid;
}

.hero__rotator-item {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: linear-gradient(135deg, var(--accent-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__rotator-item.is-active {
  opacity: 1;
}

/* ----- Service Card Actions ----- */

.service-card__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.service-card__cta--try {
  color: var(--teal);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.service-card__cta--try:hover {
  color: var(--white);
  border-color: var(--teal);
  background: rgba(6, 182, 212, 0.1);
}

/* ----- Service Card Pain/Result ----- */

.service-card__pain {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.service-card__result {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--space-md);
}

/* ----- Pipeline ----- */

.pipeline {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}

.pipeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

.pipeline__phase {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pipeline__phase:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}

.pipeline__verb {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.pipeline__icon {
  margin-bottom: var(--space-md);
}

.pipeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.pipeline__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Differentiators ----- */

.differentiators {
  padding: var(--space-4xl) 0;
}

.differentiators__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.differentiators__card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.differentiators__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.differentiators__icon {
  margin-bottom: var(--space-md);
}

.differentiators__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.differentiators__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Security ----- */

.security {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.security__item {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.security__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.security__icon {
  margin-bottom: var(--space-md);
}

.security__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.security__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Timeline ----- */

.timeline {
  padding: var(--space-4xl) 0;
}

.timeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

.timeline__step {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- WhatsApp Float ----- */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
  content: 'Escríbenos';
  position: absolute;
  left: calc(100% + 12px);
  background: var(--surface-light);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* ========================================
   6. UTILITIES
   ======================================== */

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

.sr-only:focus {
  position: fixed !important;
  top: 0;
  left: 0;
  width: auto !important;
  height: auto !important;
  padding: var(--space-md) var(--space-lg) !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  z-index: 9999;
}

.text-center {
  text-align: center;
}

/* ----- Back to top ----- */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, color 0.3s;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ========================================
   7. RESPONSIVE — Mobile first breakpoints
   ======================================== */

/* --- Tablet (768px) --- */

@media (min-width: 768px) {
  /* Restore desktop section padding */
  section {
    padding: var(--space-4xl) 0;
  }

  /* Navbar: switch from mobile overlay to inline */
  .navbar__toggle {
    display: none;
  }

  .navbar__links {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    justify-content: flex-end;
    gap: 28px;
    z-index: auto;
    pointer-events: auto;
    transition: none;
  }

  .navbar__link {
    font-size: 0.9rem;
  }

  .navbar__link.is-active {
    color: var(--white);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 2px;
  }

  .navbar__cta {
    font-size: 0.9rem;
    padding: 10px 22px;
  }

  /* Restore decorative pseudo-elements on larger screens */
  .hero::before,
  .hero::after,
  .about__card::before,
  .cta-mid::before,
  .cta-section::before {
    display: block;
  }

  .hero__scroll-indicator {
    display: flex;
  }

  .hero__stats {
    gap: var(--space-2xl);
  }

  .stat__value {
    font-size: 2rem;
  }

  .about__card {
    padding: 40px;
  }

  .btn--lg {
    font-size: 1.05rem;
    padding: 16px 32px;
    width: auto;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-bar__item {
    flex-direction: row;
    gap: var(--space-sm);
  }

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

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

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

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

  .faq__question {
    font-size: 1.05rem;
  }

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

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
  }

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

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

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

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

/* --- Desktop (1024px) --- */

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card--featured {
    grid-column: span 2;
  }

  .credentials__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Process connecting line */
  .process__line {
    display: block;
    position: absolute;
    top: 24px;
    left: 72px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.3;
    z-index: 0;
  }

  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .pipeline__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .differentiators__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .security__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

