/* ==========================================================================
   SEMIÓTICA | Learning Experience Design
   Estilos exclusivos de la Portada (index.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Sección Hero — Arquitectura Editorial y Destinatarios
   -------------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #F8FAFB 100%);
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem) clamp(3rem, 5.5vw, 4.25rem);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 3.75rem;
  }
}

.hero-title {
  position: relative;
  font-size: clamp(1.95rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  max-width: none;
}

.hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-secondary);
  z-index: 2;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background:
    linear-gradient(to right, var(--accent-secondary) 0 64px, transparent 64px),
    linear-gradient(to bottom, transparent 1px, var(--border-subtle) 1px 2px, transparent 2px);
}

.hero-thesis {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.75vw + 0.95rem, 1.22rem);
  font-weight: 700;
  line-height: 1.56;
  color: var(--ink-primary);
  text-align: justify;
  hyphens: auto;
  max-width: none;
  margin-bottom: 1rem;
}

.hero-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.66;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  max-width: none;
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 1.85rem;
}

/* Columna derecha del Hero: A quiénes nos dirigimos */
.hero-aside .audience-section {
  display: flex;
  flex-direction: column;
}

.hero-aside .audience-section > .eyebrow {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  padding-bottom: 0.65rem;
  margin-bottom: 1.15rem;
}

.hero-aside .audience-section > .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-secondary);
  z-index: 2;
}

.hero-aside .audience-section > .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(to right, var(--accent-secondary) 0 42px, transparent 42px),
    linear-gradient(to bottom, transparent 0.5px, var(--border-subtle) 0.5px 1.5px, transparent 1.5px);
}

.hero-aside .audience-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0;
}

.hero-aside .audience-item {
  background-color: var(--bg-surface);
  border: 1px solid #DCE2E6;
  border-left: 4px solid var(--accent-primary);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 14px rgba(20, 22, 25, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-aside .audience-item:nth-child(2) {
  border-left-color: var(--accent-secondary);
}

.hero-aside .audience-item:hover {
  box-shadow: 0 8px 22px rgba(20, 22, 25, 0.06);
  transform: translateY(-2px);
}

.hero-aside .audience-item h2,
.hero-aside .audience-item__content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.hero-aside .audience-item p,
.hero-aside .audience-item__content p {
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  margin-bottom: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   2. Misión, Visión y Valores — Tres Pilares con Nodo Arquitectónico
   -------------------------------------------------------------------------- */
.hero-section .identity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 920px) {
  .hero-section .identity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.hero-section .identity-col {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid #DCE2E6;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.45rem;
  box-shadow: 0 3px 12px rgba(20, 22, 25, 0.025);
  display: flex;
  flex-direction: column;
}

.hero-section .identity-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to right, var(--accent-primary) 0 54px, var(--border-subtle) 54px);
}

.hero-section .identity-col:nth-child(2)::before {
  background: linear-gradient(to right, var(--accent-secondary) 0 54px, var(--border-subtle) 54px);
}

.hero-section .identity-col .tabular-index {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background-color: var(--tint-primary);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.hero-section .identity-col:nth-child(2) .tabular-index {
  background-color: var(--tint-secondary);
  color: var(--accent-secondary);
}

.hero-section .identity-col h2 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 0.6rem;
}

.hero-section .identity-col p {
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--ink-secondary);
  text-align: justify;
  hyphens: auto;
  margin-bottom: 0;
  max-width: none;
}

/* --------------------------------------------------------------------------
   3. Dimensiones de Abordaje — Grilla con Llaves Conectoras
   -------------------------------------------------------------------------- */
.dimensions-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .dimensions-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 2rem;
  }
}

@media (min-width: 1080px) {
  .dimensions-info-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.75rem 1.25rem;
  }
}

.dim-step {
  --step-color: var(--accent-primary);
  position: relative;
  display: flex;
  transition: transform 0.2s ease;
}

