/* ==========================================================================
   05 · CATEGORÍAS — tarjetas acordeón (sección 02)
   ========================================================================== */

.categories::before {
  position: absolute;
  top: 0;
  right: -18%;
  width: 650px;
  height: 650px;
  content: "";
  opacity: 0.26;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet), transparent 66%);
  filter: blur(80px);
}
.category-list {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.category-item {
  border-bottom: 1px solid var(--line);
}
.category-item > button {
  width: 100%;
  display: grid;
  grid-template-columns: 78px 1fr 60px;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
  border: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
}
.category-item > button h3 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition:
    transform 200ms ease,
    color 200ms ease;
}
.category-item > button:hover h3,
.category-item.is-open > button h3 {
  color: var(--cyan);
  transform: translateX(9px);
}
.category-number {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
}
.category-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  justify-self: end;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(65, 229, 255, 0.28);
  border-radius: 50%;
  font-size: 1.2rem;
}
.category-body {
  max-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.55fr);
  gap: clamp(26px, 4vw, 70px);
  margin-left: 98px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 520ms ease,
    opacity 320ms ease,
    padding 420ms ease;
}
.category-item.is-open .category-body {
  max-height: 1050px;
  padding: 8px 0 42px;
  opacity: 1;
}
.category-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}
.category-copy p + p {
  margin-top: 17px;
}
.category-meta {
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.category-meta > div > span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.category-meta > div > strong {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
}
.category-select {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  margin-top: 28px;
  padding: 0 0 10px;
  color: var(--white);
  border: 0;
  border-bottom: 1px solid var(--cyan);
  cursor: pointer;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
}
.category-select span {
  color: var(--cyan);
}
@media (max-width: 1024px) {
  .category-body {
    grid-template-columns: 1fr 0.55fr;
  }
}
@media (max-width: 820px) {
  .category-item > button {
    grid-template-columns: 40px 1fr 44px;
    gap: 10px;
    padding: 24px 0;
  }
  .category-toggle {
    width: 36px;
    height: 36px;
  }
  .category-body {
    display: block;
    margin-left: 50px;
  }
  .category-item.is-open .category-body {
    max-height: 1400px;
  }
  .category-meta {
    margin-top: 28px;
  }
  .category-select {
    margin-top: 30px;
  }
}
.categories {
  color: #ffffff;
  background: #0a0a0a;
}
.category-list {
  border-top: 2px solid #ffffff;
}
.category-item {
  border-bottom: 1px solid #606060;
}
.category-item > button {
  grid-template-columns: 70px 1fr 48px;
  padding: 30px 0;
}
.category-item > button h3 {
  max-width: 1040px;
  font-size: clamp(1.45rem, 2.55vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}
.category-item > button:hover h3,
.category-item.is-open > button h3 {
  color: inherit;
  transform: none;
}
.category-number {
  color: #9a9a9a;
}
.category-toggle {
  width: 40px;
  height: 40px;
  color: #ffffff;
  border: 1px solid #ffffff;
}
.category-item.is-open {
  margin: 0 calc(clamp(24px, 2.5vw, 44px) * -1);
  padding: 0 clamp(24px, 2.5vw, 44px);
  color: #0a0a0a;
  border-color: #ffffff;
  background: #ffffff;
}
.category-item.is-open .category-number {
  color: #555555;
}
.category-item.is-open .category-toggle {
  color: #0a0a0a;
  border-color: #0a0a0a;
}
.category-item.is-open .category-body {
  padding-bottom: 44px;
}
.category-copy p,
.category-item.is-open .category-copy p {
  color: #303030;
  font-size: 0.96rem;
}
.category-meta {
  padding: 24px;
  color: #0a0a0a;
  border: 1px solid #0a0a0a;
  background: #e5e5e1;
}
.category-meta > div > span,
.category-meta > div > strong,
.category-select,
.category-select span {
  color: #0a0a0a;
}
.category-select {
  border-color: #0a0a0a;
}
@media (max-width: 1024px) {
  .category-item.is-open {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }
}
@media (max-width: 640px) {
  .category-item > button {
    grid-template-columns: 42px 1fr 34px;
    gap: 10px;
  }
  .category-toggle {
    width: 32px;
    height: 32px;
  }
}
.category-item:not(.is-open) .category-body {
  display: none;
}
.category-item.is-open .category-body {
  display: grid;
  max-height: none;
}
@media (max-width: 820px) {
  .category-item.is-open .category-body {
    display: block;
  }
}
.categories {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #000000 !important;
  background-image:
    radial-gradient(
      circle at 92% 12%,
      rgba(0, 225, 164, 0.12),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #000000 0%,
      rgba(0, 174, 217, 0.055) 48%,
      #000000 100%
    ) !important;
}
.categories::after {
  position: absolute;
  z-index: 0;
  top: 3%;
  right: -16%;
  width: min(58vw, 820px);
  height: 78%;
  content: "";
  pointer-events: none;
  opacity: 0.14;
  background-image: var(--ta-category-wave) !important;
  background-position: right top !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  animation: ta-corner-breathe 16s ease-in-out infinite alternate;
}
.categories > * {
  position: relative;
  z-index: 1;
}
.category-item {
  transition:
    border-color 220ms ease,
    background-color 220ms ease !important;
}
.category-item:hover,
.category-item.is-open {
  border-bottom-color: rgba(0, 174, 217, 0.75) !important;
  background-color: rgba(0, 225, 164, 0.035) !important;
  background-image: linear-gradient(
    90deg,
    rgba(0, 225, 164, 0.06),
    transparent 72%
  ) !important;
}
.category-item:hover .category-number,
.category-item.is-open .category-number,
.category-item:hover .category-toggle,
.category-item.is-open .category-toggle {
  color: var(--ta-cyan) !important;
  border-color: var(--ta-cyan) !important;
}
.category-item > button h3,
.category-item > button:hover h3,
.category-item.is-open > button h3 {
  color: #ffffff !important;
}
.category-item.is-open {
  color: #ffffff !important;
  border-color: rgba(0, 174, 217, 0.75) !important;
}
.category-item.is-open .category-toggle {
  color: var(--ta-cyan) !important;
  border-color: var(--ta-cyan) !important;
}
.category-copy p,
.category-item.is-open .category-copy p {
  color: rgba(255, 255, 255, 0.72) !important;
}
.category-meta {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background-color: #07100e !important;
  background-image: linear-gradient(
    135deg,
    rgba(0, 225, 164, 0.08),
    rgba(0, 174, 217, 0.045)
  ) !important;
}
.category-meta > div > span {
  color: var(--ta-green) !important;
}
.category-meta > div > strong {
  color: rgba(255, 255, 255, 0.78) !important;
}
.category-example-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.category-meta .category-example-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78) !important;
}
.category-meta .category-example-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--ta-cyan);
}
.category-meta-action-only {
  justify-content: flex-end;
}
.category-select,
.category-select span {
  color: #ffffff !important;
}
.category-select {
  border-color: var(--ta-cyan) !important;
}
@media (max-width: 820px) {
  .categories::after {
    right: -42%;
    width: 100vw;
    opacity: 0.09;
  }
}

