/* ============================================
   SAEDA GROUP S.A.C. — styles.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #0F2B46;
  --color-secondary: #1E4D78;
  --color-accent-btn: #F59E0B;
  --color-accent-text: #D97706;
  --color-bg-cream: #F4F7FA;
  --color-bg-alt: #E8EEF4;
  --color-highlight: #FEF3C7;
  --color-white: #FFFFFF;
  --color-text: #374151;
  --color-text-secondary: #6B7280;
  --color-border: #D1D5DB;
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

::selection {
  background: var(--color-highlight);
}

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

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fix #4: mejor contraste para section-label sobre cream */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 12px;
}

.section-label--light {
  color: var(--color-accent-btn);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

/* Fix #5: line-height más amplio para H1 en mobile */
@media (max-width: 768px) {
  h1 {
    line-height: 1.3;
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.navbar__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

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

.navbar__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: #fff;
}

/* Fix #12: focus visible para accesibilidad */
.navbar__links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.navbar__cta {
  display: inline-block;
  background: var(--color-accent-btn);
  color: var(--color-primary) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.navbar__cta:hover {
  background: #D97706;
  transform: translateY(-1px);
}

/* Language selector */
.navbar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 16px;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.navbar__lang svg {
  flex-shrink: 0;
}

.navbar__lang-current {
  color: #fff;
}

.navbar__lang-sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 2px;
}

.navbar__lang a {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.navbar__lang a:hover {
  color: #fff !important;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar on non-dark-hero pages */
.navbar--solid {
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-primary);
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .navbar__links.open {
    transform: translateY(0);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E4D78 50%, #0F2B46 100%);
  color: #fff;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(15,43,70,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Fix #1: margin-bottom explícito para H1 del hero */
.hero__content h1 {
  margin-bottom: 24px;
}

.hero--short {
  min-height: auto;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
}

/* Fix #14: reducir resplandor en hero corto */
.hero--short::before {
  opacity: 0.5;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  max-width: 600px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero abstract SVG pattern */
.hero__pattern {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 640px;
}

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual {
    display: none;
  }

  .hero__actions {
    justify-content: center;
  }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

/* Fix #12: focus visible para botones */
.btn:focus-visible {
  outline: 2px solid var(--color-accent-btn);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent-btn);
  color: #0F2B46;
}

.btn--primary:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 43, 70, 0.3);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: #fff;
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.link-arrow {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: #fff;
}

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

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section--dark {
  background-color: var(--color-text);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='40' x2='40' y2='0' stroke='rgba(15,43,70,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  color: #fff;
}

.section--cream {
  background-color: var(--color-bg-cream);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(15,43,70,0.03)'/%3E%3C/svg%3E");
}

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

/* Fix #2: separador entre secciones blancas consecutivas */
.section--white + .section--white {
  border-top: 1px solid #EFF1F3;
}

/* Fix #9: padding reducido para secciones cortas (solo texto) */
.section--compact {
  padding: 60px 0;
}

.section__header {
  max-width: 680px;
  margin-bottom: 48px;
}

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

.section__header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.section--dark .section__header p {
  color: rgba(255, 255, 255, 0.7);
}

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

  .section--compact {
    padding: 48px 0;
  }
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

/* Fix #8: sin transition en card base, solo en variantes hoverable */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-highlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-accent-text);
  font-size: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

/* Dark section icon container */
.card--dark .card__icon {
  background: rgba(15, 43, 70, 0.1);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Problem cards */
.card--problem {
  position: relative;
  border-left: 3px solid #FEF3C7;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.card--problem:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 43, 70, 0.12);
  border-left-color: #D97706 !important;
}

.card__corner-num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 36px;
  font-weight: 700;
  color: #F59E0B;
  opacity: 0.08;
  line-height: 1;
}

.card__impact {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f5f5f5;
  padding-top: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: #999;
}

.card__impact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fca5a5;
  flex-shrink: 0;
}

/* Card with left border accent */
.card--bordered {
  border-left: 3px solid var(--color-accent-btn);
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--bordered:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 43, 70, 0.12);
}

/* Card dark background */
.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Fix #16: hover sutil para cards oscuras */
.card--dark:hover {
  border-color: rgba(15, 43, 70, 0.3);
  transform: translateY(-2px);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.card--dark h3 {
  color: #fff;
}

/* Card on cream bg */
.card--cream-bg {
  background: #fff;
}

/* Why cards with border-top */
.card--why {
  border-top: 3px solid #FEF3C7;
  padding: 20px;
}

/* Hoverable cards (soluciones, por qué) */
.card--hoverable {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--hoverable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 43, 70, 0.12);
}

@media (max-width: 768px) {
  .cards-grid,
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .cards-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   VALUE PROPOSITION — Check list
   ============================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
}

.check-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: var(--color-highlight);
  color: var(--color-accent-text);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================================
   FIT / CHALLENGES Section
   ============================================ */
/* Challenges grid */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.challenge-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #FEF3C7;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  border-color: #F59E0B;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 43, 70, 0.08);
}

