/* ====== RESET Y BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ====== VARIABLES ====== */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f6f6;
  --color-primary: #ff3f9e;
  --color-primary-dark: #d7267f;
  --color-primary-light: #ff9fcd;
  --color-text-main: #111111;
  --color-text-muted: #555555;
  --color-border-soft: #e3e3e3;
  
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-small: 16px;
  
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 22px 45px rgba(255, 63, 158, 0.35);
  
  --transition-base: 0.15s ease;
  --transition-medium: 0.3s ease;

  --space-1: 40px;
  --space-2: 52px;
  --space-3: 64px;
  --space-4: 80px;
}

/* ====== UTILIDADES GENERALES ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.section-description {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

/* Mejora de accesibilidad: skip link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ====== BOTONES ====== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-base), 
              box-shadow var(--transition-base), 
              background-color var(--transition-base), 
              border-color var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  outline: none;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-text-main);
  border-color: #222222;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-text-main);
  outline-offset: 2px;
}

/* Estados de carga para botones */
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ====== NAVBAR ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo img {
  height: 72px;
  display: block;
  width: auto;
}

.nav-pill {
  flex: 0 0 auto;
  max-width: 860px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid #222222;
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  font-size: 0.78rem;
  text-decoration: none;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  position: relative;
  transition: color var(--transition-base);
}

.nav-menu a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-menu a.is-active {
  color: var(--color-primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.18s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  margin-left: 16px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 50;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: #111;
  transition: all 0.3s ease-in-out;
}

.nav-btn {
  min-width: 150px;
  padding-inline: 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px rgba(255, 63, 158, 0.45);
}

/* ====== HERO ====== */
.section-hero {
  padding: 0px 0 78px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 640px;
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  line-height: 1.6;
  max-width: 54ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Grid pattern background con optimización */
.hero-grid-bg {
  position: relative;
  background-color: #ffffff;
}

.hero-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, #e7e5e4 1px, transparent 1px),
    linear-gradient(to bottom, #e7e5e4 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image:
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%);
  mask-image:
    repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px),
    repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px),
    radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  will-change: transform;
  opacity: 0.75;
  filter: blur(0.2px);
  transform: translateZ(0);
}

.hero-grid-bg > * {
  position: relative;
  z-index: 1;
}

.hero-grid-bg dotlottie-wc {
  width: 440px !important;
  height: 440px !important;
  will-change: transform;
  transform: translateY(2px);
}

.section-hero dotlottie-wc {
  width: clamp(320px, 42vw, 520px) !important;
  height: clamp(320px, 42vw, 520px) !important;
}

/* Hero halo (infra feel) */
#hero .hero-container {
  position: relative;
}

#hero .hero-container::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 34px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 63, 158, 0.18), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(circle at 55% 75%, rgba(147, 51, 234, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  min-width: 0;
  padding: 12px 22px;
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .section-hero dotlottie-wc {
    width: min(380px, 100%) !important;
    height: 380px !important;
    margin: 0 auto;
  }
}

/* ====== INTRO MOCCA ====== */
.section-intro {
  padding: 26px 0 30px;
}

.intro-mocca-container {
  text-align: center;
  max-width: 780px;
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0));
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 22px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.intro-pill {
  width: 180px;
  height: 10px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,63,158,0.85), rgba(147,51,234,0.55), rgba(59,130,246,0.45));
  box-shadow: 0 10px 28px rgba(255,63,158,0.18);
}

.intro-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.intro-text {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-main);
}

/* ====== PROBLEM SECTION ====== */
.section-problem {
  position: relative;
  padding: 74px 0 86px;
}

.section-problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 20% 30%, rgba(255,63,158,0.10), transparent 55%),
    radial-gradient(ellipse 120% 70% at 90% 70%, rgba(59,130,246,0.08), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0));
  z-index: 0;
  pointer-events: none;
}

.section-problem::after {
  content: "01";
  position: absolute;
  left: max(24px, calc((100vw - 1160px) / 2));
  top: 18px;
  font-size: 140px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(0,0,0,0.05);
  z-index: 0;
  pointer-events: none;
}

.section-problem > * {
  position: relative;
  z-index: 1;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.problem-text {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  padding: 26px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  position: relative;
}

.problem-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,63,158,0.95), rgba(147,51,234,0.55), rgba(59,130,246,0.35));
}

.problem-title {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin: 0 0 14px;
  max-width: 18ch;
  line-height: 1.05;
}

.problem-title span {
  color: var(--color-primary);
  font-size: 1.1em;
  display: block;
  margin-top: 6px;
}

