html,
body {
  overflow-x: hidden;
  max-width: 100%;
  background-color: #F8F9FC;
  color: #2F2E2C;
}

.hero-gradient {
  background:
    radial-gradient(circle at 10% 80%, rgba(75, 253, 255, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 126, 115, 0.3) 0%, transparent 30%),
    #F8F9FC;
}

.blueprint-border-b {
  border-bottom: 1px solid #3333FF;
}

.blueprint-border-r {
  border-right: 1px solid #3333FF;
}

.blueprint-border-t {
  border-top: 1px solid #3333FF;
}

/* Cómo Funciona Section */
.como-funciona-section {
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 39px,
      rgba(51, 51, 255, 0.04) 39px,
      rgba(51, 51, 255, 0.04) 40px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 39px,
      rgba(51, 51, 255, 0.04) 39px,
      rgba(51, 51, 255, 0.04) 40px),
    linear-gradient(180deg, #F0F2FF 0%, #F8F9FC 100%);
}

/* Phase diamond (rotated square) */
.phase-diamond {
  width: 48px;
  height: 48px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-diamond span {
  transform: rotate(-45deg);
}

/* Phase card hover */
.phase-card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background: rgba(248, 249, 252, 0.6);
  backdrop-filter: blur(4px);
}

.phase-card:hover {
  box-shadow: 0 4px 24px rgba(51, 51, 255, 0.08);
  transform: translateY(-2px);
}

/* Phase tag hover */
.phase-tag {
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: default;
}

.phase-tag:hover {
  background-color: #3333FF;
  color: #fff;
}

.phase-card:last-child .phase-tag:hover {
  background-color: #FF7E73;
  color: #fff;
}

/* Por Qué Bridges Section */
.por-que-section {
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 39px,
      rgba(51, 51, 255, 0.03) 39px,
      rgba(51, 51, 255, 0.03) 40px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 39px,
      rgba(51, 51, 255, 0.03) 39px,
      rgba(51, 51, 255, 0.03) 40px),
    #F8F9FC;
}

/* Por Qué card hover */
.por-que-card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  min-height: 180px;
  align-content: center
}

.por-que-card:hover {
  box-shadow: 0 4px 24px rgba(51, 51, 255, 0.08);
  transform: translateY(-2px);
}

/* Double nested diamond decoration (two rotated squares) */
/* The parent wrapper div needs w-[40px] h-[40px] relative */
.diamond {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 40px;
  height: 40px;
}

.por-que-diamond-outer {
  z-index: 1;
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  position: absolute;
  top: 4px;
  right: 0;
  opacity: .60
}

.por-que-diamond-inner {
  z-index: 2;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  position: relative;
  top: 4px;
  right: -24px;
}

.text-square div {
  display: inline-flex;
  height: fit-content
}

.por-que-pieza-badge {
  display: flex;
  height: fit-content;
}


/* TAILWIND OVERRIDES */
.border-2 {
  border-width: 2.5px !important;
}