/**
 * @file
 * Sección "Sobre nosotros" del home.
 *
 * Reemplaza la grilla de Bootstrap que dejaba huecos cuando el CTA no está
 * configurado y equilibra la columna de la imagen con la de texto.
 */

.about-section {
  background: linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}

.about-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-eyebrow {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.about-title {
  color: #1d3557;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-body {
  color: #5b6b80;
  line-height: 1.8;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* Tarjetas de características. */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(29, 53, 87, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(29, 53, 87, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(29, 53, 87, 0.12);
}

.about-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(53, 137, 161, 0.12);
  color: #1d3557;
  font-size: 1.35rem;
}

.about-feature__text h4 {
  color: #1d3557;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.about-feature__text div,
.about-feature__text p {
  color: #5b6b80;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Acciones: botón (si está configurado) + teléfono. */
.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.about-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.4rem 0.7rem 0.7rem;
  border: 1px solid rgba(29, 53, 87, 0.15);
  border-radius: 999px;
  background: #fff;
  color: #1d3557;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-phone:hover {
  border-color: #3589a1;
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.12);
  color: #1d3557;
}

.about-phone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d3557;
  color: #fff;
}

.about-phone__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.about-phone__text small {
  color: #5b6b80;
  font-size: 0.8rem;
}

.about-phone__text strong {
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Imagen: ocupa todo el alto de la columna. */
.about-media {
  position: relative;
  height: 100%;
  min-height: 420px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(29, 53, 87, 0.18);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1199.98px) {
  .about-media {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .about-feature {
    padding: 1rem;
  }

  .about-actions .btn,
  .about-phone {
    width: 100%;
    justify-content: center;
  }

  .about-media {
    min-height: 260px;
  }
}

/* Variante con video en lugar de imagen. */
.about-media--video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.about-media--video .whv-stage__frame {
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(29, 53, 87, 0.18);
}

.about-media__caption {
  margin: 1.1rem 0 0;
  color: #1d3557;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