.problem-body {
  color: var(--color-text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
  max-width: 52ch;
}

.problem-subtitle {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.problem-result {
  margin: 0;
  color: var(--color-text-main);
}

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.problem-card {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.problem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(90deg, 
    rgba(255,63,158,0.55), 
    rgba(147,51,234,0.35), 
    rgba(59,130,246,0.28), 
    rgba(16,185,129,0.18) 
  );
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.10);
}

.card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-icon-img {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(255,63,158,0.18));
}

@media (max-width: 900px) {
  .section-problem::after {
    font-size: 96px;
  }
  
  .problem-text {
    padding: 22px;
  }

  .problem-title {
    max-width: none;
  }
  
  .problem-cards {
    align-items: center;
  }
}

/* ====== ¿QUÉ ES MOCCA? ====== */
.section-what-is {
  padding: 24px 0 24px;
  position: relative;
  overflow: hidden;
  background-color: #0a0a0a;
}

.section-what-is::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(121, 54, 138, 0.4) 0%, transparent 60%), 
    radial-gradient(ellipse at 80% 70%, rgba(121, 37, 146, 0.3) 0%, transparent 70%), 
    radial-gradient(ellipse at 60% 20%, rgba(105, 77, 110, 0.25) 0%, transparent 50%), 
    radial-gradient(ellipse at 40% 80%, rgba(77, 59, 76, 0.2) 0%, transparent 65%);
}

.section-what-is > * {
  position: relative;
  z-index: 1;
}

.what-is-grid {
  border-radius: 40px;
  padding: 56px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr);
  column-gap: 40px;
  align-items: center;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.what-is-illustration {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.what-is-illustration img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  position: relative;
  top: -22px;
  left: -14px;
  object-fit: contain;
  object-position: bottom;
}

.what-is-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.what-is-title {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ff2f92;
}

.what-is-text {
  margin: 0 0 14px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.what-is-text:last-child {
  margin-bottom: 0;
}

/* ====== MODELO HÍBRIDO ====== */
.section-hybrid {
  padding: 60px 0 var(--space-4);
}

.hybrid-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hybrid-image {
  display: flex;
  align-items: center;
}

.hybrid-photo {
  width: 100%;
  max-width: 460px;
  min-height: 260px;
  border-radius: 32px;
  overflow: hidden;
}

.hybrid-photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hybrid-content {
  max-width: 520px;
}

.hybrid-title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
}

.hybrid-title span {
  color: var(--color-primary);
}

.hybrid-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.hybrid-list li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.hybrid-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin-right: 4px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hybrid-text {
  margin: 0;
  color: var(--color-text-muted);
}

/* ====== DE LA ADOPCIÓN AL VALOR REAL ====== */
.section-value-real {
  padding: 24px 0;
}

.value-header .section-title span {
  color: var(--color-primary);
}

.value-container {
  max-width: 1120px;
}

.value-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.value-card {
  border-radius: 26px;
  border: 1px solid var(--color-border-soft);
  padding: 24px;
  display: flex;
  gap: 18px;
  background-color: #ffffff;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.value-card-wide {
  margin-top: 24px;
  align-items: center;
  padding-right: 100px;
}

.value-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon-img {
  width: 40px;
  height: 40px;
  display: block;
}

.value-content {
  flex: 1;
}

.value-tag {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.value-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.value-list {
  margin: 0;
  padding-left: 18px;
  font-size: 1rem;
}

.value-list li {
  margin-bottom: 4px;
}

.value-illustration {
  flex-shrink: 0;
}

.value-image {
  width: 180px;
  max-width: 100%;
  min-height: 120px;
  border-radius: 20px;
  display: block;
  object-fit: contain;
}

/* ====== WORLD-CLASS AGENTIC INFRASTRUCTURE ====== */
.section-platform-infrastructure {
  padding: 48px 0 var(--space-2);
}

.infra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: flex-start;
}

