/* ================================================================
   About Me — UDABot
   Estilos para node--about_me.html.twig
   ================================================================ */

/* ── Página contenedor ─────────────────────────────────────────── */
.about-me-page {
  background: #ffffff;
}

/* ── Secciones ─────────────────────────────────────────────────── */
.am-section {
  padding: 6rem 0;
  background: #ffffff;
}

/* ── Bloque de texto ───────────────────────────────────────────── */
.am-text-block {
  padding-right: 1rem;
}

.am-heading {
  font-family: 'Google Sans Flex', Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: #0d1b2a;
  margin-bottom: 1.5rem;
}

.am-body {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: #333333;
}

.am-body p {
  margin-bottom: 0.85rem;
}

/* ── Contenedor de medios ──────────────────────────────────────── */
.am-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Marco de imagen ───────────────────────────────────────────── */
.am-image-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.am-image-frame img,
.am-image-frame picture img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sección propósito: imagen sin recorte forzado */
.am-image-frame--purpose img,
.am-image-frame--purpose picture img {
  border-radius: 0;
}

/* ── Contenedor sección 2 ─────────────────────────────────────── */
.am-purpose-container {
  padding-left: 0;
  padding-right: 0;
}

/* ── Offsets solo en escritorio (>= 1200px) ────────────────────── */
@media (min-width: 1200px) {
  .am-image-frame--hero {
    margin-right: -40%;
  }

  .am-purpose-text {
    margin-top: -220px;
  }
}

/* ── Badge flotante del bot ────────────────────────────────────── */
.am-bot-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 5;
  border: 3px solid #f0f0f0;
}

.am-bot-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.am-bot-badge img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* ── Responsive < 1200px ───────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .am-section {
    padding: 4rem 0;
  }

  .am-text-block {
    padding-right: 0;
    text-align: center;
    margin-bottom: 2rem;
  }

  .am-heading {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .am-purpose-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .am-image-frame--hero {
    max-width: 500px;
    margin: 0 auto;
  }

  .am-image-frame--purpose {
    max-width: 600px;
    margin: 0 auto;
  }

  .am-play-btn {
    width: 60px;
    height: 60px;
  }

  .am-play-icon .fas.fa-play {
    font-size: 1.1rem;
  }

  .am-bot-badge {
    width: 58px;
    height: 58px;
    bottom: -8px;
    right: -8px;
  }

  .am-bot-badge img {
    width: 42px;
    height: 42px;
  }
}

/* ── Responsive < 576px ────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .am-section {
    padding: 3rem 0;
  }

  .am-heading {
    font-size: 1.5rem;
  }

  .am-image-frame--hero {
    max-width: 100%;
  }
}