.challenge-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--color-highlight);
  border: 1.5px solid #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.challenge-card:hover .challenge-card__icon {
  border-color: #F59E0B;
}

.challenge-card__icon svg {
  width: 20px;
  height: 20px;
}

.challenge-card__text {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.challenge-card__sub {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.4;
}

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

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fit-col h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fit-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.fit-col--yes li::before {
  content: '✓';
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.fit-col--no li::before {
  content: '✕';
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

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

/* ============================================
   STEPS / PROCESS
   ============================================ */

/* Progress bar */
.steps-progress {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, #EFF1F3 0%, #FEF3C7 40%, #F59E0B 100%);
  border-radius: 2px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steps-progress__node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.steps-progress__node::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.steps-progress__node--1 { border-color: #FEF3C7; }
.steps-progress__node--1::after { background: #FEF3C7; }
.steps-progress__node--2 { border-color: #F59E0B; }
.steps-progress__node--2::after { background: #F59E0B; }
.steps-progress__node--3 { border-color: #D97706; }
.steps-progress__node--3::after { background: #D97706; }
.steps-progress__node--4 { border-color: #D97706; }
.steps-progress__node--4::after { background: #D97706; }

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

.step {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  border-top: 3px solid #FEF3C7;
  transition: all 0.3s ease;
}

.step:nth-child(2) { border-top-color: #F59E0B; }
.step:nth-child(3) { border-top-color: #D97706; }
.step:nth-child(4) { border-top-color: #D97706; }

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(15, 43, 70, 0.1);
  border-top-color: #F59E0B;
}

.step__icon {
  width: 44px;
  height: 44px;
  background: var(--color-highlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step__icon svg {
  width: 22px;
  height: 22px;
}

.step__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-btn);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
  transition: opacity 0.3s ease;
}

.step:nth-child(2) .step__number { opacity: 0.35; }
.step:nth-child(3) .step__number { opacity: 0.5; }
.step:nth-child(4) .step__number { opacity: 0.65; }
.step:hover .step__number { opacity: 0.8; }

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

  .steps-progress {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

/* Fix #13: gradiente sutil en CTA final */
.cta-section--gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E4D78 50%, #0F2B46 100%);
  position: relative;
}

.cta-section--gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(15,43,70,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-section .cta-whatsapp {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.cta-section .cta-whatsapp a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.cta-section .cta-whatsapp a:hover {
  color: #fff;
}

/* ============================================
   TECH GRID (2x2)
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Fix #6: tech-card con ícono separado del título */
.tech-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #EFF1F3;
  border-top: 3px solid #F59E0B;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 43, 70, 0.08);
  border-color: rgba(15, 43, 70, 0.3);
  border-top-color: #F59E0B;
}

.tech-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-highlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-text);
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.tech-card__icon svg {
  width: 24px;
  height: 24px;
}

.tech-card h3 {
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

/* ============================================
   CONSULT SECTION (includes list)
   ============================================ */
.consult-includes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}

.consult-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
}

.consult-includes li::before {
  content: '→';
  color: var(--color-accent-text);
  font-weight: 600;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-btn);
  box-shadow: 0 0 0 3px rgba(15, 43, 70, 0.1);
}

/* Fix #20: validación visual de error en formulario */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: #dc2626;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.contact-info {
  background: var(--color-highlight);
  border-radius: 12px;
  padding: 32px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info__item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info__item .contact-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__item .contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info__item-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.contact-info__item a {
  color: var(--color-text);
  font-weight: 500;
}

.contact-info__item a:hover {
  color: var(--color-accent-text);
}

.contact-info .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-info__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #D1D5DB;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

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

/* ============================================
   LEGAL PAGES
   ============================================ */
/* Fix #17: clase para offset de páginas legales */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 12px 0 16px 20px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-accent-text);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

/* Fix #10: links legales separados y más pequeños */
.footer__legal-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__legal-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer__legal-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer__contact-item a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__legal-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============================================
   SOLUTIONS PAGE
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* Sector card blocks */
.sector-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #FEF3C7;
  margin-bottom: 28px;
  background: #fff;
}

.sector-card:last-child {
  margin-bottom: 0;
}

.sector-card__header {
  background: #fff;
  padding: 18px 24px 14px;
  text-align: center;
  border-bottom: 1px solid #FEF3C7;
}

.sector-card__header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 3px;
}

.sector-card__header span {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent-text);
}

.sector-card__body {
  display: flex;
}

.sector-card__problem {
  flex: 1;
  padding: 22px 28px;
  border-left: 3px solid #F59E0B;
  min-width: 0;
}

.sector-card__problem-label {
  color: #999;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.sector-card__problem ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sector-card__problem li {
  position: relative;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 0 5px 18px;
}

.sector-card__problem li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fca5a5;
}

.sector-card__solution {
  flex: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E4D78 100%);
  padding: 22px 28px;
  position: relative;
  overflow: hidden;
}

.sector-card__solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(15,43,70,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sector-card__solution-label {
  color: #F59E0B;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  position: relative;
}

.sector-card__solution p {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 0;
  position: relative;
}

.sector-card__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
}

.sector-card__check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  border: 1.5px solid rgba(74,222,128,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sector-card__check-icon svg {
  width: 10px;
  height: 10px;
}

.sector-card__check span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .sector-card__body {
    flex-direction: column;
  }
}

/* Comparison card highlight */
.card--highlight {
  background: var(--color-highlight);
  border-top: 3px solid #F59E0B;
}

/* ============================================
   ABOUT PAGE — Values
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ============================================
   SVG HERO PATTERN
   ============================================ */
.hero-node-line {
  stroke: rgba(15, 43, 70, 0.2);
  stroke-width: 1.5;
  fill: none;
}

.hero-node-rect {
  fill: rgba(15, 43, 70, 0.06);
  stroke: rgba(15, 43, 70, 0.2);
  stroke-width: 1.5;
  rx: 12;
}

.hero-node-icon {
  stroke: rgba(15, 43, 70, 0.5);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fix #18: usar transform scale en vez de animar r */
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.hero-pulse-dot {
  fill: var(--color-accent-btn);
  animation: pulse-dot 2s ease-in-out infinite;
  transform-origin: center;
}

.hero-pulse-dot:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-pulse-dot:nth-child(3) {
  animation-delay: 1.2s;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  /* Fix #19: duración más corta para bloques de solo texto */
  .scroll-reveal--fast {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Staggered delay for cards within same section */
  .card.scroll-reveal,
  .tech-card.scroll-reveal,
  .step.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .card.scroll-reveal.visible,
  .tech-card.scroll-reveal.visible,
  .step.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MOBILE RESPONSIVE (375px — 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Container: min 16px lateral padding */
  .container {
    padding: 0 16px;
  }

  /* Typography: cap sizes for mobile */
  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  /* Hero: stack actions vertically */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Cards: reduce padding on mobile */
  .card {
    padding: 20px;
  }

  .card--why {
    padding: 16px;
  }

  /* Step number: smaller on mobile */
  .step__number {
    font-size: 2.2rem;
  }

  /* CTA section: full-width button */
  .cta-section--gradient .btn,
  .cta-section .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Sector cards: stack and reduce padding */
  .sector-card__problem,
  .sector-card__solution {
    padding: 18px 16px;
  }

  .sector-card__problem {
    border-left-width: 3px;
  }

  /* Language selector in mobile menu */
  .navbar__lang {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    justify-content: center;
  }

  /* Contact grid: already stacks via .contact-grid rule */
  .contact-info {
    padding: 24px 16px;
  }

  /* Tech cards: reduce padding */
  .tech-card {
    padding: 16px;
  }

  /* Two-col gap reduction */
  .two-col {
    gap: 32px;
  }

  /* SVGs: ensure they don't overflow */
  svg {
    max-width: 100%;
    height: auto;
  }

  /* WhatsApp button: slightly smaller, more space from edge */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* Footer: tighter spacing */
  .footer {
    padding: 40px 0 0;
  }

  /* Legal pages: adjust padding */
  .legal-content {
    padding: calc(var(--nav-height) + 24px) 16px 60px;
  }

  /* Section headers: reduce margin */
  .section__header {
    margin-bottom: 32px;
  }

  /* Challenge cards: tighter on mobile */
  .challenge-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .challenge-card__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .challenge-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .challenge-card__text {
    font-size: 0.875rem;
  }

  .challenge-card__sub {
    font-size: 11px;
  }
}