.infra-title {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.infra-body {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.infra-cta {
  margin-top: 18px;
}

.infra-diagram {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.infra-pill {
  align-self: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background-color: #111111;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.infra-lines {
  border-radius: 26px;
  padding: 0;
  background-color: transparent;
}

.infra-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 26px;
}

/* ====== PLATAFORMA + SOLUCIONES REALES ====== */
.section-platform-layers {
  padding: 24px 0 60px;
}

.layers-grid {
  max-width: 1120px;
}

.layers-header {
  margin-bottom: 32px;
}

.layers-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
}

.layers-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer-card {
  padding: 20px 22px;
  border-radius: 22px;
  background-color: #f4f4f4;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.layer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.layer-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.layer-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.layers-right {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.layers-note {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.layers-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 26px;
  display: block;
  object-fit: contain;
}

/* ====== ¿MOCCA ES PARA TU EMPRESA? ====== */

.section-target-fit {
  padding-top: 60px;
  padding-bottom: 0;
}

.target-bg {
  background:
    radial-gradient(circle at 50% 20%, #fbb6ce 0%, rgba(251, 182, 206, 0) 60%),
    #ffe9f5;
  padding: 52px 0 52px; /* ajuste de espaciado sección target-fit */
  overflow: visible;
}

.target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center; /* alineación vertical texto/imagen */
}

.target-text {
  margin-top: 8px; /* reducción espacio superior título */
}

.target-title {
  margin: 0 0 16px;
  font-size: 2rem;
}

.target-title span {
  color: var(--color-primary);
}

.target-intro {
  margin: 0 0 12px;
  font-weight: 500;
}

.target-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.target-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.target-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-primary);
}

.target-note {
  margin: 0;
  font-weight: 600;
}

/* CONTENEDOR DE LA IMAGEN */
.target-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-end;  /* que la parte baja de la imagen apoye en el fondo rosa */
  overflow: visible;      /* por si acaso en algún momento algo intenta recortarla */
}

/* IMAGEN DE LA DERECHA */
.target-image {
  width: 100%;
  max-width: 520px;
  display: block;
  object-fit: contain;
  object-position: bottom; /* alineación inferior imagen con fondo rosado */
  border-radius: 0;       /* <- clave: sin esquinas redondeadas */
  margin-bottom: -2px;
}

.target-illustration img {
  border-radius: 0 !important;
}



