/**
 * About Block Styles (Nosotros)
 * Figma: row layout — text column (InnerBlocks) + right column (steps or image)
 */

/* ─── Contenedor principal ─────────────────────────────────────── */
.about-section {
  background-color: var(--wp--preset--color--white);
  padding: 50px 30px;
  position: relative;
}

.about-container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}

/* ─── Layout: dos columnas ─────────────────────────────────────── */
.about-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 100px;
}

/* Imagen a la izquierda: invertir orden */
.about-section.layout-image-left .about-layout {
  flex-direction: row-reverse;
}

/* ─── Columna izquierda: texto (InnerBlocks) ───────────────────── */
.about-text-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-section .about-text-column .wp-block-heading,
.about-section .about-text-column h2.about-title {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.04em;
  color: var(--wp--preset--color--text-dark);
  margin: 0;
}

.about-section .about-text-column .wp-block-paragraph,
.about-section .about-text-column p.about-text {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.35em;
  color: var(--wp--preset--color--text-gray);
  margin: 0;
}

.about-button-wrapper {
  margin: 0;
}

.about-button-wrapper .wp-block-button__link {
  margin-top: 1rem;
}

/* ─── Columna derecha ──────────────────────────────────────────── */
.about-right-column {
  flex: 0 0 auto;
}

/* --- Modo imagen --- */
.about-image-wrapper {
  width: 661px;
  height: 311px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--wp--custom--border-radius--sm);
}

.about-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--light-gray);
  border-radius: var(--wp--custom--border-radius--sm);
  color: var(--wp--preset--color--text-light);
  font-size: var(--wp--preset--font-size--small);
}

/* --- Modo pasos con iconos --- */
.about-steps {
  display: flex;
  flex-direction: column;
  gap: 65px;
  width: 427px;
}

.about-step-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

/* Contenedor del icono: 64 × 64 */
.about-step-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--primary);
}

.about-step-icon svg {
  width: 64px;
  height: 64px;
  fill: currentColor;
}

/* Texto del paso */
.about-step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-step-label {
  display: block;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--normal);
  line-height: 1.21em;
  color: var(--wp--preset--color--primary);
}

.about-step-description {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 400;
  font-size: var(--wp--preset--font-size--normal);
  line-height: 1.6em;
  color: var(--wp--preset--color--text-gray);
  margin: 0;
}

.about-steps-placeholder {
  width: 427px;
  padding: 2rem;
  background: var(--wp--preset--color--neutral-200);
  border-radius: var(--wp--custom--border-radius--md);
  color: var(--wp--preset--color--text-light);
  font-size: var(--wp--preset--font-size--small);
  text-align: center;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .about-layout {
    gap: 60px;
  }

  .about-image-wrapper {
    width: 500px;
    height: 235px;
  }

  .about-steps {
    width: 380px;
  }

  .about-section .about-text-column .wp-block-heading,
  .about-section .about-text-column h2 {
    font-size: 36px;
  }

  .about-section .about-text-column .wp-block-paragraph,
  .about-section .about-text-column p {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  .about-section {
    padding: 40px 24px;
  }

  .about-layout {
    flex-direction: column !important;
    align-items: stretch;
    gap: 40px;
  }

  .about-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 661 / 311;
  }

  .about-steps {
    width: 100%;
    gap: 40px;
  }

  .about-steps-placeholder {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 30px 20px;
  }

  .about-section .about-text-column .wp-block-heading,
  .about-section .about-text-column h2 {
    font-size: 28px;
    line-height: 1.2em;
  }

  .about-section .about-text-column .wp-block-paragraph,
  .about-section .about-text-column p {
    font-size: 16px;
    line-height: 1.4em;
  }

  .about-step-icon,
  .about-step-icon svg {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .about-steps {
    gap: 32px;
  }

  .about-button-wrapper .wp-block-button__link {
    padding: 20px 50px;
    font-size: 16px;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 24px 16px;
  }

  .about-section .about-text-column .wp-block-heading,
  .about-section .about-text-column h2 {
    font-size: 24px;
  }

  .about-section .about-text-column .wp-block-paragraph,
  .about-section .about-text-column p {
    font-size: 16px;
  }

  .about-button-wrapper .wp-block-button__link {
    padding: 16px 40px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
}
