:root {
  --bg-deep: #0a1628;
  --bg-header: #0a1628;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-elevated: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-inverse: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #1e40af;
  --brand-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --accent-line: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --radius-sm: 8px;
  /* Iconos corporativos (caja + glifo) */
  --icon-glyph-sm: 12px;
  --icon-glyph-md: 13px;
  --icon-glyph: 13px;
  --icon-box-hero: 30px;
  --icon-glyph-hero: 15px;
  --icon-box-framework: 22px;
  --icon-box-service: 28px;
  --icon-box-card: 26px;
  --icon-stroke: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--surface-muted);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin-top: 0;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-intro .eyebrow {
  margin-bottom: 0.5rem;
}

.section-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-media {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.section-media img {
  display: block;
  width: 100%;
  min-height: 160px;
  height: min(240px, 32vw);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-size: 0.6875rem;
}

.lead {
  color: rgba(226, 232, 240, 0.92);
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.lang-switcher option {
  color: var(--text);
  background: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-mark-svg {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.logo-mark-svg--round {
  border-radius: 50%;
}

.logo:hover .logo-mark-svg {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 20px rgba(30, 64, 175, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .logo:hover .logo-mark-svg {
    transform: translateY(-1px);
  }
}

.logo .logo-mark-svg {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-text {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg-deep);
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}

.hero-cursor-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --hero-x: 0.5;
  --hero-y: 0.42;
  background: radial-gradient(
    ellipse 88% 58% at calc(var(--hero-x) * 100%) calc(var(--hero-y) * 100%),
    rgba(59, 130, 246, 0.14) 0%,
    rgba(30, 64, 175, 0.04) 38%,
    transparent 58%
  );
}

.hero.hero--no-cursor-fx .hero-cursor-layer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cursor-layer {
    display: none;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: #93c5fd;
}

.hero h1 {
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-photo-wrap {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  backdrop-filter: blur(8px);
}

.hero-card h2 {
  color: #f8fafc;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-benefits li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.hb-icon {
  flex-shrink: 0;
  width: var(--icon-box-hero);
  height: var(--icon-box-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(30, 64, 175, 0.35);
  color: #93c5fd;
}

.hb-icon svg {
  width: var(--icon-glyph-hero);
  height: var(--icon-glyph-hero);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.btn svg {
  width: var(--icon-glyph-sm);
  height: var(--icon-glyph-sm);
  flex-shrink: 0;
}

.contact-cta-list .btn-primary svg {
  width: var(--icon-glyph-md);
  height: var(--icon-glyph-md);
}

.contact-cta-list .btn-primary svg path {
  fill: currentColor;
  stroke: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover,
.btn-primary.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn.full {
  width: 100%;
}

.btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.cta-group {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Framework */
.services-framework {
  margin: 1.75rem 0 2rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.framework-title {
  margin: 0 0 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.framework-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.framework-step {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  border-top: 3px solid var(--brand);
}

.framework-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.framework-icon {
  width: var(--icon-box-framework);
  height: var(--icon-box-framework);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.framework-icon svg {
  width: var(--icon-glyph-sm);
  height: var(--icon-glyph-sm);
}

.framework-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.625rem;
}

.framework-step h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.framework-step p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Service & portfolio cards */
.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card,
.portfolio-card,
.team-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-icon {
  width: var(--icon-box-service);
  height: var(--icon-box-service);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.service-icon svg {
  width: var(--icon-glyph);
  height: var(--icon-glyph);
}

.service-card h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portfolio-card-thumb {
  overflow: hidden;
  background: var(--surface-elevated);
}

.portfolio-card-thumb img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card-thumb img {
  transform: scale(1.03);
}

.portfolio-card .portfolio-head,
.portfolio-card > p {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.portfolio-card > p {
  padding: 0.75rem 1.35rem 1.35rem;
  margin: 0;
}

.portfolio-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.85rem;
}

.portfolio-icon {
  flex-shrink: 0;
  width: var(--icon-box-card);
  height: var(--icon-box-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--brand);
  border: 1px solid var(--border);
}

.portfolio-icon svg {
  width: var(--icon-glyph);
  height: var(--icon-glyph);
}

.portfolio-card h3 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.portfolio-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-copy > p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-photo-wrap {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-card {
  padding: 1.5rem;
}

.team-card-icon {
  margin-bottom: 0.75rem;
}

.team-card h3 {
  margin-bottom: 0.5rem;
}

.team-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.team-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mission-values {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mission-block {
  padding: 1.1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand);
}

.mission-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.mission-block h3 svg {
  width: var(--icon-glyph-md);
  height: var(--icon-glyph-md);
  color: var(--brand);
  flex-shrink: 0;
}

.mission-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Contact */
.contact-lead {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-lead > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0;
}

.contact-cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-form {
  padding: 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text);
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.form-feedback {
  min-height: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.form-feedback.success {
  color: #15803d;
}

.form-feedback.error {
  color: #b91c1c;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-inverse);
  padding: 2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-wrap > p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 210;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #128c7e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #0f7a6e;
}

.whatsapp-float svg {
  width: var(--icon-glyph-md);
  height: var(--icon-glyph-md);
}

.whatsapp-float svg path {
  fill: currentColor;
  stroke: none;
}

/* Trazo unificado en iconos lineales (Hero, framework, servicios, portfolio, mision, mail) */
.hb-icon svg,
.framework-icon svg,
.service-icon svg,
.portfolio-icon svg,
.team-card-icon svg,
.mission-block h3 svg,
.contact-cta-list .btn-secondary svg {
  stroke: currentColor;
  fill: none;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .framework-steps,
  .portfolio-grid,
  .mission-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 4%;
    background: #0f1d32;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    min-width: 220px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .framework-steps,
  .portfolio-grid,
  .mission-values {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-media img {
    height: min(200px, 42vw);
  }
}
