/* =========================================
   Quiénes Somos Section
   ========================================= */

.about-section {
  padding: 100px 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 100px);
}

/* --- Left Column --- */
.about-content {
  padding-right: 20px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.about-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-btn {
  margin-top: 20px;
  margin-left: 20px;
  padding: 14px 32px;
  background-color: #1877f2;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: transform var(--transition-fast);
  align-self: flex-start;
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* --- Right Column (Stack) --- */
.about-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.stack-card {
  padding: 35px 50px;
  border-radius: 60px;
  text-align: center;
  color: white;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stack-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.stack-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

.dark-card {
  background-color: #092147;
  z-index: 2;
}

.blue-card {
  background-color: #2c4a97;
  z-index: 1;
}

.stack-badge {
  background-color: #f1f5f9;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.top-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  margin-left: 30px;
}

.stack-bottom-group {
  display: flex;
  align-items: center;
  gap: -10px; /* Overlap the badge slightly with the icon */
  align-self: flex-end;
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.favicon-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 0 0 4px #1877f2, 0 10px 25px rgba(24, 119, 242, 0.2);
  position: relative;
  z-index: 4;
  margin-right: -25px; /* Pull the next item behind it */
}

.favicon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bottom-badge {
  text-align: center;
  line-height: 1.4;
  color: #475569;
  font-weight: 500;
  padding-left: 40px; /* Make room for the overlapping icon */
  z-index: 3;
}

/* Responsive */
@media (max-width: 1200px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-content {
    padding-right: 0;
    text-align: center;
  }
  
  .about-stack {
    padding-left: 0;
  }
  
  .stack-bottom-group {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .stack-card {
    border-radius: 40px;
    padding: 25px 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .top-badge {
    margin-left: 0;
  }
  
  .stack-bottom-group {
    flex-direction: column;
    margin-top: 10px;
  }
  
  .favicon-wrapper {
    margin-right: 0;
    margin-bottom: -20px;
  }
  
  .bottom-badge {
    padding-left: 20px;
    padding-top: 30px;
  }
}
