* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nosotros-p1 {
  padding: 5rem 2rem;
  background-color: #fffaeb;
  position: relative;  /* Necesario para posicionar el fondo */
  overflow: hidden;    /* Para que la imagen no se salga */
}

/* Imagen de fondo - cafecito en esquina inferior derecha */
.nosotros-p1::after {
  content: '';
  position: absolute;
  top: 50%;                    /* Centra verticalmente */
  left: 0;
  transform: translateY(-50%); /* Ajusta el centrado perfecto */
  width: 300px;
  height: 300px;
  background-image: url('../../resources/img/cafecito.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center; /* Centra la imagen dentro del contenedor */
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* Asegurar que el contenido esté por encima del fondo */
.nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Título alineado a la derecha */
.title-wrapper {
  text-align: right;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6e221c;
  line-height: 1.2;
}

/* Dos columnas principales */
.two-columns {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  min-height: 400px;
}

/* Lado izquierdo - Imagen */
.image-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

.left-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Lado derecho - Imagen con proporción 2:3 */
.right-content {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.image-2x3 {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* Texto inferior en dos columnas */
.bottom-two-columns {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.bottom-left {
  flex: 1;
}

.bottom-right {
  flex: 1;
}

.bottom-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #6e221c;
  text-align: justify;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros-p1::after {
    width: 180px;
    height: 180px;
    opacity: 0.1;
  }
  
  .two-columns {
    flex-direction: column;
    gap: 2rem;
  }
  
  .right-content {
    justify-content: center;
  }
  
  .image-2x3 {
    max-width: 200px;
  }
  
  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .title-wrapper {
    text-align: center;
  }
  
  .bottom-two-columns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .bottom-text {
    text-align: left;
  }
}