/* ====== CÓMO ABORDAMOS LA TRANSFORMACIÓN ====== */
.section-approach {
  padding: 40px 0 48px;
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

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

.approach-image {
  width: 100%;
  max-width: 380px;
  min-height: 260px;
  border-radius: 28px;
}

.approach-title {
  margin: 0 0 22px;
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.approach-title span {
  color: var(--color-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  position: relative;
  padding: 24px 24px 28px;
  border-radius: var(--radius-small);
  background-color: #f4f4f4;
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.step-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}

.step-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.step-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  max-width: none;
}

.step-title {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  padding-right: 60px;
}

.step-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ====== TRACCIÓN Y RESULTADOS ====== */
.section-traction {
  padding: 48px 0 var(--space-2);
}

.traction-header {
  text-align: center;
  margin-bottom: 24px;
}

.traction-icon {
  width: auto;
  height: auto;
  margin: 0 auto 12px;
  background: none;
}

.traction-icon img {
  height: 48px;
  display: block;
  margin: 0 auto;
}

.traction-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.metric-card {
  padding: 22px 18px 18px;
  border-radius: 22px;
  background-color: #ffe9f5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.metric-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  background: none;
}

.metric-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.metric-number {
  margin: 0 0 4px;
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.traction-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.extra-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background-color: #ffe9f5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.extra-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.extra-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.extra-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.extra-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.extra-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ====== INFRASTRUCTURE MATTERS ====== */
.section-infra-matters {
  padding: var(--space-3) 0 var(--space-1);
}

.infra-matters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.infra-matters-title {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.infra-matters-title span {
  color: var(--color-primary);
}

.infra-matters-body {
  margin: 0 0 10px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.infra-matters-illustration {
  display: flex;
  justify-content: center;
}

.infra-matters-image {
  width: 100%;
  max-width: 420px;
  min-height: 260px;
  border-radius: 28px;
}

/* ====== CONTACT FORM ====== */
.section-contact-form {
  padding: var(--space-2) 0 var(--space-1);
}

.contact-container {
  max-width: 960px;
}

.contact-card {
  background-color: #f5f5f5;
  border-radius: 28px;
  padding: 26px;
}

.contact-header {
  text-align: center;
  margin-bottom: 24px;
}

.contact-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--color-border-soft);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  background-color: #ffffff;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 63, 158, 0.1);
}

/* Validación visual */
.form-row input:invalid:not(:placeholder-shown),
.form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.form-row input:valid:not(:placeholder-shown),
.form-row textarea:valid:not(:placeholder-shown) {
  border-color: #16a34a;
}

/* Estados de error */
.form-row.error input,
.form-row.error textarea {
  border-color: #dc2626;
}

.form-row .error-message {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
}

.checkbox-row input {
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-row input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mensaje de éxito/error del formulario */
.form-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ====== FOOTER ====== */

.site-footer {
  margin-top: 0;
}

.footer-main {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0 40px;
}

.footer-main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-legal-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #222222;
}

.footer-brand-centered {
  margin-bottom: 10px;
}

.footer-main-logo {
  max-width: 220px;
  height: auto;
}

.footer-partners-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-partner-logo {
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.footer-social-centered {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer-social-link {
  display: block;
  transition: transform 0.2s;
}

.footer-social-link:hover {
  transform: translateY(-3px);
}

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  object-fit: contain;
}

.footer-copyright,
.footer-credits {
  margin: 0;
  font-size: 0.85rem;
  color: #ffffff !important;
  font-weight: 400 !important;
}

.footer-copyright {
  text-align: left;
}

.footer-credits {
  text-align: right;
  opacity: 0.8;
}

.heart-pink {
  color: #ff3f9e;
}

@media (max-width: 768px) {
  .footer-legal-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-copyright, 
  .footer-credits {
    text-align: center;
  }
}

/* ====== UTILIDADES ADICIONALES ====== */
.w-100 {
  width: 100%;
  height: auto;
}

/* Animación de rotación para monedas/elementos */
.coin-wrapper {
  display: inline-block;
  perspective: 1000px;
}

.rotate-animation {
  transform-style: preserve-3d;
  animation: rotate-clean 12s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

@keyframes rotate-clean {
  0% {
    transform: rotateX(25deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(25deg) rotateZ(360deg);
  }
}

/* Animación de fade in para elementos al hacer scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Tablets y pantallas medianas */
@media (max-width: 960px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    display: block;
  }

  .nav-logo img {
    height: 48px;
  }

  .nav-toggle {
    display: block;
  }

  /* Hamburger Animation */
  .nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-pill {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-width: none;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    border-radius: 0 0 24px 24px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #ffffff;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-pill.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-menu a {
    font-size: 1rem;
    display: block;
    padding: 8px;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .nav-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  /* Grid layouts a single column */
  .problem-grid,
  .what-is-grid,
  .hybrid-grid,
  .value-grid,
  .infra-grid,
  .layers-content,
  .target-grid,
  .approach-grid,
  .infra-matters-grid {
    grid-template-columns: 1fr;
  }

  /* What is MOCCA específico */
  .what-is-grid {
    padding: 36px 24px;
    row-gap: 28px;
  }

  .what-is-illustration img {
    max-width: 520px;
    margin: 0 auto;
    top: 0;
    left: 0;
  }

  .what-is-title {
    font-size: 2rem;
  }

  .what-is-text {
    font-size: 1rem;
  }

  /* Value cards */
  .value-card,
  .value-card-wide {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 24px;
  }

  .value-illustration {
    width: 100%;
  }

  .value-image {
    width: 100%;
  }

  /* Hybrid */
  .hybrid-image {
    order: -1;
    margin-bottom: 20px;
  }

  /* Target */
  .target-illustration {
    margin-top: 0;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Traction */
  .traction-metrics,
  .traction-extra {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-card {
    padding-inline: 20px;
  }

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

@media (max-width: 780px) {
  section {
    padding: 48px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-grid-bg dotlottie-wc {
    width: 100% !important;
    max-width: 380px !important;
    height: 380px !important;
    margin: 0 auto;
  }

  #hero .hero-container::after {
    right: 50%;
    transform: translateX(50%);
    top: 320px;
    width: 420px;
    height: 420px;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .nav-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .section-hero {
    padding-inline: 0;
  }

  /* Footer logos más pequeños en móvil */
  .footer-partner-logo {
    width: 100px;
    height: 60px;
  }

  .footer-social-link {
    width: 40px;
    height: 40px;
  }

  .footer-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 520px) {
  #hero .hero-container::after {
    top: 340px;
    width: 360px;
    height: 360px;
    opacity: 0.6;
  }
}

/* ====== PRINT STYLES ====== */
@media print {
  .site-header,
  .hero-buttons,
  .btn-primary,
  .btn-secondary,
  .section-contact-form,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ====== PREFERS REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rotate-animation {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-16px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(16px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   RESTORED & NEW STYLES (Appended)
   ========================================= */

/* Contact Form Specific Requirements Override */
#message {
    height: 120px;
    resize: vertical;
}

.form-buttons {
    justify-content: center;
    width: 100%;
}

.form-buttons .btn-primary {
    width: 100%;
    max-width: 320px;
}

/* Mobile Safeguard */
@media (max-width: 768px) {
    .hero-buttons, .nav-cta, .form-buttons {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .btn-primary, .btn-secondary {
        display: flex !important;
    }
}

/* Lucide Icons Placeholder */
[data-lucide] {
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* Footer Credits & Heart */
.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #222222;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #ffffff;
}

.footer-credits {
  margin: 0;
  font-size: 0.85rem;
  color: #ffffff;
}

.heart-pink {
  color: #ff3f9e;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .footer-legal-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