.dim-step:hover {
  --step-color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Llaves conectoras entre pares (01-02, 03-04, 05-06, 07-08) en escritorio */
@media (min-width: 1080px) {
  .dim-step:nth-child(odd) {
    padding-right: 22px;
  }

  .dim-step:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 0;
    width: 22px;
    border-top: 2px solid var(--step-color);
    border-right: 2px solid var(--step-color);
    border-bottom: 2px solid var(--step-color);
    border-radius: 0 16px 16px 0;
    pointer-events: none;
    transition: border-color 0.2s ease;
  }

  .dim-step:nth-child(odd)::after,
  .dim-step:nth-child(odd) .dim-dot {
    content: "";
    position: absolute;
    right: 17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 2px solid var(--step-color);
    z-index: 2;
    transition: border-color 0.2s ease;
  }

  .dim-step:nth-child(odd)::after {
    top: 15px;
  }

  .dim-step:nth-child(odd) .dim-dot {
    bottom: 15px;
  }

  .dim-step:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -11px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 9px solid var(--step-color);
    z-index: 2;
    transition: border-left-color 0.2s ease;
  }
}

.dim-card {
  width: 100%;
  position: relative;
  z-index: 3;
  background-color: var(--bg-surface);
  border: 2px solid var(--step-color);
  border-radius: 16px;
  padding: 2.15rem 1.2rem 1.45rem;
  box-shadow: 0 4px 14px rgba(20, 22, 25, 0.03);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dim-step:hover .dim-card {
  box-shadow: 0 8px 24px rgba(20, 22, 25, 0.06);
}

.dim-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2.5px solid var(--step-color);
  box-shadow: 0 0 0 5px var(--bg-subtle);
  color: var(--step-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dim-step:hover .dim-badge {
  background-color: var(--step-color);
  color: var(--bg-surface);
}

.dim-body {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.dim-icon {
  display: block;
  width: 46px;
  height: 68px;
  border: 2px solid var(--step-color);
  border-radius: 8px;
  background-color: var(--tint-primary);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  margin-top: 0.15rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dim-step:hover .dim-icon {
  background-color: var(--tint-secondary);
}

/* Íconos vectoriales embebidos en CSS */
.dim-icon--01 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.2' y2='16.2'/%3E%3C/svg%3E");
}

.dim-icon--02 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 3 2 8 12 13 22 8 12 3'/%3E%3Cpolyline points='2 13 12 18 22 13'/%3E%3Cpolyline points='2 18 12 23 22 18'/%3E%3C/svg%3E");
}

.dim-icon--03 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'/%3E%3Cline x1='4' y1='20' x2='21' y2='3'/%3E%3Cpolyline points='21 16 21 21 16 21'/%3E%3Cline x1='15' y1='15' x2='21' y2='21'/%3E%3C/svg%3E");
}

.dim-icon--04 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

.dim-icon--05 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3C/svg%3E");
}

.dim-icon--06 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='12' r='3'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='17' cy='17' r='3'/%3E%3Cline x1='9.6' y1='10.7' x2='14.4' y2='8.3'/%3E%3Cline x1='9.6' y1='13.3' x2='14.4' y2='15.7'/%3E%3C/svg%3E");
}

.dim-icon--07 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313423A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 17 9 11 13 15 21 7'/%3E%3Cpolyline points='15 7 21 7 21 13'/%3E%3C/svg%3E");
}

.dim-icon--08 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E2334' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

.dim-text h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-primary);
  text-align: left;
  margin-bottom: 0.45rem;
}

.dim-text p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  text-align: left;
  hyphens: none;
  max-width: none;
  margin-bottom: 0;
}

/* Tarjeta Final 08 destacada en Borgoña Editorial */
.dim-step--cta {
  --step-color: var(--accent-secondary);
}

.dim-step--cta:hover {
  --step-color: var(--accent-primary);
}

.dim-step--cta .dim-card {
  background-color: var(--tint-secondary);
}

.dim-step--cta .dim-icon {
  background-color: var(--bg-surface);
}

.dim-step--cta .dim-text p {
  color: var(--ink-primary);
  margin-bottom: 0.6rem;
}

.dim-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.dim-step--cta:hover .dim-link {
  color: var(--ink-primary);
}