@keyframes ta-corner-breathe {
  from {
    transform: translate3d(0, 12px, 0) scale(0.98);
    opacity: 0.1;
  }
  to {
    transform: translate3d(-16px, -8px, 0) scale(1.025);
    opacity: 0.17;
  }
}
.tag-cerrada-land {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.55);
  border-radius: 6px;
  padding: 0.08rem 0.45rem;
  margin-left: 0.55rem;
  vertical-align: middle;
}

/* --- Tipografía categorías (guía PDF, 4 niveles) --- */
/* Título de sección "Elige la categoría…" · 48px (Título) — pisa los clamps de 11-form.css */
.categories .section-heading h2 {
  font-size: var(--fs-titulo) !important;
  line-height: 1.06 !important;
}
/* Títulos compactos e iguales entre sí (guía regla #2: categorías usan 17pt=22.7px) */
.category-item > button h3 {
  font-size: var(--fs-cuerpo) !important;
  font-weight: 700 !important;
}
/* Descripciones · Cuerpo */
.category-copy p {
  font-size: var(--fs-cuerpo) !important;
  line-height: 1.5 !important;
}
/* Rótulo "Ejemplos" · Nota */
.category-meta > div > span {
  font-size: var(--fs-nota) !important;
}
/* Texto de ejemplos (derecha) · Cuerpo — legible, a la par de la descripción */
.category-meta > div > strong,
.category-meta .category-example-list li {
  font-size: var(--fs-cuerpo) !important;
  line-height: 1.5 !important;
}
.category-number {
  font-size: var(--fs-nota) !important;
}
.category-select,
.category-select span {
  font-size: var(--fs-nota) !important;
}

/* "02" en verde (antes salía blanco) */
.categories .section-label span {
  color: var(--ta-green) !important;
}

/* Texto introductorio de la sección (maqueta cliente) */
.category-overview {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-cuerpo);
  line-height: 1.5;
}

/* Aside del encabezado (derecha) · Cuerpo — a la par del intro, no chico */
.categories .section-aside {
  font-size: var(--fs-cuerpo) !important;
  line-height: 1.5 !important;
}

/* Instrucción "Despliega…" — arriba a la derecha (en el aside) y en verde */
.category-instruction {
  display: block;
  margin-top: 16px;
  color: var(--ta-green) !important;
  font-size: var(--fs-cuerpo);
  font-weight: 700;
  line-height: 1.4;
}
